Bladeren bron

BUG修复

seimin 3 jaren geleden
bovenliggende
commit
2eff2689fa
1 gewijzigde bestanden met toevoegingen van 19 en 1 verwijderingen
  1. 19 1
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 19 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -929,6 +929,14 @@ export class HushijiandanComponent implements OnInit {
929 929
           this.goodsLis = [];
930 930
           this.getOrderList();
931 931
           this.getDeptTaskType();
932
+        } else if (data.status == 1000033) {
933
+          //重复建单那策略
934
+          this.repeatMsg = data.msg;
935
+          this.showDelModal(
936
+            this.confirmPostData,
937
+            "accompany5",
938
+            this.confirmYuyue
939
+          ); //yeye
932 940
         } else {
933 941
           this.showPromptModal("创建", false, data.msg);
934 942
         }
@@ -936,7 +944,7 @@ export class HushijiandanComponent implements OnInit {
936 944
   }
937 945
   cancel() {
938 946
     this.confirmSub = false;
939
-    this.confirmPostData = {};
947
+    // this.confirmPostData = {};
940 948
     this.confirmYuyue = false;
941 949
     this.btnLoading = false;
942 950
   }
@@ -2097,6 +2105,16 @@ export class HushijiandanComponent implements OnInit {
2097 2105
           } else {
2098 2106
             this.showPromptModal("创建", false, data.msg);
2099 2107
           }
2108
+        } else if (this.sourceType === "accompany5") {
2109
+          // 陪检
2110
+          if (data.status == 200) {
2111
+            this.showPromptModal("创建", true, "");
2112
+            this.goodsLis = [];
2113
+            this.getOrderList();
2114
+            this.getDeptTaskType();
2115
+          } else {
2116
+            this.showPromptModal("创建", false, data.msg);
2117
+          }
2100 2118
         }
2101 2119
       });
2102 2120
   }