pull/781/head
zy 2025-05-02 18:28:28 +08:00
parent fc508deac0
commit 4293fcad54
1 changed files with 6 additions and 2 deletions

View File

@ -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)