|
@@ -332,6 +332,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
if(calc == 'add'){
|
|
if(calc == 'add'){
|
|
|
|
|
+
|
|
|
|
|
+ //无价格商品,没有设置userPrice时,不能一个一个添加,只能弹框方式添加
|
|
|
|
|
+ if(item.priceType == 0 && (this.$util.isEmpty(item.userPrice) || Number(item.userPrice) == 0)){
|
|
|
|
|
+ this.$msg("无价格商品")
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
item.bigCount++
|
|
item.bigCount++
|
|
|
}
|
|
}
|
|
|
if(calc == 'sub'){
|
|
if(calc == 'sub'){
|
|
@@ -482,7 +489,10 @@ export default {
|
|
|
this.customData.bigCount = this.customData.bigCount==0?null:this.customData.bigCount;
|
|
this.customData.bigCount = this.customData.bigCount==0?null:this.customData.bigCount;
|
|
|
if(this.selectJobType == 'bill'){
|
|
if(this.selectJobType == 'bill'){
|
|
|
if(this.customData.userPrice == null || this.customData.userPrice == 0){
|
|
if(this.customData.userPrice == null || this.customData.userPrice == 0){
|
|
|
- this.customData.userPrice = parseFloat(this.customData.bigPrice)
|
|
|
|
|
|
|
+ //有价格的才把价格显示上去
|
|
|
|
|
+ if(this.customData.priceType == 1){
|
|
|
|
|
+ this.customData.userPrice = parseFloat(this.customData.bigPrice)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
this.customData.userPrice = this.customData.userPrice==0 ? null : parseFloat(this.customData.userPrice)
|
|
this.customData.userPrice = this.customData.userPrice==0 ? null : parseFloat(this.customData.userPrice)
|