|
|
@ -199,6 +199,15 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
valueFormat: 'YYYY-MM',
|
|
|
|
valueFormat: 'YYYY-MM',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'isBusinessLocking',
|
|
|
|
|
|
|
|
label: '业务锁定',
|
|
|
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: true,
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
colSlot: 'isBusinessLocking'
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'blType',
|
|
|
|
field: 'blType',
|
|
|
|
label: '装运方式',
|
|
|
|
label: '装运方式',
|
|
|
@ -227,15 +236,6 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'isBusinessLocking',
|
|
|
|
|
|
|
|
label: '业务锁定',
|
|
|
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: true,
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
colSlot: 'isBusinessLocking'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '业务来源',
|
|
|
|
label: '业务来源',
|
|
|
|
field: 'sourceId',
|
|
|
|
field: 'sourceId',
|
|
|
@ -399,7 +399,8 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
option: optionsStore.getOptionsByCode('GetSaleList'),
|
|
|
|
option: optionsStore.getOptionsByCode('GetSaleList'),
|
|
|
|
allowClear: true,
|
|
|
|
allowClear: true,
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
labelField: 'userName',
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
|
|
|
showName: 'userName',
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
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
|
|
|
@ -505,27 +506,16 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
option: optionsStore.getOptionsByCode('GetCustomerServiceList'),
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
const data = JSON.parse(
|
|
|
|
|
|
|
|
JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
resolve({ data })
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
showName: 'userName',
|
|
|
|
showName: 'userName',
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
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) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.operatorName = obj.label
|
|
|
|
formModel.operatorName = obj.userName
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
formModel.operatorName = ''
|
|
|
|
formModel.operatorName = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -549,18 +539,9 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
option: optionsStore.getOptionsByCode('GetCustomerServiceList'),
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
const data = JSON.parse(
|
|
|
|
showName: 'userName',
|
|
|
|
JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
resolve({ data })
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
@ -568,7 +549,7 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.customerServiceName = obj.label
|
|
|
|
formModel.customerServiceName = obj.userName
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
formModel.customerServiceName = ''
|
|
|
|
formModel.customerServiceName = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -592,24 +573,16 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
option: optionsStore.getOptionsByCode('GetVouchingClerkList'),
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
const data = optionsStore.getOptionsByCode('GetVouchingClerkList')
|
|
|
|
showName: 'userName',
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
resolve({ data })
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
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) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.docName = obj.label
|
|
|
|
formModel.docName = obj.userName
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
formModel.docName = ''
|
|
|
|
formModel.docName = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -636,14 +609,15 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
option: optionsStore.getOptionsByCode('GetSaleList'),
|
|
|
|
option: optionsStore.getOptionsByCode('GetSaleList'),
|
|
|
|
allowClear: true,
|
|
|
|
allowClear: true,
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
labelField: 'userName',
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
|
|
|
showName: 'userName',
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
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) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.foreignCustomerServiceName = obj.label
|
|
|
|
formModel.foreignCustomerServiceName = obj.userName
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
formModel.foreignCustomerServiceName = ''
|
|
|
|
formModel.foreignCustomerServiceName = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1375,7 +1349,7 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
|
|
|
|
JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
data.forEach((e) => {
|
|
|
|
data.forEach((e) => {
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
e.portName = `${e.portName}(${e.ediCode})`
|
|
|
|
})
|
|
|
|
})
|
|
|
|
resolve({ data })
|
|
|
|
resolve({ data })
|
|
|
|
})
|
|
|
|
})
|
|
|
|