gaoluyang
2024-07-18 675d310674392c512de9a38190059af60e831105
src/components/view/b1-report-preparation.vue
@@ -332,8 +332,8 @@
      // }
    },
    methods: {
      refreshTable() {
        this.$refs['ValueTable'].selectList()
      refreshTable(e) {
        this.$refs['ValueTable'].selectList(e)
      },
      refresh() {
        this.componentData.entity = this.HaveJson(this.entityCopy)
@@ -438,13 +438,14 @@
        document.body.appendChild(link);
        link.click();
      },
      // 还原操作
      handleRestore(row) {
        this.$axios.post(this.$api.insReport.upReportUrl, {
          id: row.id
        }).then(res => {
          if (res.code === 200) {
            this.$message.success('操作成功')
            this.refreshTable()
            this.refreshTable('page')
          }
        })
      },
@@ -466,6 +467,7 @@
          }
          this.issuedVisible = true;
      },
      // 审核通过
      subIssued() {
        this.loadingIssued = true;
        this.$axios.post(this.$api.insReport.examineReport, {
@@ -477,7 +479,7 @@
            return
          }
          this.$message.success('提交成功')
          this.refreshTable()
          this.refreshTable('page')
          this.currentInfo = null;
          this.issuedVisible = false;
        }).catch(e => {
@@ -503,6 +505,7 @@
          }
        this.approveVisible = true;
      },
      // 批准通过
      subApprove() {
        this.loadingApprove = true;
        this.$axios.post(this.$api.insReport.ratifyReport, {
@@ -515,11 +518,12 @@
            return
          }
          this.$message.success('已批准')
          this.refreshTable()
          this.refreshTable('page')
          this.currentInfo = null;
          this.approveVisible = false;
        })
      },
      // 提交操作
      handleSubmit(row) {
        this.$confirm('是否提交当前报告?', "提交", {
          confirmButtonText: "提交",
@@ -533,12 +537,13 @@
              return
            }
            this.$message.success('提交成功')
            this.refreshTable()
            this.refreshTable('page')
          }).catch(e => {
            this.$message.error('提交失败')
          })
        }).catch(() => {})
      },
      // 审核不通过原因提交
      handleIssuedReason() {
        if (!this.reason) {
          return this.$message.error('请输入原因')
@@ -554,7 +559,7 @@
            return
          }
          this.$message.success('操作成功')
          this.refreshTable()
          this.refreshTable('page')
          this.currentInfo = null;
          this.reason = '';
          this.issuedVisible = false;
@@ -564,6 +569,7 @@
          this.loadingIssuedReason = false;
        })
      },
      // 不批准原因提交
      handleApproveReason() {
        if (!this.reason) {
          return this.$message.error('请输入原因')
@@ -579,7 +585,7 @@
            return
          }
          this.$message.success('操作成功')
          this.refreshTable()
          this.refreshTable('page')
          this.currentInfo = null;
          this.reason = '';
          this.issuedVisible = false;