Browse Source

【新增】家用工程订单-审批后进入下一张待审批订单

莫绍宝 3 năm trước cách đây
mục cha
commit
65f9e6e266

+ 17 - 3
src/views/supply/engin/components/home_examine.vue

@@ -339,9 +339,23 @@ export default {
         params.saleTypeName = saleTypeItem.saleName;
         this.formLoading = true;
         examineHome(params).then(res => {
-          this.$successMsg();
-          this.goBack();
-          this.$parent.getList();
+          if(!res.data) {
+            this.$successMsg();
+            this.goBack();
+            this.$parent.getList();
+          }else {
+            this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
+              confirmButtonText: '跳转',
+              cancelButtonText: '取消',
+              type: 'warning'
+            }).then(() => {
+              this.$successMsg('进入下一张待审批订单');
+              this.detailData = res.data;
+            }).catch(() => {
+              this.goBack();
+              this.$parent.getList();        
+            });
+          }
         }).finally(res => {
           this.formLoading = false;
         })

+ 1 - 0
src/views/supply/engin/components/home_form.vue

@@ -701,6 +701,7 @@ export default {
       }
       this.isShowDialog = true;
       this.dialogTable_currentPage = 1;
+      this.screenForm.loginNum = this.mainForm.loginNum;
       this.getHomeLoginList();
     },