You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.3 KiB

4 years ago
import orderApi from "../../../api/orderApi/orderApi"
const orderType = ['出校报备', '进校报备']
const reportStatus = ['通过', '院级审核', '校级审核', '退回']
Page({
data: {
},
onLoad() {
const reportID = wx.getStorageSync("auditList/auditList")
orderApi.getOrderDetailByOrderID(reportID).then(res => {
res.reportStatus = reportStatus[res.reportStatus as any] as any
res.reportType = orderType[res.reportType as any] as any
this.setData(res)
})
},
onPass(event: WechatMiniprogram.Input) {
orderApi.passOrder(event.currentTarget.dataset.reportID)
},
onDeny(event: WechatMiniprogram.Input) {
orderApi.denyOrder(event.currentTarget.dataset.reportID)
},
/**
* --
*/
onReady() {
},
/**
* --
*/
onShow() {
},
/**
* --
*/
onHide() {
},
/**
* --
*/
onUnload() {
},
/**
* --
*/
onPullDownRefresh() {
},
/**
*
*/
onReachBottom() {
},
/**
*
*/
onShareAppMessage() {
}
})