Browse Source

app2.0 请假管理调整

娄底高职分支
杨晓琪 2 years ago
parent
commit
8ea60a5b4f
2 changed files with 30 additions and 16 deletions
  1. +14
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuAttendanceLeave/list.vue
  2. +16
    -11
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuAttendanceLeave/single.vue

+ 14
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuAttendanceLeave/list.vue View File

@@ -31,7 +31,7 @@
<text class="customlist-item-field-title">审核状态:</text>
{{ displayListItem(item, 'CheckStatus') || '--' }}
</view>
<l-customlist-action :showButton="!checkDisable&&!item.CheckStatus&&item.CheckStatus!==0" buttonText="审核" @join="action('check',item)" showEdit @edit="action('edit', item.Id)" showDelete @delete="action('delete', item.Id)" @view="action('view', item.Id)" />
<l-customlist-action :showButton="!checkDisable&&item.CheckStatus === '1'" :buttonText="'审核'" @join="action('check',item)" :showEdit="item.CheckStatus === '0'" @edit="action('edit', item.Id)" :showDelete="item.CheckStatus === '0'" @delete="action('delete', item.Id)" @view="action('view', item.Id)" />
</view>
</l-customlist>
</l-scroll-list>
@@ -145,7 +145,7 @@ export default {
// 数据源
dataSource: {
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })),
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveTypeOfStu).map(t => ({ value: t.value, text: t.text })),
// CheckStatus:Object.values(this.GET_GLOBAL('dataDictionary').AuditStatus).map(t => ({ value: t.value, text: t.text })),
CheckStatus:[{text:'草稿',value:'0'},{text:'审核中',value:'1'},{text:'通过',value:'2'},{text:'不通过',value:'3'}]
},
@@ -161,10 +161,10 @@ export default {
total: 2,
list: [],
checkDisable:true,
checkDisable:false,
// 审核弹框
modal:false,
selectItem:'',
selectItem:null,
}
},
@@ -292,7 +292,16 @@ export default {
// return
// }
this.modal = false
this.HTTP_POST('learun/adms/stuleavemanagement/savecheck', {...this.selectItem,CheckStatus:id}, '提交失败').then(success => {
const postData = {
keyValue:this.selectItem.Id,
strEntity:JSON.stringify({
...this.selectItem,
CheckStatus:id,
CheckUserNo:this.GET_GLOBAL('loginUser').account,
CheckUserId:this.GET_GLOBAL('loginUser').userId,
})
}
this.HTTP_POST('learun/adms/stuleavemanagement/savecheck',postData , '提交失败').then(success => {
if(!success) { return }
this.TOAST('提交成功', 'success')
this.refreshList()


+ 16
- 11
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuAttendanceLeave/single.vue View File

@@ -55,11 +55,16 @@
/> -->
</view>
<view v-if="ready" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;">
<l-button v-if="edit" @click="action('save')" size="lg" color="green" class="block margin-top" block>
提交保存
</l-button>
<l-button v-if="!edit && mode !== 'create'" @click="action('edit')" size="lg" line="orange" class="block margin-top" block>
<view v-if="ready && edit" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;">
<template v-if="edit">
<l-button v-if="edit" @click="action('save','0')" size="lg" color="green" class="block margin-top" block>
保存草稿
</l-button>
<l-button v-if="edit&&getValue('StuMail.CheckStatus') === '0'" @click="action('save','1')" size="lg" color="blue" class="block margin-top" block>
提交申请
</l-button>
</template>
<!-- <l-button v-if="!edit && mode !== 'create'" @click="action('edit')" size="lg" line="orange" class="block margin-top" block>
编辑本页
</l-button>
<l-button v-if="edit && mode !== 'create'" @click="action('reset')" size="lg" line="red" class="block margin-top" block>
@@ -67,7 +72,7 @@
</l-button>
<l-button v-if="!edit && mode !== 'create'" @click="action('delete')" size="lg" line="red" class="block margin-top" block>
删除
</l-button>
</l-button> -->
</view>
</view>
</template>
@@ -120,7 +125,7 @@ export default {
LeaveDay:{ title: '请假天数', verify: 'Num' },
Files:{ type: 'upload', title: '附件上传'},
LeaveReason:{ type: 'textarea', title: '请假事由'},
// CheckStatus:{ type: 'select', title: '审核状态' },
CheckStatus:{ type: 'select', title: '审核状态' },
},
},
@@ -128,8 +133,8 @@ export default {
// 数据源
dataSource: {
StuMail: {
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })),
// CheckStatus:Object.values(this.GET_GLOBAL('dataDictionary').AuditStatus).map(t => ({ value: t.value, text: t.text })),
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveTypeOfStu).map(t => ({ value: t.value, text: t.text })),
CheckStatus:[{text:'草稿',value:'0'},{text:'审核中',value:'1'},{text:'通过',value:'2'},{text:'不通过',value:'3'}]
},
}
@@ -173,7 +178,7 @@ export default {
},
// 点击 「编辑」、「重置」、「保存」、「删除」 按钮
async action(type) {
async action(type,checkType) {
switch (type) {
case 'edit':
this.edit = true
@@ -199,7 +204,7 @@ export default {
this.LOADING('正在提交...')
const postData = await this.getPostData(this.id)
this.HTTP_POST('learun/adms/stuleavemanagement/save', postData, '表单提交保存失败').then(success => {
this.HTTP_POST('learun/adms/stuleavemanagement/'+ (checkType === '0'?'save':'submit'), postData, '表单提交保存失败').then(success => {
this.HIDE_LOADING()
if (!success) {
return


Loading…
Cancel
Save