|
|
@ -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 }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
allowClear: true,
|
|
|
|
allowClear: true,
|
|
|
|
options: Arr,
|
|
|
|
options: Arr,
|
|
|
|
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 (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 }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
options: SaleUserList,
|
|
|
|
options: SaleUserList,
|
|
|
|
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) => {
|
|
|
|
|
|
|
|
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 }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
options: OperatorUserList,
|
|
|
|
options: OperatorUserList,
|
|
|
|
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) => {
|
|
|
|
|
|
|
|
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 }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
options: VouchingClerkList,
|
|
|
|
options: VouchingClerkList,
|
|
|
|
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) => {
|
|
|
|
|
|
|
|
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 }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
options: CustomerServiceList,
|
|
|
|
options: CustomerServiceList,
|
|
|
|
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) => {
|
|
|
|
|
|
|
|
console.log(obj)
|
|
|
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
|
|
|
formModel.customerService = obj.value
|
|
|
|
|
|
|
|
formModel.customerServiceName = obj.label
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
|
|
|
formModel.customerService = ''
|
|
|
|
|
|
|
|
formModel.customerServiceName = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|