|
|
|
@ -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 { cancelOrder, repeatOrder, getFactoryOrderInfo, checkingOrder, printOrder} from "../../../api/saas" |
|
|
|
const event = require('../../../utils/event') |
|
|
|
const util = require('../../../utils/util') |
|
|
|
const app = getApp() |
|
|
|
@ -91,6 +91,19 @@ Scene({ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
cancelOrder: function(e){ |
|
|
|
Dialog.confirm({ title: '温馨提示', message: '确定取消该订单?' }).then(() => { |
|
|
|
wx.showLoading({ title: '正在获取', mask: true }) |
|
|
|
cancelOrder(this.data.form.id).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('订单已经删除') |
|
|
|
event.emit('OrderMessage', { what: 12, desc: 'cancelOrder' }) |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showToast(err) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
repeatOrder: function(e){ |
|
|
|
Dialog.confirm({ title: '温馨提示', message: '确定重新过皮重?' }).then(() => { |
|
|
|
wx.showLoading({ title: '正在处理', mask: true }) |
|
|
|
|