From 5b075e02a15fcc0513c92b41dca639df2f452823 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 29 Jul 2024 22:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=81=E5=92=A8=E8=AF=A2=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=92=8C=E7=9B=91=E7=90=86=E4=BA=8B=E5=8A=A1=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E7=9A=84=E7=BC=96=E8=BE=91=E8=A7=86=E5=9B=BE=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=BA=86=E9=80=89=E6=8B=A9=E5=90=88=E5=90=8C=E5=92=8C?= =?UTF-8?q?=E5=A4=84=E7=90=86=E6=95=B0=E6=8D=AE=E7=9A=84=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E9=AB=98=E4=BA=86=E7=94=A8=E6=88=B7=E4=BD=93?= =?UTF-8?q?=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/consult_project/edit.vue | 8 ++- src/views/manage_project/edit.vue | 7 ++- .../marketing_framework_agreement/edit.vue | 1 + src/views/supervision_project/edit.vue | 58 +++++++++++++++++-- 4 files changed, 64 insertions(+), 10 deletions(-) diff --git a/src/views/consult_project/edit.vue b/src/views/consult_project/edit.vue index 1438716..72ebefc 100644 --- a/src/views/consult_project/edit.vue +++ b/src/views/consult_project/edit.vue @@ -17,7 +17,7 @@ + :value="parseInt(item.value)" /> @@ -25,7 +25,7 @@ + :value="parseInt(item.value)" /> @@ -38,7 +38,7 @@ + :value="parseInt(item.value)" /> @@ -547,7 +547,9 @@ if (route.query.contractId) { const customEvent = (e) => { formData.contract = e.id formData.contract_name = e.contract_name + formData.project_name = e.contract_name formData.nature = e.industry_nature + formData.industry = e.business_nature formData.project_manager = e.project_director formData.part_a = e.part_a formData.part_a_unit = e.part_a_name diff --git a/src/views/manage_project/edit.vue b/src/views/manage_project/edit.vue index ebeae09..038bf77 100644 --- a/src/views/manage_project/edit.vue +++ b/src/views/manage_project/edit.vue @@ -526,16 +526,21 @@ if (route.query.contractId) { const customEvent = (e) => { formData.contract = e.id formData.contract_name = e.contract_name + formData.project_name = e.contract_name; formData.nature = e.industry_nature + formData.industry = e.business_nature formData.planned_start_date = e.start_date formData.planned_end_date = e.end_date formData.project_manager = e.project_director + formData.project_manager_name = e.project_manager_name formData.part_a = e.part_a formData.part_a_unit = e.part_a_name formData.build_area = e.const_area formData.total_investment = e.project_money formData.supervision_department = e.supervise_dept - + formData.contract_content = e.content + formData.build_unit_name = e.part_b + formData.build_unit = e.part_b_signatory formData.project_overview = e.project_scale } diff --git a/src/views/marketing_framework_agreement/edit.vue b/src/views/marketing_framework_agreement/edit.vue index 1dccc64..549d15d 100644 --- a/src/views/marketing_framework_agreement/edit.vue +++ b/src/views/marketing_framework_agreement/edit.vue @@ -242,6 +242,7 @@ const isPartb = ref(false) const customEvent = (e) => { if (isPartb.value) { formData.part_b = e.name + formData.part_b_signatory = e.id formData.part_b_signatory_name = e.invoice_contact_name } else { formData.part_a = e.id diff --git a/src/views/supervision_project/edit.vue b/src/views/supervision_project/edit.vue index 5e98940..f3e4364 100644 --- a/src/views/supervision_project/edit.vue +++ b/src/views/supervision_project/edit.vue @@ -33,6 +33,24 @@ @click="showDialog1 = true"/> + + + + + + + + + + + + + + + @@ -213,11 +231,11 @@ - - - - + + + + + @@ -239,6 +257,7 @@ import { } from '@/components/dialogTable/dialogTableConfig' import {timeFormat} from '@/utils/util' import useUserStore from '@/stores/modules/user' +import {apiCityList, apiProvinceList} from "@/api/common"; const userStore = useUserStore().userInfo const route = useRoute() @@ -306,7 +325,9 @@ const formData = reactive({ part_a: '', annex: [], create_user: userStore.account, - create_time: timeFormat('', 'yyyy-mm-dd hh:MM:ss') + create_time: timeFormat('', 'yyyy-mm-dd hh:MM:ss'), + province:'', + city:'' }) const chekcDate = (rule: any, value: any, callback: any) => { @@ -579,6 +600,7 @@ const customEvent = (e) => { formData.contract_name = e.contract_name formData.project_name = e.contract_name; formData.nature = e.industry_nature + formData.industry = e.business_nature formData.planned_start_date = e.start_date formData.planned_end_date = e.end_date formData.project_manager = e.project_director @@ -590,6 +612,10 @@ const customEvent = (e) => { formData.total_investment = e.project_money formData.contract_amount = e.signed_amount formData.supervision_department = e.supervise_dept + formData.province = e.province + formData.city = e.city + formData.address = e.part_a_address + formData.contract_content = e.content // formData.nature = e.industry_nature // formData.contract_type = e.contract_type // formData.contract_type_text = e.contract_type_text @@ -598,6 +624,9 @@ const customEvent = (e) => { formData.project_overview = e.project_scale // formData.Acontact = e.part_a_contract // showDialog.value = false; + if(e.city!=''){ + getCityList() + } } const customEvent1 = (e) => { formData.build_unit = e.id @@ -622,6 +651,23 @@ const submituser = (e: any) => { formData[value] = e.id showDialog.value = false } +const datas = reactive({ + provinceOptions: [], + cityOptions: [], +}); +const getProvinceList = async () => { + const data = await apiProvinceList({}); + datas["provinceOptions"] = data; +}; +const getCityList = async () => { + const data = await apiCityList({province_code: formData.province}); + datas["cityOptions"] = data; +}; +getProvinceList() +//获取省份 +function province_change(value: string) { + getCityList(); +} defineExpose({ open,