@@ -6,7 +6,7 @@ | |||||
<l-select @input="setValue('JournalSend.JTypeId', $event)" :value="getValue('JournalSend.JTypeId')" | <l-select @input="setValue('JournalSend.JTypeId', $event)" :value="getValue('JournalSend.JTypeId')" | ||||
:disabled="!edit" :range="dataSource.JournalSend.JTypeId" title="日志类型" required /> | :disabled="!edit" :range="dataSource.JournalSend.JTypeId" title="日志类型" required /> | ||||
<l-organize-picker @input="setValue('JournalSend.JReceiveId', $event)" | <l-organize-picker @input="setValue('JournalSend.JReceiveId', $event)" | ||||
:value="getValue('JournalSend.JReceiveId')" :readonly="!edit" type="user" title="接收人" required /> | |||||
:value="getValue('JournalSend.JReceiveId')" :readonly="!edit" type="user" title="接收人" /> | |||||
<l-textarea @input="setValue('JournalSend.JContent', $event)" :value="getValue('JournalSend.JContent')" | <l-textarea @input="setValue('JournalSend.JContent', $event)" :value="getValue('JournalSend.JContent')" | ||||
:readonly="!edit" title="日志内容" required /> | :readonly="!edit" title="日志内容" required /> | ||||
</view> | </view> | ||||
@@ -85,8 +85,7 @@ | |||||
JReceiveId: { | JReceiveId: { | ||||
type: 'organize', | type: 'organize', | ||||
title: '接收人', | title: '接收人', | ||||
dataType: 'user', | |||||
verify: "NotNull" | |||||
dataType: 'user' | |||||
}, | }, | ||||
JContent: { | JContent: { | ||||
type: 'textarea', | type: 'textarea', | ||||
@@ -334,7 +334,7 @@ | |||||
pagination: { | pagination: { | ||||
rows: 10, | rows: 10, | ||||
page: this.page, | page: this.page, | ||||
sidx: 'Id', | |||||
sidx: 'UpdateDate', | |||||
sord: 'DESC' | sord: 'DESC' | ||||
}, | }, | ||||
queryJson: JSON.stringify(Object.assign(this.searchData, { | queryJson: JSON.stringify(Object.assign(this.searchData, { | ||||
@@ -10,7 +10,23 @@ | |||||
<l-customlist :tips="loadState" showTips> | <l-customlist :tips="loadState" showTips> | ||||
<!-- 单条记录 --> | <!-- 单条记录 --> | ||||
<view class="customlist-item" v-for="item of list" :key="item.Id"> | <view class="customlist-item" v-for="item of list" :key="item.Id"> | ||||
<view class="customlist-item-field"> | |||||
<text class="customlist-item-field-title">申请时间:</text> | |||||
{{ displayListItem(item, 'UpdateDate') }} | |||||
</view> | |||||
<view class="customlist-item-field"> | |||||
<text class="customlist-item-field-title">审核状态:</text> | |||||
{{ IsCheckitem(displayListItem(item, 'IsCheck')) }} | |||||
</view> | |||||
<view class="customlist-item-field"> | |||||
<text class="customlist-item-field-title">原上课时间:</text> | |||||
{{itmeDel(displayListItem(item, 'LessonDate')) }} | |||||
</view> | |||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
<text class="customlist-item-field-title">学年度:</text> | <text class="customlist-item-field-title">学年度:</text> | ||||
{{ displayListItem(item, 'AcademicYearNo') }} | {{ displayListItem(item, 'AcademicYearNo') }} | ||||
@@ -62,7 +78,7 @@ | |||||
</view> | </view> | ||||
<l-customlist-action showButton buttonText="审核" @join="action('check',item.ID)" @view="action('view', item.ID)" /> | |||||
<l-customlist-action :showButton="!item.IsCheck" buttonText="审核" @join="action('check',item.ID)" @view="action('view', item.ID)" /> | |||||
</view> | </view> | ||||
</l-customlist> | </l-customlist> | ||||
</l-scroll-list> | </l-scroll-list> | ||||
@@ -97,7 +113,7 @@ | |||||
</view> | </view> | ||||
</scroll-view> | </scroll-view> | ||||
<l-customlist-add v-if="!sideOpen" @click="action('add')" /> | |||||
<!-- <l-customlist-add v-if="!sideOpen" @click="action('add')" /> --> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
@@ -131,6 +147,9 @@ export default { | |||||
return { | return { | ||||
// 数据项的数据类型、结构 | // 数据项的数据类型、结构 | ||||
scheme: { | scheme: { | ||||
UpdateDate:{type: 'text'}, | |||||
IsCheck:{type: 'text'}, | |||||
LessonDate:{type: 'text'}, | |||||
AcademicYearNo: { type: 'text' }, | AcademicYearNo: { type: 'text' }, | ||||
Semester: { type: 'text' }, | Semester: { type: 'text' }, | ||||
StuNo: { type: 'text' }, | StuNo: { type: 'text' }, | ||||
@@ -138,8 +157,8 @@ export default { | |||||
Grade: { type: 'text' }, | Grade: { type: 'text' }, | ||||
DeptNo: { type: 'text' }, | DeptNo: { type: 'text' }, | ||||
DeptName: { type: 'text' }, | DeptName: { type: 'text' }, | ||||
MajorNo: { type: 'text' }, | |||||
MajorName: { type: 'text' }, | |||||
MajorNo: { type: "text" }, | |||||
MajorName: { type: "text" }, | |||||
ClassNo: { type: 'text' }, | ClassNo: { type: 'text' }, | ||||
}, | }, | ||||
@@ -153,6 +172,7 @@ export default { | |||||
// 数据源 | // 数据源 | ||||
dataSource: { | dataSource: { | ||||
MajorNo:[] | |||||
}, | }, | ||||
// 页面相关参数 | // 页面相关参数 | ||||
@@ -183,8 +203,9 @@ export default { | |||||
// 拉取加载列表和数据源 | // 拉取加载列表和数据源 | ||||
await Promise.all([ | await Promise.all([ | ||||
this.FETCH_DATASOURCE('CdMajorInfo').then(result => { | |||||
this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) | |||||
}), | |||||
() => {} | () => {} | ||||
]) | ]) | ||||
await this.fetchList() | await this.fetchList() | ||||
@@ -202,7 +223,7 @@ export default { | |||||
{ | { | ||||
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) | // 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) | ||||
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 | // 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 | ||||
pagination: { rows: 10, page: this.page, sidx: 'Id', sord: 'DESC' }, | |||||
pagination: { rows: 10, page: this.page, sidx: 'UpdateDate', sord: 'DESC' }, | |||||
queryJson: JSON.stringify(Object.assign(this.searchData,{ClassManagerNo:this.user.account})) | queryJson: JSON.stringify(Object.assign(this.searchData,{ClassManagerNo:this.user.account})) | ||||
}, | }, | ||||
'加载数据时出错' | '加载数据时出错' | ||||
@@ -314,12 +335,24 @@ export default { | |||||
default: return value === null || value === undefined ? '' : value | default: return value === null || value === undefined ? '' : value | ||||
} | } | ||||
} | |||||
}, | |||||
IsCheckitem(data){ | |||||
if(data){ | |||||
return data == 1?'同意':'不同意' | |||||
}else{ | |||||
return '待审核' | |||||
} | |||||
}, | |||||
itmeDel(data){ | |||||
var newDate = /\d{4}-\d{1,2}-\d{1,2}/g.exec(data) | |||||
return newDate[0] | |||||
} | |||||
}, | }, | ||||
created() { | created() { | ||||
this.user = this.GET_GLOBAL('loginUser'); | this.user = this.GET_GLOBAL('loginUser'); | ||||
} | |||||
}, | |||||
} | } | ||||
</script> | </script> | ||||
@@ -191,16 +191,16 @@ | |||||
type: "text" | type: "text" | ||||
}, | }, | ||||
ClassNo: { | ClassNo: { | ||||
type: "text" | |||||
type: "select",dataSource: '1', dataSourceId: 'ClassNo' | |||||
}, | }, | ||||
DeptNo: { | DeptNo: { | ||||
type: "text" | |||||
type: "select",dataSource: '1', dataSourceId: 'DeptNo' | |||||
}, | }, | ||||
MajorNo: { | MajorNo: { | ||||
type: "text" | |||||
type: "select",dataSource: '1', dataSourceId: 'MajorNo' | |||||
}, | }, | ||||
ClassDiredctorNo: { | ClassDiredctorNo: { | ||||
type: "text" | |||||
type: "select",dataSource: '1', dataSourceId: 'ClassDiredctorNo' | |||||
}, | }, | ||||
ClassTutorNo: { | ClassTutorNo: { | ||||
type: "text" | type: "text" | ||||
@@ -218,6 +218,10 @@ | |||||
// 数据源 | // 数据源 | ||||
dataSource: { | dataSource: { | ||||
ClassNo:[], | |||||
DeptNo:[], | |||||
MajorNo:[], | |||||
ClassDiredctorNo:[], | |||||
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ | LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ | ||||
value: t.value, | value: t.value, | ||||
text: t.text | text: t.text | ||||
@@ -259,7 +263,18 @@ | |||||
// 拉取加载列表和数据源 | // 拉取加载列表和数据源 | ||||
await Promise.all([ | await Promise.all([ | ||||
this.FETCH_DATASOURCE('bjsj').then(result => { | |||||
this.dataSource.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 => { | |||||
this.dataSource.ClassDiredctorNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.empname, value: t.empno })); | |||||
}), | |||||
this.FETCH_DATASOURCE('CdDeptInfo').then(result => { | |||||
this.dataSource.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })); | |||||
}), | |||||
this.FETCH_DATASOURCE('CdMajorInfo').then(result => { | |||||
this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })); | |||||
}), | |||||
]); | ]); | ||||
await this.fetchList(); | await this.fetchList(); | ||||
// 初始化查询条件 | // 初始化查询条件 | ||||
@@ -31,7 +31,21 @@ | |||||
required | required | ||||
:disabled="!edit" | :disabled="!edit" | ||||
/> | /> | ||||
<l-datetime-picker | |||||
<l-date-picker | |||||
@input="setValue('StuLeaveManagement.StartTime', $event)" | |||||
:value="getValue('StuLeaveManagement.StartTime')" | |||||
:disabled="!edit" | |||||
required | |||||
title="开始时间" | |||||
/> | |||||
<l-date-picker | |||||
@input="setValue('StuLeaveManagement.EndTime', $event)" | |||||
:value="getValue('StuLeaveManagement.EndTime')" | |||||
:disabled="!edit" | |||||
required | |||||
title="结束时间" | |||||
/> | |||||
<!-- <l-datetime-picker | |||||
@input="setValue('StuLeaveManagement.StartTime', $event)" | @input="setValue('StuLeaveManagement.StartTime', $event)" | ||||
:value="getValue('StuLeaveManagement.StartTime')" | :value="getValue('StuLeaveManagement.StartTime')" | ||||
title="开始时间" | title="开始时间" | ||||
@@ -44,7 +58,7 @@ | |||||
title="结束时间" | title="结束时间" | ||||
required | required | ||||
:disabled="!edit" | :disabled="!edit" | ||||
/> | |||||
/> --> | |||||
<l-input | <l-input | ||||
@input="setValue('StuLeaveManagement.LeaveDay', $event)" | @input="setValue('StuLeaveManagement.LeaveDay', $event)" | ||||
:value="getValue( String('StuLeaveManagement.LeaveDay'))" | :value="getValue( String('StuLeaveManagement.LeaveDay'))" | ||||
@@ -180,8 +194,11 @@ export default { | |||||
CheckRemark: { type: 'texteditor', title: '审核备注', }, | CheckRemark: { type: 'texteditor', title: '审核备注', }, | ||||
CheckUserNo: { type: 'text', title: '审核人' }, | CheckUserNo: { type: 'text', title: '审核人' }, | ||||
LeaveType: { type: 'select', title: '请假类型', dataSource: '0',verify:"NotNull" }, | LeaveType: { type: 'select', title: '请假类型', dataSource: '0',verify:"NotNull" }, | ||||
StartTime: { type: 'datetime', title: '开始时间', dateformat: '1',verify:"NotNull" }, | |||||
EndTime: { type: 'datetime', title: '结束时间', dateformat: '1',verify:"NotNull" }, | |||||
StartTime: { type: 'datetime', title: '开始时间',verify:"NotNull", dateformat: '0' }, | |||||
EndTime:{type: 'datetime', title: '结束时间', verify:"NotNull",dateformat: '0'}, | |||||
// StartTime: { type: 'datetime', title: '开始时间', dateformat: '1',verify:"NotNull" }, | |||||
// EndTime: { type: 'datetime', title: '结束时间',dateformat: '1', verify:"NotNull" }, | |||||
LeaveDay: { type: 'number', title: '请假天数',verify:"NumOrNull" }, | LeaveDay: { type: 'number', title: '请假天数',verify:"NumOrNull" }, | ||||
LeaveReason: { type: 'texteditor', title: '请假事由' }, | LeaveReason: { type: 'texteditor', title: '请假事由' }, | ||||
CheckUserNo: { type: 'text', title: '学号' }, | CheckUserNo: { type: 'text', title: '学号' }, | ||||
@@ -170,7 +170,7 @@ | |||||
@input="setValue('Ououtsourcing.DeductionsCombined', $event)" | @input="setValue('Ououtsourcing.DeductionsCombined', $event)" | ||||
:value="getValue('Ououtsourcing.DeductionsCombined')" | :value="getValue('Ououtsourcing.DeductionsCombined')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
title="小计" | |||||
title="扣款合计" | |||||
/> | /> | ||||
<l-input | <l-input | ||||
@input="setValue('Ououtsourcing.HousingFundAllowance', $event)" | @input="setValue('Ououtsourcing.HousingFundAllowance', $event)" | ||||
@@ -188,7 +188,7 @@ | |||||
@input="setValue('Ououtsourcing.PersonalIncomeTax', $event)" | @input="setValue('Ououtsourcing.PersonalIncomeTax', $event)" | ||||
:value="getValue('Ououtsourcing.PersonalIncomeTax')" | :value="getValue('Ououtsourcing.PersonalIncomeTax')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
title="个人所得税" | |||||
title="所得税" | |||||
/> | /> | ||||
<l-input | <l-input | ||||
@input="setValue('Ououtsourcing.EndowmentInsurance', $event)" | @input="setValue('Ououtsourcing.EndowmentInsurance', $event)" | ||||
@@ -407,13 +407,13 @@ export default { | |||||
// 特级教师津贴和乡镇补贴TeacherAndTown | // 特级教师津贴和乡镇补贴TeacherAndTown | ||||
// TeacherAndTown: { type: 'text', title: '特级教师津贴和乡镇补贴'}, | // TeacherAndTown: { type: 'text', title: '特级教师津贴和乡镇补贴'}, | ||||
// 扣款小计DeductionsCombined | // 扣款小计DeductionsCombined | ||||
DeductionsCombined: { type: 'text', title: '扣款小计'}, | |||||
DeductionsCombined: { type: 'text', title: '扣款合计'}, | |||||
// 公积金ProvidentFundPayment | // 公积金ProvidentFundPayment | ||||
HousingFundAllowance: { type: 'text', title: '(缴纳)公积金'}, | HousingFundAllowance: { type: 'text', title: '(缴纳)公积金'}, | ||||
// 工会工费LaborUnionWage | // 工会工费LaborUnionWage | ||||
LaborUnionWage: { type: 'text', title: '工会工费'}, | LaborUnionWage: { type: 'text', title: '工会工费'}, | ||||
// 个人所得税PersonalIncomeTax | // 个人所得税PersonalIncomeTax | ||||
PersonalIncomeTax: { type: 'text', title: '个人所得税'}, | |||||
PersonalIncomeTax: { type: 'text', title: '所得税'}, | |||||
// 养老保险EndowmentInsurance | // 养老保险EndowmentInsurance | ||||
EndowmentInsurance: { type: 'text', title: '养老保险'}, | EndowmentInsurance: { type: 'text', title: '养老保险'}, | ||||
// 职业年金OccupationalAnnuities | // 职业年金OccupationalAnnuities | ||||
@@ -170,7 +170,7 @@ | |||||
@input="setValue('WelfarePosition.DeductionsCombined', $event)" | @input="setValue('WelfarePosition.DeductionsCombined', $event)" | ||||
:value="getValue('WelfarePosition.DeductionsCombined')" | :value="getValue('WelfarePosition.DeductionsCombined')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
title="小计" | |||||
title="扣款合计" | |||||
/> | /> | ||||
<l-input | <l-input | ||||
@input="setValue('WelfarePosition.HousingFundAllowance', $event)" | @input="setValue('WelfarePosition.HousingFundAllowance', $event)" | ||||
@@ -188,7 +188,7 @@ | |||||
@input="setValue('WelfarePosition.PersonalIncomeTax', $event)" | @input="setValue('WelfarePosition.PersonalIncomeTax', $event)" | ||||
:value="getValue('WelfarePosition.PersonalIncomeTax')" | :value="getValue('WelfarePosition.PersonalIncomeTax')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
title="个人所得税" | |||||
title="所得税" | |||||
/> | /> | ||||
<l-input | <l-input | ||||
@input="setValue('WelfarePosition.EndowmentInsurance', $event)" | @input="setValue('WelfarePosition.EndowmentInsurance', $event)" | ||||
@@ -214,13 +214,19 @@ | |||||
:disabled="!edit" | :disabled="!edit" | ||||
title="失业保险" | title="失业保险" | ||||
/> | /> | ||||
<l-textarea | |||||
<l-input | |||||
@input="setValue('WelfarePosition.Other', $event)" | |||||
:value="getValue('WelfarePosition.Other')" | |||||
:disabled="!edit" | |||||
title="其他" | |||||
/> | |||||
<!-- <l-textarea | |||||
@input="setValue('WelfarePosition.Other', $event)" | @input="setValue('WelfarePosition.Other', $event)" | ||||
:value="getValue('WelfarePosition.Other')" | :value="getValue('WelfarePosition.Other')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
title="其他" | title="其他" | ||||
placeholder="不可编辑状态" | placeholder="不可编辑状态" | ||||
/> | |||||
/> --> | |||||
<!-- <l-input | <!-- <l-input | ||||
class="top-15" | class="top-15" | ||||
@@ -408,13 +414,13 @@ export default { | |||||
// 特级教师津贴和乡镇补贴TeacherAndTown | // 特级教师津贴和乡镇补贴TeacherAndTown | ||||
// TeacherAndTown: { type: 'text', title: '特级教师津贴和乡镇补贴'}, | // TeacherAndTown: { type: 'text', title: '特级教师津贴和乡镇补贴'}, | ||||
// 扣款小计DeductionsCombined | // 扣款小计DeductionsCombined | ||||
DeductionsCombined: { type: 'text', title: '扣款小计'}, | |||||
DeductionsCombined: { type: 'text', title: '扣款合计'}, | |||||
// 公积金ProvidentFundPayment | // 公积金ProvidentFundPayment | ||||
HousingFundAllowance: { type: 'text', title: '(缴纳)公积金'}, | HousingFundAllowance: { type: 'text', title: '(缴纳)公积金'}, | ||||
// 工会工费LaborUnionWage | // 工会工费LaborUnionWage | ||||
LaborUnionWage: { type: 'text', title: '工会工费'}, | LaborUnionWage: { type: 'text', title: '工会工费'}, | ||||
// 个人所得税PersonalIncomeTax | // 个人所得税PersonalIncomeTax | ||||
PersonalIncomeTax: { type: 'text', title: '个人所得税'}, | |||||
PersonalIncomeTax: { type: 'text', title: '所得税'}, | |||||
// 养老保险EndowmentInsurance | // 养老保险EndowmentInsurance | ||||
EndowmentInsurance: { type: 'text', title: '养老保险'}, | EndowmentInsurance: { type: 'text', title: '养老保险'}, | ||||
// 职业年金OccupationalAnnuities | // 职业年金OccupationalAnnuities | ||||