|
|
|
@ -2,6 +2,15 @@
|
|
|
|
|
<div class="basic-info">
|
|
|
|
|
<XCard style="padding-top: 15px">
|
|
|
|
|
<div style="margin-top: -24px">
|
|
|
|
|
<ConfigForm
|
|
|
|
|
@TransferData="TransferData"
|
|
|
|
|
isviews="海运出口"
|
|
|
|
|
:form-schema="basicInfoFormSchema"
|
|
|
|
|
:isTransfer="true"
|
|
|
|
|
name="基础表单"
|
|
|
|
|
id="1"
|
|
|
|
|
ref="RefChilrenRef"
|
|
|
|
|
></ConfigForm>
|
|
|
|
|
<BasicForm @register="registerForm" />
|
|
|
|
|
<!-- <a-form
|
|
|
|
|
style="margin-bottom: 10px"
|
|
|
|
@ -808,6 +817,24 @@
|
|
|
|
|
// --------------created ||beforeCreate--------------
|
|
|
|
|
init()
|
|
|
|
|
// ---------------------------------------------------
|
|
|
|
|
const RefChilrenRef = ref('')
|
|
|
|
|
function TransferData() {
|
|
|
|
|
let Arr: any = []
|
|
|
|
|
basicInfoFormSchema.forEach((item) => {
|
|
|
|
|
Object.keys(getFieldsValue()).forEach((item2) => {
|
|
|
|
|
if (item2 == item.field && item2 !== 'id') {
|
|
|
|
|
Arr.push({ ...item, defaultValue: getFieldsValue()[item2] })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
RefChilrenRef.value.FnaddFormToSet(Arr)
|
|
|
|
|
// updateSchema(Arr).then(() => {
|
|
|
|
|
// // console.log(RefChilrenRef.value)
|
|
|
|
|
|
|
|
|
|
// // console.log(Arr, basicInfoFormSchema)
|
|
|
|
|
// })
|
|
|
|
|
// // console.log(Arr, 'TransferData')
|
|
|
|
|
}
|
|
|
|
|
function getSelectViewRes({ type, res }) {
|
|
|
|
|
console.log(props.details, type, res)
|
|
|
|
|
|
|
|
|
|