|
|
@ -110,14 +110,14 @@ Page({ |
|
|
util.showToast('输入单价过低,价格范围:' + this.data.nowItem.lowestUnitPrice + '元/KG-'+ this.data.nowItem.highestUnitPrice + '元/KG') |
|
|
util.showToast('输入单价过低,价格范围:' + this.data.nowItem.lowestUnitPrice + '元/KG-'+ this.data.nowItem.highestUnitPrice + '元/KG') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// if(this.data.deductType == 1 && (util.isEmpty(this.data.form.deductWeight) || Number(this.data.form.deductWeight) <= 0)){
|
|
|
|
|
|
// util.showToast('请输入扣重')
|
|
|
|
|
|
// return
|
|
|
|
|
|
// }
|
|
|
|
|
|
// if(this.data.deductType == 2 && (util.isEmpty(this.data.form.deductPercent) || Number(this.data.form.deductPercent) <= 0)){
|
|
|
|
|
|
// util.showToast('请输入扣点')
|
|
|
|
|
|
// return
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
if(!util.isEmpty(this.data.form.deductWeight) && Number(this.data.form.deductWeight) >= Number(this.data.nowItem.totalWeight)){ |
|
|
|
|
|
util.showToast('扣重不得超过皮重') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if(!util.isEmpty(this.data.form.deductPercent) && Number(this.data.form.deductPecent) >= 100){ |
|
|
|
|
|
util.showToast('扣点范围:0-100') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
var data = {id: this.data.form.id} |
|
|
var data = {id: this.data.form.id} |
|
|
if(Number(this.data.form.deductWeight) > 0){ |
|
|
if(Number(this.data.form.deductWeight) > 0){ |
|
|
|