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/applyDetail/index.vue |  219 ++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 153 insertions(+), 66 deletions(-)

diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index 2ae752b..6f6f751 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -9,11 +9,12 @@
             <el-form-item label="鐢宠鏃ユ湡" prop="createTime">
               <el-date-picker
                 clearable
+                :disabled="true"
                 style="width: 100%"
                 v-model="form.createTime"
                 type="date"
                 value-format="yyyy-MM-dd HH:mm:ss"
-                placeholder="鐢宠鏃ユ湡"
+                placeholder="鏃�   鏈�"
               >
               </el-date-picker>
             </el-form-item>
@@ -150,7 +151,8 @@
             <div
               style="margin-bottom: 15px;"
               v-if="
-                userprofile.nickName == '闄堟厱鍗�' && operationType == 'check'
+                userprofile.nickName == '闄堟厱鍗�' &&
+                  (businessType == '1' || businessType == '2')
               "
             >
               <el-button
@@ -322,6 +324,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="绋庡悗閲戦"
@@ -346,7 +365,7 @@
             <el-table-column
               prop="beneficiaryname"
               align="center"
-              label="濮撳悕"
+              label="涓撳/鍗曚綅"
               width="120"
               v-if="form.applytype == '1' || form.applytype == '2'"
             >
@@ -366,7 +385,7 @@
             <el-table-column
               prop="unitno"
               align="center"
-              label="鍗曚綅鍚嶇О"
+              label="涓撳鎵�鍦ㄥ崟浣�"
               width="250"
               v-if="form.applytype != '4' && form.applytype != '3'"
             >
@@ -450,8 +469,11 @@
               <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="tableParValueChange(scope.row)"
+                    @input="tableParValueChange1(scope.row)"
                     placeholder="韬唤璇佸彿"
                   />
                 </el-form-item>
@@ -466,6 +488,9 @@
               <!-- v-if="form.applytype != '4'" -->
               <template slot-scope="scope">
                 <el-input
+                  :disabled="
+                    userprofile.nickName != '闄堟厱鍗�' && businessType == 1
+                  "
                   v-model="scope.row.depositbank"
                   placeholder="寮�鎴烽摱琛�"
                 />
@@ -479,13 +504,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="椤圭洰璇存槑"
@@ -558,7 +586,9 @@
                   "
                   type="text"
                   size="small"
-                  v-if="businessType == 3 || businessType == 4"
+                  v-if="
+                    businessType == 3 || businessType == 2 || businessType == 4
+                  "
                   >绁ㄦ嵁</el-button
                 >
               </template>
@@ -692,11 +722,11 @@
           style="margin-top: 25px; margin-bottom: 5px"
           v-if="operationType == 'check' && userprofile.nickName == '闄堟厱鍗�'"
         >
-          <el-col :span="7">
+          <el-col :span="20">
             <el-form-item label="鐢宠鏉愭枡鐘舵��" prop="infoid">
               <el-radio-group v-model="form.checkstatus" align="left">
                 <el-radio :label="1">寰呯敵璇锋潗鏂�</el-radio>
-                <el-radio :label="2">鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡</el-radio>
+                <el-radio :label="2">瀹℃牳閫氳繃绛夊緟閭瘎绾歌川鏉愭枡</el-radio>
                 <el-radio :label="3">宸叉敹鍒版姤閿�鏉愭枡</el-radio>
               </el-radio-group>
             </el-form-item>
@@ -706,7 +736,7 @@
           style="margin-top: 5px; margin-bottom: 5px"
           v-if="operationType == 'check'"
         >
-          <el-col :span="7">
+          <el-col :span="20">
             <el-form-item label="瀹℃牳缁撴灉" align="left">
               <el-radio-group v-model="checkObj.flowlevelone" align="left">
                 <el-radio label="1">閫氳繃</el-radio>
@@ -733,7 +763,7 @@
               operationType == 'update' ||
               ismanager == true
           "
-          >鎻愪氦淇濆瓨</el-button
+          >淇濆瓨</el-button
         >
         <el-button
           type="success"
@@ -863,7 +893,7 @@
           </el-col>
           <el-col :span="24" v-if="experthear == 'unit'">
             <el-form-item
-              label="浜哄憳濮撳悕"
+              label="涓撳/鍗曚綅"
               prop="beneficiaryname"
               label-width="80px"
             >
@@ -1152,15 +1182,14 @@
                     label="鍚嶇О"
                   >
                     <template slot-scope="scope">
-                      <i style="color:#409EFF" class=" el-icon-s-order" />{{
-                        scope.row.name
-                      }}
+                      <i style="color:#409EFF" class=" el-icon-s-order" />
+                      <span>{{ scope.row.name }}</span>
                     </template>
                   </el-table-column>
 
                   <el-table-column
                     prop="name"
-                    width="180"
+                    width="190"
                     :show-overflow-tooltip="true"
                     label="鍔熻兘"
                   >
@@ -1177,6 +1206,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>
@@ -1249,15 +1285,14 @@
                     label="鍚嶇О"
                   >
                     <template slot-scope="scope">
