Ver código fonte

修改作业类型获取

lichao 3 anos atrás
pai
commit
303644306c

+ 10 - 8
src/views/Warehousing/cargoClearance/AddOrUpdate.vue

@@ -3184,10 +3184,6 @@ export default {
     this.getDicts("data_stltype_type").then((response) => {
       this.fStltypeOptions = response.data;
     });
-    this.getDicts("st_trans_type").then((response) => {
-      this.businessTypeOption = response.data;
-      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("data_unitfees").then((response) => {
       this.fFeetUnitOptions = response.data;
     });
@@ -3197,10 +3193,6 @@ export default {
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfweighOptions = response.data;
     });
-    this.getDicts("storage_type").then((response) => {
-      this.fStorageTypeOptions = response.data;
-      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("sys_car_type").then((response) => {
       this.fCartypeOptions = response.data;
     });
@@ -3256,6 +3248,16 @@ export default {
     this.getRow();
     this.getRow2();
   },
+  activated() {
+    this.getDicts("st_trans_type").then((response) => {
+      this.businessTypeOption = response.data;
+      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
+    });
+    this.getDicts("storage_type").then((response) => {
+      this.fStorageTypeOptions = response.data;
+      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
+    });
+  },
   filters: {
     fStorageFormat(row) {
       let name;

+ 10 - 8
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -2646,10 +2646,6 @@ export default {
     this.getDicts("data_stltype_type").then((response) => {
       this.fStltypeOptions = response.data;
     });
-    this.getDicts("st_goodstf_type").then((response) => {
-      this.businessTypeOption = response.data;
-      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("data_unitfees").then((response) => {
       this.fFeetUnitOptions = response.data;
     });
@@ -2659,10 +2655,6 @@ export default {
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfweighOptions = response.data;
     });
-    this.getDicts("storage_type").then((response) => {
-      this.fStorageTypeOptions = response.data;
-      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("sys_car_type").then((response) => {
       this.fCartypeOptions = response.data;
     });
@@ -2729,6 +2721,16 @@ export default {
     this.getRow();
     this.getRow2();
   },
+  activated() {
+    this.getDicts("st_goodstf_type").then((response) => {
+      this.businessTypeOption = response.data;
+      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
+    });
+    this.getDicts("storage_type").then((response) => {
+      this.fStorageTypeOptions = response.data;
+      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
+    });
+  },
   filters: {
     fStorageFormat(row) {
       let name;

+ 10 - 8
src/views/Warehousing/inAndOutStock/AddOrUpdate.vue

@@ -5019,10 +5019,6 @@ export default {
     this.getDicts("data_stltype_type").then((response) => {
       this.fStltypeOptions = response.data;
     });
-    this.getDicts("st_out_type").then((response) => {
-      this.businessTypeOption = response.data;
-      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("data_unitfees").then((response) => {
       this.fFeetUnitOptions = response.data;
     });
@@ -5032,10 +5028,6 @@ export default {
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfweighOptions = response.data;
     });
-    this.getDicts("storage_type").then((response) => {
-      this.fStorageTypeOptions = response.data;
-      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("sys_car_type").then((response) => {
       this.fCartypeOptions = response.data;
     });
@@ -5095,6 +5087,16 @@ export default {
     this.getRow();
     this.getRow2();
   },
+  activated() {
+    this.getDicts("st_out_type").then((response) => {
+      this.businessTypeOption = response.data;
+      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
+    });
+    this.getDicts("storage_type").then((response) => {
+      this.fStorageTypeOptions = response.data;
+      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
+    });
+  },
   filters: {
     fBsdateFormat(row) {
       if (row) {

+ 10 - 8
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -6708,10 +6708,6 @@ export default {
     this.getDicts("data_stltype_type").then((response) => {
       this.fStltypeOptions = response.data;
     });
-    this.getDicts("st_in_type").then((response) => {
-      this.businessTypeOption = response.data;
-      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("data_unitfees").then((response) => {
       this.fFeetUnitOptions = response.data;
     });
@@ -6724,10 +6720,6 @@ export default {
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfpledgeOptions = response.data;
     });
-    this.getDicts("storage_type").then((response) => {
-      this.fStorageTypeOptions = response.data;
-      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("unload_mode").then((response) => {
       this.unloadModes = response.data;
     });
@@ -6836,6 +6828,16 @@ export default {
     this.queryUser();
     this.getRow();
   },
+  activated() {
+    this.getDicts("st_in_type").then((response) => {
+      this.businessTypeOption = response.data;
+      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
+    });
+    this.getDicts("storage_type").then((response) => {
+      this.fStorageTypeOptions = response.data;
+      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
+    });
+  },
   filters: {
     fStorageFormat(row) {
       let name;

+ 10 - 8
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -4825,10 +4825,6 @@ export default {
     this.getDicts("data_stltype_type").then((response) => {
       this.fStltypeOptions = response.data;
     });
-    this.getDicts("st_out_type").then((response) => {
-      this.businessTypeOption = response.data;
-      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("data_unitfees").then((response) => {
       this.fFeetUnitOptions = response.data;
     });
@@ -4838,10 +4834,6 @@ export default {
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfweighOptions = response.data;
     });
-    this.getDicts("storage_type").then((response) => {
-      this.fStorageTypeOptions = response.data;
-      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("sys_car_type").then((response) => {
       this.fCartypeOptions = response.data;
     });
@@ -4899,6 +4891,16 @@ export default {
     this.getRow2();
     this.form.fBstime = Date.parse(new Date());
   },
+  activated() {
+    this.getDicts("st_out_type").then((response) => {
+      this.businessTypeOption = response.data;
+      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
+    });
+    this.getDicts("storage_type").then((response) => {
+      this.fStorageTypeOptions = response.data;
+      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
+    });
+  },
   filters: {
     fBsdateFormat(row) {
       if (row) {

+ 10 - 8
src/views/Warehousing/stockTransfer/AddOrUpdate.vue

@@ -4018,10 +4018,6 @@ export default {
     this.getDicts("data_stltype_type").then((response) => {
       this.fStltypeOptions = response.data;
     });
-    this.getDicts("st_trans_type").then((response) => {
-      this.businessTypeOption = response.data;
-      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("data_unitfees").then((response) => {
       this.fFeetUnitOptions = response.data;
     });
@@ -4031,10 +4027,6 @@ export default {
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfweighOptions = response.data;
     });
-    this.getDicts("storage_type").then((response) => {
-      this.fStorageTypeOptions = response.data;
-      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
-    });
     this.getDicts("sys_car_type").then((response) => {
       this.fCartypeOptions = response.data;
     });
@@ -4111,6 +4103,16 @@ export default {
     this.getRow();
     this.getRow2();
   },
+  activated() {
+    this.getDicts("st_trans_type").then((response) => {
+      this.businessTypeOption = response.data;
+      localStorage.setItem("businessTypeList", JSON.stringify(response.data));
+    });
+    this.getDicts("storage_type").then((response) => {
+      this.fStorageTypeOptions = response.data;
+      localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
+    });
+  },
   filters: {
     fStorageFormat(row) {
       let name;