|
|
|
@ -1,9 +1,27 @@
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
// 字典
|
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
|
|
import { GetPrintTemplateList, ApiDelFile } from './api.ts'
|
|
|
|
|
import { GetPrintTemplateList, ApiDelFile, ApiGetProviders } from './api.ts'
|
|
|
|
|
let documentTypeList = []
|
|
|
|
|
let attachmentsData = []
|
|
|
|
|
let Receiver: any = []
|
|
|
|
|
export const ArrclientTag = await getDictOption('infoclient-ArrclientTag')
|
|
|
|
|
ArrclientTag.forEach((item) => {
|
|
|
|
|
Receiver.push({
|
|
|
|
|
field: item.value,
|
|
|
|
|
label: `是否${item.name}`,
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '名称',
|
|
|
|
@ -248,6 +266,22 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'providerId',
|
|
|
|
|
label: '数据源提供程序',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
componentProps: ({ formActionType }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: ApiGetProviders,
|
|
|
|
|
labelField: 'name',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'note',
|
|
|
|
|
label: '备注',
|
|
|
|
@ -276,7 +310,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
export const ReceiverformSchema: FormSchema[] = [
|
|
|
|
|
export let ReceiverformSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'ReceiverDivider',
|
|
|
|
|
component: 'Divider',
|
|
|
|
@ -290,84 +324,85 @@ export const ReceiverformSchema: FormSchema[] = [
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isCarrier',
|
|
|
|
|
label: '是否船公司',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isBooking',
|
|
|
|
|
label: '是否订舱公司 ',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isYard',
|
|
|
|
|
label: '是否场站',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isTruck',
|
|
|
|
|
label: '是否车队',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isController',
|
|
|
|
|
label: '是否委托单位',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isShipperCn',
|
|
|
|
|
label: '是否国内发货人',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
...Receiver,
|
|
|
|
|
// {
|
|
|
|
|
// field: 'carrier',
|
|
|
|
|
// label: '是否船公司',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 6 },
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'booking',
|
|
|
|
|
// label: '是否订舱公司 ',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 6 },
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'yard',
|
|
|
|
|
// label: '是否场站',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 6 },
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'truck',
|
|
|
|
|
// label: '是否车队',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 6 },
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'controller',
|
|
|
|
|
// label: '是否委托单位',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 6 },
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'shipperCn',
|
|
|
|
|
// label: '是否国内发货人',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 6 },
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
]
|
|
|
|
|
export const SenderformSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|