diff --git a/src/utils/dict.ts b/src/utils/dict.ts index e84af37..3da6b59 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -115,6 +115,9 @@ export enum DICT_TYPE { //========== 企业 ========== ENTERPRISES_AREA = 'enterprises_area', ENTERPRISES_TYPE = 'enterprises_type', + //========== 资质 ========== + ENTERPRISES_QUA = 'enterprise_qua', + // ========== SYSTEM 模块 ========== SYSTEM_USER_SEX = 'system_user_sex', SYSTEM_MENU_TYPE = 'system_menu_type', diff --git a/src/views/qualification/EnterpriseQualificationForm.vue b/src/views/qualification/EnterpriseQualificationForm.vue index f4775bb..42855c1 100644 --- a/src/views/qualification/EnterpriseQualificationForm.vue +++ b/src/views/qualification/EnterpriseQualificationForm.vue @@ -7,11 +7,19 @@ label-width="100px" v-loading="formLoading" > - + - - + + + + + - + + + + + ([]) + enterprises: [] as any }) const router=useRouter() const route=useRoute() @@ -378,6 +378,11 @@ async function submitForm() { data.startDate = data.planTime[0] data.endDate = data.planTime[1] if (data.id) { + TaskInfoApi.updateTaskInfo(data).then(() => { + message.success('操作成功') + tagView.delView(route) + router.go(-1) + }) } else { TaskInfoApi.createTaskInfo(data).then(() => { message.success('操作成功') @@ -393,7 +398,8 @@ function init(){ TaskInfoApi.getTaskInfo(query.id).then(res=>{ formData.value=res formData.value.planTime=[formData.value.startDate,formData.value.endDate] - formData.value.enterprises=res.enterpriseInspectionsIdes + formData.value.enterprises=res.enterpriseIdes + formData.value.tags=res.taskTagIdes.map(t=>t.tagId) }) } } diff --git a/src/views/task/index.vue b/src/views/task/index.vue index bbda623..a8ed44a 100644 --- a/src/views/task/index.vue +++ b/src/views/task/index.vue @@ -6,7 +6,7 @@ :model="queryParams" ref="queryFormRef" :inline="true" - label-width="68px" + label-width="108px" > + + + + + + + + + + - + @@ -172,6 +203,9 @@ + + +