From cde7199a991fa91efeafdde898f64d8353b9c3d7 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 11 十月 2023 16:50:24 +0800 Subject: [PATCH] 11 --- src/views/project/fund/performancedetails/index.vue | 67 +++++++++++++++++++++------------ 1 files changed, 43 insertions(+), 24 deletions(-) diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue index a1c7577..dc0918b 100644 --- a/src/views/project/fund/performancedetails/index.vue +++ b/src/views/project/fund/performancedetails/index.vue @@ -58,23 +58,7 @@ </el-col> </el-row> <el-row> - <el-col :span="5"> - <el-form-item label="鐢宠鍗曠被鍨�"> - <el-select - v-model="form.performancetype" - filterable - placeholder="璇烽�夋嫨鐢宠鍗曠姸鎬�" - > - <el-option - v-for="item in PerformanceType" - :key="item.id" - :label="item.name" - :value="item.id" - > - </el-option> - </el-select> - </el-form-item> - </el-col> + <el-col :span="5"> <el-form-item label="鑱旂郴鐢佃瘽" prop="phone"> <el-input v-model="form.phone" placeholder="璇疯緭鍏ヨ仈绯荤數璇�" /> @@ -89,8 +73,6 @@ /> </el-form-item> </el-col> - </el-row> - <el-row style="text-align: left"> <el-col :span="5"> <el-form-item label="棰勫鐘舵��" prop="infoid"> <el-select @@ -108,6 +90,9 @@ </el-select> </el-form-item> </el-col> + </el-row> + <el-row style="text-align: left"> + <el-col :span="8"> <el-form-item label="鐢宠璇存槑" prop="remark"> <el-input v-model="form.remark" placeholder="鐢宠璇存槑" /> @@ -445,6 +430,8 @@ filterable remote reserve-keyword + allow-create + default-first-option placeholder="璇疯緭鍏ュ叧閿瘝" :remote-method="remoteMethod" :loading="loadingperformance" @@ -488,6 +475,13 @@ :visible.sync="batchdialogVisible" width="40%" > + <div style="margin-bottom: 15px; margin-left: 10px;"> + <el-radio-group v-model="Performanceclass"> + <el-radio-button :label="68">鏈堝害缁╂晥</el-radio-button> + <el-radio-button :label="69">瀛e害缁╂晥</el-radio-button> + <el-radio-button :label="70">骞村害缁╂晥</el-radio-button> + </el-radio-group> + </div> <div style="max-height: 330px; overflow-y: auto"> <el-checkbox :indeterminate="isIndeterminate" @@ -593,6 +587,7 @@ spocewl: "", //璐圭敤鐢宠琛ㄥ崟title title: "", + Copy: "", //鐢宠鍗曠被鍨� businessType: "0", businessName: "", @@ -623,6 +618,7 @@ Personnelforname: null, unitforname: null, isIndeterminate: true, + Performanceclass: 68, //鏄惁鏄笓瀹惰垂鐨凮PO瀹℃壒浜哄憳 ismanager: false, @@ -898,6 +894,7 @@ console.log(11); //閫夋嫨涓氬姟绫诲瀷:1銆佹柊澧烇紱2銆佷慨鏀癸紱3銆佹煡鐪� this.curId = this.$route.query.id; + this.Copy = this.$route.query.Copy; this.businessType = this.$route.query.businessType; this.operationType = this.$route.query.operationType; this.beforehandType = this.$route.query.beforehandType; @@ -913,6 +910,9 @@ this.handleAdd(); } else if (this.operationType == "update") { this.title = this.businessName + "淇敼"; + if (this.Copy) { + this.title = this.businessName + "澶嶅埗"; + } console.log(this.title); this.handleUpdate(); } else if (this.operationType == "detail") { @@ -945,6 +945,7 @@ getFund(this.curId).then(response => { this.form = response.data; + sessionStorage.removeItem("apiform"); sessionStorage.setItem("apiform", JSON.stringify(this.form)); @@ -952,6 +953,14 @@ //鏄庣粏澶勭悊 getownFundDetail(this.curId).then(res => { this.rbDetails = res.data; + if (this.Copy) { + this.form.createTime = null; + this.rbDetails.map(item => { + item.amount = 0; + item.taxedamount = 0; + }); + console.log(this.rbDetails); + } if (this.rbDetails.length > 0) { for (let m = 0; m < this.rbDetails.length; m++) { @@ -1267,6 +1276,12 @@ if (this.form.id != null) { } else { this.form.recordstatus = -1; + } + if (this.Copy) { + this.form.id = null; + this.rbDetails.map(item => { + return (item.id = null); + }); } sessionStorage.setItem( @@ -1761,7 +1776,6 @@ this.listperformancea = this.cityOptions.map(item => { return { value: item.userName, label: item.userName }; }); - console.log(this.cityOptions, "缁╂晥鎵归噺"); }); }, // 纭褰曞叆 @@ -1788,7 +1802,7 @@ annexregistform: null, applytype: "9", applytypename: "绠$悊鎴愭湰", - itemid: 68, + itemid: this.Performanceclass, itemcode: "68", itemname: "缁╂晥宸ヨ祫", itemtype: null, @@ -1807,7 +1821,11 @@ updateTime: null, uploadflag: null, uploadtime: null, - itemlist: [{ id: 68, itemName: "缁╂晥宸ヨ祫" }], + itemlist: [ + { id: 68, itemName: "鏈堝害缁╂晥" }, + { id: 69, itemName: "瀛e害缁╂晥" }, + { id: 70, itemName: "骞村害缁╂晥" } + ], servicesscope: null, rowfeeblocks: [], annexfiles: null @@ -1815,11 +1833,12 @@ this.rbDetails.push(rowData); }); - for (let i = 0; i < this.checkedCities.length + 1; i++) { + for (let i = 0; i < this.rbDetails.length; i++) { this.rbDetails[i].orderno = i + 1; } this.calculateTax(); this.batchdialogVisible = false; + this.checkedCities = []; console.log(this.rowfeeItemTypes); }, //鏂板涓�琛� @@ -1961,7 +1980,6 @@ this.cityOptions.map(res => { if (tempExpertName == res.userName) { singleDetail.beneficiaryno = res.userno; - singleDetail.beneficiaryname = res.userName; singleDetail.bankcardno = res.bankCardNo; singleDetail.branchbankname = res.branchbankname; singleDetail.depositbank = res.depositBank; @@ -1972,6 +1990,7 @@ singleDetail.unitno = parseInt(res.unitno); } }); + singleDetail.beneficiaryname = tempExpertName; this.rbDetails[tempIndex] = singleDetail; this.showSelectionDialog = false; }, -- Gitblit v1.9.3