yxh
yxh
2023-08-12 126d60e2b14c47d390ec05b584b3504465a293d3
src/views/project/fund/ethicalExpertFeeApply/index.vue
@@ -51,10 +51,6 @@
        <el-card shadow="naver">
          <el-form ref="infoform" label-width="100px">
            <el-row :gutter="4" align="right" class="mb8">
              <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
                  v-hasPermi="['project:ethicalfund:add']">伦理审查专家费申请</el-button>
              </el-col>
              <el-col :span="9">
                <el-form-item label="捐献编号">
                  <el-input v-model="curCase.donorno" :disabled="true"></el-input>
@@ -65,7 +61,12 @@
                  <el-input v-model="curCase.name" :disabled="true"></el-input>
                </el-form-item>
              </el-col>
              <el-col> </el-col>
            </el-row>
            <el-row :gutter="10" class="mb8">
              <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
                  v-hasPermi="['project:ethicalfund:add']">新增申请单</el-button>
              </el-col>
            </el-row>
            <el-row>
              <el-table v-loading="loading" border :data="donateconsolationfundList">
@@ -373,8 +374,8 @@
        <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) =>
              <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">
@@ -612,62 +613,186 @@
      },
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    ShowDetailDialog(spoce, showType) {
      this.funddetailForm.index = spoce.$index;
      this.funddetailForm.beneficiaryno = spoce.row.beneficiaryno;
      this.funddetailForm.beneficiaryname = spoce.row.beneficiaryname;
      this.funddetailForm.unitno = spoce.row.unitno;
      this.funddetailForm.unitname = spoce.row.unitname;
      this.detailInfoDialogShow = true;
      this.detailInfoDialogShowType = showType;
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    ConfirmDetailDialog() {
      let tempIndex = this.funddetailForm.index;
      let tempName = this.funddetailForm.beneficiaryname;
      let tempUnitname = this.funddetailForm.unitname;
      let singleDetail = this.fundDetailArr[tempIndex];
      if (this.detailInfoDialogShowType == "name") {
        this.personlist.map((res) => {
          if (tempName == res.username) {
            singleDetail.beneficiaryno = res.userno;
            singleDetail.beneficiaryname = res.username;
            singleDetail.bankcardno = res.bankcardno;
            singleDetail.branchbankname = res.branchbankname;
            singleDetail.depositbank = res.depositbank;
            singleDetail.idcardno = res.idcardno;
            singleDetail.phone = res.telephone;
            singleDetail.title = res.title;
            singleDetail.unitname = res.unitname;
            singleDetail.unitno = parseInt(res.unitno);
          } else {
            singleDetail.beneficiaryname = tempName;
            singleDetail.beneficiaryno = tempName;
    /** 重置按钮操作 */
    resetQuery() {
      this.daterangeReporttime = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 新增按钮操作 */
    handleAdd() {
      if (this.curCase.id) {
        this.$router.push({
          path: "/finance/applyDetail/",
          query: {
            id: 0,
            businessType: "2",
            operationType: "add",
            curCase: this.curCase
          }
        });
      } else if (this.detailInfoDialogShowType == "unit") {
        singleDetail.unitno = this.funddetailForm.unitno;
        try {
          let unitIndex = this.unitList.findIndex(
            (item) => singleDetail.unitno == item.organizationid
          );
          if (unitIndex > -1) {
            singleDetail.unitname = this.unitList[unitIndex].organizationname;
          } else {
            singleDetail.unitname = singleDetail.unitno;
        const h = this.$createElement;
        this.$message({
          message: h("p", null, [h("span", null, "请在左边的捐献案例表选择需要操作的案例!")]),
        });
          }
        } catch {
          singleDetail.unitname = singleDetail.unitno;
      return;
      if (this.curCase.id) {
        this.istrue += 2;
        this.reset();
        this.dialogOpen = true;
        this.title = "添加费用申请";
        this.dialogType = "edit";
        this.queryParams.params = {};
        this.form.infoid = this.curCase.id;
        this.form.donorno = this.curCase.donorno;
        this.form.donorname = this.curCase.name;
        this.form.username = this.defaultperson.nickName;
        this.form.userno = this.defaultperson.userName;
        this.form.deptmentname = this.defaultperson.dept.deptName;
        this.form.deptmentno = this.defaultperson.dept.deptId;
        this.form.managername = this.defaultperson.dept.leader;
        // this.form.createTime = nowdate;
        //this.open = true;
        //this.initFundApplyForm();
        this.fundDetailArr = [];
        this.fundflowList = [];
        this.addRow();
      } else {
        const h = this.$createElement;
        this.$message({
          message: h("p", null, [h("span", null, "请先选择左方捐献案例 ")]),
        });
        }
      }
      this.fundDetailArr[tempIndex] = singleDetail;
      this.detailInfoDialogShow = false;
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.$router.push({
        path: "/finance/applyDetail/",
        query: {
          id: row.id,
          businessType: "2",
          operationType: "update",
          curCase: this.curCase
        }
      });
      return;
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
      this.dialogOpen = true;
      this.title = "修改费用申请";
      this.dialogType = "edit";
      const id = row.id || this.ids;
      getFund(id).then((response) => {
        this.form = response.data;
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        getownFundDetail(id).then(async (res) => {
          this.fundDetailArr = res.data;
          for (let m = 0; m < this.fundDetailArr.length; m++) {
            this.fundDetailArr[m].itemArr = [];
            this.getItemArr(m, this.fundDetailArr[m]);
          }
        });
      });
    },
    /** 查看按钮操作 */
    handleDetail(row) {
      this.$router.push({
        path: "/finance/applyDetail/",
        query: {
          id: row.id,
          businessType: "2",
          operationType: "detail",
          curCase: this.curCase
        }
      });
      return;
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
      this.dialogOpen = true;
      this.title = "查看费用申请";
      this.dialogType = "detail";
      const id = row.id || this.ids;
      getFund(id).then((response) => {
        this.form = response.data;
        let listFundflowparams = {
          fundid: row.id,
          fundtype: 2,
        };
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        listFundflow(listFundflowparams).then((res) => {
          this.fundflowList = res.rows;
        });
        getownFundDetail(id).then((res) => {
          this.fundDetailArr = res.data;
          for (let m = 0; m < this.fundDetailArr.length; m++) {
            this.fundDetailArr[m].itemArr = [];
            this.getItemArr(m, this.fundDetailArr[m]);
            this.fundDetailArr[m].fundblock = [];
            this.fundDetailArr[m].fundblock.push({
              expense: this.fundDetailArr[m].expense,
              expensedescribe: this.fundDetailArr[m].servicesscopename,
              remark: this.fundDetailArr[m].servicesscope,
              servicesscope: this.fundDetailArr[m].servicesscope,
            });
          }
        });
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm("是否确认删除该记录?")
        .then(function () {
          return delFund(ids);
        })
        .then(() => {
          getownFundDetail(ids).then((res) => {
            let listdetails = res.data;
            for (let i = 0; i < listdetails.length; i++) {
              delFunddetail(listdetails[i].id);
            }
          });
          // this.getList();
          this.getfundList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => { });
    },
    /** 上报按钮操作 */
    handleup(row) {
      this.$confirm("是否确认将登记记录上报?", "提示", {
        confirmButtonText: "确定",
@@ -701,250 +826,21 @@
          });
        });
    },
    getUsermsg() {
      getUserProfile().then((response) => {
        this.defaultperson = response.data;
        this.standardlevel = response.data.standardlevel;
      });
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.daterangeReporttime = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 查询捐献人道慰问金列表 */
    getList() {
      this.loading = true;
      this.queryParams.params = {};
      if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
        this.queryParams.params["beginReporttime"] =
          this.daterangeReporttime[0];
        this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
      }
      // this.queryParams.residencetown = this.$refs.areaSelect.getQu();
      listDonatebaseinfo(this.queryParams).then((response) => {
        this.donatebaseinfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    getBaseInfoList() {
      this.loading = true;
      listDonatebaseinfo(this.queryParams).then((response) => {
        this.donatebaseinfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    /** 新增按钮操作 */
    handleAdd() {
      if (this.curCase.id) {
        this.istrue += 2;
        this.reset();
        this.dialogOpen = true;
        this.title = "添加费用申请";
        this.dialogType = "edit";
        this.queryParams.params = {};
        this.form.infoid = this.curCase.id;
        this.form.donorno = this.curCase.donorno;
        this.form.donorname = this.curCase.name;
        this.form.username = this.defaultperson.nickName;
        this.form.userno = this.defaultperson.userName;
        this.form.deptmentname = this.defaultperson.dept.deptName;
        this.form.deptmentno = this.defaultperson.dept.deptId;
        this.form.managername = this.defaultperson.dept.leader;
        // this.form.createTime = nowdate;
        //this.open = true;
        //this.initFundApplyForm();
        this.fundDetailArr = [];
        this.fundflowList = [];
        this.addRow();
      } else {
        const h = this.$createElement;
        this.$message({
          message: h("p", null, [h("span", null, "请先选择左方捐献案例 ")]),
        });
      }
    },
    //点击捐献案例列表触发方法
    selectDonotor(row, column, event) {
      this.curCase = row;
      this.getfundList();
    },
    getfundList() {
      this.loading = true;
      this.reset();
      this.fundQueryParam.infoid = this.curCase.id;
      listFund(this.fundQueryParam).then((response) => {
        this.loading = false;
        this.donateconsolationfundList = response.rows;
      });
    },
    select(row) {
      row.itemArr.map((res) => {
        if (row.itemid === res.id) {
          row.remark = res.itemDescribe;
          row.itemcode = res.itemCode;
        }
      });
      var repeatNum = 0;
      this.fundDetailArr.map((res) => {
        if (res.applytype === row.applytype && res.itemid == row.itemid) {
          repeatNum++;
        }
      });
      if (repeatNum > 1) {
        this.$modal.msgWarning("您已经提交过服务项目");
      }
      getdetailsByItemId(row.itemid).then((res) => {
        let fundmsg = res.data;
        let fundblock = [];
        fundmsg.forEach((item) => {
          fundblock.push({
            expense: item.expense,
            expensedescribe: item.expensedescribe,
            remark: item.expensedescribe,
            servicesscope: item.id,
          });
        });
        row.fundblock = fundblock;
        row.servicesscope = null;
        row.servicesscopename = "";
      });
    },
    // 取消按钮
    cancel() {
      this.dialogOpen = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        recordstatus: "-1",
        username: null,
        userno: null,
        infoid: null,
        donorno: null,
        delFlag: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        familyrelations: null,
        name: null,
        doname: null,
        unitname: null,
        unitno: null,
        sex: null,
        idcardtype: null,
        idcardno: null,
        phone: null,
        donorname: null,
        depositbank: null,
        bankprovince: null,
        bankprovincename: null,
        bankcity: null,
        bankcityname: null,
        banktown: null,
        banktownname: null,
        branchbankname: null,
        bankcardno: null,
        annexbankcard: null,
        annexregistform: null,
        consolationmoney: null,
        applytype: "2",
        servicetypename: null,
        servicesscopename: null,
        pretaxcost: null,
        taxedcost: null,
      };
      this.resetForm("form");
      //清空附件
      this.fileList = []
    },
    //新增一行
    addRow(rowIndex) {
      let rowData = {
        orderno: null,
        id: null,
        fundid: null,
        beneficiaryname: "点击选择",
        beneficiaryno: null,
        unitname: "点击选择",
        unitno: null,
        uintuserno: null,
        title: null,
        idcardtype: null,
        idcardno: null,
        sex: null,
        familyrelations: null,
        phone: null,
        depositbank: null,
        bankcardno: null,
        branchbankname: null,
        annexbankcard: null,
        annexregistform: null,
        applytype: null,
        itemid: null,
        itemname: null,
        itemtype: null,
        amount: null,
        prepaidamount: null,
        taxamount: null,
        invoicecount: null,
        taxedamount: null,
        attachcount: null,
        remark: null,
        recordstatus: "-1",
        delFlag: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        uploadflag: null,
        uploadtime: null,
        itemArr: [],
      };
      if (rowIndex == undefined || rowIndex == null || rowIndex < 0) {
        this.fundDetailArr.push(rowData);
      } else {
        this.fundDetailArr.splice(rowIndex + 1, 0, rowData);
      }
      for (let i = 0; i < this.fundDetailArr.length; i++) {
        this.fundDetailArr[i].orderno = i + 1;
      }
    },
    //加载服务项目
    LoadItemTypeArr(row) {
      let list = this.fundtypeArrAll.filter((r) => r.itemType == row.applytype);
      row.itemArr = list[0].itemDetails;
      row.itemid = null;
      this.$forceUpdate();
      //this.loading = true;
      // getItemNames(row.applytype).then((res) => {
      //   this.loading = false;
      //   row.itemid = null;
      //   row.itemArr = res.data;
      //   this.$forceUpdate();
      // });
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$modal
        .confirm("是否确认导出所有报销申请数据项?")
        .then(() => {
          this.exportLoading = true;
          return exportReimbursement(queryParams);
        })
        .then(response => {
          this.$download.name(response.msg);
          this.exportLoading = false;
        })
        .catch(() => { });
    },
    /** 提交按钮 */
@@ -1069,6 +965,216 @@
        }
      });
    },
    /** 取消按钮 */
    cancel() {
      this.dialogOpen = false;
      this.reset();
    },
    //获取所有用户列表
    getUsermsg() {
      getUserProfile().then((response) => {
        this.defaultperson = response.data;
        this.standardlevel = response.data.standardlevel;
      });
    },
    /** 查询捐献人道慰问金列表 */
    getList() {
      this.loading = true;
      this.queryParams.params = {};
      if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
        this.queryParams.params["beginReporttime"] =
          this.daterangeReporttime[0];
        this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
      }
      // this.queryParams.residencetown = this.$refs.areaSelect.getQu();
      listDonatebaseinfo(this.queryParams).then((response) => {
        this.donatebaseinfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    //获取捐献案例列表
    getBaseInfoList() {
      this.loading = true;
      listDonatebaseinfo(this.queryParams).then((response) => {
        this.donatebaseinfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    //点击捐献案例列表触发方法
    selectDonotor(row, column, event) {
      this.curCase = row;
      this.getfundList();
    },
    //获取案例专家费用申请单
    getfundList() {
      this.loading = true;
      this.reset();
      this.fundQueryParam.infoid = this.curCase.id;
      listFund(this.fundQueryParam).then((response) => {
        this.loading = false;
        this.donateconsolationfundList = response.rows;
      });
    },
    select(row) {
      row.itemArr.map((res) => {
        if (row.itemid === res.id) {
          row.remark = res.itemDescribe;
          row.itemcode = res.itemCode;
        }
      });
      var repeatNum = 0;
      this.fundDetailArr.map((res) => {
        if (res.applytype === row.applytype && res.itemid == row.itemid) {
          repeatNum++;
        }
      });
      if (repeatNum > 1) {
        this.$modal.msgWarning("您已经提交过服务项目");
      }
      getdetailsByItemId(row.itemid).then((res) => {
        let fundmsg = res.data;
        let fundblock = [];
        fundmsg.forEach((item) => {
          fundblock.push({
            expense: item.expense,
            expensedescribe: item.expensedescribe,
            remark: item.expensedescribe,
            servicesscope: item.id,
          });
        });
        row.fundblock = fundblock;
        row.servicesscope = null;
        row.servicesscopename = "";
      });
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        recordstatus: "-1",
        username: null,
        userno: null,
        infoid: null,
        donorno: null,
        delFlag: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        familyrelations: null,
        name: null,
        doname: null,
        unitname: null,
        unitno: null,
        sex: null,
        idcardtype: null,
        idcardno: null,
        phone: null,
        donorname: null,
        depositbank: null,
        bankprovince: null,
        bankprovincename: null,
        bankcity: null,
        bankcityname: null,
        banktown: null,
        banktownname: null,
        branchbankname: null,
        bankcardno: null,
        annexbankcard: null,
        annexregistform: null,
        consolationmoney: null,
        applytype: "2",
        servicetypename: null,
        servicesscopename: null,
        pretaxcost: null,
        taxedcost: null,
      };
      this.resetForm("form");
      //清空附件
      this.fileList = []
    },
    //新增一行
    addRow(rowIndex) {
      let rowData = {
        orderno: null,
        id: null,
        fundid: null,
        beneficiaryname: "点击选择",
        beneficiaryno: null,
        unitname: "点击选择",
        unitno: null,
        uintuserno: null,
        title: null,
        idcardtype: null,
        idcardno: null,
        sex: null,
        familyrelations: null,
        phone: null,
        depositbank: null,
        bankcardno: null,
        branchbankname: null,
        annexbankcard: null,
        annexregistform: null,
        applytype: null,
        itemid: null,
        itemname: null,
        itemtype: null,
        amount: null,
        prepaidamount: null,
        taxamount: null,
        invoicecount: null,
        taxedamount: null,
        attachcount: null,
        remark: null,
        recordstatus: "-1",
        delFlag: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        uploadflag: null,
        uploadtime: null,
        itemArr: [],
      };
      if (rowIndex == undefined || rowIndex == null || rowIndex < 0) {
        this.fundDetailArr.push(rowData);
      } else {
        this.fundDetailArr.splice(rowIndex + 1, 0, rowData);
      }
      for (let i = 0; i < this.fundDetailArr.length; i++) {
        this.fundDetailArr[i].orderno = i + 1;
      }
    },
    //加载服务项目
    LoadItemTypeArr(row) {
      let list = this.fundtypeArrAll.filter((r) => r.itemType == row.applytype);
      row.itemArr = list[0].itemDetails;
      row.itemid = null;
      this.$forceUpdate();
      //this.loading = true;
      // getItemNames(row.applytype).then((res) => {
      //   this.loading = false;
      //   row.itemid = null;
      //   row.itemArr = res.data;
      //   this.$forceUpdate();
      // });
    },
    selectremark(row) {
      this.fundblock.forEach((item, i) => {
        if (item.expensedescribe === row.servicesscopename) {
@@ -1105,90 +1211,7 @@
      });
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
      this.dialogOpen = true;
      this.title = "修改费用申请";
      this.dialogType = "edit";
      const id = row.id || this.ids;
      getFund(id).then((response) => {
        this.form = response.data;
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        getownFundDetail(id).then(async (res) => {
          this.fundDetailArr = res.data;
          for (let m = 0; m < this.fundDetailArr.length; m++) {
            this.fundDetailArr[m].itemArr = [];
            this.getItemArr(m, this.fundDetailArr[m]);
          }
        });
      });
    },
    /** 查看按钮操作 */
    handleDetail(row) {
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
      this.dialogOpen = true;
      this.title = "查看费用申请";
      this.dialogType = "detail";
      const id = row.id || this.ids;
      getFund(id).then((response) => {
        this.form = response.data;
        let listFundflowparams = {
          fundid: row.id,
          fundtype: 2,
        };
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        listFundflow(listFundflowparams).then((res) => {
          this.fundflowList = res.rows;
        });
        getownFundDetail(id).then((res) => {
          this.fundDetailArr = res.data;
          for (let m = 0; m < this.fundDetailArr.length; m++) {
            this.fundDetailArr[m].itemArr = [];
            this.getItemArr(m, this.fundDetailArr[m]);
            this.fundDetailArr[m].fundblock = [];
            this.fundDetailArr[m].fundblock.push({
              expense: this.fundDetailArr[m].expense,
              expensedescribe: this.fundDetailArr[m].servicesscopename,
              remark: this.fundDetailArr[m].servicesscope,
              servicesscope: this.fundDetailArr[m].servicesscope,
            });
          }
        });
      });
    },
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm("是否确认删除该记录?")
        .then(function () {
          return delFund(ids);
        })
        .then(() => {
          getownFundDetail(ids).then((res) => {
            let listdetails = res.data;
            for (let i = 0; i < listdetails.length; i++) {
              delFunddetail(listdetails[i].id);
            }
          });
          // this.getList();
          this.getfundList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => { });
    },
    deleteRows(row, index, rows) {
      this.$confirm("是否确认删除?", "提示", {
@@ -1327,7 +1350,7 @@
      });
    },
    //汇总打印
    //下载打印
    totaldayin(e) {
      // const id =this.row.id
      getdownloadBX(e).then((res) => {
@@ -1349,6 +1372,7 @@
        }
      });
    },
    selectReporters() {
      //专家人员列表
      let arr = ["zzry"];
@@ -1361,6 +1385,7 @@
        });
      }
    },
    getlistExternalperson() {
      listExternalperson().then((res) => {
        this.personlist = res.rows;
@@ -1383,6 +1408,18 @@
        }
      });
    },
    getUnitList() {
      listOrganization(3).then((response) => {
        for (let i = 0; i < response.rows.length; i++) {
          this.unitList.push({
            organizationid: response.rows[i].organizationid,
            organizationname: response.rows[i].organizationname,
          });
        }
      });
    },
    SearchItem(val, scope) {
      let result = [];
      if (val != "") {
@@ -1402,17 +1439,6 @@
          //this.$set(this.fundDetailArr, rowindex, row);
        });
      }
    },
    getUnitList() {
      listOrganization(3).then((response) => {
        for (let i = 0; i < response.rows.length; i++) {
          this.unitList.push({
            organizationid: response.rows[i].organizationid,
            organizationname: response.rows[i].organizationname,
          });
        }
      });
    },
    addAlls() {
@@ -1478,7 +1504,59 @@
      a.href = url;
      a.dispatchEvent(event);
    },
    ShowDetailDialog(spoce, showType) {
      this.funddetailForm.index = spoce.$index;
      this.funddetailForm.beneficiaryno = spoce.row.beneficiaryno;
      this.funddetailForm.beneficiaryname = spoce.row.beneficiaryname;
      this.funddetailForm.unitno = spoce.row.unitno;
      this.funddetailForm.unitname = spoce.row.unitname;
      this.detailInfoDialogShow = true;
      this.detailInfoDialogShowType = showType;
  },
    ConfirmDetailDialog() {
      let tempIndex = this.funddetailForm.index;
      let tempName = this.funddetailForm.beneficiaryname;
      let tempUnitname = this.funddetailForm.unitname;
      let singleDetail = this.fundDetailArr[tempIndex];
      if (this.detailInfoDialogShowType == "name") {
        this.personlist.map((res) => {
          if (tempName == res.username) {
            singleDetail.beneficiaryno = res.userno;
            singleDetail.beneficiaryname = res.username;
            singleDetail.bankcardno = res.bankcardno;
            singleDetail.branchbankname = res.branchbankname;
            singleDetail.depositbank = res.depositbank;
            singleDetail.idcardno = res.idcardno;
            singleDetail.phone = res.telephone;
            singleDetail.title = res.title;
            singleDetail.unitname = res.unitname;
            singleDetail.unitno = parseInt(res.unitno);
          } else {
            singleDetail.beneficiaryname = tempName;
            singleDetail.beneficiaryno = tempName;
          }
        });
      } else if (this.detailInfoDialogShowType == "unit") {
        singleDetail.unitno = this.funddetailForm.unitno;
        try {
          let unitIndex = this.unitList.findIndex(
            (item) => singleDetail.unitno == item.organizationid
          );
          if (unitIndex > -1) {
            singleDetail.unitname = this.unitList[unitIndex].organizationname;
          } else {
            singleDetail.unitname = singleDetail.unitno;
          }
        } catch {
          singleDetail.unitname = singleDetail.unitno;
        }
      }
      this.fundDetailArr[tempIndex] = singleDetail;
      this.detailInfoDialogShow = false;
    },
  },
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
    this.getUnitList();
@@ -1500,6 +1578,7 @@
  beforeDestroy() { }, //生命周期 - 销毁之前
  destroyed() { }, //生命周期 - 销毁完成
  activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发
};
</script>
<style scoped>