From dfe9df350655b09b344f38e099cec95d46a2b48a Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期一, 14 八月 2023 19:32:16 +0800 Subject: [PATCH] yxh --- src/views/project/travelexpenseapply/travelexpensedetail/index.vue | 50 +++++++++++++++++++++++++++++++++++--------------- 1 files changed, 35 insertions(+), 15 deletions(-) diff --git a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue index 15cffd2..1c5b412 100644 --- a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue +++ b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue @@ -443,7 +443,7 @@ <el-row style="margin-top: 25px; margin-bottom: 5px" v-if="operationType != 'edit'"> <el-col :span="20">瀹℃牳璁板綍</el-col> </el-row> - <el-row v-if="operationType != 'edit'"> + <el-row v-if="operationType != 'add'"> <el-table :data="fundflowList" border> <el-table-column label="瀹℃牳浜�" align="center" width="150" prop="checkusername" /> <el-table-column label="瀹℃牳鏃ユ湡" align="center" width="200" prop="createTime" /> @@ -608,6 +608,9 @@ loading: true, // 瀵煎嚭閬僵灞� exportLoading: false, + + // 褰撳墠鍗曟嵁ID + curId:0, // 閫変腑鏁扮粍 ids: [], // 闈炲崟涓鐢� @@ -735,17 +738,17 @@ mounted() { //閫夋嫨涓氬姟绫诲瀷:1銆佹柊澧烇紱2銆佷慨鏀癸紱3銆佹煡鐪� - let ids = this.$route.query.id; + let curId = this.$route.query.id; let pos = this.$route.query.pos; this.defaultperson = this.$route.query.routerparam; if (pos == 1) { - this.handleAdd(ids); + this.handleAdd(curId); } else if (pos == 2) { - this.handleUpdate(ids); + this.handleUpdate(curId); } else if (pos == 3) { - this.handleDetail(ids); + this.handleDetail(curId); } else if (pos == 4) { - this.handleCheck(ids); + this.handleCheck(curId); } }, @@ -947,7 +950,16 @@ } //浼欓璐硅ˉ鍔╋細鍩庡競锛堣タ钘忥紝鏂扮枂锛岄潚娴�.120锛夛紙鍏朵粬100锛� - row.foodallowance = (parseInt(row.days) * 100).toString(); + if (tempStr == "鏉窞") { + row.foodallowance = ""; + } + else if (tempStr == "瑗胯棌" || tempStr == "鏂扮枂" || tempStr == "闈掓捣") { + row.foodallowance = (parseInt(row.days) * 120).toString(); + } + else { + row.foodallowance = (parseInt(row.days) * 100).toString(); + } + //璁$畻鍚堣 this.sumRowFee(row); @@ -1207,7 +1219,7 @@ }, /** 淇敼鎸夐挳鎿嶄綔 */ - handleUpdate(ids) { + handleUpdate(curId) { // this.$router.push({ // path: "/finance/travelexpenseslist/Modifydetails/", // query: { id: ids } @@ -1219,8 +1231,7 @@ this.title = "鎶ラ攢鐢宠淇敼"; //鑾峰彇鎶ラ攢涓讳俊鎭� - const id = ids || this.ids; - getReimbursement(id).then(response => { + getReimbursement(curId).then(response => { this.form = response.data; this.fileListto = this.form.annexfiles ? this.form.annexfiles @@ -1228,12 +1239,10 @@ .map(item => ({ url: item, name: item })) : []; this.form.recordstatus = response.data.recordstatus + ""; - - let ids = response.data.id; + //鑾峰彇鎶ラ攢鏄庣粏淇℃伅 - getReimbursementdetaillist(ids).then(res => { + getReimbursementdetaillist(curId).then(res => { this.rbDetails = res.data; - console.log(this.rbDetails); if (this.rbDetails.length == 0) { this.addDetailRow(0); } @@ -1254,13 +1263,24 @@ }); //鑾峰彇鎶ラ攢鎵撴淇℃伅 - this.queryParamsPayee.rbid = ids; + this.queryParamsPayee.rbid = curId; listReimbursementpayee(this.queryParamsPayee).then(res => { this.rbPayees = res.rows; if (this.rbPayees.length == 0) { this.addPayeeRow(0); } }); + + //瀹℃牳鐘舵�� + this.form.recordstatus = response.data.recordstatus + ""; + let listFundflowparams = { + fundid: curId, + fundtype: 1 + }; + listFundflow(listFundflowparams).then(res => { + this.fundflowList = res.rows; + }); + }); }, -- Gitblit v1.9.3