|
|
@ -210,20 +210,27 @@ Scene({ |
|
|
} |
|
|
} |
|
|
var data = {scrapPaperReceiptId: this.data.form.scrapPaperReceiptId } |
|
|
var data = {scrapPaperReceiptId: this.data.form.scrapPaperReceiptId } |
|
|
data.productCategorySettleInfoDtoList = productCategorySettleInfoDtoList |
|
|
data.productCategorySettleInfoDtoList = productCategorySettleInfoDtoList |
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
|
|
priceSideOrder(data).then(result => { |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
if(this.data.form.onsideGrossWeight) { |
|
|
|
|
|
util.showBackToast('定价成功') |
|
|
|
|
|
} else { |
|
|
|
|
|
Dialog.alert({ title: '温馨提示', message: '定价成功,请过磅刷卡获取厂内毛重!' }).then(() => { |
|
|
|
|
|
wx.navigateBack() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var that = this |
|
|
|
|
|
wx.requestSubscribeMessage({ |
|
|
|
|
|
tmplIds: ['DJaSy0a5TNp9v_ICQ0ZY5-hkZ91dEXZuKq_hQVBTnOA'], |
|
|
|
|
|
complete(res) { |
|
|
|
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
|
|
priceSideOrder(data).then(result => { |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
if(that.data.form.onsideGrossWeight) { |
|
|
|
|
|
util.showBackToast('定价成功') |
|
|
|
|
|
} else { |
|
|
|
|
|
Dialog.alert({ title: '温馨提示', message: '定价成功,请过磅刷卡获取厂内毛重!' }).then(() => { |
|
|
|
|
|
wx.navigateBack() |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'pricingOrder' }) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
util.showToast(err) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
event.emit('OrderMessage', { what: 12, desc: 'pricingOrder' }) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
util.showToast(err) |
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
printOrderInfo: function(){ |
|
|
printOrderInfo: function(){ |
|
|
|