From e1d633ddeece986c1c866d4bc28e4193f3e3c41e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 12 十月 2023 15:49:49 +0800
Subject: [PATCH] 11

---
 src/views/project/travelexpenseapply/travelexpensedetail/index.vue |   40 +++++++++++++++++++++++-----------------
 1 files changed, 23 insertions(+), 17 deletions(-)

diff --git a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue
index b714ab3..bb80450 100644
--- a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue
+++ b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -111,11 +111,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"
@@ -917,14 +917,14 @@
           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="1">寰呯敵璇锋潗鏂�</el-radio>
+                <el-radio label="2">鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡</el-radio>
                 <el-radio label="3">宸叉敹鍒版姤閿�鏉愭枡</el-radio>
               </el-radio-group>
             </el-form-item>
@@ -956,14 +956,14 @@
         <el-button
           type="primary"
           @click="submitForm"
-          v-if="operationType == 'edit' || beforehandType == '1'"
+          v-if="operationType == 'edit'||userprofile.nickName == '闄堟厱鍗�'"
           >淇� 瀛�</el-button
         >
         <el-button
           type="primary"
           @click="checksubmit"
-          v-if="operationType == 'check' && beforehandType != '1'"
-          >鎻� 浜�</el-button
+          v-if="operationType == 'check'"
+          >鎻愪氦瀹℃牳</el-button
         >
         <!--<el-button @click="cancel">閫� 鍑�</el-button>-->
       </div>
@@ -1294,11 +1294,11 @@
       baselisttages: [
         {
           id: 1,
-          name: "寰呴瀹�"
+          name: "寰呯敵璇锋潗鏂�"
         },
         {
           id: 2,
-          name: "棰勫閫氳繃绛夊緟鏉愭枡"
+          name: "鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡"
         },
         {
           id: 3,
@@ -1322,7 +1322,6 @@
       persontype: null,
       //鍒拌揪鍦�
       arriveAddr: null,
-      beforehandType: null,
       headers: {
         Authorization: "Bearer " + getToken()
       },
@@ -1385,7 +1384,6 @@
     let curId = this.$route.query.id;
     let pos = this.$route.query.pos;
     this.defaultperson = this.$route.query.routerparam;
-    this.beforehandType = this.$route.query.beforehandType;
     if (pos == 1) {
       this.handleAdd(curId);
     } else if (pos == 2) {
@@ -2158,8 +2156,12 @@
 
     //鎻愪氦瀹℃牳鎰忚
     checksubmit() {
-      if (this.form.checkstatus != 3 && this.userprofile.nickName == "闄堟厱鍗�") {
-        this.$modal.msgError("璇风‘璁ゆ敹鍒版潗鏂欏悗鍐嶆彁浜ゅ鏍革紒");
+      if (
+        this.form.checkstatus != 3 &&
+        this.userprofile.nickName == "闄堟厱鍗�" &&
+        this.checkObj.flowlevelone == 1
+      ) {
+        this.$modal.msgError("璇烽�夌‘璁ゆ潗鏂欑姸鎬佸凡鏀跺埌锛�");
         return;
       }
       let checkfundobj = {
@@ -2181,6 +2183,9 @@
         this.reset();
         this.open = false;
         this.$modal.msgSuccess("鎻愪氦瀹℃牳鎴愬姛!");
+        if (this.userprofile.nickName == "闄堟厱鍗�") {
+          this.submitForm();
+        }
         // 鍏抽棴绐楀彛
         this.$store.dispatch("tagsView/delView", this.$route);
         this.$router.go(-1);
@@ -2236,8 +2241,9 @@
                 addReimbursementpayee(rbPayees[i]);
               }
             }
-
-            this.$modal.msgSuccess("淇敼鎶ラ攢鍗曚繚瀛樻垚鍔�!");
+            if (this.userprofile.nickName != "闄堟厱鍗�") {
+              this.$modal.msgSuccess("淇敼鎶ラ攢鍗曚繚瀛樻垚鍔燂紒");
+            }
             this.open = false;
 
             // 鍏抽棴绐楀彛
@@ -2833,7 +2839,7 @@
         "departure",
         "destination",
         "traffictype",
-        "traffictype2",
+        "traffictype2"
       ];
       columns.forEach((column, index) => {
         if (index === 0) {

--
Gitblit v1.9.3