新增了编辑可修改库存
This commit is contained in:
parent
ed6bea9962
commit
250654511b
@ -44,6 +44,13 @@
|
|||||||
type: 'digit',
|
type: 'digit',
|
||||||
model: 'price',
|
model: 'price',
|
||||||
holder: '请填写售价'
|
holder: '请填写售价'
|
||||||
|
}, {
|
||||||
|
id: 10,
|
||||||
|
label: '库存',
|
||||||
|
type: 'digit',
|
||||||
|
model: 'stock',
|
||||||
|
holder: '请填写库存',
|
||||||
|
disable: true
|
||||||
}],
|
}],
|
||||||
moreThanList: [{
|
moreThanList: [{
|
||||||
id: 2,
|
id: 2,
|
||||||
@ -141,16 +148,16 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (!this.$props.product_id) {
|
// if (!this.$props.product_id) {
|
||||||
this.formList.push({
|
// this.formList.push({
|
||||||
id: 10,
|
// id: 10,
|
||||||
label: '库存',
|
// label: '库存',
|
||||||
type: 'digit',
|
// type: 'digit',
|
||||||
model: 'stock',
|
// model: 'stock',
|
||||||
holder: '请填写库存',
|
// holder: '请填写库存',
|
||||||
disable: true
|
// disable: true
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
setStorage('singleSpecification', {});
|
setStorage('singleSpecification', {});
|
||||||
@ -162,7 +169,8 @@
|
|||||||
},
|
},
|
||||||
spliceMoreThan() {
|
spliceMoreThan() {
|
||||||
this.moreThanFlag = true;
|
this.moreThanFlag = true;
|
||||||
this.formList.splice(!this.$props.product_id?2:1, this.formList.length);
|
// this.formList.splice(!this.$props.product_id ? 2 : 1, this.formList.length);
|
||||||
|
this.formList.splice(2, this.formList.length);
|
||||||
},
|
},
|
||||||
input(val) {
|
input(val) {
|
||||||
this.singleSpecification = val
|
this.singleSpecification = val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user