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