From 78cbeb0c6e136b8cf3116264c546cfd320813d4c Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 08 十二月 2023 15:49:37 +0800
Subject: [PATCH] 11
---
src/views/project/fund/applyDetail/index.vue | 130 +++++++++++++++++++++++++++++++++---------
1 files changed, 101 insertions(+), 29 deletions(-)
diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index 7dc23bb..361efb0 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -323,6 +323,23 @@
</template>
</el-table-column>
<el-table-column
+ prop="taxamount"
+ align="center"
+ label="鎵g◣閲戦"
+ width="120"
+ v-if="
+ (this.ismanager == true) &
+ (form.applytype == '1' || form.applytype == '2')
+ "
+ >
+ <template slot-scope="scope">
+ <el-input
+ v-model="scope.row.taxamount"
+ placeholder="鎵g◣閲戦"
+ />
+ </template>
+ </el-table-column>
+ <el-table-column
prop="taxedamount"
align="center"
label="绋庡悗閲戦"
@@ -451,6 +468,9 @@
<template slot-scope="scope">
<el-form-item :error="scope.row.error" label-width="0">
<el-input
+ :disabled="
+ userprofile.nickName != '闄堟厱鍗�' && businessType == 1
+ "
v-model.number="scope.row.idcardno"
@input="tableParValueChange1(scope.row)"
placeholder="韬唤璇佸彿"
@@ -467,6 +487,9 @@
<!-- v-if="form.applytype != '4'" -->
<template slot-scope="scope">
<el-input
+ :disabled="
+ userprofile.nickName != '闄堟厱鍗�' && businessType == 1
+ "
v-model="scope.row.depositbank"
placeholder="寮�鎴烽摱琛�"
/>
@@ -480,13 +503,16 @@
>
<template slot-scope="scope">
<el-input
+ :disabled="
+ userprofile.nickName != '闄堟厱鍗�' && businessType == 1
+ "
v-model="scope.row.bankcardno"
placeholder="閾惰甯愬彿"
/>
</template>
</el-table-column>
<el-table-column
- prop="itemdescribe"
+ prop="itemdescrisca"
align="center"
width="330"
label="椤圭洰璇存槑"
@@ -1156,13 +1182,13 @@
>
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />
- <a :href="pdfimg">{{ scope.row.name }}</a>
+ <span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
- width="180"
+ width="190"
:show-overflow-tooltip="true"
label="鍔熻兘"
>
@@ -1179,6 +1205,13 @@
@click.native.prevent.stop="moveupdowfile(scope.row)"
>涓婄Щ</el-button
>
+ <el-button
+ type="success"
+ size="mini"
+ icon="el-icon-search"
+ circle
+ @click.native.prevent.stop="Downloadfile(scope.row)"
+ ></el-button>
</template>
</el-table-column>
</el-table>
@@ -1252,13 +1285,13 @@
>
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />
- <a :href="invoicepdfimg">{{ scope.row.name }}</a>
+ <span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
- width="180"
+ width="190"
:show-overflow-tooltip="true"
label="鍔熻兘"
>
@@ -1275,6 +1308,13 @@
@click.native.prevent.stop="moveupdowfile(scope.row)"
>涓婄Щ</el-button
>
+ <el-button
+ type="success"
+ size="mini"
+ icon="el-icon-search"
+ circle
+ @click.native.prevent.stop="Downloadfile(scope.row)"
+ ></el-button>
</template>
</el-table-column>
</el-table>
@@ -2280,31 +2320,37 @@
JSON.stringify(this.rbDetails)
);
sessionStorage.setItem("apiform", JSON.stringify(this.form));
- addorupdateFund(this.form).then(response => {
- console.log(this.form);
- console.log(response, "淇濆瓨杩斿弬");
- if (response.code === 200) {
- if (this.form.id) {
- this.$modal.msgSuccess("鐢宠鍗曚慨鏀规垚鍔燂紒");
- this.$router.go(-1);
+ addorupdateFund(this.form)
+ .then(response => {
+ console.log(this.form);
+ console.log(response, "淇濆瓨杩斿弬");
+ if (response.code === 200) {
+ 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.form.id = response.data;
+ this.curId = response.data;
+ this.handleUpdate();
} 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.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + response.msg);
}
- this.form.id = response.data;
- } else {
- this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + response.msg);
- }
- });
+ })
+ .catch(res => {
+ this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + res);
+ });
//鍏抽棴绐楀彛
this.loading = false;
// this.getfundList();
@@ -2313,6 +2359,19 @@
}, 500),
//瀹℃壒鎻愪氦
+ // checksubmit() {
+ // console.log(this.checkObj.flowlevelone);
+ // if (
+ // this.form.checkstatus != 3 &&
+ // this.userprofile.nickName == "闄堟厱鍗�" &&
+ // this.checkObj.flowlevelone == 1
+ // ) {
+ // this.$modal.msgError("璇烽�夌‘璁ゆ潗鏂欑姸鎬佸凡鏀跺埌锛�");
+ // return;
+ // }
+ // this.Savenow();
+ // console.log("淇濆瓨骞跺鎵�");
+ // },
checksubmit() {
console.log(this.checkObj.flowlevelone);
if (
@@ -2320,9 +2379,18 @@
this.userprofile.nickName == "闄堟厱鍗�" &&
this.checkObj.flowlevelone == 1
) {
- this.$modal.msgError("璇烽�夌‘璁ゆ潗鏂欑姸鎬佸凡鏀跺埌锛�");
+ this.$modal.msgError("璇风‘璁ゆ姤閿�鐨勭焊璐ㄦ潗鏂欏凡缁忔敹鍒帮紒");
+ return;
+ } else if (
+ (this.form.applytype == "1" || this.form.applytype == "2") &&
+ this.form.fundtaxtime == null
+ ) {
+ this.$modal.msgError(
+ "鎻愪氦涓撳璐圭敤鐢宠鍗曘�佷鸡鐞嗕笓瀹剁敵璇疯垂鐢ㄧ敵璇峰崟瀹℃牳锛岄渶瑕佸厛瀹屾垚涓◣璁$畻锛�"
+ );
return;
}
+
this.Savenow();
console.log("淇濆瓨骞跺鎵�");
},
@@ -3384,6 +3452,10 @@
this.invoicefileListto.splice(index - 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣�
}
},
+ Downloadfile(row) {
+ console.log(row);
+ window.location.href = this.Networkheader + "/prod-api" + row.url;
+ },
//涓撳/鍖荤枟鏈烘瀯/璐圭敤鎶ラ攢鏈烘瀯閫夋嫨
ShowDetailDialog(spoce, showType) {
this.spocewl = spoce;
--
Gitblit v1.9.3