@@ -26,7 +26,7 @@ | |||
</view> --> | |||
<view class="customlist-item-field"> | |||
<!-- <view class="customlist-item-field"> | |||
<text class="customlist-item-field-title">审核时间:</text> | |||
{{ displayListItem(item, "CheckTime") }} | |||
</view> | |||
@@ -34,7 +34,7 @@ | |||
<view class="customlist-item-field"> | |||
<text class="customlist-item-field-title">审核人:</text> | |||
{{ displayListItem(item, "CheckUserNo") }} | |||
</view> | |||
</view> --> | |||
<view class="customlist-item-field"> | |||
<text class="customlist-item-field-title">请假类型:</text> | |||
@@ -391,7 +391,6 @@ | |||
this.NAV_TO(`./single?type=edit&id=${id}`); | |||
return; | |||
case "join": | |||
// console.log(123); | |||
this.NAV_TO(`/pages/EducationalAdministration/StuLeaveManagement/Check/list?meetId=${id}`); | |||
return; | |||
@@ -475,10 +474,16 @@ | |||
}, | |||
// 审核状态 | |||
CheckStatusitem(data) { | |||
if (data) { | |||
return data == '1' ? '通过' : '不通过' | |||
if (data == '0') { | |||
return '草稿' | |||
} else if(data == '1') { | |||
return '审核中' | |||
} else if(data == '2') { | |||
return '审核通过' | |||
} else if(data == '3') { | |||
return '审核未通过' | |||
} else { | |||
return '申请中' | |||
return data | |||
} | |||
}, | |||
// 请假类型审核 | |||
@@ -1,15 +1,24 @@ | |||
<template> | |||
<view class="page"> | |||
<view v-if="ready"> | |||
<l-select | |||
<!-- <l-select | |||
@input="setValue('StuLeaveManagement.CheckStatus', $event)" | |||
:value="getValue('StuLeaveManagement.CheckStatus')" | |||
:range="dataSource.StuLeaveManagement.CheckStatus" | |||
title="审核状态" | |||
:disabled="!edit" | |||
required | |||
/> | |||
<l-textarea | |||
/> --> | |||
<l-input | |||
@input="setValue('StuLeaveManagement.CheckStatus', $event)" | |||
:value=" CheckStatusitem(getValue('StuLeaveManagement.CheckStatus'))" | |||
title="审核状态" | |||
required | |||
:disabled="!edit" | |||
/> | |||
<!-- <l-textarea | |||
@input="setValue('StuLeaveManagement.CheckRemark', $event)" | |||
:value="getValue('StuLeaveManagement.CheckRemark')" | |||
title="审核备注" | |||
@@ -29,7 +38,7 @@ | |||
title="审核人" | |||
v-if="!edit" | |||
:disabled="!edit" | |||
/> | |||
/> --> | |||
<l-select | |||
@input="setValue('StuLeaveManagement.LeaveType', $event)" | |||
:value="getValue('StuLeaveManagement.LeaveType')" | |||
@@ -188,7 +197,7 @@ export default { | |||
// 表单项数据结构 | |||
scheme: { | |||
StuLeaveManagement: { | |||
CheckStatus: { type: 'select', title: '审核状态', dataSource: '0',verify:"NotNull" }, | |||
CheckStatus: { type: 'text', title: '审核状态' }, | |||
CheckRemark: { type: 'texteditor', title: '审核备注', }, | |||
CheckTime:{ type: 'text', title: '审核人' }, | |||
CheckUserNo: { type: 'select', title: '审核人',dataSource: '1' }, | |||
@@ -220,7 +229,7 @@ export default { | |||
ClassDiredctorNo:[], | |||
CheckUserNo:[], | |||
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })), | |||
CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) | |||
// CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) | |||
} | |||
} | |||
} | |||
@@ -242,7 +251,6 @@ export default { | |||
// 拉取表单数据,同时拉取所有来自数据源的选单数据 | |||
await Promise.all([ | |||
this.FETCH_DATASOURCE('bjsj').then(result => { | |||
console.log(result) | |||
this.dataSource.StuLeaveManagement.ClassNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.classname, value: t.classno })) | |||
}), | |||
this.FETCH_DATASOURCE('EmpInfo').then(result => { | |||
@@ -258,7 +266,6 @@ export default { | |||
this.dataSource.StuLeaveManagement.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })); | |||
}), | |||
this.FETCH_DATASOURCE('CdMajorInfo').then(result => { | |||
console.log() | |||
this.dataSource.StuLeaveManagement.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })); | |||
}), | |||
]) | |||
@@ -275,7 +282,6 @@ export default { | |||
} else { | |||
const result = await this.HTTP_GET('/Learun/adms/EducationalAdministration/StuLeaveManagement/form', this.id) | |||
this.origin = await this.formatFormData(result) | |||
// console.log(this.origin,this.origin.prototype) | |||
} | |||
this.current = this.COPY(this.origin) | |||
}, | |||
@@ -293,7 +299,6 @@ export default { | |||
break | |||
case 'save': | |||
// console.log(this.current) | |||
const verifyResult = this.verifyForm() | |||
if (verifyResult.length > 0) { | |||
this.CONFIRM('表单验证失败', verifyResult.join('\n')) | |||
@@ -350,7 +355,21 @@ export default { | |||
// 设置表单值 | |||
setValue(path, val) { | |||
set(this.current, path, val) | |||
} | |||
}, | |||
// 审核状态 | |||
CheckStatusitem(data) { | |||
if (data == '0') { | |||
return '草稿' | |||
} else if(data == '1') { | |||
return '审核中' | |||
} else if(data == '2') { | |||
return '审核通过' | |||
} else if(data == '3') { | |||
return '审核未通过' | |||
} else { | |||
return data | |||
} | |||
}, | |||
} | |||
} | |||
</script> | |||
@@ -1,14 +1,23 @@ | |||
<template> | |||
<view class="page"> | |||
<view v-if="ready"> | |||
<l-select | |||
<!-- <l-select | |||
@input="setValue('StuLeaveManagement.CheckStatus', $event)" | |||
:value="getValue('StuLeaveManagement.CheckStatus')" | |||
:range="dataSource.StuLeaveManagement.CheckStatus" | |||
title="审核状态" | |||
:disabled="!edit" | |||
v-if="!edit" | |||
/> | |||
/> --> | |||
<l-input | |||
@input="setValue('StuLeaveManagement.CheckStatus', $event)" | |||
:value=" CheckStatusitem(getValue('StuLeaveManagement.CheckStatus'))" | |||
title="审核状态" | |||
:disabled="!edit" | |||
v-if="!edit" | |||
/> | |||
<l-textarea | |||
@input="setValue('StuLeaveManagement.CheckRemark', $event)" | |||
:value="getValue('StuLeaveManagement.CheckRemark')" | |||
@@ -196,7 +205,7 @@ export default { | |||
// 表单项数据结构 | |||
scheme: { | |||
StuLeaveManagement: { | |||
CheckStatus: { type: 'select', title: '审核状态', dataSource: '0' }, | |||
CheckStatus: { type: 'text', title: '审核状态' }, | |||
CheckRemark: { type: 'texteditor', title: '审核备注', }, | |||
CreateUserNo: { type: 'text', title: '学号' }, | |||
LeaveType: { type: 'select', title: '请假类型', dataSource: '0',verify:"NotNull" }, | |||
@@ -230,7 +239,7 @@ export default { | |||
ClassDiredctorNo:[], | |||
CheckUserNo:[], | |||
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })), | |||
CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) | |||
// CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) | |||
} | |||
} | |||
} | |||
@@ -255,7 +264,6 @@ export default { | |||
// this.dataSource.StuLeaveManagement.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id })) | |||
// }), | |||
this.FETCH_DATASOURCE('bjsj').then(result => { | |||
console.log(result) | |||
this.dataSource.StuLeaveManagement.ClassNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.classname, value: t.classno })) | |||
}), | |||
this.FETCH_DATASOURCE('EmpInfo').then(result => { | |||
@@ -374,7 +382,22 @@ export default { | |||
// 设置表单值 | |||
setValue(path, val) { | |||
set(this.current, path, val) | |||
} | |||
}, | |||
// 审核状态 | |||
CheckStatusitem(data) { | |||
// console.log(data) | |||
if (data == '0') { | |||
return '草稿' | |||
} else if(data == '1') { | |||
return '审核中' | |||
} else if(data == '2') { | |||
return '审核通过' | |||
} else if(data == '3') { | |||
return '审核未通过' | |||
} else { | |||
return data | |||
} | |||
}, | |||
} | |||
} | |||
</script> | |||