Browse Source

bug修改

mengy 3 years ago
parent
commit
e95f9a0ea1

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

@@ -227,20 +227,22 @@ export default {
227
       }
227
       }
228
       Approval(data)
228
       Approval(data)
229
         .then((res) => {
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
         .catch((err) => {
247
         .catch((err) => {
246
           console.log(err)
248
           console.log(err)
@@ -257,20 +259,23 @@ export default {
257
       }
259
       }
258
       yjcgApproval(data)
260
       yjcgApproval(data)
259
         .then((res) => {
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
         .catch((err) => {
280
         .catch((err) => {
276
           console.log(err)
281
           console.log(err)

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

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

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

@@ -524,7 +524,7 @@ export default {
524
                 this.processActive = i
524
                 this.processActive = i
525
               }
525
               }
526
               this.process.push(ele)
526
               this.process.push(ele)
527
-            }
527
+            }  
528
             if (this.process[0].content == 0) {
528
             if (this.process[0].content == 0) {
529
               this.process[0].content = this.userInfo.uid
529
               this.process[0].content = this.userInfo.uid
530
             } else {
530
             } else {
@@ -552,7 +552,7 @@ export default {
552
         type = "xzsq"
552
         type = "xzsq"
553
       }
553
       }
554
       let ongoingStepNum = null
554
       let ongoingStepNum = null
555
-      if(this.stepActive < 4){
555
+      if(this.stepActive < 4 && this.button !== "暂存"){
556
         ongoingStepNum = this.stepActive + 1
556
         ongoingStepNum = this.stepActive + 1
557
       }else{
557
       }else{
558
         ongoingStepNum = this.stepActive
558
         ongoingStepNum = this.stepActive
@@ -567,9 +567,23 @@ export default {
567
       updateList(data).then((res) => {
567
       updateList(data).then((res) => {
568
         if (res.code == 200) {
568
         if (res.code == 200) {
569
           this.loading=false;
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
                 depotId: this.depotId,
524
                 depotId: this.depotId,
525
                 roleIds: this.rolesId
525
                 roleIds: this.rolesId
526
             }
526
             }
527
+            let resData = []
527
             roleList(params)
528
             roleList(params)
528
                 .then(res => {
529
                 .then(res => {
529
                     if (res.code == 200) {
530
                     if (res.code == 200) {
531
+                        resData = res.data
530
                         this.tableData.forEach(item => {
532
                         this.tableData.forEach(item => {
531
                             if (item.title.indexOf("主管科长") != -1) {
533
                             if (item.title.indexOf("主管科长") != -1) {
532
                                 this.$set(item, "approverSelect", res.data[33])
534
                                 this.$set(item, "approverSelect", res.data[33])
@@ -536,10 +538,6 @@ export default {
536
                                 this.$set(item, "approverSelect", res.data[35])
538
                                 this.$set(item, "approverSelect", res.data[35])
537
                             } else if (item.title.indexOf("总经理") != -1) {
539
                             } else if (item.title.indexOf("总经理") != -1) {
538
                                 this.$set(item, "approverSelect", res.data[34])
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
                 .catch(err => {
545
                 .catch(err => {
548
                     console.log(err)
546
                     console.log(err)
549
                 })
547
                 })
550
-            if(this.type == 'xzjh'){
548
+            if(this.type == 'xzjh' || this.type == 'yjcg'){
551
                 let paramsNew = {
549
                 let paramsNew = {
552
                     depotId: 1,
550
                     depotId: 1,
553
                     roleIds: 37
551
                     roleIds: 37
@@ -565,6 +563,12 @@ export default {
565
                     .catch(err => {
563
                     .catch(err => {
566
                         console.log(err)
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
             // roleIds: this.copyUser.roleIds,
582
             // roleIds: this.copyUser.roleIds,
583
             // storehouseIds: this.copyUser.storehouseIds,
583
             // storehouseIds: this.copyUser.storehouseIds,
584
             // storehouseNames: this.copyUser.storehouseNames,
584
             // storehouseNames: this.copyUser.storehouseNames,
585
-            uId: this.copyUser.uid,
586
-            // uName: this.copyUser.uName,
585
+            uId: this.user.uId,
587
             // ustatus: this.copyUser.ustatus,
586
             // ustatus: this.copyUser.ustatus,
588
             uPassword: this.formPassword.uPassword
587
             uPassword: this.formPassword.uPassword
589
           }
588
           }