10/29 禅道

feature-JimuReport-1106-yjl
张同海 4 weeks ago
parent 32e7d7401e
commit 9723f53594

@ -49,8 +49,13 @@ export const searchFormSchema: FormSchema[] = [
{ {
field: 'cntrno', field: 'cntrno',
label: '箱号', label: '箱号',
component: 'Input', component: 'InputTextArea',
colProps: { span: 8 }, colProps: { span: 8 },
componentProps: {
validateOnRuleChange: false,
placeholder: '可输入多个箱号',
rows: 1,
},
}, },
{ {
field: 'ctnCode', field: 'ctnCode',

@ -38,7 +38,7 @@
let data = JSON.parse(Rdata.queryCondition) let data = JSON.parse(Rdata.queryCondition)
data.forEach((item, index) => { data.forEach((item, index) => {
if (item.FieldName == 'cntrno') { if (item.FieldName == 'cntrno') {
console.log(item) item.FieldValue = item.FieldValue.replace(/ {1,}/g, ',')
item.ConditionalType = 15 item.ConditionalType = 15
} }
}) })

@ -334,8 +334,13 @@ export const searchFormSchema: FormSchema[] = [
{ {
field: 'cntrno', field: 'cntrno',
label: '箱号', label: '箱号',
component: 'Input', component: 'InputTextArea',
colProps: { span: 8 }, colProps: { span: 8 },
componentProps: {
validateOnRuleChange: false,
placeholder: '可输入多个箱号',
rows: 1,
},
}, },
{ {
field: 'portid', field: 'portid',
@ -367,6 +372,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'Input', component: 'Input',
colProps: { span: 4 }, colProps: { span: 4 },
}, },
// { // {
// field: 'ctnSourceId', // field: 'ctnSourceId',
// label: '箱来源', // label: '箱来源',

@ -61,6 +61,7 @@
let CM_ctnSize: any = null let CM_ctnSize: any = null
data.forEach((item, index) => { data.forEach((item, index) => {
if (item.FieldName == 'cntrno') { if (item.FieldName == 'cntrno') {
item.FieldValue = item.FieldValue.replace(/ {1,}/g, ',')
item.ConditionalType = 15 item.ConditionalType = 15
} }
if (item.FieldName == 'CM_ctnCode') { if (item.FieldName == 'CM_ctnCode') {

@ -163,14 +163,15 @@ export const searchFormSchema: FormSchema[] = [
api: () => { api: () => {
return new Promise((resolve) => { return new Promise((resolve) => {
getDictOption('CM_RentDirect').then((res) => { getDictOption('CM_RentDirect').then((res) => {
let data: any = [] // let data: any = []
res.forEach((item) => { // res.forEach((item) => {
item.value = parseInt(item.value) // item.value = parseInt(item.value)
if (!item.label.indexOf('租入')) { // if (!item.label.indexOf('租入')) {
data.push(item) // data.push(item)
} // }
}) // })
resolve(data) // resolve(data)
resolve(res)
}) })
}) })
}, },
@ -184,27 +185,40 @@ export const searchFormSchema: FormSchema[] = [
}, },
}, },
{ {
field: 'etd', field: 'accdate',
label: 'ETD', label: '会计期间',
component: 'DatePicker', component: 'MonthPicker',
colProps: { span: 4 },
defaultValue: '',
componentProps: {
showTime: true,
style: 'width:100%',
},
},
{
field: 'eta',
label: 'ETA',
component: 'DatePicker',
colProps: { span: 4 }, colProps: { span: 4 },
defaultValue: '', // defaultValue: moment(),
componentProps: { componentProps: {
showTime: true, showTime: true,
style: 'width:100%', allowClear: true,
valueFormat: 'YYYY-MM',
format: 'YYYY-MM',
}, },
}, },
// {
// field: 'etd',
// label: 'ETD',
// component: 'DatePicker',
// colProps: { span: 4 },
// defaultValue: '',
// componentProps: {
// showTime: true,
// style: 'width:100%',
// },
// },
// {
// field: 'eta',
// label: 'ETA',
// component: 'DatePicker',
// colProps: { span: 4 },
// defaultValue: '',
// componentProps: {
// showTime: true,
// style: 'width:100%',
// },
// },
] ]
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ {

@ -166,21 +166,26 @@ export const searchFormSchema: FormSchema[] = [
{ {
field: 'cntrno', field: 'cntrno',
label: '箱号', label: '箱号',
component: 'Input', component: 'InputTextArea',
colProps: { span: 8 }, colProps: { span: 8 },
},
{
field: 'changeTime',
label: '状态时间',
component: 'RangePicker',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: { componentProps: {
allowClear: true, validateOnRuleChange: false,
placeholder: '可输入多个箱号',
rows: 2,
}, },
}, },
// { // {
// field: 'changeTime',
// label: '状态时间',
// component: 'RangePicker',
// required: false,
// dynamicDisabled: false,
// colProps: { span: 4 },
// componentProps: {
// allowClear: true,
// },
// },
// {
// field: 'ctnBizState', // field: 'ctnBizState',
// label: '箱业务状态', // label: '箱业务状态',
// component: 'ApiSelect', // component: 'ApiSelect',

@ -55,6 +55,7 @@
let data = JSON.parse(Rdata.queryCondition) let data = JSON.parse(Rdata.queryCondition)
data.forEach((item, index) => { data.forEach((item, index) => {
if (item.FieldName == 'cntrno') { if (item.FieldName == 'cntrno') {
item.FieldValue = item.FieldValue.replace(/ {1,}/g, ',')
item.ConditionalType = 15 item.ConditionalType = 15
} }
}) })

Loading…
Cancel
Save