From 29b4ba2b27bd486b6beccb6f03678d8eb8d7b862 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 16 十月 2023 11:43:31 +0800
Subject: [PATCH] 11

---
 src/views/project/fund/applyDetail/index.vue |   43 +++++++++++++++++++++++++------------------
 1 files changed, 25 insertions(+), 18 deletions(-)

diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index 69bd09a..f9d9842 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -147,10 +147,10 @@
           </el-col>
 
           <el-col :span="3">
-            <div style="margin-bottom: 15px;"
+            <div
+              style="margin-bottom: 15px;"
               v-if="
-                (businessType == 1 || businessType == 2 || businessType == 5) &&
-                  operationType != 'detail'
+                userprofile.nickName == '闄堟厱鍗�' && operationType == 'check'
               "
             >
               <el-button
@@ -738,15 +738,15 @@
           v-if="operationType == 'check'"
         >
           <el-col :span="7">
-            <el-form-item label="棰勫鐘舵��" prop="infoid">
+            <el-form-item label="鐢宠鏉愭枡鐘舵��" prop="infoid">
               <el-radio-group
                 v-model="form.checkstatus"
                 align="left"
                 :disabled="userprofile.nickName != '闄堟厱鍗�'"
               >
-                <el-radio label="1">寰呴瀹�</el-radio>
-                <el-radio label="2">棰勫閫氳繃绛夊緟鏉愭枡</el-radio>
-                <el-radio label="3">宸叉敹鍒版姤閿�鏉愭枡</el-radio>
+                <el-radio :label="1">寰呯敵璇锋潗鏂�</el-radio>
+                <el-radio :label="2">鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡</el-radio>
+                <el-radio :label="3">宸叉敹鍒版姤閿�鏉愭枡</el-radio>
               </el-radio-group>
             </el-form-item>
           </el-col>
@@ -780,8 +780,7 @@
           v-if="
             operationType == 'add' ||
               operationType == 'update' ||
-              ismanager == true ||
-              beforehandType == '1'
+              ismanager == true
           "
           >鎻愪氦淇濆瓨</el-button
         >
@@ -794,7 +793,7 @@
         <el-button
           type="primary"
           @click="checksubmit"
-          v-if="operationType == 'check' && beforehandType != '1'"
+          v-if="operationType == 'check'"
           >鎻愪氦瀹℃牳</el-button
         >
         <el-button @click="cancel">鍏� 闂�</el-button>
@@ -1469,15 +1468,15 @@
       baselisttages: [
         {
           id: 1,
-          name: "寰呴瀹�"
+          name: "鏉愭枡寰呭鏍�"
         },
         {
           id: 2,
-          name: "棰勫閫氳繃绛夊緟鏉愭枡"
+          name: "瀹℃煡閫氳繃绛夊緟閭瘎绾歌川鏉愭枡"
         },
         {
           id: 3,
-          name: "宸叉敹鍒版姤閿�鏉愭枡"
+          name: "宸叉敹鍒扮焊璐ㄦ潗鏂�"
         }
       ],
 
@@ -1614,7 +1613,6 @@
         money: "0",
         startTime: ""
       },
-      beforehandType: null,
       //鏈嶅姟璐圭敤鍙傛暟
       expenseQueryParams: {
         pageNum: 1,
@@ -1740,7 +1738,6 @@
       this.curId = this.$route.query.id;
       this.businessType = this.$route.query.businessType;
       this.operationType = this.$route.query.operationType;
-      this.beforehandType = this.$route.query.beforehandType;
 
       //鑾峰彇璐圭敤椤圭洰绫诲瀷
       this.getFeeTypes();
@@ -2225,7 +2222,9 @@
             console.log(this.form);
             console.log(response, "淇濆瓨杩斿弬");
             if (response.code === 200) {
-              this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
+              if (this.userprofile.nickName != "闄堟厱鍗�") {
+                this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
+              }
               this.$store.dispatch("tagsView/delView", this.$route);
               this.$router.push({
                 path: "/finance/applyDetail/",
@@ -2250,8 +2249,13 @@
 
     //瀹℃壒鎻愪氦
     checksubmit() {
-      if (!this.form.checkstatus && this.userprofile.nickName == "闄堟厱鍗�") {
-        this.$modal.msgError("璇风‘璁ら瀹$姸鎬佸悗鍐嶆彁浜ゅ鏍革紒");
+      console.log(this.checkObj.flowlevelone);
+      if (
+        this.form.checkstatus != 3 &&
+        this.userprofile.nickName == "闄堟厱鍗�" &&
+        this.checkObj.flowlevelone == 1
+      ) {
+        this.$modal.msgError("璇烽�夌‘璁ゆ潗鏂欑姸鎬佸凡鏀跺埌锛�");
         return;
       }
       let checkFundObj = {
@@ -2264,6 +2268,9 @@
         //鍏抽棴绐楀彛
         this.reset();
         this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
+        if (this.userprofile.nickName == "闄堟厱鍗�") {
+          this.submitForm();
+        }
         this.$store.dispatch("tagsView/delView", this.$route);
         this.$router.go(-1);
       });

--
Gitblit v1.9.3