|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// pages/process/order-check/index.js
|
|
|
|
import Scene from '../../index/scene' |
|
|
|
import Dialog from '../../../components/dialog/dialog' |
|
|
|
import { checkSideOrder, getSideOrderInfo, printOrder} from "../../../api/saas" |
|
|
|
import { repeatSideOrder, getSideOrderInfo, printOrder} from "../../../api/saas" |
|
|
|
const event = require('../../../utils/event') |
|
|
|
const util = require('../../../utils/util') |
|
|
|
const app = getApp() |
|
|
|
@ -51,7 +51,7 @@ Scene({ |
|
|
|
wx.redirectTo({url: `/pages/process/outside-check/index?id=${this.data.id}` }) |
|
|
|
}, |
|
|
|
submitForm: function(){ |
|
|
|
if(this.data.form.grossWeight) { |
|
|
|
if(this.data.form.onsideGrossWeight) { |
|
|
|
this.checkPass() |
|
|
|
} else { |
|
|
|
var message = '此订单没有厂内毛重数据,按照正常流程请刷卡过磅,获取厂内毛重数据,如果已经无法获取,请仔细查验纸品,确定没有问题后,进行审核。' |
|
|
|
@ -62,9 +62,9 @@ Scene({ |
|
|
|
}, |
|
|
|
checkPass: function(){ |
|
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
checkSideOrder(this.data.form).then(result => { |
|
|
|
repeatSideOrder({scrapPaperReceiptId: this.data.form.scrapPaperReceiptId }).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('审核成功') |
|
|
|
util.showBackToast('订单审核已通过') |
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'pricingOrder' }) |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
|