mengy 3 роки тому
батько
коміт
e95f9a0ea1

+ 33 - 28
shanXiPlatform/src/views/home/daiBan/pending/xunzengDetails.vue

@@ -227,20 +227,22 @@ export default {
227 227
       }
228 228
       Approval(data)
229 229
         .then((res) => {
230
-          sessionStorage.setItem("store", JSON.stringify(this.$store.state))
231
-          // location.reload();
232
-
233
-          this.$store.commit({
234
-            type: "changependingCount",
235
-            pendingCount: this.$store.state.pendingCount,
236
-          })
237
-
238
-          this.getCheckList()
239
-          this.getPending()
240
-          // this.$router.push({
241
-          //   path: "/dashboard/daiban/pending/xunzengDetails",
242
-          //   item: this.$route.query,
243
-          // })
230
+          if(res.code == 200){
231
+            sessionStorage.setItem("store", JSON.stringify(this.$store.state))
232
+            // location.reload();
233
+            this.$store.commit({
234
+              type: "changependingCount",
235
+              pendingCount: this.$store.state.pendingCount,
236
+            })
237
+            this.getCheckList()
238
+            this.getPending()
239
+            // this.$router.push({
240
+            //   path: "/dashboard/daiban/pending/xunzengDetails",
241
+            //   item: this.$route.query,
242
+            // })
243
+          }else{
244
+            this.$message({message:res.msg,type: 'error'})
245
+          }
244 246
         })
