From bf86c019d654dda98d7bd4bcef32ee525eb62825 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期五, 25 八月 2023 14:54:30 +0800 Subject: [PATCH] yxh --- src/views/project/fund/applyDetail/index.vue | 35 +++++++++++++++++++++-------------- src/views/project/travelexpenseapply/travelexpensedetail/index.vue | 10 ++++------ src/views/project/fundcheck/officeExpenseCheck/index.vue | 6 ++++-- 3 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue index a7fa0aa..cb0d413 100644 --- a/src/views/project/fund/applyDetail/index.vue +++ b/src/views/project/fund/applyDetail/index.vue @@ -880,7 +880,7 @@ this.title = this.businessName + "鏂板缓"; if (this.operationType != "4") { this.curCase = this.$route.query.curCase; - console.log("this.curCase",this.curCase); + console.log("this.curCase", this.curCase); } this.handleAdd(); } @@ -979,7 +979,7 @@ getFund(this.curId).then(response => { this.form = response.data; - console.log("response.data",response.data); + console.log("response.data", response.data); //闄勪欢澶勭悊 // this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] @@ -1297,7 +1297,8 @@ //鍏抽棴绐楀彛 // this.loading = false; - // this.getfundList(); + // this.getfundList(); + this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1); } }); @@ -1320,6 +1321,7 @@ // 鍙栨秷鎸夐挳 cancel() { // this.reset(); + this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1); }, @@ -1328,21 +1330,26 @@ getUserProfile().then(res => { this.userprofile = res.data; this.standardlevel = res.data.standardlevel; - if (this.userprofile.userName == "admin" || this.userprofile.userName == "001" || this.userprofile.userName == "012" || this.userprofile.userName == "002") { + if (this.userprofile.userName == "admin" || this.userprofile.userName == "001" || this.userprofile.userName == "047") { this.ismanager = true; } else { this.ismanager = false; } - console.log(this.userprofile,this.ismanager); - this.form.username = this.userprofile.nickName; - this.form.userno = this.userprofile.userName; - 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(); + console.log(this.userprofile, this.ismanager); + if (this.operationType == "add") { + this.form.username = this.userprofile.nickName; + this.form.userno = this.userprofile.userName; + 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(); + + if (this.businessType == "4") { + this.getUserAccount(); + } + } }); }, diff --git a/src/views/project/fundcheck/officeExpenseCheck/index.vue b/src/views/project/fundcheck/officeExpenseCheck/index.vue index 029c053..6655548 100644 --- a/src/views/project/fundcheck/officeExpenseCheck/index.vue +++ b/src/views/project/fundcheck/officeExpenseCheck/index.vue @@ -12,7 +12,7 @@ </el-col> <el-col :span="5"> <el-form-item label="缁忓姙浜�" prop="APPLICANT" style="float: left"> - <el-input v-model="queryParams.APPLICANT" placeholder="璇疯緭鍏ョ粡鍔炰汉" clearable size="small" + <el-input v-model="queryParams.APPLICANT" placeholder="璇疯緭鍏ョ敵璇蜂汉濮撳悕" clearable size="small" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> @@ -638,12 +638,14 @@ this.getCurFundType(); this.getUsermsg(); }, + mounted() { this.selectReporters(); this.getlistOrganization(); //his.getlistUser(); this.getlistbypower(); }, + methods: { selectapplication() { this.queryParams.APPLICATIONBEGTIME = this.createTime[0]; @@ -1372,7 +1374,7 @@ //鑾峰彇璐圭敤绫诲瀷 getCurFundType() { - getFundTypeAll(3).then((res) => { + getFundTypeAll(4).then((res) => { let dataList = res.data; this.fundtypeArrAll = dataList; this.fundtypeArr = []; diff --git a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue index 5ef895a..c4f5835 100644 --- a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue +++ b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue @@ -279,18 +279,15 @@ " /> </template> </el-table-column> - <!-- <el-table-column prop="cityfee" label="甯傚唴浜ら�氳垂" align="center" width="100"> <template slot-scope="scope"> - <el-input v-model="scope.row.cityfee" placeholder="甯傚唴浜ら�氳垂" @blur=" - (val) => { + <el-input v-model="scope.row.cityfee" placeholder="甯傚唴浜ら�氳垂" @blur="(val) => { sumRowFee(scope.row); } - ">{{ Number(scope.row.cityfee).toFixed(2) }} + ">{{ Number(scope.row.cityfee).toFixed(2) }} </el-input> </template> </el-table-column> - --> <el-table-column prop="hotelexpense" label="浣忓璐�" align="center" width="80"> <template slot-scope="scope"> <el-input v-model="scope.row.hotelexpense" placeholder="浣忓璐�" @blur="val => { @@ -1548,7 +1545,9 @@ this.open = false; // 鍏抽棴绐楀彛 + this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1); + // this.getList(); // }) // .catch(err => { @@ -1576,7 +1575,6 @@ this.open = false; // 鍏抽棴绐楀彛 - this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1); }) -- Gitblit v1.9.3