From 408360a5156afcd3724aa4d88fff38ba82e20d81 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 10 十一月 2023 15:37:03 +0800
Subject: [PATCH] 11

---
 src/views/project/fund/performancedetails/index.vue |  103 ++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 72 insertions(+), 31 deletions(-)

diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index a1c7577..f661042 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -59,23 +59,6 @@
         </el-row>
         <el-row>
           <el-col :span="5">
-            <el-form-item label="鐢宠鍗曠被鍨�">
-              <el-select
-                v-model="form.performancetype"
-                filterable
-                placeholder="璇烽�夋嫨鐢宠鍗曠姸鎬�"
-              >
-                <el-option
-                  v-for="item in PerformanceType"
-                  :key="item.id"
-                  :label="item.name"
-                  :value="item.id"
-                >
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="5">
             <el-form-item label="鑱旂郴鐢佃瘽" prop="phone">
               <el-input v-model="form.phone" placeholder="璇疯緭鍏ヨ仈绯荤數璇�" />
             </el-form-item>
@@ -89,14 +72,12 @@
               />
             </el-form-item>
           </el-col>
-        </el-row>
-        <el-row style="text-align: left">
           <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"
@@ -108,6 +89,8 @@
               </el-select>
             </el-form-item>
           </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="鐢宠璇存槑" />
@@ -135,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
           >
@@ -262,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>
 
@@ -445,6 +440,8 @@
             filterable
             remote
             reserve-keyword
+            allow-create
+            default-first-option
             placeholder="璇疯緭鍏ュ叧閿瘝"
             :remote-method="remoteMethod"
             :loading="loadingperformance"
@@ -488,6 +485,13 @@
       :visible.sync="batchdialogVisible"
       width="40%"
     >
+      <div style="margin-bottom: 15px; margin-left: 10px;">
+        <el-radio-group v-model="Performanceclass">
+          <el-radio-button :label="68">鏈堝害缁╂晥</el-radio-button>
+          <el-radio-button :label="69">瀛e害缁╂晥</el-radio-button>
+          <el-radio-button :label="70">骞村害缁╂晥</el-radio-button>
+        </el-radio-group>
+      </div>
       <div style="max-height: 330px; overflow-y: auto">
         <el-checkbox
           :indeterminate="isIndeterminate"
@@ -593,6 +597,7 @@
       spocewl: "",
       //璐圭敤鐢宠琛ㄥ崟title
       title: "",
+      Copy: "",
       //鐢宠鍗曠被鍨�
       businessType: "0",
       businessName: "",
@@ -623,6 +628,7 @@
       Personnelforname: null,
       unitforname: null,
       isIndeterminate: true,
+      Performanceclass: 68,
 
       //鏄惁鏄笓瀹惰垂鐨凮PO瀹℃壒浜哄憳
       ismanager: false,
