11
WXL
2024-02-23 fdafd7881a9fc9eaf54f2a22d99509aea6575abc
src/views/project/donationdetails/index.vue
@@ -1269,7 +1269,6 @@
      <div class="boxdiv" v-show="actives == 4">
        <el-form
          ref="allocateddata"
          :model="allocateddata"
          :rules="allocationrules"
          label-position="right"
        >
@@ -2169,10 +2168,6 @@
      <!-- 完结流程 -->
      <div class="boxdiv" v-show="actives > 6">
        <div style="display:flex; line-height: 100px; justify-content: center;">
          <!-- <el-image
            style="width: 100px; height: 100px"
            :src="require('@/assets/images/wanc.png')"
          ></el-image> -->
          <div style="padding: 20px 0; margin: 0 30px">
            <img
              style="width: 60px; height: 60px"
@@ -2280,7 +2275,7 @@
          </div>
        </div>
        <div v-if="this.previewpdf && pdfimgsrcList.length" class="pdfimgmin">
        <div v-if="previewpdf && pdfimgsrcList.length" class="pdfimgmin">
          <!-- <img :src="pdfimg" /> -->
          <el-image
            style="width: 95%; height: 90%"
@@ -2385,6 +2380,7 @@
} from "@/api/project/donationwitness";
import {
  listnewDonatecompletioninfo,
  listDonatecompletioninfo,
  addDonatecompletioninfo,
  updateDonatecompletioninfo,
  listDonatecomporgan,
@@ -2438,7 +2434,7 @@
        "双肾脏",
        "心脏",
        "肺脏",
        "腺体",
        "胰腺",
        "小肠",
        "双眼组织",
        "遗体",
@@ -2859,7 +2855,8 @@
          });
        }
        // 获取完成登记信息
        listnewDonatecompletioninfo(accpre).then(response => {
        // listnewDonatecompletioninfo(accpre).then(response => {
        listDonatecompletioninfo(accpre).then(response => {
          if (response.code == 200 && response.rows.length) {
            this.accomplishform = response.rows[0];
            this.accomplishform.infoid = this.infoid;
@@ -2939,20 +2936,17 @@
            }
            updateDonatebaseinfo(this.form).then(response => {
              this.$modal.msgSuccess("保存成功");
              Modifydonationattachment(this.donatelist).then(res => {
              });
              Modifydonationattachment(this.donatelist).then(res => {});
              this.Getbasicinformation();
              // this.Processvalidation();
              this.open = false;
            });
          } else {
            this.form.workflow = 1;
            this.form.recordstate = 0;
            this.form.workflow = 0;
            addDonatebaseinfo(this.form).then(response => {
              if (response.code == 200) {
                this.$modal.msgSuccess("新增成功");
                Modifydonationattachment(this.donatelist).then(res => {
                });
                Modifydonationattachment(this.donatelist).then(res => {});
                this.Getbasicinformation();
                // this.Processvalidation();
                this.open = false;
@@ -3108,7 +3102,7 @@
            });
            // 保存确认信息
            if (this.accomplishform.dcid) {
            if (this.accomplishform.id) {
              updateDonatecompletioninfo(this.accomplishform).then(response => {
                this.$modal.msgSuccess("完成登记信息修改成功");
              });
@@ -3356,7 +3350,6 @@
    },
    // 更改进程效验
    Processvalidation() {
      if (this.form.workflow + 1 == this.actives || this.actives == 6) {
        if (this.form.workflow <= 6) {
          this.form.workflow++;
@@ -3366,8 +3359,7 @@
        // this.GetAttacheddata();
      } else if (this.form.workflow > this.actives) {
        // this.submitForm();
        Modifydonationattachment(this.donatelist).then(res => {
        });
        Modifydonationattachment(this.donatelist).then(res => {});
        this.listDonateannex();
        this.GetAttacheddata();
      } else {
@@ -3525,7 +3517,7 @@
      this.fileListto = [];
      this.pdfimgsrcList = [];
      this.pdfimg = '';
      this.pdfimg = "";
      this.atpresent = index;
      this.pdfVisible = true;
      if (this.annexfilesList.length) {
@@ -3600,11 +3592,7 @@
      });
      console.log(indexvalue, "删除索引");
      this.annexfilesList.splice(indexvalue, 1);
      this.Newconversion(
        this.annexfilesList,
        indexvalue,
        ""
      );
      this.Newconversion(this.annexfilesList, indexvalue, "");
    },
    // 点击上移
    moveupdowfile(row) {