设计出图修改
This commit is contained in:
@ -34,7 +34,7 @@
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button :disabled="buttonDisabled" type="primary" @click="handleCompleteTask"> 提交 </el-button>
|
||||
<el-button :disabled="buttonDisabled" type="primary" @click="handleCompleteTask"> 通过 </el-button>
|
||||
<el-button v-if="task.flowStatus === 'waiting' && buttonObj.trust" :disabled="buttonDisabled" type="primary" @click="openDelegateTask">
|
||||
委托
|
||||
</el-button>
|
||||
@ -63,11 +63,11 @@
|
||||
type="danger"
|
||||
@click="handleTerminationTask"
|
||||
>
|
||||
终止
|
||||
拒绝
|
||||
</el-button>
|
||||
<el-button v-if="task.flowStatus === 'waiting' && buttonObj.back" :disabled="buttonDisabled" type="danger" @click="handleBackProcessOpen">
|
||||
<!-- <el-button v-if="task.flowStatus === 'waiting' && buttonObj.back" :disabled="buttonDisabled" type="danger" @click="handleBackProcessOpen">
|
||||
退回
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
<el-button :disabled="buttonDisabled" @click="cancel">取消</el-button>
|
||||
</span>
|
||||
</template>
|
||||
@ -141,6 +141,15 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="isShowSubmit" title="设计验证提交" width="800px" draggable :close-on-click-modal="false">
|
||||
<detailForm ref="detailFormTeRef"></detailForm>
|
||||
<template #footer>
|
||||
<div class="dialog-footer" style="float: right; padding-bottom: 20px">
|
||||
<el-button type="primary" @click="handleShowSubmit">确认</el-button>
|
||||
<el-button @click="isShowSubmit = false">取消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@ -202,6 +211,8 @@ const nickName = ref({});
|
||||
const isDrawing = ref(false); //图纸评审标志
|
||||
const businessId = ref(''); //业务id
|
||||
const isShowTermination = ref(false); //显示终止
|
||||
const isShowSubmit = ref(false); //显示终止
|
||||
|
||||
//节点编码
|
||||
const nodeCode = ref<string>('');
|
||||
const buttonObj = ref<any>({
|
||||
@ -293,6 +304,7 @@ const emits = defineEmits(['submitCallback', 'cancelCallback']);
|
||||
const handleCompleteTask = async () => {
|
||||
form.value.taskId = taskId.value;
|
||||
form.value.variables = props.taskVariables;
|
||||
|
||||
let verify = false;
|
||||
if (buttonObj.value.pop && nestNodeList.value && nestNodeList.value.length > 0) {
|
||||
nestNodeList.value.forEach((e) => {
|
||||
@ -323,6 +335,10 @@ const handleCompleteTask = async () => {
|
||||
});
|
||||
form.value.flowCopyList = flowCopyList;
|
||||
}
|
||||
if (isDrawing.value) {
|
||||
isShowSubmit.value = true;
|
||||
return;
|
||||
}
|
||||
await proxy?.$modal.confirm('是否确认提交?');
|
||||
loading.value = true;
|
||||
buttonDisabled.value = true;
|
||||
@ -336,7 +352,15 @@ const handleCompleteTask = async () => {
|
||||
buttonDisabled.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
const handleShowSubmit = async () => {
|
||||
await completeTask(form.value).finally(() => {
|
||||
// 提交设计验证
|
||||
detailFormTeRef.value.submit(businessId.value);
|
||||
});
|
||||
dialog.visible = false;
|
||||
emits('submitCallback');
|
||||
proxy?.$modal.msgSuccess('操作成功');
|
||||
};
|
||||
/** 驳回弹窗打开 */
|
||||
const handleBackProcessOpen = async () => {
|
||||
backForm.value = {};
|
||||
@ -361,7 +385,7 @@ const handleBackProcess = async () => {
|
||||
await backProcess(backForm.value).finally(() => {
|
||||
loading.value = false;
|
||||
buttonDisabled.value = false;
|
||||
if (isDrawing.value) {
|
||||
if (isDrawing.value) {
|
||||
detailFormRef.value.submit(businessId.value);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user