huang_an 2 lat temu
rodzic
commit
86918e44a9

+ 6 - 1
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -125,7 +125,7 @@
                 ></el-option>
               </el-select> -->
               <selectTree
-                ref="tree"
+                ref="trees"
                 class="form-ipt"
                 :isBindPlan="
                   !!(warehousingMaterialList && warehousingMaterialList.length)
@@ -627,6 +627,10 @@
         this.$forceUpdate();
       },
       eomSuccess(row) {
+        console.log(row);
+        this.formData.extInfo.assetType = row.tableData[0].productId;
+        this.$refs.trees.valueTitle = row.tableData[0].productName;
+        this.title = row.tableData[0].productName;
         this.formData.documentSource = row.orderNo;
         this.onSelectTableData(row.tableData, 1);
         this.$forceUpdate();
@@ -1095,6 +1099,7 @@
         if (this.formData.extInfo.assetType == 7) {
           this.formData.extInfo.documentSource = '';
         }
+        this.formData.documentSource = '';
       },
       getSupplier() {
         return new Promise((resolve, reject) => {

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

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