解决 往来单位以及港口信息 Bug

szh-new
张同海 4 months ago
parent 74d5041711
commit cbd34ab189

@ -185,7 +185,7 @@ export const columns: BasicColumn[] = [
width: 150, width: 150,
}, },
{ {
title: '企业备案号', title: '海关备案号',
dataIndex: 'registrationNo', dataIndex: 'registrationNo',
sorter: true, sorter: true,
width: 150, width: 150,
@ -329,12 +329,12 @@ export const columns: BasicColumn[] = [
}, },
}, },
{ // {
title: '冷藏费率', // title: '冷藏费率',
dataIndex: 'unitPrice', // dataIndex: 'unitPrice',
sorter: true, // sorter: true,
width: 150, // width: 150,
}, // },
{ {
title: '提成比例', title: '提成比例',
dataIndex: 'commissionRate', dataIndex: 'commissionRate',
@ -368,21 +368,21 @@ export const columns: BasicColumn[] = [
return RText return RText
}, },
}, },
{ // {
title: '仓储费开始日期模式', // title: '仓储费开始日期模式',
dataIndex: 'wmsFeeRateType', // dataIndex: 'wmsFeeRateType',
sorter: true, // sorter: true,
width: 250, // width: 250,
customRender: ({ text }) => { // customRender: ({ text }) => {
let RText = '' // let RText = ''
wmsFeeRateTypeList.forEach((e) => { // wmsFeeRateTypeList.forEach((e) => {
if (e.value == text) { // if (e.value == text) {
RText = e.label // RText = e.label
} // }
}) // })
return RText // return RText
}, // },
}, // },
{ {
title: '其他类型', title: '其他类型',
dataIndex: 'others', dataIndex: 'others',
@ -494,7 +494,7 @@ export const searchFormSchema: FormSchema[] = [
{ {
field: 'registrationNo', field: 'registrationNo',
label: '企业备案号', label: '海关备案号',
component: 'Input', component: 'Input',
colProps: { span: 4 }, colProps: { span: 4 },
}, },
@ -525,6 +525,12 @@ export const formSchema: FormSchema[] = [
defaultValue: '', defaultValue: '',
show: false, show: false,
}, },
{
field: 'divider-selects',
component: 'Divider',
label: '基本信息',
colProps: { span: 24 },
},
{ {
field: 'description', field: 'description',
label: '客户全称', label: '客户全称',
@ -628,9 +634,22 @@ export const formSchema: FormSchema[] = [
} }
}, },
}, },
{
field: 'saleOrgIdList',
label: '所属分部',
// required: true,
component: 'Select',
colProps: { span: 12 },
componentProps: {
options: DeptList,
allowClear: true,
mode: 'multiple',
class: 'NoLimitHeight',
},
},
{ {
field: 'registrationNo', field: 'registrationNo',
label: '企业备案号', label: '海关备案号',
// required: true, // required: true,
component: 'Input', component: 'Input',
defaultValue: '', defaultValue: '',
@ -716,6 +735,12 @@ export const formSchema: FormSchema[] = [
}, },
}, },
}, },
{
field: 'divider-selects',
component: 'Divider',
label: '业务属性及干系人',
colProps: { span: 24 },
},
{ {
field: 'sourceId', field: 'sourceId',
label: '业务来源', label: '业务来源',
@ -791,14 +816,14 @@ export const formSchema: FormSchema[] = [
}, },
}, },
}, },
{ // {
field: 'unitPrice', // field: 'unitPrice',
label: '冷藏费率', // label: '冷藏费率',
// required: true, // // required: true,
component: 'Input', // component: 'Input',
defaultValue: '', // defaultValue: '',
colProps: { span: 4 }, // colProps: { span: 4 },
}, // },
{ {
field: 'commissionRate', field: 'commissionRate',
label: '提成比例', label: '提成比例',
@ -837,23 +862,23 @@ export const formSchema: FormSchema[] = [
}, },
}, },
{ // {
field: 'wmsFeeRateType', // field: 'wmsFeeRateType',
label: '仓储费开始日期模式', // label: '仓储费开始日期模式',
// required: true, // // required: true,
component: 'Select', // component: 'Select',
colProps: { span: 4 }, // colProps: { span: 4 },
labelWidth: 140, // labelWidth: 140,
defaultValue: '', // defaultValue: '',
componentProps: { // componentProps: {
options: wmsFeeRateTypeList, // options: wmsFeeRateTypeList,
allowClear: true, // allowClear: true,
showSearch: true, // showSearch: true,
filterOption: (input: string, option: any) => { // filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 // return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}, // },
}, // },
}, // },
{ {
label: '开票方式', label: '开票方式',
field: 'invoicingMethod', field: 'invoicingMethod',
@ -904,19 +929,7 @@ export const formSchema: FormSchema[] = [
unCheckedChildren: '否', unCheckedChildren: '否',
}, },
}, },
{
field: 'saleOrgIdList',
label: '所属分部',
// required: true,
component: 'Select',
colProps: { span: 12 },
componentProps: {
options: DeptList,
allowClear: true,
mode: 'multiple',
class: 'NoLimitHeight',
},
},
{ {
field: 'isOverdueDeduction', field: 'isOverdueDeduction',
label: '是否超期扣单', label: '是否超期扣单',

@ -72,21 +72,21 @@ export const columns: BasicColumn[] = [
return RData return RData
}, },
}, },
{ // {
title: '国家', // title: '国家',
dataIndex: 'countryId', // dataIndex: 'countryId',
sorter: true, // sorter: true,
width: 200, // width: 200,
customRender: ({ text }) => { // customRender: ({ text }) => {
let RData = text // let RData = text
CountrySelectList.forEach((e) => { // CountrySelectList.forEach((e) => {
if (e.value == text) { // if (e.value == text) {
RData = e.label // RData = e.label
} // }
}) // })
return RData // return RData
}, // },
}, // },
{ {
title: '航线', title: '航线',
dataIndex: 'laneId', dataIndex: 'laneId',
@ -141,19 +141,30 @@ export const searchFormSchema: FormSchema[] = [
field: 'CnName', field: 'CnName',
label: '港口中文名称', label: '港口中文名称',
component: 'Input', component: 'Input',
colProps: { span: 4 } colProps: { span: 4 },
}, },
{ {
field: 'countryName', field: 'countryId',
label: '国家', label: '国家',
component: 'Input', component: 'Select',
colProps: { span: 4 } colProps: { span: 4 },
defaultValue: '',
componentProps: () => {
return {
options: CountrySelectList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
}, },
{ {
field: 'ediCode', field: 'ediCode',
label: 'EDI代码', label: 'EDI代码',
component: 'Input', component: 'Input',
colProps: { span: 4 } colProps: { span: 4 },
}, },
] ]
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
@ -183,6 +194,7 @@ export const formSchema: FormSchema[] = [
label: '国家名称', label: '国家名称',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 12 },
show: false,
}, },
{ {
field: 'chau', field: 'chau',
@ -213,13 +225,21 @@ export const formSchema: FormSchema[] = [
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 12 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: ({ formModel }) => {
return {
options: CountrySelectList, options: CountrySelectList,
allowClear: true, allowClear: true,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}, },
onChange: (e, obj) => {
if (obj) {
formModel.countryId = obj.value
formModel.countryName = obj.label
}
},
}
}, },
}, },
{ {
@ -242,7 +262,7 @@ export const formSchema: FormSchema[] = [
label: 'EDI代码', label: 'EDI代码',
component: 'Input', component: 'Input',
required: true, required: true,
colProps: { span: 12 } colProps: { span: 12 },
}, },
{ {

Loading…
Cancel
Save