|
|
|
@ -92,7 +92,7 @@
|
|
|
|
|
const spinningL = ref(false)
|
|
|
|
|
const emit = defineEmits(['AddDetailL', 'AddDetailR'])
|
|
|
|
|
// 头部表单
|
|
|
|
|
const [registerForm, { getFieldsValue }] = useForm({
|
|
|
|
|
const [registerForm, { getFieldsValue, setFieldsValue }] = useForm({
|
|
|
|
|
labelWidth: 120,
|
|
|
|
|
schemas,
|
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
@ -244,10 +244,11 @@
|
|
|
|
|
// 弹窗
|
|
|
|
|
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
|
|
|
|
spinningL.value = true
|
|
|
|
|
setFieldsValue({ customerId: data.customerId })
|
|
|
|
|
dataSourceL.value = []
|
|
|
|
|
setTableData([])
|
|
|
|
|
setModalProps({ confirmLoading: true, loading: true })
|
|
|
|
|
const res: API.DataResult = await GetBusinessQueryList(beforeFetch(null))
|
|
|
|
|
const res: API.DataResult = await GetBusinessQueryList(beforeFetch(getFieldsValue()))
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
dataSourceL.value = res.data
|
|
|
|
|
setTableData([...res.data])
|
|
|
|
|