|
|
|
@ -144,7 +144,7 @@ Scene({ |
|
|
|
util.showToast('扣点范围:0-100') |
|
|
|
return |
|
|
|
} |
|
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
|
|
|
|
var data = {id: this.data.form.id} |
|
|
|
if(Number(this.data.form.deductWeight) > 0){ |
|
|
|
data.deductWeight = Number(this.data.form.deductWeight) |
|
|
|
@ -157,13 +157,21 @@ Scene({ |
|
|
|
data.deductType = this.data.form.deductType |
|
|
|
data.unitPrice = Number(this.data.form.unitPrice) |
|
|
|
var factoryCustomerId = this.data.form.factoryCustomerId |
|
|
|
checkingOrder({ id: this.data.form.id, factoryCustomerId, editOrderPriceDto: data }).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'checkingOrder' }) |
|
|
|
util.showBackToast('订单审核已通过') |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showToast(err) |
|
|
|
|
|
|
|
var that = this |
|
|
|
wx.requestSubscribeMessage({ |
|
|
|
tmplIds: ['DJaSy0a5TNp9v_ICQ0ZY5-hkZ91dEXZuKq_hQVBTnOA', '4IWtlcg1HhLN7AFepB3VeZF-4D0b9gbjwWBruKMhAJM'], |
|
|
|
complete(res) { |
|
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
checkingOrder({ id: that.data.form.id, factoryCustomerId, editOrderPriceDto: data }).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'checkingOrder' }) |
|
|
|
util.showBackToast('订单审核已通过') |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showToast(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
viewImage: function (e) { |
|
|
|
|