huang_an 2 년 전
부모
커밋
7be3a4f7ee
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      src/views/warehouseManagement/stockManagement/add.vue

+ 6 - 2
src/views/warehouseManagement/stockManagement/add.vue

@@ -283,7 +283,8 @@
                     :prop="`warehousingMaterialList.${$index}.batchNo`"
                     required
                   >
-                    <el-input v-model="row.batchNo"></el-input>
+                    <!-- <el-input v-model="row.batchNo"></el-input> -->
+                    {{ row.batchNo }}
                   </el-form-item>
                 </template>
               </el-table-column>
@@ -457,7 +458,6 @@
                   </template>
                 </template>
               </el-table-column>
-
               <el-table-column
                 label="重量"
                 align="center"
@@ -1367,8 +1367,11 @@
       },
       //添加明细
       async onSelectTableData(val) {
+        const res = await getCode('lot_number_code');
+
         this.warehousingMaterialList.push(
           ...val.map((next) => {
+            next.batchNo = res;
             let cur = {};
 
             next.realInventoryAmount = next.realInventoryAmount || 0;
@@ -1394,6 +1397,7 @@
             return cur;
           })
         );
+
         console.log('sasasa===', this.warehousingMaterialList);
       },
       async initData() {