From 147131089b3b5a22dc221a6149c785999ff66286 Mon Sep 17 00:00:00 2001 From: zy Date: Tue, 27 May 2025 10:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E4=BB=B7-=E5=85=B3=E8=81=94=E5=8D=95?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/relateCompany/index.vue | 157 ++++++++++ src/views/crm/business/BusinessForm.vue | 2 +- src/views/crm/contract/contractUpload.vue | 2 +- .../customer/detail/authorizedPersonForm.vue | 293 +++++------------- src/views/crm/customer/detail/index.vue | 6 +- .../customercompany/CustomerCompanyForm.vue | 91 ++++-- src/views/crm/customercompany/index.vue | 23 +- src/views/crm/filetemplate/index.vue | 4 +- .../crm/productprocurementcost/index.vue | 19 +- src/views/crm/quotation/QuotationDetail.vue | 37 +-- src/views/crm/quotation/QuotationForm.vue | 22 +- 11 files changed, 367 insertions(+), 289 deletions(-) create mode 100644 src/components/relateCompany/index.vue diff --git a/src/components/relateCompany/index.vue b/src/components/relateCompany/index.vue new file mode 100644 index 000000000..ac22c9126 --- /dev/null +++ b/src/components/relateCompany/index.vue @@ -0,0 +1,157 @@ + + + diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 6947dd4a2..c799adca2 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -532,7 +532,7 @@ console.log('%csrc/views/crm/business/BusinessForm.vue:516 getIntDictOptions(DIC const customerId = route.query.customerId; formData.value.customerId = Number(route.query.bizId) || '' formData.value.clueDeveloper = Number(route.query.clueDeveloper) || '' - formData.value.maintainer = Number(route.query.maintainer) || '' + route.query.maintainer ? formData.value.maintainer = Number(route.query.maintainer) : '' formData.value.requestorUserId = customerId ? '' : useUserStore().getUser.id; formType.value = route.query.id || route.params.id; diff --git a/src/views/crm/contract/contractUpload.vue b/src/views/crm/contract/contractUpload.vue index 504e4f851..1314b332e 100644 --- a/src/views/crm/contract/contractUpload.vue +++ b/src/views/crm/contract/contractUpload.vue @@ -64,7 +64,7 @@ const submitForm = async () => { formLoading.value = true try { const data = formData.value as unknown as OrganizationsVO - data.customerId = formType.value + data.id = formType.value await ContractApi.contractUpload(data) message.success(t('common.createSuccess')) dialogVisible.value = false diff --git a/src/views/crm/customer/detail/authorizedPersonForm.vue b/src/views/crm/customer/detail/authorizedPersonForm.vue index 98c0bb3b4..7bc1d6507 100644 --- a/src/views/crm/customer/detail/authorizedPersonForm.vue +++ b/src/views/crm/customer/detail/authorizedPersonForm.vue @@ -1,233 +1,106 @@ - - + + + + + + - + + + @@ -133,6 +145,7 @@ import download from '@/utils/download' import { ProductProcurementCostApi, ProductProcurementCostVO } from '@/api/crm/productprocurementcost' import ProductProcurementCostForm from './ProductProcurementCostForm.vue' import * as ProductApi from '@/api/crm/product' +import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' const productList = ref([]) // 产品列表 diff --git a/src/views/crm/quotation/QuotationDetail.vue b/src/views/crm/quotation/QuotationDetail.vue index 2d993bcdd..6523d63c3 100644 --- a/src/views/crm/quotation/QuotationDetail.vue +++ b/src/views/crm/quotation/QuotationDetail.vue @@ -8,7 +8,7 @@ :model="formData" :rules="formRules" :fields="formFields" - label-width="110px" + label-width="120px" v-loading="formLoading" > -