245 247
         .catch((err) => {
246 248
           console.log(err)
@@ -257,20 +259,23 @@ export default {
257 259
       }
258 260
       yjcgApproval(data)
259 261
         .then((res) => {
260
-          sessionStorage.setItem("store", JSON.stringify(this.$store.state))
261
-          // location.reload();
262
-
263
-          this.$store.commit({
264
-            type: "changependingCount",
265
-            pendingCount: this.$store.state.pendingCount,
266
-          })
267
-
268
-          this.getCheckList()
269
-          this.getPending()
270
-          this.$router.push({
271
-            path: "/dashboard/daiban/pending/xunzengDetails",
272
-            item: this.$route.query,
273
-          })
262
+          if(res.code == 200){
263
+            sessionStorage.setItem("store", JSON.stringify(this.$store.state))
264
+            // location.reload();
265
+            this.$store.commit({
266
+              type: "changependingCount",
267
+              pendingCount: this.$store.state.pendingCount,
268
+            })
269
+            this.getCheckList()
270
+            this.getPending()
271
+            // this.$router.push({
272
+            //   path: "/dashboard/daiban/pending/xunzengDetails",
273
+            //   item: this.$route.query,
274
+            // })
275
+          }else{
276
+            this.$message({message:res.msg,type: 'error'})
277
+          }
278
+          
274 279
         }) 
275 280
         .catch((err) => {
276 281
           console.log(err)

+ 9 - 9
shanXiPlatform/src/views/home/daiBan/processed/index.vue

@@ -44,17 +44,17 @@
44 44
           <div class="applyTime" v-if="item.type.indexOf('code') == -1">{{ item.applyTime }}</div>
45 45
           <div class="applyTime" v-if="item.type.indexOf('code') == -1">{{ item.startDate }}</div>
46 46
           <!-- 粮情 -->
47
-          <span
47
+          <!-- <span
48 48
             style="color: #037d41"
49 49
             @click="goDetails(item)"
50 50
             v-if="item.auditState == 4 && item.type.indexOf('code') != -1"
51 51
             >已处理</span
52
-          >
52
+          > -->
53 53
           <!-- 机械通风 -->
54 54
           <span
55 55
             @click="goDetails(item)"
56
-            v-if="item.auditState == 0 && item.type.indexOf('code') == -1"
57
-            >审批</span
56
+            v-if="(item.auditState == 0 || item.auditState == 1) && item.type.indexOf('code') == -1"
57
+            >审批</span
58 58
           >
59 59
           <!-- <el-button
60 60
             type="success"
@@ -67,7 +67,7 @@
67 67
           <span
68 68
             style="color: #037d41"
69 69
             @click="goDetails(item)"
70
-            v-else-if="item.auditState == 1 &&item.type.indexOf('code') == -1"
70
+            v-else-if="(item.auditState == 3 || item.auditState == 4) &&item.type.indexOf('code') == -1"
71 71
             >审批通过</span
72 72
           >
73 73
           <!-- <el-button
@@ -92,12 +92,12 @@
92 92
             v-else-if="item.auditState == 2"
93 93
             >审批不通过</el-button
94 94
           > -->
95
-          <span
95
+          <!-- <span
96 96
             style="color: #037d41"
97 97
             @click="goDetails(item)"
98 98
             v-else-if="item.auditState == 3 && item.type.indexOf('code') == -1"
99 99
             >审批通过</span
100
-          >
100
+          > -->
101 101
           <!-- <el-button
102 102
             type="success"
103 103
             plain
@@ -106,12 +106,12 @@
106 106
             v-else-if="item.auditState == 3"
107 107
             >进行中</el-button
108 108
           > -->
109
-          <span
109
+          <!-- <span
110 110
             style="color: #037d41"
111 111
             @click="goDetails(item)"
112 112
             v-if="item.auditState == 4 && item.type.indexOf('code') == -1"
113 113
             >审批通过</span
114
-          >
114
+          > -->
115 115
           <!-- <el-button
116 116
             type="success"
117 117
             plain

+ 19 - 5
shanXiPlatform/src/views/reservesManagement/fumigationManagement/steps.vue

@@ -524,7 +524,7 @@ export default {
524 524
                 this.processActive = i
525 525
               }
526 526
               this.process.push(ele)
527
-            }
527
+            }  
528 528
             if (this.process[0].content == 0) {
529 529
               this.process[0].content = this.userInfo.uid
530 530
             } else {
@@ -552,7 +552,7 @@ export default {
552 552
         type = "xzsq"
553 553
       }
554 554
       let ongoingStepNum = null
555
-      if(this.stepActive < 4){
555
+      if(this.stepActive < 4 && this.button !== "暂存"){
556 556
         ongoingStepNum = this.stepActive + 1
557 557
       }else{
558 558
         ongoingStepNum = this.stepActive
@@ -567,9 +567,23 @@ export default {
567 567
       updateList(data).then((res) => {
568 568
         if (res.code == 200) {
569 569
           this.loading=false;
570
-          this.$router.push({
571
-            path: "/reservesManagement/fumigationManagement",
572
-          })
570
+          if(this.button == "保存"){
571
+            this.stepActive = this.stepActive + 1
572
+            this.processId = this.$route.query.processId
573
+            this.step = this.stepActive + 1
574
+            this.totalData = [] 
575
+            this.tableData = []   
576
+            this.process = [] 
577
+            this.subList = []
578
+            this.getCheckList()
579
+          }else{
580
+            this.$router.push({
581
+              path: "/reservesManagement/fumigationManagement",
582
+            })
583
+          }
584
+          // this.$router.push({
585
+          //     path: "/reservesManagement/fumigationManagement",
586
+          //   })
573 587
         }
574 588
       })
575 589
     },

+ 9 - 5
shanXiPlatform/src/views/systemManagement/userManagement/approverManagement/index.vue

@@ -524,9 +524,11 @@ export default {
524 524
                 depotId: this.depotId,
525 525
                 roleIds: this.rolesId
526 526
             }
527
+            let resData = []
527 528
             roleList(params)
528 529
                 .then(res => {
529 530
                     if (res.code == 200) {
531
+                        resData = res.data
530 532
                         this.tableData.forEach(item => {
531 533
                             if (item.title.indexOf("主管科长") != -1) {
532 534
                                 this.$set(item, "approverSelect", res.data[33])
@@ -536,10 +538,6 @@ export default {
536 538
                                 this.$set(item, "approverSelect", res.data[35])
537 539
                             } else if (item.title.indexOf("总经理") != -1) {
538 540
                                 this.$set(item, "approverSelect", res.data[34])
539
-                            } else if (
540
-                                item.title.indexOf("分公司主管处室") != -1
541
-                            ) {
542
-                                this.$set(item, "approverSelect", res.data[37])
543 541
                             }
544 542
                         })
545 543
                     }
@@ -547,7 +545,7 @@ export default {
547 545
                 .catch(err => {
548 546
                     console.log(err)
549 547
                 })
550
-            if(this.type == 'xzjh'){
548
+            if(this.type == 'xzjh' || this.type == 'yjcg'){
551 549
                 let paramsNew = {
552 550
                     depotId: 1,
553 551
                     roleIds: 37
@@ -565,6 +563,12 @@ export default {
565 563
                     .catch(err => {
566 564
                         console.log(err)
567 565
                     })
566
+            }else{
567
+                this.tableData.forEach(item => {
568
+                    if ( item.title.indexOf("分公司主管处室") != -1 ) {
569
+                        this.$set(item, "approverSelect", resData[37])
570
+                    }
571
+                })
568 572
             }
569 573
         },
570 574
         // 头部下拉选的值发生改变时

+ 1 - 2
shanXiPlatform/src/views/systemManagement/userManagement/userManagement/addUser.vue

@@ -582,8 +582,7 @@ export default {
582 582
             // roleIds: this.copyUser.roleIds,
583 583
             // storehouseIds: this.copyUser.storehouseIds,
584 584
             // storehouseNames: this.copyUser.storehouseNames,
585
-            uId: this.copyUser.uid,
586
-            // uName: this.copyUser.uName,
585
+            uId: this.user.uId,
587 586
             // ustatus: this.copyUser.ustatus,
588 587
             uPassword: this.formPassword.uPassword
589 588
           }