|
|
|
@ -1,4 +1,8 @@
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
import {
|
|
|
|
|
GetCustomerServiceList,
|
|
|
|
|
GetVouchingClerkList
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { Tag } from 'ant-design-vue'
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
@ -21,19 +25,19 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '默认操作员',
|
|
|
|
|
dataIndex: 'operator',
|
|
|
|
|
dataIndex: 'operatorName',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 200,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '默认单证',
|
|
|
|
|
dataIndex: 'vouchingClerk',
|
|
|
|
|
dataIndex: 'vouchingClerkName',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 200,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '默认客服',
|
|
|
|
|
dataIndex: 'customerService',
|
|
|
|
|
dataIndex: 'customerServiceName',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 200,
|
|
|
|
|
},
|
|
|
|
@ -112,31 +116,99 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'operator',
|
|
|
|
|
field: 'operatorName',
|
|
|
|
|
label: '默认操作员',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetCustomerServiceList,
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'userName',
|
|
|
|
|
showName: 'userName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.operator = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.operator = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'operator',
|
|
|
|
|
label: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'vouchingClerkName',
|
|
|
|
|
label: '默认单证',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetVouchingClerkList,
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'userName',
|
|
|
|
|
showName: 'userName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.vouchingClerk = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.vouchingClerk = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'vouchingClerk',
|
|
|
|
|
label: '默认单证',
|
|
|
|
|
label: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerServiceName',
|
|
|
|
|
label: '默认客服',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetCustomerServiceList,
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'userName',
|
|
|
|
|
showName: 'userName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.customerService = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.customerService = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerService',
|
|
|
|
|
label: '默认客服',
|
|
|
|
|
label: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'ediCode',
|
|
|
|
|
label: 'EDI代码',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|