yxh
yxh
2023-07-14 84c2bfd27fa610fb42dd52b9f145ca2507230c18
src/views/project/medicalcostfundapplycheck/index.vue
@@ -48,7 +48,7 @@
          <el-table-column label="所属组别" align="center" prop="deptmentname" width="140px" />
          <el-table-column label="组长" align="center" prop="managername" width="120px" />
          <el-table-column label="捐献者" align="center" prop="donorname" width="120px" />
          <el-table-column label="捐献编号" align="center" prop="donorno" />
          <!--<el-table-column label="捐献编号" align="center" prop="donorno" />-->
          <el-table-column label="申请金额" align="center" prop="amountrequested" width="120px" />
          <el-table-column label="预支费用" align="center" prop="prepaidamount" width="120px" />
          <!--<el-table-column label="工作单位" align="center" prop="unitname" width="230px" />
@@ -131,7 +131,7 @@
              <el-radio-group v-model="form.applytype" @change="LoadItemTypeArr">
                <!--<el-radio v-for="dict in dict.type.sys_financeitemtype" :key="dict.value" :label="dict.value"
                  :disabled="form.id != null">{{ dict.label }}</el-radio>-->
                <el-radio v-model="form.applytype" label="3">伦理审查专家费申请</el-radio>
                <el-radio v-model="form.applytype" label="3">医学成本费用申请</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
@@ -168,7 +168,7 @@
            <el-form-item label="合计金额" prop="amountrequested">
              <el-input v-model="form.amountrequested" placeholder="申请金额" :disabled="true" />
            </el-form-item>
          </el-col>
          </el-col><!--
          <el-col :span="5">
            <el-form-item label="税前金额" prop="amountrequested">
              <el-input v-model="form.pretaxcost" placeholder="税前金额合计" :disabled="true" />
@@ -181,13 +181,12 @@
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请状态" prop="recordstatus">
              <!-- <el-input v-model="form.recordstatus" placeholder="审核意见"/> -->
              <el-select v-model="form.recordstatus" placeholder="请选择审核状态" clearable size="small" :disabled="true">
                <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label"
                  :value="dict.value" />
              </el-select>
            </el-form-item>
          </el-col>
          </el-col>-->
        </el-row>
        <el-row>
          <el-col :span="4">
@@ -333,6 +332,21 @@
            </el-table-column>
          </el-table>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="费用申请附件:" align="left" prop="annexbankcard">
              <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple
                :limit="20" :headers="headers" :on-success="(response, file, fileList) =>
                  uploadSccess(response, file, fileList)
                  " :on-preview="downFile" :disabled='dialogType == "detail"' :on-error="handleUploadError"
                :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf">
                <el-button :disabled='dialogType == "detail"' size="small" type="primary">上传</el-button>
              </el-upload>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row style="margin-top: 5px; margin-bottom: 5px">
          <el-table :data="fundflowList" border>
            <el-table-column label="审核人" align="center" prop="checkusername" />
@@ -433,6 +447,7 @@
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
import { getUserProfile } from "@/api/system/user";
import { getToken } from "@/utils/auth";
export default {
  components: {
@@ -602,6 +617,15 @@
      approveLevel: 5,
      fundtypeArrAll: [],
      dialogType: "edit",
      //附件列表
      fileList: [],
      //上传附件路径
      uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload",
      headers: {
        Authorization: "Bearer " + getToken(),
      },
    };
  },
  watch: {},
@@ -618,7 +642,6 @@
  },
  methods: {
    selectapplication() {
      console.log("时间", this.createTime);
      this.queryParams.APPLICATIONBEGTIME = this.createTime[0];
      this.queryParams.APPLICATIONENDTIME = this.createTime[1];
    },
@@ -626,8 +649,6 @@
      this.loading = true;
      // this.queryParams.params = {};
      listbypower(this.queryParams).then((res) => {
        //console.log("根据权限显示列表", res);
        console.log("根据权限显示列表", res);
        this.loading = false;
        let list = res.rows;
        let arr = [];
@@ -638,7 +659,6 @@
    dundcheck() {
      // this.$em
      this.dialogOpen = false;
      console.log("1234567", this.newobj, this.form.flowconclusion);
      let checkfundobj = {
        flowconclusion: this.newobj.flowlevelone,
        flowcontent: this.newobj.flowconclusion,
@@ -646,8 +666,6 @@
      };
      checkfund(checkfundobj).then((res) => {
        this.reset();
        this.$modal.msgSuccess("审核完成!");
        console.log("审核费用", res);
        this.$modal.msgSuccess("审核完成!");
        this.getlistbypower();
      });
@@ -782,12 +800,9 @@
    change(scope) { },
    autodonorno() {
      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);
          } else {
            // this.$modal.alertWarning("对不起,无该捐献人");
          }
@@ -847,6 +862,9 @@
        applytype: "3",
      };
      this.resetForm("form");
      //清空附件
      this.fileList = []
    },
    /** 搜索按钮操作 */
@@ -868,7 +886,6 @@
    },
    /** 新增按钮操作 */
    handleAdd() {
      console.log("222", this.curCase);
      if (this.curCase.id) {
        this.istrue += 2;
        this.reset();
@@ -908,6 +925,8 @@
      getFund(id).then((response) => {
        this.form = response.data;
        this.form.name = this.curCase.name;
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        getownFundDetail(id).then((res) => {
          this.loading = false;
@@ -916,7 +935,6 @@
            this.fundDetailArr[m].itemArr = [];
            this.getItemArr(m, this.fundDetailArr[m]);
          }
          console.log("fundDetailArr:" + JSON.stringify(this.fundDetailArr));
        });
      });
    },
