Browse Source

修改状态和业务日期bug

Qukatie 1 year ago
parent
commit
583e359c6a

+ 4 - 5
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/index.vue

@@ -276,7 +276,8 @@ export default {
         }, {
           label: '业务日期',
           prop: "businesDate",
-          // searchProp: "businesDateList",
+          overHidden: true,
+          searchProp: "businesDateList",
           type: "date",
           overHidden: true,
           search: true,
@@ -447,7 +448,7 @@ export default {
       let storageId = this.search.storageName;
       let searchWithoutStorageName = { ...this.search };
       delete searchWithoutStorageName.storageName;
-
+      var obj2 = this.deepClone(this.search)
       params = {
         ...params,
         current: page.currentPage,
@@ -483,9 +484,7 @@ export default {
         })
         this.loading = false
       }).finally(() => {
-        if(this.search.statusName==''){
-          this.search.statusName='待入库'
-        }
+        this.search=obj2
         this.loading = false
       })
     },

+ 5 - 3
src/views/tirePartsMall/salesManagement/outboundWorkOrder/index.vue

@@ -446,6 +446,7 @@ export default {
     },
     onLoad(page, params = {}) {
       console.log(params);
+      var obj2 = this.deepClone(this.search)
       params = {
         ...params,
         current: page.currentPage,
@@ -470,9 +471,10 @@ export default {
         })
         this.loading = false
       }).finally(() => {
-        if(this.search.statusName==''){
-          this.search.statusName='待出库'
-        }
+        // if(this.search.statusName==''){
+        //   this.search.statusName='待出库'
+        // }
+        this.search=obj2
         console.log(this.search)
         this.loading = false
       })