Commit 0a21e094 authored by zhengyi's avatar zhengyi

新建订单商品默认件数最小为1

parent 4d1aa580
...@@ -475,7 +475,7 @@ ...@@ -475,7 +475,7 @@
<el-input-number <el-input-number
v-model="scope.row.num" v-model="scope.row.num"
:controls="false" :controls="false"
:min="0" :min="1"
:precision="0" :precision="0"
:disabled="!canAddProduct" :disabled="!canAddProduct"
/> />
...@@ -2371,7 +2371,14 @@ export default { ...@@ -2371,7 +2371,14 @@ export default {
}) })
}, },
addProduct(data) { addProduct(data) {
this.form.orderItemVOList.push(data || { prodAttrArr: [] }) this.form.orderItemVOList.push(data || {
prodAttrArr: [],
prodId: null,
worth: '',
volume: '',
weight: '',
num: 1
})
}, },
// 计算商品运费(根据货值计算保费) // 计算商品运费(根据货值计算保费)
calculationPrice() { calculationPrice() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment