往来单位回填数据

szh-new
张同海 3 months ago
parent 39d905e84e
commit da4a3235b4

@ -350,13 +350,25 @@
return !values.sourceId
},
colProps: { span: 4 },
componentProps: {
allowClear: true,
options: Arr,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
componentProps: ({ formModel }) => {
return {
allowClear: true,
options: Arr,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
if (e && obj) {
formModel.sourceDetailId = obj.value
formModel.sourceDetailName = obj.label
}
if (!e && !obj) {
formModel.sourceDetailId = ''
formModel.sourceDetailName = ''
}
},
}
},
})
activeKey.value = '2'

@ -271,6 +271,7 @@ export const columns: BasicColumn[] = [
return RText
},
},
{
title: '揽货人',
dataIndex: 'saleId',
@ -759,6 +760,13 @@ export const formSchema: FormSchema[] = [
// },
// },
// },
{
label: '业务来源Name',
field: 'sourceName',
component: 'Input',
defaultValue: '',
show: false,
},
{
label: '业务来源',
field: 'sourceId',
@ -778,12 +786,15 @@ export const formSchema: FormSchema[] = [
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: async (e, obj) => {
// if (e && obj) {
// formModel.sourceCode = obj.sourceCode
// }
// if (!e && !obj) {
// formModel.sourceCode = null
// }
console.log(obj)
if (e && obj) {
formModel.sourceId = obj.value
formModel.sourceName = obj.label
}
if (!e && !obj) {
formModel.sourceId = ''
formModel.sourceName = ''
}
if (e) {
if (formActionType) {
const { updateSchema } = formActionType
@ -802,13 +813,25 @@ export const formSchema: FormSchema[] = [
return !values.sourceId
},
colProps: { span: 4 },
componentProps: {
allowClear: true,
options: Arr,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
componentProps: ({ formModel }) => {
return {
allowClear: true,
options: Arr,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
if (e && obj) {
formModel.sourceDetailId = obj.value
formModel.sourceDetailName = obj.label
}
if (!e && !obj) {
formModel.sourceDetailId = ''
formModel.sourceDetailName = ''
}
},
}
},
})
}
@ -818,6 +841,13 @@ export const formSchema: FormSchema[] = [
}
},
},
{
label: '来源明细Name',
field: 'sourceDetailName',
component: 'Input',
defaultValue: '',
show: false,
},
{
label: '来源明细',
field: 'sourceDetailId',
@ -828,64 +858,144 @@ export const formSchema: FormSchema[] = [
},
colProps: { span: 4 },
},
{
label: '揽货人Name',
field: 'saleName',
component: 'Input',
defaultValue: '',
show: false,
},
{
field: 'saleId',
label: '揽货人',
component: 'Select',
colProps: { span: 4 },
defaultValue: '',
componentProps: {
options: SaleUserList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
componentProps: ({ formModel }) => {
return {
options: SaleUserList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
console.log(obj)
if (e && obj) {
formModel.saleId = obj.value
formModel.saleName = obj.label
}
if (!e && !obj) {
formModel.saleId = ''
formModel.saleName = ''
}
},
}
},
},
{
label: '操作人Name',
field: 'opName',
component: 'Input',
defaultValue: '',
show: false,
},
{
field: 'op',
label: '操作人',
component: 'Select',
colProps: { span: 4 },
defaultValue: '',
componentProps: {
options: OperatorUserList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
componentProps: ({ formModel }) => {
return {
options: OperatorUserList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
console.log(obj)
if (e && obj) {
formModel.op = obj.value
formModel.opName = obj.label
}
if (!e && !obj) {
formModel.op = ''
formModel.opName = ''
}
},
}
},
},
{
label: '单证Name',
field: 'docName',
component: 'Input',
defaultValue: '',
show: false,
},
{
field: 'doc',
label: '单证',
component: 'Select',
colProps: { span: 4 },
defaultValue: '',
componentProps: {
options: VouchingClerkList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
componentProps: ({ formModel }) => {
return {
options: VouchingClerkList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
console.log(obj)
if (e && obj) {
formModel.doc = obj.value
formModel.docName = obj.label
}
if (!e && !obj) {
formModel.doc = ''
formModel.docName = ''
}
},
}
},
},
{
label: '客服Name',
field: 'customerServiceName',
component: 'Input',
defaultValue: '',
show: false,
},
{
field: 'customerService',
label: '客服',
component: 'Select',
colProps: { span: 4 },
defaultValue: '',
componentProps: {
options: CustomerServiceList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
componentProps: ({ formModel }) => {
return {
options: CustomerServiceList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
console.log(obj)
if (e && obj) {
formModel.customerService = obj.value
formModel.customerServiceName = obj.label
}
if (!e && !obj) {
formModel.customerService = ''
formModel.customerServiceName = ''
}
},
}
},
},
// {

Loading…
Cancel
Save