From 4fc9abfa57e81e83b74bdbd2e2f6d71d3500ef66 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 19 九月 2023 11:26:07 +0800 Subject: [PATCH] 11 --- src/views/project/fund/applyDetail/index.vue | 5 +++++ src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue | 16 ++++++++++++---- src/views/project/travelexpenseapply/travelexpensedetail/index.vue | 36 ++++++++++++++++++------------------ 3 files changed, 35 insertions(+), 22 deletions(-) diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue index aa7619e..7f8e422 100644 --- a/src/views/project/fund/applyDetail/index.vue +++ b/src/views/project/fund/applyDetail/index.vue @@ -2562,8 +2562,12 @@ calculateTax(row, type) { let targetValue = 0; for (let i = 0; i < this.rbDetails.length; i++) { + if(!this.rbDetails[i].amount){ + this.rbDetails[i].amount=0; + } targetValue += parseFloat(this.rbDetails[i].amount); // 鍋囪姣忎釜瀵硅薄涓殑鐗瑰畾鍊煎瓨鍌ㄥ湪'specificValue'灞炴�т笅 } + console.log(targetValue,'鍚堣'); this.form.pretaxcost = targetValue; //if (isNaN(parseFloat(tempDetail.taxedamount))) @@ -2994,6 +2998,7 @@ for (let i = 0; i < this.checkedCities.length + 1; i++) { this.rbDetails[i].orderno = i + 1; } + this.calculateTax(); this.batchdialogVisible = false; }, //鏂板涓�琛� diff --git a/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue b/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue index e8309d7..8bb8424 100644 --- a/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue +++ b/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue @@ -63,10 +63,18 @@ </el-select> </el-form-item> </el-col> - <!-- <el-col :span="6"> - <el-button type="primary" icon="el-icon-search" size="mini" @click="flowconclusion">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-col> --> + <el-col :span="6"> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="flowconclusion" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-col> </el-row> </el-form> <el-form ref="infoform" label-width="100px"> diff --git a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue index f59155b..b2a3e5a 100644 --- a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue +++ b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue @@ -1090,7 +1090,8 @@ import { listReimbursementpayee, addReimbursementpayee, - updateReimbursementpayee + updateReimbursementpayee, + delReimbursementpayee } from "@/api/project/reimbursementpayee"; import { listReimbursement, @@ -1349,8 +1350,8 @@ }, methods: { - // 娴忚鍣ㄩ〉闈㈠叧闂垨鍒锋柊鎻愮ず - beforeunloadHandler(e) { + // 娴忚鍣ㄩ〉闈㈠叧闂垨鍒锋柊鎻愮ず + beforeunloadHandler(e) { if ( (JSON.stringify(this.form) == sessionStorage.getItem("apiform") && JSON.stringify(this.rbDetails) == @@ -2188,17 +2189,15 @@ */ //绁ㄦ嵁鏂囦欢澶勭悊 + const addnumber = this.rbPayees.reduce( + (amount, item) => amount + Number(item.amount), + 0 + ); let list = this.fileListto; console.log(list); //鏍¢獙璇锋閲戦鍚堣鏄惁绛変簬鎶ラ攢鍗曢噾棰� - if ( - this.form.amountrequested != - this.rbPayees.reduce( - (amount, item) => amount + Number(item.amount), - 0.0 - ) - ) { + if (this.form.amountrequested != addnumber) { this.$message({ message: "鎶ラ攢璇锋琛ㄤ腑鍚堣閲戦涓嶇瓑浜庢姤閿�鍗曠殑鎶ラ攢閲戦锛岃鏇存鍚庡啀淇濆瓨锛�", @@ -2327,6 +2326,11 @@ this.Savereminder = false; this.Reminderquantity = 0; this.totalquantity = 0; + const addnumber = this.rbPayees.reduce( + (amount, item) => amount + Number(item.amount), + 0 + ); + console.log(addnumber, "addnumber"); this.$refs["form"].validate(valid => { if (valid) { //绁ㄦ嵁鏂囦欢澶勭悊 @@ -2334,13 +2338,7 @@ console.log(list); //鏍¢獙璇锋閲戦鍚堣鏄惁绛変簬鎶ラ攢鍗曢噾棰� - if ( - this.form.amountrequested != - this.rbPayees.reduce( - (amount, item) => amount + Number(item.amount), - 0.0 - ) - ) { + if (this.form.amountrequested != addnumber) { this.$message({ message: "鎶ラ攢璇锋琛ㄤ腑鍚堣閲戦涓嶇瓑浜庢姤閿�鍗曠殑鎶ラ攢閲戦锛岃鏇存鍚庡啀淇濆瓨锛�", @@ -2543,8 +2541,10 @@ }) .then(() => { console.log(row); + let arrow=[]; + arrow.push(row.id); if (row.id !== null) { - delReimbursementdetail(row.id).then(res => { + delReimbursementpayee(arrow).then(res => { this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); rows.splice(index, 1); this.recountOrderNo2(); -- Gitblit v1.9.3