|
|
|
@ -49,8 +49,8 @@ Scene({ |
|
|
|
if(result.data.weightNote.secondWeightImageUrl2){ |
|
|
|
result.data.weightNote.totalWeighingPicture.push(result.data.weightNote.secondWeightImageUrl2) |
|
|
|
} |
|
|
|
result.data.outboundDeliveryOrderSettlementInfo.netWeight = math.divide(result.data.outboundDeliveryOrderSettlementInfo.netWeight, 1000) |
|
|
|
if(result.data.outboundDeliveryOrderSettlementInfo.id){ |
|
|
|
result.data.outboundDeliveryOrderSettlementInfo.netWeight = math.divide(result.data.outboundDeliveryOrderSettlementInfo.netWeight, 1000) |
|
|
|
this.setData({ |
|
|
|
safeBottom: app.globalData.safeBottom, |
|
|
|
poundInfo: result.data.weightNote, |
|
|
|
@ -68,6 +68,7 @@ Scene({ |
|
|
|
wx.hideLoading() |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
console.log(err) |
|
|
|
util.showToast(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
@ -148,9 +149,10 @@ Scene({ |
|
|
|
closeForm: function(){ |
|
|
|
Dialog.confirm({ title: '温馨提示', message: '确定关闭该出货单?' }).then(() => { |
|
|
|
wx.showLoading({ title: '正在处理', mask: true }) |
|
|
|
closeOutOrder( {id: this.data.form.id }).then(result => { |
|
|
|
closeOutOrder( {id: this.data.orderInfo.id }).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('磅单处理成功') |
|
|
|
event.emit('OrderMessage', { what: 21, desc: 'closeOrder' }) |
|
|
|
util.showBackToast('出货单已关闭') |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showToast(err) |
|
|
|
|