11
WXL
2024-03-01 4cc6abf3f6cf80167d48945f7ff04255a6845f7b
11
已修改1个文件
80 ■■■■ 文件已修改
src/views/project/donationdetails/index.vue 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/donationdetails/index.vue
@@ -345,7 +345,7 @@
        </el-steps>
      </div>
      <!-- 凭证文件 -->
      <div class="Ticket-button" >
      <div class="Ticket-button">
        <el-button @click.native.prevent="Filepopup" type="success"
          >凭证文件</el-button
        >
@@ -719,12 +719,13 @@
        </el-form>
        <div class="dialog-footer">
          <el-button
            v-show="!showTerminationBtn"
            v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="submitForm"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
@@ -942,12 +943,13 @@
        </el-form>
        <div class="dialog-footer">
          <el-button
            v-show="!showTerminationBtn"
          v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="Savethedetails"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
@@ -1175,12 +1177,13 @@
        </el-form>
        <div class="dialog-footer">
          <el-button
            v-show="!showTerminationBtn"
          v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="Savethedetails"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
@@ -1246,12 +1249,13 @@
        </el-form>
        <div class="dialog-footer" style="min-height: 500px; margin: 20px 0; ">
          <el-button
            v-show="!showTerminationBtn"
          v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="Savethedetails"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
@@ -1413,12 +1417,13 @@
        </el-form>
        <div class="dialog-footer" v-show="actives == 4">
          <el-button
            v-show="!showTerminationBtn"
          v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="Savethedetails"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
@@ -1923,12 +1928,13 @@
        <div class="dialog-footer">
          <el-button
            v-show="!showTerminationBtn"
          v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="Savethedetails"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
@@ -2193,21 +2199,25 @@
        </el-form>
        <div class="dialog-footer">
          <el-button
            v-show="!showTerminationBtn"
          v-show="!showTerminationBtn&&workflow != 9"
            type="primary"
            @click="Savethedetails"
            >保存</el-button
          >
          <el-button
          v-if="workflow != 9"
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <el-button
            v-show="Reportforreview"
            type="primary"
            v-if="workflow != 9"
            type="success"
            @click="Reportforreview"
            >提交</el-button
            >提交归档</el-button
          >
          <el-button v-else type="danger" @click="Reportforreview"
            >撤销归档</el-button
          >
          <!-- <el-button @click="cancel">取 消</el-button> -->
        </div>
@@ -2297,7 +2307,7 @@
            >
              <el-table-column
                prop="annexname"
              align="center"
                align="center"
                :show-overflow-tooltip="true"
                label="名称"
              >
@@ -2310,7 +2320,7 @@
              <el-table-column
                prop="name"
              align="center"
                align="center"
                :show-overflow-tooltip="true"
                label="功能"
              >
@@ -2321,7 +2331,6 @@
                    @click.native.prevent.stop="deletedowfile(scope.row)"
                    >删除</el-button
                  >
                </template>
              </el-table-column>
            </el-table>
@@ -2672,7 +2681,7 @@
      //报告人列表
      reporters: [],
      //附件列表
      annextype: '1', //附件type
      annextype: "1", //附件type
      annexfilesList: [], //附件展示列
      potentiallist: [], //潜在附件
      medicinelist: [], //医学附件
@@ -2736,9 +2745,9 @@
      // 表单数据
      getDonatebaseinfo(this.infoid).then(response => {
        this.form = response.data;
        if(response.data.terminationCase){
        if (response.data.terminationCase) {
          this.showTerminationBtn = response.data.terminationCase;
        } else{
        } else {
          this.showTerminationBtn = 0;
        }
        this.actives = response.data.workflow;
@@ -3157,7 +3166,7 @@
                this.$modal.msgSuccess("捐献器官获取信息保存成功!");
              }
            });
console.log(this.accomplishform.id,'完成id');
            console.log(this.accomplishform.id, "完成id");
            // 保存确认信息
            if (this.accomplishform.id) {
              updateDonatecompletioninfo(this.accomplishform).then(response => {
@@ -3427,9 +3436,37 @@
    },
    // 提交归档
    Reportforreview() {
      fileCase({infoId:this.infoid}).then(res=>{
        console.log(res);
      })
      if (this.form.workflow == 9) {
        this.form.workflow = 8;
        this.submitForm();
      } else {
        this.$confirm("即将进行案例归档, 确认所有数据已保存?", "提示", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        })
          .then(() => {
            fileCase({ infoId: this.infoid }).then(res => {
              if (res.code == 500) {
                this.$message.error(res.msg);
              } else {
                this.form.workflow = 9;
                this.submitForm();
                this.$message({
                  type: "success",
                  message: "归档成功!"
                });
                this.$router.go(-1);
              }
            });
          })
          .catch(() => {
            this.$message({
              type: "info",
              message: "已取消归档"
            });
          });
      }
    },
    // 终止案例
    Terminationcase() {
@@ -3635,7 +3672,6 @@
      this.annexfilesList.splice(indexvalue, 1);
      this.Newconversion(this.annexfilesList, indexvalue, "");
    },
    clearFilter() {
      this.$refs.filterTable.clearFilter();