lijingjia 2 weeks ago
commit c943b5f079

@ -68,14 +68,6 @@ export const searchFormSchema: FormSchema[] = [
labelField: 'ctnName', labelField: 'ctnName',
valueField: 'ediCode', valueField: 'ediCode',
resultField: 'data', resultField: 'data',
onChange: (e, obj) => {
if (e && obj) {
formModel.ctnall = obj.label
}
if (!e && !obj) {
formModel.ctnall = ''
}
},
} }
}, },
}, },

@ -33,7 +33,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
let Rdata = formatParams(p, ['ctnCode']) // ['ctnCode']
let Rdata = formatParams(p, searchFormSchema)
if (!!p.cntrno) { if (!!p.cntrno) {
let data = JSON.parse(Rdata.queryCondition) let data = JSON.parse(Rdata.queryCondition)
data.forEach((item, index) => { data.forEach((item, index) => {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['oldContainerOwner', 'bsdate', 'accdate']) // ['oldContainerOwner', 'bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['bsdate', 'accdate']) // ['bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -54,7 +54,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
let Rdata = formatParams(p, ['ctnOwner', 'ctnSourceId', 'isOnlineId', 'portid']) // ['ctnOwner', 'ctnSourceId', 'isOnlineId', 'portid']
let Rdata = formatParams(p, searchFormSchema)
if (!!p.cntrno || !!p.CM_ctnCode || !!p.CM_ctnSize || !!p.stateTime) { if (!!p.cntrno || !!p.CM_ctnCode || !!p.CM_ctnSize || !!p.stateTime) {
let data = JSON.parse(Rdata.queryCondition) let data = JSON.parse(Rdata.queryCondition)
let CM_ctnCode: any = null let CM_ctnCode: any = null

@ -57,7 +57,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['oldContainerOwner', 'rentDirectId']) // ['oldContainerOwner', 'rentDirectId']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['oldContainerOwner', 'rentDirectId', 'bsdate', 'accdate']) // ['oldContainerOwner', 'rentDirectId', 'bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['rentCustomerName', 'bsdate', 'accdate']) // ['rentCustomerName', 'bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['rentCustomerName', 'bsdate', 'accdate']) // ['rentCustomerName', 'bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['rentCustomerName', 'rentDirectId', 'bsdate', 'accdate']) // ['rentCustomerName', 'rentDirectId', 'bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -65,7 +65,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['bsdate', 'accdate']) // ['bsdate', 'accdate']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -55,7 +55,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['ctnOwner', 'ctnSourceId', 'isOnlineId', 'portid']) // ['ctnOwner', 'ctnSourceId', 'isOnlineId', 'portid']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
formConfig: { formConfig: {

@ -32,7 +32,8 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p, ['ctnall', 'ctnSourceId', 'isOnlineId']) // ['ctnall', 'ctnSourceId', 'isOnlineId']
return formatParams(p, searchFormSchema)
}, },
columns, columns,
rowSelection: { type: 'checkbox' }, rowSelection: { type: 'checkbox' },

@ -89,7 +89,8 @@
beforeFetch: (p) => { beforeFetch: (p) => {
p['isShared'] = 1 p['isShared'] = 1
p['customerId'] = props.clientId p['customerId'] = props.clientId
return formatParams(p, ['isShared', 'isDisabled']) // ['isShared', 'isDisabled']
return formatParams(p, searchFormSchema)
}, },
columns: columns, columns: columns,
formConfig: { formConfig: {

Loading…
Cancel
Save