From 6196fc48d9a22add90e600e2d3a9ed8bacad3dd7 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 25 十月 2023 14:20:00 +0800
Subject: [PATCH] 11
---
src/views/project/fund/applyDetail/index.vue | 199 ++++++++++++++-----------------------------------
1 files changed, 57 insertions(+), 142 deletions(-)
diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index f4235ad..c4f8e17 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -87,7 +87,7 @@
/>
</el-form-item>
</el-col>
- <el-col :span="5">
+ <el-col :span="5" v-if="ismanager == true">
<el-form-item label="鐢宠閲戦" prop="pretaxcost">
<el-input
v-model="form.pretaxcost"
@@ -498,6 +498,12 @@
align="center"
width="330"
label="澶囨敞"
+ v-if="
+ businessType == 2 ||
+ businessType == 3 ||
+ businessType == 4 ||
+ ismanager == true
+ "
>
<template slot-scope="scope">
<el-input
@@ -678,15 +684,11 @@
<el-row
style="margin-top: 25px; margin-bottom: 5px"
- v-if="operationType == 'check'"
+ v-if="operationType == 'check' && userprofile.nickName == '闄堟厱鍗�'"
>
<el-col :span="7">
<el-form-item label="鐢宠鏉愭枡鐘舵��" prop="infoid">
- <el-radio-group
- v-model="form.checkstatus"
- align="left"
- :disabled="userprofile.nickName != '闄堟厱鍗�'"
- >
+ <el-radio-group v-model="form.checkstatus" align="left">
<el-radio :label="1">寰呯敵璇锋潗鏂�</el-radio>
<el-radio :label="2">鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡</el-radio>
<el-radio :label="3">宸叉敹鍒版姤閿�鏉愭枡</el-radio>
@@ -2127,26 +2129,7 @@
return;
}
}
-
- // //鍒ゆ柇鍗曚綅 unitSel
- // try {
- // let unitIndex = this.unitList.findIndex(
- // (item) => tempDetail.unitno == item.organizationid
- // );
- // if (unitIndex > -1) {
- // tempDetail.unitname = this.unitList[unitIndex].organizationname;
- // } else {
- // tempDetail.unitname = tempDetail.unitno;
- // }
- // } catch {
- // tempDetail.unitname = tempDetail.unitno;
- // }
}
-
- //闄勪欢澶勭悊
- // if (list.length > 0) {
- // this.form.annexfiles = list.map(item => item.url).join(",");
- // }
//澶勭悊鏄庣粏
for (let i = 0; i < this.rbDetails.length; i++) {
@@ -2271,20 +2254,22 @@
console.log(this.form);
console.log(response, "淇濆瓨杩斿弬");
if (response.code === 200) {
- if (this.userprofile.nickName != "闄堟厱鍗�") {
+ if (this.form.id) {
+ this.$modal.msgSuccess("鐢宠鍗曚慨鏀规垚鍔燂紒");
+ this.$router.go(-1);
+ } else {
this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
+ this.$store.dispatch("tagsView/delView", this.$route);
+ this.$router.push({
+ path: "/finance/applyDetail/",
+ query: {
+ id: response.data,
+ businessType: "2",
+ operationType: "update",
+ curCase: this.curCase
+ }
+ });
}
- this.$store.dispatch("tagsView/delView", this.$route);
- this.$router.push({
- path: "/finance/applyDetail/",
- query: {
- id: response.data,
- businessType: "2",
- operationType: "update",
- curCase: this.curCase
- }
- });
- this.Routinglevel++;
} else {
this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + response.msg);
}
@@ -2307,30 +2292,15 @@
this.$modal.msgError("璇烽�夌‘璁ゆ潗鏂欑姸鎬佸凡鏀跺埌锛�");
return;
}
- let checkFundObj = {
- // fundid: this.checkObj.fundid,
- fundid: this.curId,
- flowconclusion: this.checkObj.flowlevelone,
- flowcontent: this.checkObj.flowconclusion
- };
- checkfund(checkFundObj).then(res => {
- //鍏抽棴绐楀彛
- this.reset();
- this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
- if (this.userprofile.nickName == "闄堟厱鍗�") {
- this.submitForm();
- }
- this.$store.dispatch("tagsView/delView", this.$route);
- this.$router.go(-1);
- });
+ this.Savenow();
+ console.log("淇濆瓨骞跺鎵�");
+
},
// 鍙栨秷鎸夐挳
cancel() {
- // this.reset();
- console.log(-this.Routinglevel);
this.$store.dispatch("tagsView/delView", this.$route);
- this.$router.go(-this.Routinglevel);
+ this.$router.go(-1);
},
//鑾峰彇褰撳墠鐢ㄦ埛淇℃伅
@@ -2747,20 +2717,6 @@
return;
}
}
-
- // //鍒ゆ柇鍗曚綅 unitSel
- // try {
- // let unitIndex = this.unitList.findIndex(
- // (item) => tempDetail.unitno == item.organizationid
- // );
- // if (unitIndex > -1) {
- // tempDetail.unitname = this.unitList[unitIndex].organizationname;
- // } else {
- // tempDetail.unitname = tempDetail.unitno;
- // }
- // } catch {
- // tempDetail.unitname = tempDetail.unitno;
- // }
}
//澶勭悊鏄庣粏
@@ -2792,44 +2748,6 @@
].subjecttypename;
}
this.rbDetails[i] = tempDetail;
- /*
- //璁$畻涓◣
- //if (isNaN(parseFloat(tempDetail.taxedamount)))
- //鑾峰彇鍙傛暟
- this.taxParam.beneficiaryNo = tempDetail.beneficiaryno;
- this.taxParam.startTime = this.form.createTime.substring(0, 10);
- // 璁$畻绋庡悗閲戦
- if (tempDetail.taxedamount == undefined || tempDetail.taxedamount == null || tempDetail.taxedamount == 0 || tempDetail.taxedamount == '') {
- //鑾峰彇鍙傛暟
- this.taxParam.money = tempDetail.amount.toString();
- getTaxByBeneFiciaryNo(this.taxParam).then((res) => {
- if (res.code == 200) {
- tempDetail.taxamount = res.data;
- tempDetail.taxedamount = tempDetail.amount - tempDetail.taxamount;
- this.rbDetails[k] = tempDetail;
-
- this.totalAfterTaxAmount += parseFloat(tempDetail.taxedamount);
- this.totalAmount += parseFloat(tempDetail.amount);
- }
- });
- }
-
- // 璁$畻绋庡墠銆佺◣璐广�佺◣鍚庨噾棰�
- if (tempDetail.amount == undefined || tempDetail.amount == null || tempDetail.amount == 0 || tempDetail.amount == '') {
- //鑾峰彇鍙傛暟
- this.taxParam.money = tempDetail.taxedamount.toString();
- getTaxBeforeByAfterMoney(this.taxParam).then((res) => {
- if (res.code == 200) {
- tempDetail.taxamount = res.data.nowTax;
- tempDetail.amount = parseFloat(res.data.nowTaxBeforeMoney);
- this.rbDetails[k] = tempDetail;
-
- this.totalAfterTaxAmount += parseFloat(tempDetail.taxedamount);
- this.totalAmount += parseFloat(tempDetail.amount);
- }
- });
- }
- */
}
//璁$畻褰撳墠琛屾姤閿�鍐呭璐圭敤鍚堣锛岀◣鍓嶉噾棰濓紙amount锛夈�佹墸绋庨噾棰濓紙taxamount锛夈�佺◣鍚庨噾棰濓紙taxedamount锛�
if (this.businessType == "2") {
@@ -2874,11 +2792,6 @@
}
}
- //璐圭敤鍚堣
- // this.form.pretaxcost = parseFloat(this.totalPreTaxAmount).toFixed(2);
- // this.form.taxedcost = parseFloat(this.totalAfterTaxAmount).toFixed(2);
- // this.form.amountrequested = this.totalAmount.toFixed(2);
-
//淇濆瓨鏁版嵁
this.loading = true;
this.form.serviceFunddetails = 0;
@@ -2888,36 +2801,28 @@
this.form.serviceFunddetails = this.rbDetails;
if (this.form.id != null) {
- // updateFund(this.form).then((response) => {
- // if (response.code === 200) {
- // this.loading = false;
- // for (let m = 0; m < this.rbDetails.length; m++) {
- // if (this.rbDetails[m].id > 0) {
- // updateFunddetail(this.rbDetails[m]).then((response2) => { if (response.code != 200) { this.$modal.msgError("涓撳鍔冲姟璐逛繚瀛樺け璐�1锛�" + response.msg); } });
- // } else {
- // addFunddetail(this.rbDetails[m]).then((response2) => { if (response.code != 200) { this.$modal.msgError("涓撳鍔冲姟璐逛繚瀛樺け璐�2锛�" + response.msg); } });
- // }
- // }
- // this.$modal.msgSuccess("涓撳鍔冲姟璐逛繚瀛樻垚鍔燂紒");
- // } else {
- // this.$modal.msgError("涓撳鍔冲姟璐逛繚瀛樺け璐ワ細" + response.msg);
- // }
- // });
} else {
this.form.recordstatus = -1;
-
- // addorupdateFund(this.form).then((response) => {
- // if (response.code === 200) {
- // this.selectDonotor(this.curCase);
- // } else {
- // this.$modal.msgError("涓撳鍔冲姟璐逛繚瀛樺け璐ワ細" + response.msg);
- // }
- // });
}
addorupdateFund(this.form).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
+ // 闈炴彁閱掔姸鎬佷笅鎵ц瀹℃壒瑙e喅寮傛璋冪敤寤惰繜闂
+ if (!this.Savereminder) {
+ let checkFundObj = {
+ // fundid: this.checkObj.fundid,
+ fundid: this.curId,
+ flowconclusion: this.checkObj.flowlevelone,
+ flowcontent: this.checkObj.flowconclusion
+ };
+ checkfund(checkFundObj).then(res => {
+ //鍏抽棴绐楀彛
+ this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
+ this.$store.dispatch("tagsView/delView", this.$route);
+ this.$router.go(-1);
+ });
+ }
this.Getnetworkheader();
this.getroute();
this.getExternalList();
@@ -2956,7 +2861,16 @@
JSON.stringify(this.rbDetails)
);
sessionStorage.setItem("apiform", JSON.stringify(this.form));
- this.$router.go(0);
+ // this.$router.go(0);
+ this.$router.push({
+ path: "/finance/applyDetail/",
+ query: {
+ id: this.curId,
+ businessType: this.businessType,
+ operationType: this.operationType,
+ curCase: this.curCase
+ }
+ });
} else {
// this.$message({
// type: "error",
@@ -3443,10 +3357,7 @@
if (this.businessType == 4 || this.businessType == 3 || !showType) {
this.selectionType = this.experthear;
}
- // if (!showType) {
- // this.selectionType = this.experthear;
- // }
this.expertfrom = "1";
console.log(spoce);
this.funddetailForm.index = spoce.$index;
@@ -3628,7 +3539,11 @@
// this.getFeeUnitList();
},
-
+ beforeRouteLeave(to, from, next) {
+ // 鎵ц閿�姣佹搷浣�
+ this.$destroy();
+ next();
+ },
beforeCreate() {}, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠
beforeMount() {}, //鐢熷懡鍛ㄦ湡 - 鎸傝浇涔嬪墠
beforeUpdate() {}, //鐢熷懡鍛ㄦ湡 - 鏇存柊涔嬪墠
--
Gitblit v1.9.3