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.

85 lines
1.6 KiB

import services from "../../../services/index"
const ioRecordStatus = {
SAVE: '保存',
SUBMIT: "待审核",
DEPT_PASS:'院审通过',
SCHOOL_PASS:'校审通过',
VERIFY_PASS:'核验通过',
DEPT_DENY:'院审不通过',
SCHOOL_DENY:'校审不通过',
VERIFY_DENY:'核验不通过',
}
const ioRecordType = ['入校','出校']
4 years ago
Page({
data: {
ioRecord : {},
teacher:{},
ioRecordType,
ioRecordStatus,
4 years ago
},
onLoad:async function() {
4 years ago
const reportID = wx.getStorageSync("auditList/auditList")
let res = await services.API.iORecords.getIORecordByID.request({ID:reportID});
if(res&&res.data){
let record = res.data;
console.log(record);
this.setData({ioRecord:record?record:null});
this.setData({teacher:record?record.teacher:null});
}
4 years ago
},
onPass(event: WechatMiniprogram.Input) {
//orderApi.passOrder(event.currentTarget.dataset.reportID)
4 years ago
},
onDeny(event: WechatMiniprogram.Input) {
//orderApi.denyOrder(event.currentTarget.dataset.reportID)
4 years ago
},
/**
* --
*/
onReady() {
},
/**
* --
*/
onShow() {
},
/**
* --
*/
onHide() {
},
/**
* --
*/
onUnload() {
},
/**
* --
*/
onPullDownRefresh() {
},
/**
*
*/
onReachBottom() {
},
/**
*
*/
onShareAppMessage() {
}
})