@@ -631,11 +637,11 @@
       baselisttages: [
         {
           id: 1,
-          name: "寰呴瀹�"
+          name: "寰呯敵璇锋潗鏂�"
         },
         {
           id: 2,
-          name: "棰勫閫氳繃绛夊緟鏉愭枡"
+          name: "鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡"
         },
         {
           id: 3,
@@ -898,6 +904,7 @@
       console.log(11);
       //閫夋嫨涓氬姟绫诲瀷:1銆佹柊澧烇紱2銆佷慨鏀癸紱3銆佹煡鐪�
       this.curId = this.$route.query.id;
+      this.Copy = this.$route.query.Copy;
       this.businessType = this.$route.query.businessType;
       this.operationType = this.$route.query.operationType;
       this.beforehandType = this.$route.query.beforehandType;
@@ -913,6 +920,9 @@
         this.handleAdd();
       } else if (this.operationType == "update") {
         this.title = this.businessName + "淇敼";
+        if (this.Copy) {
+          this.title = this.businessName + "澶嶅埗";
+        }
         console.log(this.title);
         this.handleUpdate();
       } else if (this.operationType == "detail") {
@@ -945,6 +955,7 @@
 
       getFund(this.curId).then(response => {
         this.form = response.data;
+
         sessionStorage.removeItem("apiform");
 
         sessionStorage.setItem("apiform", JSON.stringify(this.form));
@@ -952,6 +963,14 @@
         //鏄庣粏澶勭悊
         getownFundDetail(this.curId).then(res => {
           this.rbDetails = res.data;
+          if (this.Copy) {
+            this.form.createTime = null;
+            this.rbDetails.map(item => {
+              item.amount = 0;
+              item.taxedamount = 0;
+            });
+            console.log(this.rbDetails);
+          }
 
           if (this.rbDetails.length > 0) {
             for (let m = 0; m < this.rbDetails.length; m++) {
@@ -1163,6 +1182,14 @@
               );
               return;
             }
+            if (tempDetail.idcardno == null) {
+              this.$modal.msgWarning(
+                "鏈嶅姟椤圭洰琛ㄤ腑锛岀" +
+                  (k + 1).toString() +
+                  "琛岀殑韬唤璇佹湭瀹屽杽锛岃鍏堝~鍐欒韩浠借瘉鍚庡啀鎻愪氦淇濆瓨锛�"
+              );
+              return;
+            }
 
             if (this.businessType == "1") {
               if (tempDetail.servicesscope == null) {
@@ -1267,6 +1294,12 @@
           if (this.form.id != null) {
           } else {
             this.form.recordstatus = -1;
+          }
+          if (this.Copy) {
+            this.form.id = null;
+            this.rbDetails.map(item => {
+              return (item.id = null);
+            });
           }
 
           sessionStorage.setItem(
@@ -1761,11 +1794,14 @@
         this.listperformancea = this.cityOptions.map(item => {
           return { value: item.userName, label: item.userName };
         });
-        console.log(this.cityOptions, "缁╂晥鎵归噺");
       });
     },
     // 纭褰曞叆
     BatchentryFn() {
+      console.log(this.rbDetails[0]);
+      if (!this.rbDetails[0].applytype) {
+        this.rbDetails = [];
+      }
       this.checkedCities.forEach(item => {
         let rowData = {
           orderno: null,
@@ -1788,7 +1824,7 @@
           annexregistform: null,
           applytype: "9",
           applytypename: "绠$悊鎴愭湰",
-          itemid: 68,
+          itemid: this.Performanceclass,
           itemcode: "68",
           itemname: "缁╂晥宸ヨ祫",
           itemtype: null,
@@ -1807,7 +1843,11 @@
           updateTime: null,
           uploadflag: null,
           uploadtime: null,
-          itemlist: [{ id: 68, itemName: "缁╂晥宸ヨ祫" }],
+          itemlist: [
+            { id: 68, itemName: "鏈堝害缁╂晥" },
+            { id: 69, itemName: "瀛e害缁╂晥" },
+            { id: 70, itemName: "骞村害缁╂晥" }
+          ],
           servicesscope: null,
           rowfeeblocks: [],
           annexfiles: null
@@ -1815,11 +1855,12 @@
 
         this.rbDetails.push(rowData);
       });
-      for (let i = 0; i < this.checkedCities.length + 1; i++) {
+      for (let i = 0; i < this.rbDetails.length; i++) {
         this.rbDetails[i].orderno = i + 1;
       }
       this.calculateTax();
       this.batchdialogVisible = false;
+      this.checkedCities = [];
       console.log(this.rowfeeItemTypes);
     },
     //鏂板涓�琛�
@@ -1961,17 +2002,17 @@
       this.cityOptions.map(res => {
         if (tempExpertName == res.userName) {
           singleDetail.beneficiaryno = res.userno;
-          singleDetail.beneficiaryname = res.userName;
           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;
           singleDetail.unitno = parseInt(res.unitno);
         }
       });
+      singleDetail.beneficiaryname = tempExpertName;
       this.rbDetails[tempIndex] = singleDetail;
       this.showSelectionDialog = false;
     },

--
Gitblit v1.9.3