huang_an преди 2 години
родител
ревизия
ad34c33c27

+ 2 - 0
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -77,6 +77,7 @@
               prop="documentSource"
             >
               <el-input
+                @input="$forceUpdate()"
                 placeholder="请输入"
                 @change="handleDocumentSourceChange"
                 v-model="formData.documentSource"
@@ -798,6 +799,7 @@
       //     })
       // },
       handleSetting(row) {
+        row.bizTypes = this.formData.bizType;
         this.$refs.detailSelectRef
           .open(row, row.warehouseLedgerDetails || [])
           .then((res) => {

+ 10 - 4
src/views/warehouseManagement/outgoingManagement/components/detailSelect.vue

@@ -312,11 +312,13 @@
         const { data } = await getWarehouseList();
         this.warehouseList = data;
       },
-      handleCurrentChange() {
+      handleCurrentChange(val) {
+        this.formData.pageNum = val;
         this.handleList();
       },
-      handleSizeChange() {
-        this.formData.pageNum = 1;
+      handleSizeChange(val) {
+        // this.formData.pageNum = 1;
+        this.formData.size = val;
         this.handleList();
       },
       selecctedRow(val) {
@@ -329,7 +331,11 @@
         this.batchVisible = false;
         this.infoData = infoData;
         this.tableData = [];
-        this.formData = {};
+        // console.log('wqwq', this.infoData.assetCode);
+        this.formData = { pageNum: 1, size: 10 };
+        if (this.infoData.bizTypes == 3) {
+          this.formData.code = this.infoData.assetCode;
+        }
         this.formData.dateType = 2;
 
         this.memo1 = memo || [];

+ 3 - 3
src/views/warehouseManagement/outgoingManagement/components/pickOrder.vue

@@ -63,7 +63,7 @@
         pages: {
           pageNum: 1,
           size: 10,
-          status: 1
+          status: 0
         },
         total: 0,
         tableData: [],
@@ -138,7 +138,7 @@
         // this.tableData = res.data.list;
         // this.total = res.data.count;
         return pickOrderPage({
-          status: 1,
+          status: 0,
           pageNum: page,
           size: limit,
           ...where
@@ -156,7 +156,7 @@
             pageNum: 1,
             size: 10,
             where: {
-              status: 1
+              status: 0
             }
           });
         });