11
WXL
2023-12-20 267862835e0a095eae9537dcc35cfcbdf5fece78
src/views/project/donationdetails/index.vue
@@ -153,7 +153,7 @@
      </div>
    </div>
    <!-- 右侧数据 -->
    <div style="background: #fff;">
    <div style="background: #fff; width: 80%;">
      <!-- 顶部数据 -->
      <div class="boxdiv">
        <div class="top-text">捐献案例信息</div>
@@ -171,30 +171,47 @@
              "
          >
            <el-row style="margin-top: 10px">
              <el-col :span="8">
              <el-col :span="6">
                <el-form-item label="捐献编号" prop="donorno">
                  <el-input v-model="form.donorno" disabled />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item
                  align="left"
                  label="医疗机构"
                  prop="treatmenthospitalno"
                >
                  <org-selecter
                    ref="addOrgSelect"
                    :org-type="'3'"
                    v-model="form.treatmenthospitalno"
              <el-col :span="6">
                <el-form-item label="报告人" prop="reporterno">
                  <el-select
                    ref="getReportname"
                    v-model="form.reporterno"
                    placeholder="请选择"
                  >
                    <el-option
                      v-for="item in reporters"
                      :key="item.reportNo"
                      :label="item.reportName"
                      :value="item.reportNo"
                    >
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="联系电话" prop="reporterphone">
                  <el-input
                    v-model="form.reporterphone"
                    placeholder="请输入联系电话"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="科室" prop="treatmentdeptno">
                  <el-input
                    v-model="form.treatmentdeptname"
                    placeholder="请输入科室"
                  />
              <el-col :span="6">
                <el-form-item label="报告时间" align="left" prop="reporttime">
                  <el-date-picker
                    clearable
                    size="small"
                    v-model="form.reporttime"
                    type="datetime"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    placeholder="选择报告时间"
                  >
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
@@ -204,39 +221,6 @@
                  <el-input v-model="form.name" placeholder="必填项" />
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="性别" prop="sex">
                  <el-select v-model="form.sex" placeholder="请输入性别">
                    <el-option
                      v-for="dict in dict.type.sys_user_sex"
                      :key="dict.label"
                      :label="dict.label"
                      :value="parseInt(dict.value)"
                    ></el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="年龄" prop="age">
                  <el-input v-model="form.age" placeholder="请输入年龄" />
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="出生日期" prop="birthday">
                  <el-date-picker
                    clearable
                    size="small"
                    v-model="form.birthday"
                    type="date"
                    style="width: 174px"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    placeholder="选择出生日期"
                  >
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="6">
                <el-form-item label="证件类型" prop="idcardtype">
                  <el-select
@@ -255,7 +239,6 @@
              <el-col :span="6">
                <el-form-item label="证件号码" prop="idcardno">
                  <el-input
                    style="width: 174px"
                    ref="updateBSvalue"
                    class="sfzcode"
                    v-model="form.idcardno"
@@ -264,45 +247,57 @@
                  />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="报告人" prop="reporterno">
                  <el-select
                    ref="getReportname"
                    v-model="form.reporterno"
                    placeholder="请选择"
                  >
                    <el-option
                      v-for="item in reporters"
                      :key="item.reportNo"
                      :label="item.reportName"
                      :value="item.reportNo"
                    >
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="联系电话" prop="reporterphone">
                  <el-input
                    v-model="form.reporterphone"
                    placeholder="请输入联系电话"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="报告时间" align="left" prop="reporttime">
              <el-col :span="6">
                <el-form-item label="出生日期" prop="birthday">
                  <el-date-picker
                    clearable
                    size="small"
                    style="width: 190px"
                    v-model="form.reporttime"
                    type="datetime"
                    v-model="form.birthday"
                    type="date"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    placeholder="选择报告时间"
                    placeholder="选择出生日期"
                  >
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="6">
                <el-form-item label="性别" prop="sex">
                  <el-select v-model="form.sex" placeholder="请输入性别">
                    <el-option
                      v-for="dict in dict.type.sys_user_sex"
                      :key="dict.label"
                      :label="dict.label"
                      :value="parseInt(dict.value)"
                    ></el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="年龄" prop="age">
                  <el-input v-model="form.age" placeholder="请输入年龄" />
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item
                  align="left"
                  label="医疗机构"
                  prop="treatmenthospitalno"
                >
                  <org-selecter
                    ref="addOrgSelect"
                    :org-type="'3'"
                    v-model="form.treatmenthospitalno"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="科室" prop="treatmentdeptno">
                  <el-input
                    v-model="form.treatmentdeptname"
                    placeholder="请输入科室"
                  />
                </el-form-item>
              </el-col>
            </el-row>
