|
|
@@ -2,17 +2,30 @@ |
|
|
|
<view class="page"> |
|
|
|
<view v-if="ready"> |
|
|
|
<l-date-picker |
|
|
|
@input="setValue('DutySchedule.Date', $event)" |
|
|
|
:value="getValue('DutySchedule.Date')" |
|
|
|
@input="setValue('DutySchedule.StartTime', $event)" |
|
|
|
:value="getValue('DutySchedule.StartTime')" |
|
|
|
:disabled="!edit" |
|
|
|
title="时间" |
|
|
|
title="开始时间" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
<l-date-picker |
|
|
|
@input="setValue('DutySchedule.EndTime', $event)" |
|
|
|
:value="getValue('DutySchedule.EndTime')" |
|
|
|
:disabled="!edit" |
|
|
|
title="结束时间" |
|
|
|
/> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('DutySchedule.Person', $event)" |
|
|
|
:value="getValue('DutySchedule.Person')" |
|
|
|
:disabled="!edit" |
|
|
|
title="值班人" |
|
|
|
/> |
|
|
|
/> --> |
|
|
|
<l-organize-picker |
|
|
|
@input="setValue('DutySchedule.Person', $event)" |
|
|
|
:value="getValue('DutySchedule.Person')" |
|
|
|
:readonly="!edit" |
|
|
|
type="user" |
|
|
|
title="值班人" |
|
|
|
/> |
|
|
|
<l-textarea |
|
|
|
@input="setValue('DutySchedule.Remark', $event)" |
|
|
|
:value="getValue('DutySchedule.Remark')" |
|
|
@@ -80,7 +93,9 @@ export default { |
|
|
|
// 表单项数据结构 |
|
|
|
scheme: { |
|
|
|
DutySchedule: { |
|
|
|
Date: { type: 'datetime', title: '时间', dateformat: '0' }, |
|
|
|
// Date: { type: 'datetime', title: '时间', dateformat: '0' }, |
|
|
|
StartTime: { type: 'datetime', dateformat: '0' }, |
|
|
|
EndTime: { type: 'datetime', dateformat: '0' }, |
|
|
|
Person: { type: 'text', title: '值班人' }, |
|
|
|
Remark: { type: 'textarea', title: '备注' }, |
|
|
|
}, |
|
|
@@ -127,7 +142,8 @@ export default { |
|
|
|
this.origin = await this.getDefaultForm() |
|
|
|
} else { |
|
|
|
const result = await this.HTTP_GET('learun/adms/PersonnelManagement/DutySchedule/form', this.id) |
|
|
|
this.origin = await this.formatFormData(result) |
|
|
|
let res = {DutySchedule:result.Schedule} |
|
|
|
this.origin = await this.formatFormData(res) |
|
|
|
} |
|
|
|
this.current = this.COPY(this.origin) |
|
|
|
}, |
|
|
@@ -184,7 +200,7 @@ export default { |
|
|
|
|
|
|
|
this.EMIT('PersonnelManagementDutySchedule-list-change') |
|
|
|
this.NAV_BACK() |
|
|
|
this.this.TOAST('删除成功', 'success') |
|
|
|
this.TOAST('删除成功', 'success') |
|
|
|
}) |
|
|
|
break |
|
|
|
|
|
|
|