Browse Source

Merge branch 'master' of http://192.168.1.160:3000/zhaohanlin/rtk-web-wms-cloud

乐菲 1 week ago
parent
commit
3369c07a32
1 changed files with 29 additions and 0 deletions
  1. 29 0
      src/views/wms/output/inrequest/components/InRequestForm.vue

+ 29 - 0
src/views/wms/output/inrequest/components/InRequestForm.vue

@@ -447,6 +447,7 @@ export default {
           }
           const {
             data: { list },
+<<<<<<< HEAD
           } = await InRequestApi.getMaterialPage(params);
 
           // 每次搜索都重新赋值,保证列表始终是最新数据
@@ -464,6 +465,34 @@ export default {
             this.materialNameList = [];
           }
         } finally {
+=======
+          } = await InRequestApi.getMaterialPage({
+            code: query,
+            pageSize: 999,
+          });
+          this.materialNoList = list || [];
+        }, 200);
+      } else {
+        this.materialNoList = [];
+      }
+    },
+    changeMaterialNo(value) {
+      const data = value.split("-");
+      this.materialNoList.map((v, i) => {
+        if (i == data[0]) {
+          v.materialNo = v.code;
+          v.materialName = v.name;
+          this.formData.list[data[1]] = v;
+          this.formData.list = [...this.formData.list];
+        }
+      });
+    },
+    remoteMaterialName(query) {
+      if (query !== "") {
+        const that = this;
+        this.loading = true;
+        setTimeout(async () => {
+>>>>>>> 9e52fcef6409489c17ce7d5a2167c411be03d248
           this.loading = false;
         }
       } else {