@@ -727,22 +722,19 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="submitForm"
            >保存捐献者信息</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <el-button
          <!-- <el-button
            v-show="Reportforreview"
            type="primary"
            @click="Reportforreview"
            >上报审核</el-button
          >
          <!-- <el-button @click="cancel">取 消</el-button> -->
          <!-- <el-button @click="handleapproval">提交审核</el-button> -->
            >提交</el-button
          > -->
        </div>
      </div>
      <!-- 医学评估 -->
@@ -953,12 +945,12 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="Savethedetails"
            >保存评估信息</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
@@ -978,6 +970,13 @@
          label-width="100px"
          label-position="right"
        >
          <el-form-item label-width="100px" label="选择器官">
            <el-checkbox-group v-model="organdecision">
              <el-checkbox v-for="item in organlist" :label="item">
                {{ item }}
              </el-checkbox>
            </el-checkbox-group>
          </el-form-item>
          <el-row>
            <el-col :span="6">
              <el-form-item label="子女数量" prop="kinshipChildrennum">
@@ -1153,12 +1152,12 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="Savethedetails"
            >保存捐献信息</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
@@ -1221,12 +1220,12 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="Savethedetails"
            >保存伦理信息</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
@@ -1599,12 +1598,12 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="Savethedetails"
            >保存器官分配信息</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
@@ -1954,12 +1953,12 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="Savethedetails"
            >保存见证信息</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
@@ -2076,25 +2075,35 @@
            v-show="!showTerminationBtn"
            type="primary"
            @click="Savethedetails"
            >完成登记</el-button
            >保存</el-button
          >
          <el-button
            :type="showTerminationBtn == 0 ? 'warning' : 'success'"
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
            >{{ showTerminationBtn == 0 ? "终止" : "恢复" }}</el-button
          >
          <el-button
            v-show="Reportforreview"
            type="primary"
            @click="Reportforreview"
            >上报审核</el-button
            >提交</el-button
          >
          <!-- <el-button @click="cancel">取 消</el-button> -->
        </div>
      </div>
      <!-- 完结流程 -->
      <div class="boxdiv" v-show="actives > 6">
        <h3>全部流程已完结!</h3>
      <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" src="@/assets/images/wanc.png" class="user-avatar" />
          </div>
          <div style="font-size: 28px;">全部流程已完结!</div>
          <img style="width: 100px; height: 100px" src="@/assets/images/zhan.png" class="user-avatar" />
        </div>
      </div>
    </div>
    <!-- 附件弹窗 -->
@@ -2325,11 +2334,30 @@
        infoid: null
      },
      affirmform: {
        infoid: null
        infoid: null,
        organdecision: []
      },
      organdecision: [],
      ethicform: {
        infoid: null
      },
      organlist: [
        "心脏",
        "全肝",
        "左肝",
        "右肝",
        "左肾",
        "右肾",
        "全肾",
        "左肺",
        "右肺",
        "小肠",
        "腺体",
        "遗体",
        "左眼角膜",
        "右眼角膜",
        "其他"
      ],
      allocationstatuslist: [
        { value: 0, label: "未分配" },
        { value: 1, label: "已分配" },
@@ -2606,6 +2634,9 @@
        listRelativesconfirmation(searchParam).then(response => {
          if (response.code == 200 && response.rows[0]) {
            this.affirmform = response.rows[0];
            if (this.affirmform.organdecision) {
              this.organdecision = this.affirmform.organdecision.split(",");
            }
            if (!this.affirmform) {
              this.affirmform = {};
              this.affirmform.residenceprovincename = "";
@@ -2642,7 +2673,7 @@
            console.log("伦理审查数据为空");
          }
        });
      } else if (this.actives == 4 && !this.medicineform[0]) {
      } else if (this.actives == 4 && !this.allocationform[0]) {
        listDonateorgan(searchParam).then(response => {
          if (response.code == 200) {
            if (response.rows[0]) {
@@ -2830,6 +2861,7 @@
        });
      } else if (this.actives == 2) {
        this.affirmform.infoid = this.infoid;
        this.affirmform.organdecision = this.organdecision.join(",");
        this.$refs["affirmform"].validate(valid => {
          if (valid) {
            if (this.affirmform.id != null) {
@@ -2927,6 +2959,7 @@
                this.$modal.msgSuccess("获取见证信息新增成功");
              });
            }
            this.form.donationcategory = this.witnessform.donationcategory;
            this.Processvalidation();
          }
        });
@@ -2945,7 +2978,7 @@
              }
            });
            // 保存确认信息
            if (this.accomplishform.id) {
            if (this.accomplishform.dcid) {
              console.log(this.accomplishform);
              updateDonatecompletioninfo(this.accomplishform).then(response => {
                this.$modal.msgSuccess("完成登记信息修改成功");
@@ -3044,7 +3077,7 @@
    Processvalidation() {
      console.log(this.form.workflow);
      console.log(this.actives);
      if (this.form.workflow + 1 == this.actives) {
      if (this.form.workflow + 1 == this.actives || this.actives == 6) {
        if (this.form.workflow <= 6) {
          this.form.workflow++;
        } else {