From 4293fcad54e9e88189a04acde7cefecf4af9f410 Mon Sep 17 00:00:00 2001 From: zy Date: Fri, 2 May 2025 18:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/quotation/QuotationDetail.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/crm/quotation/QuotationDetail.vue b/src/views/crm/quotation/QuotationDetail.vue index cf7c9e56d..0f87fb5be 100644 --- a/src/views/crm/quotation/QuotationDetail.vue +++ b/src/views/crm/quotation/QuotationDetail.vue @@ -385,6 +385,7 @@ import * as CustomerApi from '@/api/crm/customer' import * as UserApi from '@/api/system/user' import * as DeptApi from '@/api/system/dept' import * as BusinessApi from '@/api/crm/business' +import { propTypes } from '@/utils/propTypes' /** CRM 方案报价 表单 */ defineOptions({ name: 'QuotationForm' }) @@ -398,7 +399,9 @@ const businessList = ref([]) const deptTree = ref() // 部门树形结构 const deptList = ref() // 部门 const orgList = ref([]) - +const props = defineProps({ + id: propTypes.number.def(undefined), +}) const invoiceTemplateList = ref([]) const { proxy }: any = getCurrentInstance(); @@ -645,7 +648,8 @@ const resetForm = () => { const route = useRoute(); onMounted(async () => { - formType.value = route.query.id; + console.log('%csrc/views/crm/quotation/QuotationDetail.vue:651 props.id', 'color: #007acc;', props.id); + formType.value = props.id || route.query.id; if (formType.value) open(formType.value)