Browse Source

no message

feature/v2.2
xpz2018 4 years ago
parent
commit
a4dc73b67b
2 changed files with 20 additions and 12 deletions
  1. 1
      pages/process/order-price/index.js
  2. 31
      pages/process/outside-price/index.js

1
pages/process/order-price/index.js

@ -186,6 +186,7 @@ Scene({
data.deductType = this.data.form.deductType
data.unitPrice = Number(this.data.form.unitPrice)
data.isWithoutTare = Number(this.data.form.isWithoutTare)
pricingOrder(data).then(result => {
wx.hideLoading()
if(!util.isEmpty(data.plateNumber) && data.plateNumber.length >= 7

31
pages/process/outside-price/index.js

@ -210,20 +210,27 @@ Scene({
}
var data = {scrapPaperReceiptId: this.data.form.scrapPaperReceiptId }
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(){

Loading…
Cancel
Save