From 2a156f46169d650d7b3f80aec6f36ba46eb24067 Mon Sep 17 00:00:00 2001 From: zy Date: Thu, 1 May 2025 12:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/business/BusinessForm.vue | 35 ++++++++------ .../components/BusinessProductForm.vue | 24 +++++++--- .../business/detail/BusinessDetailsInfo.vue | 48 +------------------ src/views/crm/business/detail/index.vue | 12 ++--- src/views/crm/business/index.vue | 10 ++-- src/views/crm/contact/index.vue | 6 +-- src/views/crm/contract/ContractChange.vue | 2 +- src/views/crm/contract/index.vue | 8 ++-- src/views/crm/customer/detail/index.vue | 24 +++++----- src/views/crm/customer/pool/index.vue | 16 +++++-- src/views/crm/quotation/index.vue | 10 ++-- 11 files changed, 87 insertions(+), 108 deletions(-) diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 736937c4f..733820b2c 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -10,7 +10,7 @@ - + @@ -35,7 +35,8 @@ @@ -51,7 +52,7 @@ - + - + - + - + - + @@ -191,7 +194,7 @@ @@ -227,7 +230,7 @@ -
+
确 定 取 消
@@ -246,7 +249,7 @@ import { useUserStore } from '@/store/modules/user'; import { defaultProps, handleTree } from '@/utils/tree'; import BusinessProductForm from './components/BusinessProductForm.vue'; import { erpPriceMultiply, erpPriceInputFormatter } from '@/utils'; -import { number } from 'vue-types'; +import { propTypes } from '@/utils/propTypes' const { proxy }: any = getCurrentInstance(); const { t } = useI18n(); @@ -298,7 +301,9 @@ const userOptions = ref([]); const statusTypeList = ref([]); const customerList = ref([]); const deptTree = ref(); - +const props = defineProps({ + type: propTypes.number.def(undefined) +}) const subTabsName = ref('product'); const productFormRef = ref(); @@ -380,6 +385,7 @@ const submitForm = async () => { const valid = await formRef.value.validate(); if (!valid) return; + formLoading.value = true; try { const data = formData.value as unknown as BusinessApi.BusinessVO; @@ -422,9 +428,8 @@ const resetForm = () => { const route = useRoute(); onMounted(async () => { const customerId = route.query.customerId; - console.log('%csrc/views/crm/business/BusinessForm.vue:425 formData.value', 'color: #007acc;', formData.value); formData.value.ownerUserId = customerId ? '' : useUserStore().getUser.id; - formType.value = route.query.id; + formType.value = route.query.id || route.params.id; if (formType.value) open(formType.value, customerId) customerList.value = await CustomerApi.getCustomerSimpleList(); statusTypeList.value = await BusinessStatusApi.getBusinessStatusTypeSimpleList(); diff --git a/src/views/crm/business/components/BusinessProductForm.vue b/src/views/crm/business/components/BusinessProductForm.vue index 9bf435fad..82483a0df 100644 --- a/src/views/crm/business/components/BusinessProductForm.vue +++ b/src/views/crm/business/components/BusinessProductForm.vue @@ -18,8 +18,17 @@ -