-                      <i style="color:#409EFF" class=" el-icon-s-order" />{{
-                        scope.row.name
-                      }}
+                      <i style="color:#409EFF" class=" el-icon-s-order" />
+                      <span>{{ scope.row.name }}</span>
                     </template>
                   </el-table-column>
 
                   <el-table-column
                     prop="name"
-                    width="180"
+                    width="190"
                     :show-overflow-tooltip="true"
                     label="鍔熻兘"
                   >
@@ -1274,6 +1309,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>
@@ -1563,9 +1605,9 @@
 
       // 琛ㄥ崟鏍¢獙
       rules: {
-        createTime: [
-          { required: true, message: "璇疯緭鍏ュ~鎶ユ棩鏈�", trigger: "blur" }
-        ],
+        // createTime: [
+        //   { required: true, message: "璇疯緭鍏ュ~鎶ユ棩鏈�", trigger: "blur" }
+        // ],
         reason: [
           { required: true, message: "璇疯緭鍏ュ嚭宸簨鐢�", trigger: "blur" }
         ],
@@ -1574,7 +1616,7 @@
         ]
       },
       funddrules: {
-        expertidcardno: [{ validator: validatePass, trigger: "blur" }],
+        // expertidcardno: [{ validator: validatePass, trigger: "blur" }],
         expertdepositbank: [
           { required: true, message: "璇疯緭鍏ュ紑鎴烽摱琛�", trigger: "change" }
         ],
@@ -2122,6 +2164,8 @@
               );
               return;
             }
+
+            /*
             if (
               tempDetail.idcardno == null &&
               this.businessType != "3" &&
@@ -2135,6 +2179,7 @@
               );
               return;
             }
+            */
 
             if (this.businessType == "1") {
               if (tempDetail.servicesscope == null) {
@@ -2276,30 +2321,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);
               }
-            } else {
-              this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + response.msg);
-            }
-          });
+            })
+            .catch(res => {
+              this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + res);
+            });
           //鍏抽棴绐楀彛
           this.loading = false;
           // this.getfundList();
@@ -2308,16 +2360,43 @@
     }, 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 (
-        this.form.checkstatus != 3 &&
-        this.userprofile.nickName == "闄堟厱鍗�" &&
-        this.checkObj.flowlevelone == 1
-      ) {
-        this.$modal.msgError("璇烽�夌‘璁ゆ潗鏂欑姸鎬佸凡鏀跺埌锛�");
-        return;
+      if(this.userprofile.nickName == "闄堟厱鍗�"){
+        //妫�鏌ユ槸鍚︽敹鍒扮焊璐ㄦ潗鏂�
+        if ( this.form.checkstatus != 3 && this.checkObj.flowlevelone == 1  ) {
+          this.$modal.msgError("璇风‘璁ゆ姤閿�鐨勭焊璐ㄦ潗鏂欏凡缁忔敹鍒帮紒");
+          return;
+        } 
+        
+        //妫�鏌ヤ釜绋庤绠�
+        // if ( (this.form.applytype == "1" || this.form.applytype == "2") && this.form.fundtaxtime == null ) {
+        //   this.$modal.msgError(
+        //     "鎻愪氦涓撳璐圭敤鐢宠鍗曘�佷鸡鐞嗕笓瀹剁敵璇疯垂鐢ㄧ敵璇峰崟瀹℃牳锛岄渶瑕佸厛瀹屾垚涓◣璁$畻锛�"
+        //   );
+        //   return;
+        // }
+         if ( (this.form.applytype == "1") && this.form.fundtaxtime == null ) {
+          this.$modal.msgError(
+            "鎻愪氦涓撳璐圭敤鐢宠鍗曞鏍革紝闇�瑕佸厛瀹屾垚涓◣璁$畻锛�"
+          );
+          return;
+        }
       }
+
       this.Savenow();
       console.log("淇濆瓨骞跺鎵�");
     },
@@ -2887,20 +2966,22 @@
           );
           sessionStorage.setItem("apiform", JSON.stringify(this.form));
           // 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",
-          //   message: "鐢宠澶辫触"
+          // this.$router.push({
+          //   path: "/finance/applyDetail/",
+          //   query: {
+          //     id: this.curId,
+          //     businessType: this.businessType,
+          //     operationType: this.operationType,
+          //     curCase: this.curCase
+          //   }
           // });
+          this.$modal.msgSuccess("璁$畻鎴愬姛");
+          this.handleCheck();
+        } else {
+          this.$message({
+            type: "error",
+            message: "璁$畻閿欒"
+          });
         }
       });
     },
@@ -3188,6 +3269,8 @@
     uploadSccess(response, file, fileList) {
       this.rbDetails;
       //鑾峰彇绁ㄦ嵁淇℃伅浣嶇疆
+      console.log(response);
+      console.log(file);
       if (this.activeName == 1) {
         if (response.code == 200) {
           // this.form.filename = file.raw.name;
@@ -3375,6 +3458,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