|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// pages/process/order-check/index.js
|
|
|
|
import Scene from '../../index/scene' |
|
|
|
import Dialog from '../../../components/dialog/dialog' |
|
|
|
import { repeatOrder, getFactoryOrderInfo, checkingOrder, printOrder} from "../../../api/saas" |
|
|
|
import { repeatOrder, repeatPrice, getFactoryOrderInfo, checkingOrder, printOrder} from "../../../api/saas" |
|
|
|
const event = require('../../../utils/event') |
|
|
|
const util = require('../../../utils/util') |
|
|
|
const app = getApp() |
|
|
|
@ -101,8 +101,19 @@ Scene({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
checkOrder: function(){ |
|
|
|
wx.showLoading({ title: '正在获取', mask: true }) |
|
|
|
priceOrder: function(e){ |
|
|
|
wx.showLoading({ title: '正在处理', mask: true }) |
|
|
|
repeatPrice(this.data.form.id).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('订单已处理') |
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'checkingOrder' }) |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showToast(err) |
|
|
|
}) |
|
|
|
}, |
|
|
|
checkOrder: function(e){ |
|
|
|
wx.showLoading({ title: '正在处理', mask: true }) |
|
|
|
checkingOrder({ id: this.data.form.id }).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('订单审核已通过') |
|
|
|
|