From 9fb9cd1ce924b6d0833ee9ca03581ff04352707b Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期四, 24 八月 2023 10:14:05 +0800 Subject: [PATCH] yxh --- src/views/project/fund/applyDetail/index.vue | 65 +++++++++++++++++++++++--------- 1 files changed, 47 insertions(+), 18 deletions(-) diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue index 11fdf8e..e2f8645 100644 --- a/src/views/project/fund/applyDetail/index.vue +++ b/src/views/project/fund/applyDetail/index.vue @@ -14,7 +14,8 @@ </el-col> <el-col :span="5"> <el-form-item label="缁忓姙浜�" prop="username"> - <el-select v-model="form.username" placeholder="鐢宠浜�" clearable filterable allow-create style="width: 100%"> + <el-select v-model="form.username" placeholder="鐢宠浜�" clearable filterable allow-create style="width: 100%" + @change="getUserAccount"> <el-option v-for="dict in userlist" :key="dict.index" :label="dict.nickname" :value="dict.nickname"></el-option> </el-select> @@ -46,9 +47,13 @@ }}</el-radio> </el-form-item> </el-col> - <el-col :span="10"> - <el-form-item label="鐢宠璇存槑" prop="remark"> - <el-input v-model="form.remark" placeholder="鐢宠璇存槑" /> + <el-col :span="5"> + <el-form-item label="閾惰鍚嶇О" prop="bankname"> + <el-input v-model="form.bankname" placeholder="璇疯緭鍏ラ摱琛屽悕绉�" /> + </el-form-item> + </el-col><el-col :span="5"> + <el-form-item label="閾惰璐﹀彿" prop="bankcardno"> + <el-input v-model="form.bankcardno" placeholder="璇疯緭鍏ラ摱琛岃处鍙�" /> </el-form-item> </el-col> <el-col :span="5"> @@ -81,6 +86,11 @@ <el-input v-model="form.taxedcost" placeholder="绋庡悗閲戦鍚堣" :disabled="true" /> </el-form-item> </el-col>--> + <el-col :span="10"> + <el-form-item label="鐢宠璇存槑" prop="remark"> + <el-input v-model="form.remark" placeholder="鐢宠璇存槑" /> + </el-form-item> + </el-col> <el-col :span="5"> <el-form-item label="鎹愮尞鑰�" prop="name"> <el-input :disabled="true" v-model="form.name" placeholder="璇疯緭鍏ユ崘鐚�呭鍚�" /> @@ -141,7 +151,7 @@ </el-select> </template> </el-table-column> - <el-table-column prop="price" align="center" label="鍗曚环" width="120" v-if="0"> + <el-table-column prop="price" align="center" label="鍗曚环" width="120" v-if="businessType == 4"> <template slot-scope="scope"> <el-input v-model="scope.row.price" placeholder="鍗曚环" @blur="val => { sumTotalFee(scope.row); @@ -149,7 +159,7 @@ " /> </template> </el-table-column> - <el-table-column prop="quantity" align="center" label="鏁伴噺" width="120" v-if="0"> + <el-table-column prop="quantity" align="center" label="鏁伴噺" width="120" v-if="businessType == 4"> <template slot-scope="scope"> <el-input v-model="scope.row.quantity" placeholder="鏁伴噺" @blur="val => { sumTotalFee(scope.row); @@ -158,7 +168,7 @@ </template> </el-table-column> <el-table-column v-if="businessType == 3 || businessType == 4 || ismanager == true" prop="amount" - align="center" label="绋庡墠閲戦" width="120"> + align="center" :label=amountLabel width="120"> <template slot-scope="scope"> <!-- <el-select v-model="scope.row.amount" placeholder="绋庡墠閲戦" clearable filterable allow-create @@ -167,7 +177,7 @@ :value="dict.expense"></el-option> </el-select> --> - <el-input v-model="scope.row.amount" placeholder="绋庡墠閲戦" /> + <el-input v-model="scope.row.amount" placeholder="閲戦" /> </template> </el-table-column> <el-table-column prop="taxedamount" align="center" label="绋庡悗閲戦" width="120" v-if="(this.ismanager == true) & @@ -259,7 +269,7 @@ </el-button> <el-button @click.native.prevent=" Filepopup(scope.$index, rbDetails, scope.row) - " type="text" size="small">绁ㄦ嵁</el-button> + " type="text" size="small" v-if="businessType == 3 || businessType == 4">绁ㄦ嵁</el-button> </template> </el-table-column> </el-table> @@ -320,11 +330,13 @@ </el-row> <el-row v-if="operationType == 'detail' || operationType == 'check'"> <el-table :data="fundflowList" border> - <el-table-column label="瀹℃牳浜�" align="center" width="120" prop="checkusername" /> <el-table-column label="瀹℃牳鏃ユ湡" align="center" width="160" prop="createTime" /> - <el-table-column label="瀹℃牳缁撴灉" align="center" width="200" prop="flowconclusion"><template - slot-scope="scope"><span v-if="scope.row.flowconclusion == 1">閫氳繃</span><span - v-if="scope.row.flowconclusion == 2">涓嶉�氳繃</span></template> + <el-table-column label="瀹℃牳浜�" align="center" width="120" prop="checkusername" /> + <el-table-column label="瀹℃牳缁撴灉" align="center" width="200" prop="flowconclusion"> + <template slot-scope="scope"> + <span v-if="scope.row.flowconclusion == 1">閫氳繃</span> + <span v-if="scope.row.flowconclusion == 2">涓嶉�氳繃</span> + </template> </el-table-column> <el-table-column label="瀹℃牳澶囨敞" align="center" prop="flowcontent" /> </el-table> @@ -654,6 +666,8 @@ //涓撳/鍗曚綅閫夋嫨锛歟xpert/unit selectionType: "", showSelectionDialog: false, + //绋庡墠閲戦鏍囬锛氫笓瀹惰垂-绋庡墠閲戦锛涘尰瀛︽垚鏈�佸姙鍏垂鐢�-閲戦 + amountLabel:"绋庡墠閲戦", // 琛ㄥ崟鏍¢獙 rules: { @@ -845,11 +859,13 @@ if (this.businessType == "1") { this.curCase = this.$route.query.curCase; this.businessName = "涓撳鍔冲姟璐圭敵璇峰崟" + this.amountLabel="绋庡墠閲戦" this.getUnitList(); } else if (this.businessType == "2") { this.curCase = this.$route.query.curCase; this.businessName = "浼︾悊涓撳鍔冲姟璐圭敵璇峰崟"; + this.amountLabel="绋庡墠閲戦" this.getUnitList(); } else if (this.businessType == "3") { @@ -857,9 +873,11 @@ this.curCase = this.$route.query.curCase; } this.businessName = "鍖诲鎴愭湰鎶ラ攢鍗�"; + this.amountLabel="閲戦" } else if (this.businessType == "4") { this.businessName = "鍔炲叕璐圭敤鎶ラ攢鍗�"; + this.amountLabel="閲戦" // this.getBaseInfoList(); } @@ -899,7 +917,6 @@ this.businessType == "2" || this.businessType == "3" ) { - console.log("", this.curCase); this.form.infoid = this.curCase.id; this.form.donorname = this.curCase.name; this.form.donorno = this.curCase.donorno; @@ -1318,12 +1335,13 @@ } this.form.username = this.userprofile.nickName; this.form.userno = this.userprofile.userName; - this.form.phone = this.userprofile.phonenumber; this.form.deptmentname = this.userprofile.dept.deptName; this.form.deptmentno = this.userprofile.dept.deptId; this.form.managername = this.userprofile.dept.leader; + this.form.phone = this.userprofile.phonenumber; // this.form.applytype = this.businessType; // this.form.createTime = new Date(); + this.getUserAccount(); }); }, @@ -1357,6 +1375,17 @@ exportName: this.personlist[j].username }); } + } + }); + }, + + //鑾峰彇缁忓姙浜鸿处鍙蜂俊鎭� + getUserAccount() { + this.personlist.map(res => { + if (res.username == this.form.username) { + this.form.bankname = res.depositbank;//res.branchbankname銆乺es.depositbank; + this.form.bankcardno = res.bankcardno; + this.form.phone = res.telephone; } }); }, @@ -2065,13 +2094,13 @@ created() { //鑾峰彇璺敱鍙傛暟 this.getroute(); - this.getUserProfile(); - this.getUserList(); + this.getExternalList(); }, //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� mounted() { - this.getExternalList(); + this.getUserList(); + this.getUserProfile(); // this.getFeeUnitList(); }, -- Gitblit v1.9.3