|
@@ -229,14 +229,18 @@ export default {
|
|
|
if (val.index === 0) {
|
|
if (val.index === 0) {
|
|
|
this.modalCancel();
|
|
this.modalCancel();
|
|
|
} else {
|
|
} else {
|
|
|
- if(this.customData.itemPrice==''){
|
|
|
|
|
|
|
+ if(this.customData.itemPrice<=0){
|
|
|
uni.showToast({title:"请输入总价格",icon:"none"})
|
|
uni.showToast({title:"请输入总价格",icon:"none"})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if(this.customData.bigCount==''&&this.customData.smallCount==''){
|
|
|
|
|
|
|
+ if(this.customData.bigCount<=0&&this.customData.smallCount<=0){
|
|
|
uni.showToast({title:"请输入花材数量",icon:"none"})
|
|
uni.showToast({title:"请输入花材数量",icon:"none"})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ if(this.customData.realityWeight<=0){
|
|
|
|
|
+ uni.showToast({title:"请输入花材重量",icon:"none"})
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
// delAllEvent
|
|
// delAllEvent
|
|
|
//超过库存时 设置为库存最大值
|
|
//超过库存时 设置为库存最大值
|
|
|
this.updateItemEvent(this.customData);
|
|
this.updateItemEvent(this.customData);
|