Browse Source

fix: 修改pickAdd方法参数,确保数据列表正确处理

xieyong 2 days ago
parent
commit
57dbadf300
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/produce/index.vue

+ 2 - 2
src/views/produce/index.vue

@@ -2097,14 +2097,14 @@
         });
       },
 
-      async pickAdd(type, dataList) {
+      async pickAdd(data) {
         if (this.workListIds.length > 1) {
           return this.$message.warning('领料只能选择一个工单!');
         } else if (this.workListIds.length < 1) {
           return this.$message.warning('请选择工单!');
         }
 
-        if (dataList.length == 0) {
+        if (data?.dataList.length == 0) {
           this.pickingShow = true;
         } else {
           const res = await parameterGetByCode({