From 126d60e2b14c47d390ec05b584b3504465a293d3 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期六, 12 八月 2023 23:30:13 +0800 Subject: [PATCH] yxh --- src/views/project/fund/expertFeeApply/index.vue | 75 +++++++++++++++++++++++++++---------- 1 files changed, 55 insertions(+), 20 deletions(-) diff --git a/src/views/project/fund/expertFeeApply/index.vue b/src/views/project/fund/expertFeeApply/index.vue index a22f99a..8fd5b0e 100644 --- a/src/views/project/fund/expertFeeApply/index.vue +++ b/src/views/project/fund/expertFeeApply/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:expretfund:add']">涓撳璐圭敤鐢宠</el-button> - </el-col> <el-col :span="9"> <el-form-item label="鎹愮尞缂栧彿"> <el-input v-model="curCase.donorno" :disabled="true"></el-input> @@ -66,7 +62,12 @@ </el-form-item> </el-col> <el-col> - <!-- <el-button round @click='totaldayin'>涓嬭浇</el-button> --> + </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:expretfund:add']">鏂板鐢宠鍗�</el-button> </el-col> </el-row> <el-row> @@ -860,6 +861,24 @@ /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { if (this.curCase.id) { + this.$router.push({ + path: "/finance/applyDetail/", + query: { + id: 0, + businessType: "1", + operationType: "add", + curCase: this.curCase + } + }); + } else { + const h = this.$createElement; + this.$message({ + message: h("p", null, [h("span", null, "璇峰湪宸﹁竟鐨勬崘鐚渚嬭〃閫夋嫨闇�瑕佹搷浣滅殑妗堜緥锛�")]), + }); + } + return; + + if (this.curCase.id) { this.istrue += 2; this.reset(); this.queryParams.params = {}; @@ -892,6 +911,17 @@ /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { + this.$router.push({ + path: "/finance/applyDetail/", + query: { + id: row.id, + businessType: "1", + operationType: "update", + curCase: this.curCase + } + }); + return; + this.isopen = 0; this.reset(); this.queryParams.params = {}; @@ -943,6 +973,17 @@ /** 鏌ョ湅鎸夐挳鎿嶄綔 */ handleDetail(row) { + this.$router.push({ + path: "/finance/applyDetail/", + query: { + id: row.id, + businessType: "1", + operationType: "detail", + curCase: this.curCase + } + }); + return; + this.isopen = 0; this.reset(); this.queryParams.params = {}; @@ -1016,7 +1057,6 @@ //鏌ユ壘鏄惁瀛樺湪鐧昏瀹屾垚璁板綍 //鍒ゆ柇鏄惁瀛樺湪涓婃姤璁板綍 row.recordstatus = 0; - console.log("updateFund", row); updateFund(row).then((response) => { if (response.code == 200) { this.$message({ @@ -1145,7 +1185,6 @@ this.totalAfterTaxAmount += parseFloat(tempDetail.taxedamount); this.totalAmount += parseFloat(tempDetail.amount); - console.log("1", this.amount); } }); } @@ -1297,7 +1336,6 @@ //浠庝笓瀹跺垪琛ㄨ幏鍙栦俊鎭� this.personlist.map((res) => { if (tempName == res.username) { - console.log("閫夋嫨涓撳", res); singleDetail.beneficiaryno = res.userno; singleDetail.beneficiaryname = res.username; singleDetail.bankcardno = res.bankcardno; @@ -1351,11 +1389,9 @@ listExternalperson().then((res) => { this.personlist = res.rows; - console.log("new personlist", this.personlist); //浠庝笓瀹跺垪琛ㄨ幏鍙栦俊鎭� this.personlist.map((res) => { if (res.username == this.funddetailForm.expertname) { - console.log("鏂板涓撳", res); singleDetail.beneficiaryno = res.userno; singleDetail.beneficiaryname = res.username; singleDetail.bankcardno = res.bankcardno; @@ -1396,7 +1432,6 @@ //鑾峰彇褰撳墠鐢ㄦ埛淇℃伅 getUsermsg() { getUserProfile().then((response) => { - console.log("getUserProfile", response); this.defaultperson = response.data; this.standardlevel = response.data.standardlevel; if (this.defaultperson.createBy == "admin" || this.defaultperson.createBy == "001" || this.defaultperson.createBy == "002") { @@ -1438,14 +1473,16 @@ row.itemcode = res.itemCode; } }); - var repeatNum = 0; - this.fundDetails.map((res) => { - if (res.applytype === row.applytype && res.itemid == row.itemid) { - repeatNum++; + if (this.businessType == '1') { + var repeatNum = 0; + this.fundDetails.map((res) => { + if (res.applytype === row.applytype && res.itemid == row.itemid) { + repeatNum++; + } + }); + if (repeatNum > 1) { + this.$modal.msgWarning("鎮ㄥ凡缁忔彁浜よ繃璇ユ湇鍔¢」鐩簡"); } - }); - if (repeatNum > 1) { - this.$modal.msgWarning("鎮ㄥ凡缁忔彁浜よ繃璇ユ湇鍔¢」鐩簡"); } //鑾峰彇璐圭敤椤圭洰鐨勮缁嗕俊鎭� @@ -1488,7 +1525,6 @@ } // this.queryParams.residencetown = this.$refs.areaSelect.getQu(); - console.log("111", this.queryParams); listDonatebaseinfo(this.queryParams).then((response) => { this.donatebaseinfoList = response.rows; this.total = response.total; @@ -1744,7 +1780,6 @@ getUserList() { listUser().then((res) => { - console.log("listUser", res); this.userlist = res.data; }); }, -- Gitblit v1.9.3