|
|
|
@ -107,7 +107,17 @@ Page({ |
|
|
|
return |
|
|
|
} |
|
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
pricingOrder(this.data.form).then(result => { |
|
|
|
var data = {id: this.data.form.id} |
|
|
|
if(Number(this.data.form.deductWeight) > 0){ |
|
|
|
data.deductWeight = Number(this.data.form.deductWeight) |
|
|
|
} else if(Number(this.data.form.deductPercent) > 0){ |
|
|
|
data.deductPercent = Number(this.data.form.deductPercent) |
|
|
|
} |
|
|
|
data.plateNumber = this.data.form.plateNumber |
|
|
|
data.productId = this.data.form.productId |
|
|
|
data.unitPrice = Number(this.data.form.unitPrice) |
|
|
|
data.isWithoutTare = Number(this.data.form.isWithoutTare) |
|
|
|
pricingOrder(data).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('定价成功') |
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'pricingOrder' }) |
|
|
|
@ -118,8 +128,8 @@ Page({ |
|
|
|
}, |
|
|
|
viewImage: function (e) { |
|
|
|
var imgList = [] |
|
|
|
for (let index = 0; index < this.data.form.preWeighingPicture.length; index++) { |
|
|
|
imgList.push(this.data.this.data.form.preWeighingPicture[index].url) |
|
|
|
for (let index = 0; index < this.data.form.totalWeighingPicture.length; index++) { |
|
|
|
imgList.push(this.data.form.totalWeighingPicture[index].url) |
|
|
|
} |
|
|
|
wx.previewImage({ urls: imgList, current: e.currentTarget.dataset.url }) |
|
|
|
} |