Эх сурвалжийг харах

Fix:产品零件选择后默认数量=0

chris 3 жил өмнө
parent
commit
c0c4a232a5

+ 2 - 2
src/views/modules/tech/product-add-or-update.vue

@@ -158,7 +158,7 @@
                 label="数量"
                 width="170">
                 <template slot-scope="scope">
-                  <el-input-number v-model="scope.row.cnt" :disabled="display" :min="1" style="width: 140px;"/>
+                  <el-input-number v-model="scope.row.cnt" :disabled="display" :min="0" style="width: 140px;"/>
                 </template>
               </el-table-column>
               <el-table-column
@@ -354,7 +354,7 @@
           materialId: item.materialId,
           materialName: item.materialName,
           specifications: item.specifications,
-          cnt: item.cnt,
+          cnt: 0,
           unitName: item.unitName,
           notes: item.notes
         })