update 调整流程图预览校验
This commit is contained in:
parent
212361dc94
commit
38df345078
@ -5,7 +5,8 @@ export interface LeaveVO {
|
|||||||
endDate: string;
|
endDate: string;
|
||||||
leaveDays: number;
|
leaveDays: number;
|
||||||
remark: string;
|
remark: string;
|
||||||
processInstanceVo: any;
|
status?: string;
|
||||||
|
processInstanceId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LeaveForm extends BaseEntity {
|
export interface LeaveForm extends BaseEntity {
|
||||||
@ -15,7 +16,8 @@ export interface LeaveForm extends BaseEntity {
|
|||||||
endDate?: string;
|
endDate?: string;
|
||||||
leaveDays?: number;
|
leaveDays?: number;
|
||||||
remark?: string;
|
remark?: string;
|
||||||
processInstanceVo?: any;
|
status?: string;
|
||||||
|
processInstanceId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LeaveQuery extends PageQuery {
|
export interface LeaveQuery extends PageQuery {
|
||||||
|
@ -4,18 +4,20 @@
|
|||||||
<div style="display: flex; justify-content: space-between">
|
<div style="display: flex; justify-content: space-between">
|
||||||
<div>
|
<div>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="routeParams.type === 'add' ||
|
v-if="
|
||||||
(routeParams.type === 'update' &&form.status &&
|
routeParams.type === 'add' ||
|
||||||
(form.status === 'draft' || form.status === 'cancel' || form.status === 'back'))"
|
(routeParams.type === 'update' && form.status && (form.status === 'draft' || form.status === 'cancel' || form.status === 'back'))
|
||||||
|
"
|
||||||
:loading="buttonLoading"
|
:loading="buttonLoading"
|
||||||
type="info"
|
type="info"
|
||||||
@click="submitForm('draft')"
|
@click="submitForm('draft')"
|
||||||
>暂存</el-button
|
>暂存</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="routeParams.type === 'add' ||
|
v-if="
|
||||||
(routeParams.type === 'update' && form.status &&
|
routeParams.type === 'add' ||
|
||||||
(form.status === 'draft' || form.status === 'cancel' || form.status === 'back'))"
|
(routeParams.type === 'update' && form.status && (form.status === 'draft' || form.status === 'cancel' || form.status === 'back'))
|
||||||
|
"
|
||||||
:loading="buttonLoading"
|
:loading="buttonLoading"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="submitForm('submit')"
|
@click="submitForm('submit')"
|
||||||
@ -28,7 +30,7 @@
|
|||||||
@click="approvalVerifyOpen"
|
@click="approvalVerifyOpen"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
>
|
||||||
<el-button v-if="processInstanceId" type="primary" @click="handleApprovalRecord">流程进度</el-button>
|
<el-button v-if="form.processInstanceId" type="primary" @click="handleApprovalRecord">流程进度</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-button style="float: right" @click="goBack()">返回</el-button>
|
<el-button style="float: right" @click="goBack()">返回</el-button>
|
||||||
@ -123,7 +125,8 @@ const initFormData: LeaveForm = {
|
|||||||
endDate: undefined,
|
endDate: undefined,
|
||||||
leaveDays: undefined,
|
leaveDays: undefined,
|
||||||
remark: undefined,
|
remark: undefined,
|
||||||
processInstanceVo: {}
|
status: undefined,
|
||||||
|
processInstanceId: undefined
|
||||||
};
|
};
|
||||||
const data = reactive<PageData<LeaveForm, LeaveQuery>>({
|
const data = reactive<PageData<LeaveForm, LeaveQuery>>({
|
||||||
form: { ...initFormData },
|
form: { ...initFormData },
|
||||||
@ -166,9 +169,6 @@ const getInfo = () => {
|
|||||||
leaveTime.value = [];
|
leaveTime.value = [];
|
||||||
leaveTime.value.push(form.value.startDate);
|
leaveTime.value.push(form.value.startDate);
|
||||||
leaveTime.value.push(form.value.endDate);
|
leaveTime.value.push(form.value.endDate);
|
||||||
if (form.value.processInstanceVo) {
|
|
||||||
processInstanceId.value = form.value.processInstanceVo.id;
|
|
||||||
}
|
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
buttonLoading.value = false;
|
buttonLoading.value = false;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user