获取id
parent
fc508deac0
commit
4293fcad54
|
|
@ -385,6 +385,7 @@ import * as CustomerApi from '@/api/crm/customer'
|
||||||
import * as UserApi from '@/api/system/user'
|
import * as UserApi from '@/api/system/user'
|
||||||
import * as DeptApi from '@/api/system/dept'
|
import * as DeptApi from '@/api/system/dept'
|
||||||
import * as BusinessApi from '@/api/crm/business'
|
import * as BusinessApi from '@/api/crm/business'
|
||||||
|
import { propTypes } from '@/utils/propTypes'
|
||||||
|
|
||||||
/** CRM 方案报价 表单 */
|
/** CRM 方案报价 表单 */
|
||||||
defineOptions({ name: 'QuotationForm' })
|
defineOptions({ name: 'QuotationForm' })
|
||||||
|
|
@ -398,7 +399,9 @@ const businessList = ref([])
|
||||||
const deptTree = ref() // 部门树形结构
|
const deptTree = ref() // 部门树形结构
|
||||||
const deptList = ref() // 部门
|
const deptList = ref() // 部门
|
||||||
const orgList = ref([])
|
const orgList = ref([])
|
||||||
|
const props = defineProps({
|
||||||
|
id: propTypes.number.def(undefined),
|
||||||
|
})
|
||||||
const invoiceTemplateList = ref([])
|
const invoiceTemplateList = ref([])
|
||||||
const { proxy }: any = getCurrentInstance();
|
const { proxy }: any = getCurrentInstance();
|
||||||
|
|
||||||
|
|
@ -645,7 +648,8 @@ const resetForm = () => {
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
onMounted(async () => {
|
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)
|
if (formType.value) open(formType.value)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue