From 151122a373835c93ef1418c7db0985c0660acf7e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 28 八月 2023 18:08:58 +0800 Subject: [PATCH] 11 --- src/views/project/fund/applyDetail/index.vue | 101 +++++++++++++++++++++++++++++++++++--------------- 1 files changed, 71 insertions(+), 30 deletions(-) diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue index 995450c..0f760c4 100644 --- a/src/views/project/fund/applyDetail/index.vue +++ b/src/views/project/fund/applyDetail/index.vue @@ -232,7 +232,6 @@ placeholder="鏈嶅姟璇存槑" clearable allow-create - filterable @change="verifyFeeRemark(scope.row)" > <el-option @@ -450,7 +449,11 @@ type="text" size="mini" @click="addRow(scope.$index)" - v-if="operationType == 'add' || operationType == 'update'" + v-if=" + operationType == 'add' || + operationType == 'update' || + operationType == 'check' + " >鏂板</el-button > <el-button @@ -459,7 +462,11 @@ " type="text" size="small" - v-if="operationType == 'add' || operationType == 'update'" + v-if=" + operationType == 'add' || + operationType == 'update' || + operationType == 'check' + " > 鍒犻櫎 </el-button> @@ -611,7 +618,11 @@ <el-button type="primary" @click="submitForm" - v-if="operationType == 'add' || operationType == 'update'" + v-if=" + operationType == 'add' || + operationType == 'update' || + operationType == 'check' + " >鎻愪氦淇濆瓨</el-button > <el-button @@ -874,7 +885,7 @@ <div v-if="this.previewpdf" class="pdfimgmin"> <!-- <img :src="pdfimg" /> --> <el-image - style="width: 100px; height: 100px" + style="width: 95%; height: 90%" :src="pdfimg" :preview-src-list="pdfimgsrcList" > @@ -1562,7 +1573,7 @@ // this.form.annexfiles = list.map(item => item.url).join(","); // } - //澶勭悊鏄庣粏 + //澶勭悊鏄庣粏 for (let i = 0; i < this.rbDetails.length; i++) { let tempDetail = this.rbDetails[i]; //鑾峰彇鏈嶅姟椤圭洰鏄庣粏 @@ -1580,9 +1591,15 @@ item => tempDetail.applytype == item.value ); if (applytypeIndex > -1) { - tempDetail.applytypename = this.rowfeeItemTypes[applytypeIndex].label; - tempDetail.subjecttype = this.rowfeeItemTypes[applytypeIndex].subjecttype; - tempDetail.subjecttypename = this.rowfeeItemTypes[applytypeIndex].subjecttypename; + tempDetail.applytypename = this.rowfeeItemTypes[ + applytypeIndex + ].label; + tempDetail.subjecttype = this.rowfeeItemTypes[ + applytypeIndex + ].subjecttype; + tempDetail.subjecttypename = this.rowfeeItemTypes[ + applytypeIndex + ].subjecttypename; } this.rbDetails[i] = tempDetail; /* @@ -1623,28 +1640,45 @@ }); } */ - } - //璁$畻褰撳墠琛屾姤閿�鍐呭璐圭敤鍚堣锛岀◣鍓嶉噾棰濓紙amount锛夈�佹墸绋庨噾棰濓紙taxamount锛夈�佺◣鍚庨噾棰濓紙taxedamount锛� - if (this.businessType == '2') { + //璁$畻褰撳墠琛屾姤閿�鍐呭璐圭敤鍚堣锛岀◣鍓嶉噾棰濓紙amount锛夈�佹墸绋庨噾棰濓紙taxamount锛夈�佺◣鍚庨噾棰濓紙taxedamount锛� + if (this.businessType == "2") { for (let j = 0; j < this.rbDetails.length; j++) { let tempDetail = this.rbDetails[j]; - if (isNaN(parseFloat(tempDetail.amount)) || parseFloat(tempDetail.amount) == 0) { - this.$modal.msgWarning("鏈嶅姟椤圭洰琛ㄤ腑锛岀" + (j + 1).toString() + "琛岀殑閲戦涓鸿緭鍏ワ紝璇峰厛杈撳叆閲戦鍚庡啀鎻愪氦淇濆瓨锛�"); + if ( + isNaN(parseFloat(tempDetail.amount)) || + parseFloat(tempDetail.amount) == 0 + ) { + this.$modal.msgWarning( + "鏈嶅姟椤圭洰琛ㄤ腑锛岀" + + (j + 1).toString() + + "琛岀殑閲戦鏈緭鍏ワ紝璇峰厛杈撳叆閲戦鍚庡啀鎻愪氦淇濆瓨锛�" + ); return; } } - } else if (this.businessType == '3' || this.businessType == '4') { + } else if (this.businessType == "3" || this.businessType == "4") { for (let j = 0; j < this.rbDetails.length; j++) { let tempDetail = this.rbDetails[j]; - if (isNaN(parseFloat(tempDetail.amount)) || parseFloat(tempDetail.amount) == 0) { - this.$modal.msgWarning("鏈嶅姟椤圭洰琛ㄤ腑锛岀" + (j + 1).toString() + "琛岀殑閲戦涓鸿緭鍏ワ紝璇峰厛杈撳叆閲戦鍚庡啀鎻愪氦淇濆瓨锛�"); + if ( + isNaN(parseFloat(tempDetail.amount)) || + parseFloat(tempDetail.amount) == 0 + ) { + this.$modal.msgWarning( + "鏈嶅姟椤圭洰琛ㄤ腑锛岀" + + (j + 1).toString() + + "琛岀殑閲戦鏈緭鍏ワ紝璇峰厛杈撳叆閲戦鍚庡啀鎻愪氦淇濆瓨锛�" + ); return; } - if (isNaN(parseFloat(tempDetail.amount)) || parseFloat(tempDetail.amount) == 0) { - tempDetail.taxedamount = tempDetail.amount + if ( + isNaN(parseFloat(tempDetail.taxamount)) || + parseFloat(tempDetail.taxamount) == 0 + ) { + tempDetail.taxedamount = tempDetail.amount; } else { - tempDetail.taxedamount = tempDetail.amount + tempDetail.taxamount + tempDetail.taxedamount = + tempDetail.amount + tempDetail.taxamount; } } } @@ -1701,8 +1735,8 @@ //鍏抽棴绐楀彛 this.loading = false; - // this.getfundList(); - this.$store.dispatch('tagsView/delView', this.$route) + // this.getfundList(); + this.$store.dispatch("tagsView/delView", this.$route); this.$router.go(-1); } }); @@ -1924,7 +1958,7 @@ }); }, - //鏍¢獙鏀惰垂椤圭洰鏄惁閲嶅 + //鏍¢獙鏀惰垂椤圭洰 verifyFeeItem(row) { row.itemlist.map(res => { if (row.itemid === res.id) { @@ -1932,14 +1966,18 @@ row.itemcode = res.itemCode; } }); - var repeatNum = 0; - this.rbDetails.map(res => { - if (res.applytype === row.applytype && res.itemid == row.itemid) { - repeatNum++; + + //鍒ゆ柇鏀惰垂椤圭洰鏄惁閲嶅 + if (this.businessType == "1") { + var repeatNum = 0; + this.rbDetails.map(res => { + if (res.applytype === row.applytype && res.itemid == row.itemid) { + repeatNum++; + } + }); + if (repeatNum > 1) { + this.$modal.msgWarning("鎮ㄥ凡缁忔彁浜よ繃璇ユ湇鍔¢」鐩簡"); } - }); - if (repeatNum > 1) { - this.$modal.msgWarning("鎮ㄥ凡缁忔彁浜よ繃璇ユ湇鍔¢」鐩簡"); } //鑾峰彇璐圭敤椤圭洰鐨勮缁嗕俊鎭� @@ -2333,6 +2371,9 @@ this.pdfVisible = true; if (this.rbDetails[index].annexfilesList) { this.fileListto = this.rbDetails[index].annexfilesList; + this.pdfimg = this.fileListto[0].url; + this.pdfimgsrcList = []; + this.pdfimgsrcList.push(this.pdfimg); } else { this.fileListto = []; this.pdfimg = ""; -- Gitblit v1.9.3