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