From 916735aca6816732bc43a186dd9d7ccf5e5a1989 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 14 十二月 2023 23:09:47 +0800
Subject: [PATCH] yxh:修改了账户管理和案例编辑

---
 src/views/project/fund/performancedetails/index.vue |   68 ++++++++++++++++++++++++---------
 1 files changed, 49 insertions(+), 19 deletions(-)

diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index dc0918b..ec00066 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -58,7 +58,6 @@
           </el-col>
         </el-row>
         <el-row>
-
           <el-col :span="5">
             <el-form-item label="鑱旂郴鐢佃瘽" prop="phone">
               <el-input v-model="form.phone" placeholder="璇疯緭鍏ヨ仈绯荤數璇�" />
@@ -74,11 +73,11 @@
             </el-form-item>
           </el-col>
           <el-col :span="5">
-            <el-form-item label="棰勫鐘舵��" prop="infoid">
+            <el-form-item label="鐢宠鏉愭枡鐘舵��" prop="infoid">
               <el-select
                 v-model="form.checkstatus"
                 filterable
-                placeholder="璇烽�夋嫨棰勫鐘舵��"
+                placeholder="璇烽�夋嫨鐢宠鏉愭枡鐘舵��"
               >
                 <el-option
                   v-for="item in baselisttages"
@@ -92,7 +91,6 @@
           </el-col>
         </el-row>
         <el-row style="text-align: left">
-          
           <el-col :span="8">
             <el-form-item label="鐢宠璇存槑" prop="remark">
               <el-input v-model="form.remark" placeholder="鐢宠璇存槑" />
@@ -120,14 +118,16 @@
             </div></el-col
           >
         </el-row>
-        <el-row v-if="operationType == 'check'">
+        <el-row
+          v-if="userprofile.nickName == '闄堟厱鍗�' && operationType == 'check'"
+        >
           <el-col :span="3"
             ><div style="margin-bottom: 15px;">
               <el-button
                 type="success"
                 icon="el-icon-edit-outline"
                 @click="Manualcalculationfn"
-                >璁$畻鏄庣粏</el-button
+                >璁$畻涓◣</el-button
               >
             </div></el-col
           >
@@ -247,6 +247,16 @@
                       : "鐐瑰嚮閫夋嫨"
                   }}</el-button
                 >
+              </template>
+            </el-table-column>
+            <el-table-column
+              prop="idcardno"
+              align="center"
+              label="韬唤璇佸彿"
+              width="200"
+            >
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.idcardno" placeholder="韬唤璇佸彿" />
               </template>
             </el-table-column>
 
@@ -627,11 +637,11 @@
       baselisttages: [
         {
           id: 1,
-          name: "寰呴瀹�"
+          name: "寰呯敵璇锋潗鏂�"
         },
         {
           id: 2,
-          name: "棰勫閫氳繃绛夊緟鏉愭枡"
+          name: "瀹℃牳閫氳繃绛夊緟閭瘎绾歌川鏉愭枡"
         },
         {
           id: 3,
@@ -1172,6 +1182,14 @@
               );
               return;
             }
+            if (tempDetail.idcardno == null) {
+              this.$modal.msgWarning(
+                "鏈嶅姟椤圭洰琛ㄤ腑锛岀" +
+                  (k + 1).toString() +
+                  "琛岀殑韬唤璇佹湭瀹屽杽锛岃鍏堝~鍐欒韩浠借瘉鍚庡啀鎻愪氦淇濆瓨锛�"
+              );
+              return;
+            }
 
             if (this.businessType == "1") {
               if (tempDetail.servicesscope == null) {
@@ -1292,17 +1310,25 @@
           addorupdateFund(this.form).then(response => {
             console.log(response, "淇濆瓨杩斿弬");
             if (response.code === 200) {
-              this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
-              this.$store.dispatch("tagsView/delView", this.$route);
-              this.$router.push({
-                path: "/finance/performancedetails/",
-                query: {
-                  id: response.data,
-                  businessType: "5",
-                  operationType: "update"
-                }
-              });
+              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/performancedetails/",
+                  query: {
+                    id: response.data,
+                    businessType: "5",
+                    operationType: "update"
+                  }
+                });
+              }
               this.Routinglevel++;
+              this.form.id = response.data;
+              this.curId = response.data;
+              this.handleUpdate();
             } else {
               this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + response.msg);
             }
@@ -1780,6 +1806,10 @@
     },
     // 纭褰曞叆
     BatchentryFn() {
+      console.log(this.rbDetails[0]);
+      if (!this.rbDetails[0].applytype) {
+        this.rbDetails = [];
+      }
       this.checkedCities.forEach(item => {
         let rowData = {
           orderno: null,
@@ -1983,7 +2013,7 @@
           singleDetail.bankcardno = res.bankCardNo;
           singleDetail.branchbankname = res.branchbankname;
           singleDetail.depositbank = res.depositBank;
-          singleDetail.idcardno = res.bankCardNo;
+          singleDetail.idcardno = res.idcardNo;
           singleDetail.phone = res.telephone;
           singleDetail.title = res.title;
           singleDetail.unitname = res.unitname;

--
Gitblit v1.9.3