seimin %!s(int64=3) %!d(string=hai) anos
pai
achega
2eff2689fa
Modificáronse 1 ficheiros con 19 adicións e 1 borrados
  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
           this.goodsLis = [];
929
           this.goodsLis = [];
930
           this.getOrderList();
930
           this.getOrderList();
931
           this.getDeptTaskType();
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
         } else {
940
         } else {
933
           this.showPromptModal("创建", false, data.msg);
941
           this.showPromptModal("创建", false, data.msg);
934
         }
942
         }
@@ -936,7 +944,7 @@ export class HushijiandanComponent implements OnInit {
936
   }
944
   }
937
   cancel() {
945
   cancel() {
938
     this.confirmSub = false;
946
     this.confirmSub = false;
939
-    this.confirmPostData = {};
947
+    // this.confirmPostData = {};
940
     this.confirmYuyue = false;
948
     this.confirmYuyue = false;
941
     this.btnLoading = false;
949
     this.btnLoading = false;
942
   }
950
   }
@@ -2097,6 +2105,16 @@ export class HushijiandanComponent implements OnInit {
2097
           } else {
2105
           } else {
2098
             this.showPromptModal("创建", false, data.msg);
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
   }