WXL
3 天以前 c8e9849cb5f24848df0174c13bfbbff37bb08a5a
src/views/project/donateconsolationfund/index.vue
@@ -9,9 +9,9 @@
    >
      <el-row align="left">
        <el-col :span="24">
          <el-form-item label="捐献编号" prop="donorno">
          <el-form-item label="捐献编号" prop="caseNo">
            <el-input
              v-model="queryParams.donorno"
              v-model="queryParams.caseNo"
              placeholder="请输入捐献编号"
              clearable
              size="small"
@@ -89,7 +89,7 @@
            :data="donatebaseinfoList"
            @row-click="selectDonotor"
          >
            <el-table-column label="捐献编号" align="center" prop="donorno" />
            <el-table-column label="捐献编号" align="center" prop="caseNo" />
            <el-table-column
              label="捐献进度"
              width="150"
@@ -148,7 +148,7 @@
              </el-col>
              <el-col :span="9">
                <el-form-item label="捐献编号">
                  <el-input v-model="curCase.donorno" disabled></el-input>
                  <el-input v-model="curCase.caseNo" disabled></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="9">
@@ -333,10 +333,10 @@
        <!-- <el-form ref="applyForm" :model="applicationForm" label-width="120px"> -->
        <el-row>
          <el-col :span="8">
            <el-form-item label="捐献编号" prop="donorno">
            <el-form-item label="捐献编号" prop="caseNo">
              <el-input
                disabled
                v-model="form.donorno"
                v-model="form.caseNo"
                placeholder="请输入捐献编号"
                clearable
              />
@@ -758,6 +758,8 @@
} from "@/api/project/donatebaseinfo";
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
import { getToken } from "@/utils/auth";
export default {
  components: {
@@ -795,8 +797,8 @@
      updatedatas: {},
      //当前选中捐献者姓名
      curdonordoname: "",
      //当前选中捐献者案例编号
      curdonorno: "",
      //当前选中捐献者住院号
      curcaseNo: "",
      // 遮罩层
      loading: true,
      // 导出遮罩层
@@ -834,7 +836,7 @@
        residencetown: null,
        recordstate: null,
        treatmenthospitalname: null,
        donorno: null,
        caseNo: null,
        reportername: null,
        reporttime: null,
      },
@@ -851,6 +853,9 @@
        amountrequested: [
          { required: true, message: "请输入申请金额", trigger: "blur" },
        ],
      },
      headers: {
        Authorization: "Bearer " + getToken()
      },
      //当前选中捐献案例
      curCase: {},
@@ -1056,14 +1061,14 @@
    },
    //动态计算税前金额
    change(scope) {},
    autodonorno() {
    autocaseNo() {
      listDonatebaseinfo().then((res) => {
        // console.log("所有捐献者列表:",res);
        res.rows.forEach((data) => {
          // console.log("data:",data);
          if (this.form.doname === data.name) {
            this.form.donorno = data.donorno;
            console.log(this.form.donorno);
            this.form.caseNo = data.caseNo;
            console.log(this.form.caseNo);
          } else {
            // this.$modal.alertWarning("对不起,无该捐献人");
          }
@@ -1113,7 +1118,7 @@
        id: null,
        infoid: null,
        donorno: null,
        caseNo: null,
        delFlag: null,
        createBy: null,
        createTime: null,
@@ -1171,7 +1176,7 @@
        this.reset();
        this.queryParams.params = {};
        this.form.donorno = this.curCase.donorno;
        this.form.caseNo = this.curCase.caseNo;
        this.form.name = this.curCase.name;
        this.form.infoid = this.curCase.id;
        // this.form.createTime = nowdate;
@@ -1193,7 +1198,7 @@
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
      this.form.donorno = this.curCase.donorno;
      this.form.caseNo = this.curCase.caseNo;
      this.form.infoid = this.curCase.id;
      this.initFundApplyForm();
      this.dialogOpen = true;
@@ -1275,7 +1280,7 @@
            });
          } else {
            //保存主表记录
            addFund(this.form).then((response) => {
              if (response.code === 200) {
                this.$modal.msgSuccess("新增成功");
@@ -1392,7 +1397,7 @@
          recordstatus: "0",
          delFlag: null,
          donorname: null,
          donorno: null,
          caseNo: null,
          createBy: null,
          createTime: null,
          updateBy: null,
@@ -1454,7 +1459,7 @@
        if (!row.id) {
          row.fundid = this.form.id;
          row.donorname = this.form.donorname;
          row.donorno = this.form.donorno;
          row.caseNo = this.form.caseNo;
          addFunddetail(row).then((res) => {
            getownFundDetail(this.form.id).then((res) => {
              getownFundDetail(this.form.id).then((res) => {
@@ -1665,7 +1670,7 @@
            });
          }
        });
      }
      }
      else {
        this.$alert("请确认您要下载的专家劳务表", "提醒", {
          confirmButtonText: "确定",
@@ -1724,7 +1729,7 @@
            });
          }
        });
      }
      }
      else if(id){
         getdownloadYX(id).then((res) => {
          if (res.downloadUrl) {
@@ -1744,7 +1749,7 @@
            });
          }
        });
      }
      }
       else {
        this.$alert("请确认您要下载的专家劳务表", "提醒", {
          confirmButtonText: "确定",