优化
This commit is contained in:
@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台
|
|||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
|
||||||
# 开发环境
|
# 开发环境
|
||||||
VITE_APP_BASE_API = 'http://192.168.110.185:8899'
|
VITE_APP_BASE_API = 'http://192.168.110.180:8899'
|
||||||
|
|
||||||
# 无人机接口地址
|
# 无人机接口地址
|
||||||
|
|
||||||
|
@ -352,13 +352,13 @@ const handleCompleteTask = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const handleShowSubmit = async () => {
|
const handleShowSubmit = async () => {
|
||||||
await completeTask(form.value).finally(() => {
|
detailFormTeRef.value.submit(businessId.value, () => {
|
||||||
// 提交设计验证
|
completeTask(form.value).finally(() => {
|
||||||
detailFormTeRef.value.submit(businessId.value);
|
|
||||||
});
|
|
||||||
dialog.visible = false;
|
dialog.visible = false;
|
||||||
emits('submitCallback');
|
emits('submitCallback');
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
proxy?.$modal.msgSuccess('操作成功');
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
/** 驳回弹窗打开 */
|
/** 驳回弹窗打开 */
|
||||||
const handleBackProcessOpen = async () => {
|
const handleBackProcessOpen = async () => {
|
||||||
@ -524,15 +524,15 @@ const handleTermination = async () => {
|
|||||||
taskId: taskId.value,
|
taskId: taskId.value,
|
||||||
comment: form.value.message
|
comment: form.value.message
|
||||||
};
|
};
|
||||||
await terminationTask(params).finally(() => {
|
detailFormTeRef.value.submit(businessId.value, () => {
|
||||||
// 提交设计验证
|
terminationTask(params).finally(() => {
|
||||||
detailFormTeRef.value.submit(businessId.value);
|
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
buttonDisabled.value = false;
|
buttonDisabled.value = false;
|
||||||
});
|
|
||||||
dialog.visible = false;
|
dialog.visible = false;
|
||||||
emits('submitCallback');
|
emits('submitCallback');
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
proxy?.$modal.msgSuccess('操作成功');
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
//终止任务
|
//终止任务
|
||||||
const handleTerminationTask = async () => {
|
const handleTerminationTask = async () => {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<el-row :gutter="20" class="section-content">
|
<el-row :gutter="20" class="section-content">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="编号" prop="num">
|
<el-form-item label="编号" prop="num">
|
||||||
|
<!-- prop="num" 需与 rules 中键名一致 -->
|
||||||
<el-input v-model="formData.num" placeholder="请输入编号" />
|
<el-input v-model="formData.num" placeholder="请输入编号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -269,11 +270,10 @@ const setFormData = (data: Partial<FormData>) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
const submit = async (businessId) => {
|
const submit = async (businessId, cb) => {
|
||||||
try {
|
|
||||||
// 先验证表单
|
// 先验证表单
|
||||||
const isValid = await validate();
|
await formRef.value?.validate();
|
||||||
if (isValid) {
|
cb();
|
||||||
formData.subprojectName = subProjectMap.get(formData.subprojectId);
|
formData.subprojectName = subProjectMap.get(formData.subprojectId);
|
||||||
formData.drawingreviewId = businessId;
|
formData.drawingreviewId = businessId;
|
||||||
const res = await drawingreviewReceipts(formData);
|
const res = await drawingreviewReceipts(formData);
|
||||||
@ -281,10 +281,6 @@ const submit = async (businessId) => {
|
|||||||
// // 提交成功处理逻辑
|
// // 提交成功处理逻辑
|
||||||
// console.log('提交成功');
|
// console.log('提交成功');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('提交失败:', error);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getSubProject();
|
getSubProject();
|
||||||
|
@ -65,9 +65,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="外部意见" align="center">
|
<el-table-column label="外部意见" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-link v-if="scope.row.opinion" :key="scope.row.opinion" :href="scope.row.opinion" target="_blank" type="primary" :underline="false">
|
<el-link v-if="scope.row.opinion" :href="scope.row.opinion" target="_blank" type="primary"> 查看文件 </el-link>
|
||||||
{{ scope.row.opinion }}
|
|
||||||
</el-link>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="备注" align="center" prop="remark" />
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
@ -427,6 +425,7 @@ const handleAdd = () => {
|
|||||||
const handleView = (row?: any) => {
|
const handleView = (row?: any) => {
|
||||||
fileList.value = row.fileVoList;
|
fileList.value = row.fileVoList;
|
||||||
design.value = row.design;
|
design.value = row.design;
|
||||||
|
activeName.value = '3';
|
||||||
getVolumeFileList('3');
|
getVolumeFileList('3');
|
||||||
viewVisible.value = true;
|
viewVisible.value = true;
|
||||||
};
|
};
|
||||||
@ -447,6 +446,9 @@ const onSubmitOpinion = async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await updateVolumeCatalog({ ...updateRow.value });
|
await updateVolumeCatalog({ ...updateRow.value });
|
||||||
|
proxy?.$modal.msgSuccess('操作成功');
|
||||||
|
uploadOpinionVisible.value = false;
|
||||||
|
await getList();
|
||||||
};
|
};
|
||||||
const onUploadSuccess = (fileList, res) => {
|
const onUploadSuccess = (fileList, res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
Reference in New Issue
Block a user