@@ -942,6 +960,9 @@
      getFund(row.id).then((response) => {
        this.form = response.data;
        this.form.name = this.curCase.name;
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        getownFundDetail(row.id).then((res) => {
          this.fundDetailArr = res.data;
          for (let m = 0; m < this.fundDetailArr.length; m++) {
@@ -953,7 +974,6 @@
    },
    select(row) {
      console.log("测试开始", row.itemid, row.itemArr);
      row.itemArr.map((res) => {
        if (row.itemid === res.id) {
          row.remark = res.itemdescribe;
@@ -965,7 +985,6 @@
        }
      });
      listcountItem(this.form.infoid, row.itemid).then((res) => {
        console.log("resresresres", res);
        if (res.data > 0) {
          this.$modal.msgWarning("您已经提交过该服务项目");
        }
@@ -981,7 +1000,7 @@
            servivesscope: item.id,
          });
        });
        console.log("组装后的数据", fundblock);
        this.fundblock = fundblock;
      });
    },
@@ -1086,7 +1105,6 @@
    },
    saverow(row, index, rows) {
      console.log("dwadw", index, rows, row);
      let totallist = this.fundDetailArr;
      if (this.form.id) {
        if (!row.id) {
@@ -1151,14 +1169,12 @@
                    this.$set(this.fundDetailArr, res.data);
                    this.sumTotalFee();
                    // this.fundDetailArr = res.data
                    // console.log('删除后',this.fundDetailArr)
                  });
                });
              }
              // getownFundDetail(this.form.id).then(res=>{
              // this.$set(this.fundDetailArr,res.data)
              // this.fundDetailArr = res.data
              // console.log('删除后',this.fundDetailArr)
              // })
            });
          } else {
@@ -1244,7 +1260,6 @@
      })
        .then(() => {
          updateFunddetail(this.fundDetailArr).then((res) => {
            console.log("牛丸牛啊", res);
          });
        })
        .catch(() => {
@@ -1257,10 +1272,8 @@
      //判断数据明细数据是否正确
      let detailDataCorrect = true;
      for (let i = 0; i < this.applicationDetailArr.length; i++) {
        // console.log('qqq',this.applicationDetailArr[i]);
        let tempData = this.applicationDetailArr[i];
        Object.keys(tempData).forEach(function (key) {
          // console.log('iii',key, tempData[key]);
          if (
            tempData[key] == null ||
            tempData[key] == undefined ||
@@ -1336,7 +1349,6 @@
    //获取费用类型
    getCurFundType() {
      getFundTypeAll(3).then((res) => {
        console.log("费用类型", res.data);
        let dataList = res.data;
        this.fundtypeArrAll = dataList;
        this.fundtypeArr = [];
@@ -1370,7 +1382,6 @@
        listReportname(arr[i]).then((res) => {
          this.arrr2 = res.data;
          this.arrr3 = this.arrr3.concat(this.arrr2);
          console.log("adadadadasdsad", this.arrr3, this.userlist);
        });
      }
    },
@@ -1403,7 +1414,6 @@
    getUsermsg() {
      getUserProfile().then((response) => {
        console.log("登录用户信息", response.data);
        // this.defaultperson = response.data;
        // this.standardlevel = response.data.standardlevel;
        if (
@@ -1415,7 +1425,6 @@
        } else {
          this.show = 3;
        }
        console.log("where", this.show);
      });
    },
@@ -1449,7 +1458,6 @@
    dayin() {
      if (this.form.id) {
        const id = this.form.id;
        console.log(id);
        getdownloadLW(id).then((res) => {
          if (res.downloadUrl) {
            var fileUrl = res;
@@ -1565,7 +1573,6 @@
    dayin4() {
      const id = this.form.id;
      // getdownloadLL(id).then(res=>{
      //   console.log('劳务下载',res);
      // })
    },
    // 捐献者家属交通食宿打印
@@ -1589,7 +1596,6 @@
              type: "success",
            });
          }
          console.log("家属伙食交通费", res);
        });
      } else {
        this.$alert("请确认您要下载的专家劳务表", "提醒", {
@@ -1598,6 +1604,36 @@
        });
      }
    },
    //文件上传
    handleUploadError() { },
    remove(file) {
      this.fileList.splice(this.fileList.indexOf(file), 1)
    },
    handleExceed() {
      this.$message.error(`上传文件数量不能超过 ${5} 个!`);
    },
    //文件上传成功回调
    uploadSccess(response, file, fileList) {
      //获取附件信息位置
      if (response.code == 200) {
        this.form.filename = file.raw.name;
        this.$modal.msgSuccess(response.msg);
        this.fileList.push({ name: response.fileName, url: response.fileName });
      } else {
        this.$modal.msgError(response.msg);
      }
    },
    // 下载文件
    downFile(item) {
      const url = process.env.VUE_APP_BASE_API + item.url
      var a = document.createElement('a');
      var event = new MouseEvent('click');
      a.download = item.name;
      a.href = url;
      a.dispatchEvent(event);
    },
  },
};
</script>