|
|
@ -1,38 +1,39 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* @Description:
|
|
|
|
* @Description:
|
|
|
|
* @Author: lijj
|
|
|
|
* @Author: lijj
|
|
|
|
* @Date: 2024-04-25 15:48:33
|
|
|
|
* @Date: 2024-04-25 15:48:33
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
import { GetPrintModuleList } from './api'
|
|
|
|
import { GetPrintModuleList } from './api'
|
|
|
|
import { GetCarrierSelectList } from '/@/api/common'
|
|
|
|
import { GetCarrierSelectList } from '/@/api/common'
|
|
|
|
|
|
|
|
import { max } from 'lodash'
|
|
|
|
|
|
|
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '模版名称',
|
|
|
|
title: '模版名称',
|
|
|
|
dataIndex: 'templateName',
|
|
|
|
dataIndex: 'templateName',
|
|
|
|
width: 200
|
|
|
|
width: 200,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '打印类型',
|
|
|
|
title: '打印类型',
|
|
|
|
dataIndex: 'printType',
|
|
|
|
dataIndex: 'printType',
|
|
|
|
width: 120
|
|
|
|
width: 120,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '船公司',
|
|
|
|
title: '船公司',
|
|
|
|
dataIndex: 'carrierName',
|
|
|
|
dataIndex: 'carrierName',
|
|
|
|
width: 150
|
|
|
|
width: 150,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '入口参数',
|
|
|
|
title: '入口参数',
|
|
|
|
dataIndex: 'inParamColumn',
|
|
|
|
dataIndex: 'inParamColumn',
|
|
|
|
width: 200
|
|
|
|
width: 200,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '备注',
|
|
|
|
title: '备注',
|
|
|
|
dataIndex: 'note',
|
|
|
|
dataIndex: 'note',
|
|
|
|
width: 200
|
|
|
|
width: 200,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
@ -40,7 +41,7 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
field: 'templateName',
|
|
|
|
field: 'templateName',
|
|
|
|
label: '模版名称',
|
|
|
|
label: '模版名称',
|
|
|
|
colProps: { span: 6 },
|
|
|
|
colProps: { span: 6 },
|
|
|
|
component: 'Input'
|
|
|
|
component: 'Input',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
@ -49,27 +50,30 @@ export const formSchema: FormSchema[] = [
|
|
|
|
field: 'id',
|
|
|
|
field: 'id',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
defaultValue: '',
|
|
|
|
defaultValue: '',
|
|
|
|
show: false
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'moduleName',
|
|
|
|
field: 'moduleName',
|
|
|
|
label: '模块名称',
|
|
|
|
label: '模块名称',
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 12 }
|
|
|
|
colProps: { span: 12 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'moduleCode',
|
|
|
|
field: 'moduleCode',
|
|
|
|
label: '模块编码',
|
|
|
|
label: '模块编码',
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 12 }
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
maxlength: 4,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'sortNo',
|
|
|
|
field: 'sortNo',
|
|
|
|
label: '排序',
|
|
|
|
label: '排序',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 12 }
|
|
|
|
colProps: { span: 12 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'disable',
|
|
|
|
field: 'disable',
|
|
|
@ -81,9 +85,9 @@ export const formSchema: FormSchema[] = [
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
options: [
|
|
|
|
options: [
|
|
|
|
{ label: '禁用', value: 1 },
|
|
|
|
{ label: '禁用', value: 1 },
|
|
|
|
{ label: '启用', value: 0 }
|
|
|
|
{ label: '启用', value: 0 },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'note',
|
|
|
|
field: 'note',
|
|
|
@ -91,33 +95,32 @@ export const formSchema: FormSchema[] = [
|
|
|
|
component: 'InputTextArea',
|
|
|
|
component: 'InputTextArea',
|
|
|
|
colProps: { span: 24 },
|
|
|
|
colProps: { span: 24 },
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
autoSize: { minRows: 5, maxRows: 5 }
|
|
|
|
autoSize: { minRows: 5, maxRows: 5 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const temFormSchema: FormSchema[] = [
|
|
|
|
export const temFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
field: 'id',
|
|
|
|
field: 'id',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
defaultValue: '',
|
|
|
|
defaultValue: '',
|
|
|
|
show: false
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'templateName',
|
|
|
|
field: 'templateName',
|
|
|
|
label: '模版名称',
|
|
|
|
label: '模版名称',
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 12 }
|
|
|
|
colProps: { span: 12 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'templateCode',
|
|
|
|
field: 'templateCode',
|
|
|
|
label: '模版编码',
|
|
|
|
label: '模版编码',
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 12 }
|
|
|
|
colProps: { span: 12 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
@ -150,9 +153,9 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
formModel.carrierId = null
|
|
|
|
formModel.carrierId = null
|
|
|
|
formModel.carrierName = null
|
|
|
|
formModel.carrierName = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'printType',
|
|
|
|
field: 'printType',
|
|
|
@ -180,7 +183,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
field: 'moduleCode',
|
|
|
|
field: 'moduleCode',
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
show: false
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '所属模块',
|
|
|
|
label: '所属模块',
|
|
|
@ -203,7 +206,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
if (obj) formModel.moduleCode = obj.moduleCode
|
|
|
|
if (obj) formModel.moduleCode = obj.moduleCode
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -211,13 +214,13 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
field: 'templateName',
|
|
|
|
field: 'templateName',
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
show: false
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'moduleId',
|
|
|
|
field: 'moduleId',
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
show: false
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'isUseDataSource',
|
|
|
|
field: 'isUseDataSource',
|
|
|
@ -229,9 +232,9 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
options: [
|
|
|
|
options: [
|
|
|
|
{ label: '是', value: 1 },
|
|
|
|
{ label: '是', value: 1 },
|
|
|
|
{ label: '否', value: 0 }
|
|
|
|
{ label: '否', value: 0 },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'sqlModel',
|
|
|
|
field: 'sqlModel',
|
|
|
@ -241,7 +244,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 6 },
|
|
|
|
colProps: { span: 6 },
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return values.isUseDataSource && values.id
|
|
|
|
return values.isUseDataSource && values.id
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'downModel',
|
|
|
|
field: 'downModel',
|
|
|
@ -251,7 +254,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 6 },
|
|
|
|
colProps: { span: 6 },
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return values.isUseDataSource && values.id
|
|
|
|
return values.isUseDataSource && values.id
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'sourceSql',
|
|
|
|
field: 'sourceSql',
|
|
|
@ -260,11 +263,11 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 24 },
|
|
|
|
colProps: { span: 24 },
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 },
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 },
|
|
|
|
disTrans: true
|
|
|
|
disTrans: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return values.isUseDataSource
|
|
|
|
return values.isUseDataSource
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'inParamColumn',
|
|
|
|
field: 'inParamColumn',
|
|
|
@ -273,7 +276,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return values.isUseDataSource
|
|
|
|
return values.isUseDataSource
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'groupBy',
|
|
|
|
field: 'groupBy',
|
|
|
@ -282,7 +285,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return values.isUseDataSource
|
|
|
|
return values.isUseDataSource
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'columnView',
|
|
|
|
field: 'columnView',
|
|
|
@ -290,11 +293,11 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
component: 'InputTextArea',
|
|
|
|
component: 'InputTextArea',
|
|
|
|
colProps: { span: 24 },
|
|
|
|
colProps: { span: 24 },
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 }
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return values.isUseDataSource
|
|
|
|
return values.isUseDataSource
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'printJsonContent',
|
|
|
|
field: 'printJsonContent',
|
|
|
@ -303,7 +306,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 24 },
|
|
|
|
colProps: { span: 24 },
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
autoSize: { minRows: 5, maxRows: 20 },
|
|
|
|
autoSize: { minRows: 5, maxRows: 20 },
|
|
|
|
disTrans: true
|
|
|
|
disTrans: true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|