chris 3 年之前
父節點
當前提交
90b354ca58
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/views/modules/warehouse/template-add.vue

+ 4 - 3
src/views/modules/warehouse/template-add.vue

@@ -46,7 +46,7 @@
               align="center"
               label="数量">
               <template slot-scope="scope">
-                <el-input-number v-model="scope.row.count" :disabled="display" :min="1" style="width: 140px;"/>
+                <el-input-number v-model="scope.row.count" :disabled="display" :min="0" :step="1" style="width: 140px;"/>
               </template>
             </el-table-column>
             <el-table-column
@@ -169,12 +169,13 @@
       addMaterial (item) {
         if (item) {
           this.dataList.push({
-            count: item.cnt,
+            count: 0,
             materialId: item.materialId,
             materialName: item.materialName,
             notes: item.notes,
             orgId: this.$store.state.user.orgId,
-            unitName: item.unitName
+            unitName: item.unitName,
+            specifications: item.specifications
           })
         }
       },