diff --git a/src/api/mdm/Category/index.ts b/src/api/mdm/Category/index.ts new file mode 100644 index 0000000..b17aec2 --- /dev/null +++ b/src/api/mdm/Category/index.ts @@ -0,0 +1,139 @@ +import { LngBCategoryPageModel, LngBCategoryPageParams, LngBCategoryPageResult } from './model/CategoryModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/category/page', + List = '/mdm/category/list', + Info = '/mdm/category/info', + LngBCategory = '/mdm/category', + + + + Enable = '/mdm/category/enable', + Disable= '/mdm/category/disable', + + DataLog = '/mdm/category/datalog', +} + +/** + * @description: 查询LngBCategory分页列表 + */ +export async function getLngBCategoryPage(params: LngBCategoryPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBCategory信息 + */ +export async function getLngBCategory(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBCategory + */ +export async function addLngBCategory(lngBCategory: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBCategory, + params: lngBCategory, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBCategory + */ +export async function updateLngBCategory(lngBCategory: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBCategory, + params: lngBCategory, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBCategory(批量删除) + */ +export async function deleteLngBCategory(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBCategory, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBCategory + */ +export async function enableLngBCategory(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBCategory + */ +export async function disableLngBCategory(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + /** + * @description: 获取数据日志LngBCategory + */ + export async function getDataLogLngBCategory(id: string, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Datalog, + data: id, + }, + { + errorMessageMode: mode, + }, + ); + } \ No newline at end of file diff --git a/src/api/mdm/Category/model/CategoryModel.ts b/src/api/mdm/Category/model/CategoryModel.ts new file mode 100644 index 0000000..6ff2896 --- /dev/null +++ b/src/api/mdm/Category/model/CategoryModel.ts @@ -0,0 +1,48 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBCategory分页参数 模型 + */ +export interface LngBCategoryPageParams extends BasicPageParams { + fullName: string; + + valid: string; + + code: string; + + unitCode: string; + + coefficient: string; + + sort: string; + + note: string; +} + +/** + * @description: LngBCategory分页返回值模型 + */ +export interface LngBCategoryPageModel { + id: string; + + code: string; + + fullName: string; + + unitCode: string; + + coefficient: string; + + sort: string; + + valid: string; + + note: string; +} + +0; + +/** + * @description: LngBCategory分页返回值结构 + */ +export type LngBCategoryPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/mdm/DocCp/index.ts b/src/api/mdm/DocCp/index.ts new file mode 100644 index 0000000..2ed4b89 --- /dev/null +++ b/src/api/mdm/DocCp/index.ts @@ -0,0 +1,139 @@ +import { LngBDocCpPageModel, LngBDocCpPageParams, LngBDocCpPageResult } from './model/DocCpModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/docCp/page', + List = '/mdm/docCp/list', + Info = '/mdm/docCp/info', + LngBDocCp = '/mdm/docCp', + + + + Enable = '/mdm/docCp/enable', + Disable= '/mdm/docCp/disable', + + DataLog = '/mdm/docCp/datalog', +} + +/** + * @description: 查询LngBDocCp分页列表 + */ +export async function getLngBDocCpPage(params: LngBDocCpPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBDocCp信息 + */ +export async function getLngBDocCp(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBDocCp + */ +export async function addLngBDocCp(lngBDocCp: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBDocCp, + params: lngBDocCp, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBDocCp + */ +export async function updateLngBDocCp(lngBDocCp: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBDocCp, + params: lngBDocCp, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBDocCp(批量删除) + */ +export async function deleteLngBDocCp(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBDocCp, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBDocCp + */ +export async function enableLngBDocCp(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBDocCp + */ +export async function disableLngBDocCp(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + /** + * @description: 获取数据日志LngBDocCp + */ + export async function getDataLogLngBDocCp(id: string, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Datalog, + data: id, + }, + { + errorMessageMode: mode, + }, + ); + } \ No newline at end of file diff --git a/src/api/mdm/DocCp/model/DocCpModel.ts b/src/api/mdm/DocCp/model/DocCpModel.ts new file mode 100644 index 0000000..bd8ce42 --- /dev/null +++ b/src/api/mdm/DocCp/model/DocCpModel.ts @@ -0,0 +1,52 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBDocCp分页参数 模型 + */ +export interface LngBDocCpPageParams extends BasicPageParams { + fullName: string; + + valid: string; + + code: string; + + suSign: string; + + suNecSign: string; + + cuSign: string; + + cuNecSign: string; + + note: string; +} + +/** + * @description: LngBDocCp分页返回值模型 + */ +export interface LngBDocCpPageModel { + id: string; + + code: string; + + fullName: string; + + suSign: string; + + suNecSign: string; + + cuSign: string; + + cuNecSign: string; + + valid: string; + + note: string; +} + +0; + +/** + * @description: LngBDocCp分页返回值结构 + */ +export type LngBDocCpPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/mdm/LNGStation/index.ts b/src/api/mdm/LNGStation/index.ts new file mode 100644 index 0000000..0e59d1c --- /dev/null +++ b/src/api/mdm/LNGStation/index.ts @@ -0,0 +1,139 @@ +import { LngBStationLngPageModel, LngBStationLngPageParams, LngBStationLngPageResult } from './model/LngStationModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/lngStation/page', + List = '/mdm/lngStation/list', + Info = '/mdm/lngStation/info', + LngBStationLng = '/mdm/lngStation', + + + + Enable = '/mdm/lngStation/enable', + Disable= '/mdm/lngStation/disable', + + DataLog = '/mdm/lngStation/datalog', +} + +/** + * @description: 查询LngBStationLng分页列表 + */ +export async function getLngBStationLngPage(params: LngBStationLngPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBStationLng信息 + */ +export async function getLngBStationLng(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBStationLng + */ +export async function addLngBStationLng(lngBStationLng: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBStationLng, + params: lngBStationLng, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBStationLng + */ +export async function updateLngBStationLng(lngBStationLng: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBStationLng, + params: lngBStationLng, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBStationLng(批量删除) + */ +export async function deleteLngBStationLng(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBStationLng, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBStationLng + */ +export async function enableLngBStationLng(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBStationLng + */ +export async function disableLngBStationLng(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + /** + * @description: 获取数据日志LngBStationLng + */ + export async function getDataLogLngBStationLng(id: string, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Datalog, + data: id, + }, + { + errorMessageMode: mode, + }, + ); + } \ No newline at end of file diff --git a/src/api/mdm/LNGStation/model/LNGStationModel.ts b/src/api/mdm/LNGStation/model/LNGStationModel.ts new file mode 100644 index 0000000..91f1a13 --- /dev/null +++ b/src/api/mdm/LNGStation/model/LNGStationModel.ts @@ -0,0 +1,125 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBStationLng分页参数 模型 + */ +export interface LngBStationLngPageParams extends BasicPageParams { + code: string; + + fullName: string; + + enterprise: string; + + contact: string; + + tel: string; + + email: string; + + regionCode: string; + + addr: string; + + addrMail: string; + + ownSign: string; + + onlineSign: string; + + sort: string; + + valid: string; + + note: string; +} + +/** + * @description: LngBStationLng分页返回值模型 + */ +export interface LngBStationLngPageModel { + id: string; + + code: string; + + fullName: string; + + enterprise: string; + + contact: string; + + tel: string; + + email: string; + + valid: string; + + regionCode: string; + + addr: string; + + addrMail: string; + + ownSign: string; + + onlineSign: string; + + sort: string; + + note: string; +} + +/** + * @description: LngBStationLng表类型 + */ +export interface LngBStationLngModel { + id: number; + + code: string; + + fullName: string; + + enterprise: string; + + contact: string; + + tel: string; + + email: string; + + regionCode: string; + + addr: string; + + addrMail: string; + + ownSign: string; + + onlineSign: string; + + sort: number; + + valid: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + deleteMark: number; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngBStationLng分页返回值结构 + */ +export type LngBStationLngPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/mdm/Port/index.ts b/src/api/mdm/Port/index.ts new file mode 100644 index 0000000..b5ef128 --- /dev/null +++ b/src/api/mdm/Port/index.ts @@ -0,0 +1,139 @@ +import { LngBPortPageModel, LngBPortPageParams, LngBPortPageResult } from './model/PortModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/port/page', + List = '/mdm/port/list', + Info = '/mdm/port/info', + LngBPort = '/mdm/port', + + + + Enable = '/mdm/port/enable', + Disable= '/mdm/port/disable', + + DataLog = '/mdm/port/datalog', +} + +/** + * @description: 查询LngBPort分页列表 + */ +export async function getLngBPortPage(params: LngBPortPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBPort信息 + */ +export async function getLngBPort(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBPort + */ +export async function addLngBPort(lngBPort: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBPort, + params: lngBPort, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBPort + */ +export async function updateLngBPort(lngBPort: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBPort, + params: lngBPort, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBPort(批量删除) + */ +export async function deleteLngBPort(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBPort, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBPort + */ +export async function enableLngBPort(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBPort + */ +export async function disableLngBPort(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + /** + * @description: 获取数据日志LngBPort + */ + export async function getDataLogLngBPort(id: string, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Datalog, + data: id, + }, + { + errorMessageMode: mode, + }, + ); + } \ No newline at end of file diff --git a/src/api/mdm/Port/model/PortModel.ts b/src/api/mdm/Port/model/PortModel.ts new file mode 100644 index 0000000..e58a8ad --- /dev/null +++ b/src/api/mdm/Port/model/PortModel.ts @@ -0,0 +1,76 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBPort分页参数 模型 + */ +export interface LngBPortPageParams extends BasicPageParams { + fullName: string; + + valid: string; + + code: string; + + shortName: string; + + regionCode: string; + + capacity: string; + + longitude: string; + + latitude: string; + + limit1: string; + + limit2: string; + + limit3: string; + + limit4: string; + + sort: string; + + note: string; +} + +/** + * @description: LngBPort分页返回值模型 + */ +export interface LngBPortPageModel { + id: string; + + code: string; + + fullName: string; + + shortName: string; + + regionCode: string; + + capacity: string; + + longitude: string; + + latitude: string; + + limit1: string; + + limit2: string; + + limit3: string; + + limit4: string; + + sort: string; + + valid: string; + + note: string; +} + +0; + +/** + * @description: LngBPort分页返回值结构 + */ +export type LngBPortPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/views/mdm/Category/components/CategoryModal.vue b/src/views/mdm/Category/components/CategoryModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/Category/components/CategoryModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/Category/components/Form.vue b/src/views/mdm/Category/components/Form.vue new file mode 100644 index 0000000..c28742e --- /dev/null +++ b/src/views/mdm/Category/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/Category/components/config.ts b/src/views/mdm/Category/components/config.ts new file mode 100644 index 0000000..3c2b503 --- /dev/null +++ b/src/views/mdm/Category/components/config.ts @@ -0,0 +1,458 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'fullName', + label: '名称', + component: 'Input', + }, + { + field: 'valid', + label: '有效标志', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'code', + label: '编码', + component: 'Input', + }, + { + field: 'unitCode', + label: '数量单位', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1980562721538633730' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'coefficient', + label: '车/数量单位', + component: 'Input', + }, + { + field: 'sort', + label: '显示顺序', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'code', + title: '编码', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'fullName', + title: '名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'unitCode', + title: '数量单位', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'coefficient', + title: '车/数量单位', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'sort', + title: '显示顺序', + componentType: 'number', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, +]; +//表单事件 +export const formEventConfigs = { + 0: [ + { + type: 'circle', + color: '#2774ff', + text: '开始节点', + icon: '#icon-kaishi', + bgcColor: '#D8E5FF', + isUserDefined: false, + }, + { + color: '#F6AB01', + icon: '#icon-chushihua', + text: '初始化表单', + bgcColor: '#f9f5ea', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 1: [ + { + color: '#B36EDB', + icon: '#icon-shujufenxi', + text: '获取表单数据', + detail: '(新增无此操作)', + bgcColor: '#F8F2FC', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 2: [ + { + color: '#F8625C', + icon: '#icon-jiazai', + text: '加载表单', + bgcColor: '#FFF1F1', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 3: [ + { + color: '#6C6AE0', + icon: '#icon-jsontijiao', + text: '提交表单', + bgcColor: '#F5F4FF', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 4: [ + { + type: 'circle', + color: '#F8625C', + text: '结束节点', + icon: '#icon-jieshuzhiliao', + bgcColor: '#FFD6D6', + isLast: true, + isUserDefined: false, + }, + ], +}; +export const formProps: FormProps = { + labelCol: { span: 3, offset: 0 }, + labelAlign: 'right', + layout: 'horizontal', + size: 'default', + schemas: [ + { + key: '1ac3ffe5d4f54caa890a13d4c9624c4f', + field: 'code', + label: '编码', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入编码', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: true, + showLabel: true, + required: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'bf017ce23394455689757955a23d7b72', + field: 'fullName', + label: '名称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入名称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: true, + showLabel: true, + required: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '533dcfe1e679462e830091588c1cb9fd', + field: 'unitCode', + label: '数量单位', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择数量单位', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1980562721538633730' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: true, + rules: [], + events: {}, + isShow: true, + itemId: '1980562721538633730', + style: { width: '100%' }, + }, + }, + { + key: '57d85cbf34fa475298997f5a7427bf8d', + field: 'coefficient', + label: '车/数量单位', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入车/数量单位', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '870650303cf54491b476233e6d5d9b6b', + field: 'sort', + label: '显示顺序', + type: 'number', + component: 'InputNumber', + colProps: { span: 24 }, + defaultValue: null, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + width: '100%', + span: '', + defaultValue: null, + min: 0, + max: null, + step: 1, + maxlength: null, + disabled: false, + showLabel: true, + controls: true, + required: false, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '17bbaf11ddb0454d854f2082abd7b191', + field: 'valid', + label: '有效标志', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择有效标志', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1978057078528327681', + style: { width: '100%' }, + }, + }, + { + key: '7e8014fe939e4ca88ebe986dd91c555c', + field: 'note', + label: '备注', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入备注', + maxlength: null, + rows: 4, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/mdm/Category/components/workflowPermission.ts b/src/views/mdm/Category/components/workflowPermission.ts new file mode 100644 index 0000000..560fa3f --- /dev/null +++ b/src/views/mdm/Category/components/workflowPermission.ts @@ -0,0 +1,107 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1ac3ffe5d4f54caa890a13d4c9624c4f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'bf017ce23394455689757955a23d7b72', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '数量单位', + fieldId: 'unitCode', + isSubTable: false, + showChildren: true, + type: 'select', + key: '533dcfe1e679462e830091588c1cb9fd', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '车/数量单位', + fieldId: 'coefficient', + isSubTable: false, + showChildren: true, + type: 'input', + key: '57d85cbf34fa475298997f5a7427bf8d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'number', + key: '870650303cf54491b476233e6d5d9b6b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '17bbaf11ddb0454d854f2082abd7b191', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '7e8014fe939e4ca88ebe986dd91c555c', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/Category/index.vue b/src/views/mdm/Category/index.vue new file mode 100644 index 0000000..e78d2e1 --- /dev/null +++ b/src/views/mdm/Category/index.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file diff --git a/src/views/mdm/DocCp/components/DocCpModal.vue b/src/views/mdm/DocCp/components/DocCpModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/DocCp/components/DocCpModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/DocCp/components/Form.vue b/src/views/mdm/DocCp/components/Form.vue new file mode 100644 index 0000000..0f3dacc --- /dev/null +++ b/src/views/mdm/DocCp/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/DocCp/components/config.ts b/src/views/mdm/DocCp/components/config.ts new file mode 100644 index 0000000..a006bff --- /dev/null +++ b/src/views/mdm/DocCp/components/config.ts @@ -0,0 +1,564 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'fullName', + label: '名称', + component: 'Input', + }, + { + field: 'valid', + label: '有效标志', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'code', + label: '编码', + component: 'Input', + }, + { + field: 'suSign', + label: '供应商适用', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1676483934342787074' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'suNecSign', + label: '供应商必须提供', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1676831752869834753' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'cuSign', + label: '客户适用', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1679007059387240450' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'cuNecSign', + label: '供应商必须提供', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1679010661178691585' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'code', + title: '编码', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'fullName', + title: '名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'suSign', + title: '供应商适用', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'suNecSign', + title: '供应商必须提供', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cuSign', + title: '客户适用', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cuNecSign', + title: '供应商必须提供', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, +]; +//表单事件 +export const formEventConfigs = { + 0: [ + { + type: 'circle', + color: '#2774ff', + text: '开始节点', + icon: '#icon-kaishi', + bgcColor: '#D8E5FF', + isUserDefined: false, + }, + { + color: '#F6AB01', + icon: '#icon-chushihua', + text: '初始化表单', + bgcColor: '#f9f5ea', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 1: [ + { + color: '#B36EDB', + icon: '#icon-shujufenxi', + text: '获取表单数据', + detail: '(新增无此操作)', + bgcColor: '#F8F2FC', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 2: [ + { + color: '#F8625C', + icon: '#icon-jiazai', + text: '加载表单', + bgcColor: '#FFF1F1', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 3: [ + { + color: '#6C6AE0', + icon: '#icon-jsontijiao', + text: '提交表单', + bgcColor: '#F5F4FF', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 4: [ + { + type: 'circle', + color: '#F8625C', + text: '结束节点', + icon: '#icon-jieshuzhiliao', + bgcColor: '#FFD6D6', + isLast: true, + isUserDefined: false, + }, + ], +}; +export const formProps: FormProps = { + labelCol: { span: 3, offset: 0 }, + labelAlign: 'right', + layout: 'horizontal', + size: 'default', + schemas: [ + { + key: 'cddc3f097b0f44a7926dd616c0952b83', + field: 'code', + label: '编码', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入编码', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: true, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'df68cc4350f542f7b3a8c7b55c39927c', + field: 'fullName', + label: '名称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入名称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '4d924c23bfd84b22ac683240bae16929', + field: 'suSign', + label: '供应商适用', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择供应商适用', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1676483934342787074' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1676483934342787074', + style: { width: '100%' }, + }, + }, + { + key: 'f60587f7bb5c482ba5afca76fec9916a', + field: 'suNecSign', + label: '供应商必须提供', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择供应商必须提供', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1676831752869834753' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1676831752869834753', + style: { width: '100%' }, + }, + }, + { + key: '5e8a28c2704c431cbf5f9cb9be19edc7', + field: 'cuSign', + label: '客户适用', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择客户适用', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1679007059387240450' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1679007059387240450', + style: { width: '100%' }, + }, + }, + { + key: 'e2a327ac6aa249a5b5eb66199e263131', + field: 'cuNecSign', + label: '供应商必须提供', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择供应商必须提供', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1679010661178691585' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1679010661178691585', + style: { width: '100%' }, + }, + }, + { + key: '5b805c85cd284ddf88ff0025273f7939', + field: 'valid', + label: '有效标志', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择有效标志', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1978057078528327681', + style: { width: '100%' }, + }, + }, + { + key: 'd74fd39918f043e5992b2fbe119b5725', + field: 'note', + label: '备注', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入备注', + maxlength: null, + rows: 4, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/mdm/DocCp/components/workflowPermission.ts b/src/views/mdm/DocCp/components/workflowPermission.ts new file mode 100644 index 0000000..46c2821 --- /dev/null +++ b/src/views/mdm/DocCp/components/workflowPermission.ts @@ -0,0 +1,122 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'cddc3f097b0f44a7926dd616c0952b83', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'df68cc4350f542f7b3a8c7b55c39927c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商适用', + fieldId: 'suSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: '4d924c23bfd84b22ac683240bae16929', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商必须提供', + fieldId: 'suNecSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: 'f60587f7bb5c482ba5afca76fec9916a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '客户适用', + fieldId: 'cuSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: '5e8a28c2704c431cbf5f9cb9be19edc7', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商必须提供', + fieldId: 'cuNecSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: 'e2a327ac6aa249a5b5eb66199e263131', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '5b805c85cd284ddf88ff0025273f7939', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'd74fd39918f043e5992b2fbe119b5725', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/DocCp/index.vue b/src/views/mdm/DocCp/index.vue new file mode 100644 index 0000000..f19faeb --- /dev/null +++ b/src/views/mdm/DocCp/index.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file diff --git a/src/views/mdm/LNGStation/components/Form.vue b/src/views/mdm/LNGStation/components/Form.vue new file mode 100644 index 0000000..53c8495 --- /dev/null +++ b/src/views/mdm/LNGStation/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/LNGStation/components/LNGStationModal.vue b/src/views/mdm/LNGStation/components/LNGStationModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/LNGStation/components/LNGStationModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/LNGStation/components/config.ts b/src/views/mdm/LNGStation/components/config.ts new file mode 100644 index 0000000..2422467 --- /dev/null +++ b/src/views/mdm/LNGStation/components/config.ts @@ -0,0 +1,804 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'code', + label: '编码', + component: 'Input', + }, + { + field: 'fullName', + label: '名称', + component: 'Input', + }, + { + field: 'enterprise', + label: '所属企业', + component: 'Input', + }, + { + field: 'contact', + label: '联系人', + component: 'Input', + }, + { + field: 'tel', + label: '电话', + component: 'Input', + }, + { + field: 'email', + label: '邮箱', + component: 'Input', + }, + { + field: 'regionCode', + label: '行政区域', + component: 'Area', + componentProps: { + suffix: 'ant-design:setting-outlined', + placeholder: '请选择', + getPopupContainer: () => document.body, + }, + }, + + { + field: 'addr', + label: '地址', + component: 'Input', + }, + { + field: 'addrMail', + label: '通讯地址', + component: 'Input', + }, + { + field: 'ownSign', + label: '自有设备标识', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1679045876047552513' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'onlineSign', + label: '系统直联', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1419276800524423168' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'sort', + label: '显示顺序', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + field: 'valid', + label: '有效标志', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'code', + title: '编码', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'fullName', + title: '名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'enterprise', + title: '所属企业', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'contact', + title: '联系人', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'tel', + title: '电话', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'email', + title: '邮箱', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'regionCode', + title: '行政区域', + componentType: 'area', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'addr', + title: '地址', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'addrMail', + title: '通讯地址', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'ownSign', + title: '自有设备标识', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'onlineSign', + title: '系统直联', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'sort', + title: '显示顺序', + componentType: 'number', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, +]; +//表单事件 +export const formEventConfigs = { + 0: [ + { + type: 'circle', + color: '#2774ff', + text: '开始节点', + icon: '#icon-kaishi', + bgcColor: '#D8E5FF', + isUserDefined: false, + }, + { + color: '#F6AB01', + icon: '#icon-chushihua', + text: '初始化表单', + bgcColor: '#f9f5ea', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 1: [ + { + color: '#B36EDB', + icon: '#icon-shujufenxi', + text: '获取表单数据', + detail: '(新增无此操作)', + bgcColor: '#F8F2FC', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 2: [ + { + color: '#F8625C', + icon: '#icon-jiazai', + text: '加载表单', + bgcColor: '#FFF1F1', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 3: [ + { + color: '#6C6AE0', + icon: '#icon-jsontijiao', + text: '提交表单', + bgcColor: '#F5F4FF', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 4: [ + { + type: 'circle', + color: '#F8625C', + text: '结束节点', + icon: '#icon-jieshuzhiliao', + bgcColor: '#FFD6D6', + isLast: true, + isUserDefined: false, + }, + ], +}; +export const formProps: FormProps = { + labelCol: { span: 3, offset: 0 }, + labelAlign: 'right', + layout: 'horizontal', + size: 'default', + schemas: [ + { + key: '6e1b995f3d4c45c79288cee66ce5308d', + field: 'code', + label: '编码', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入编码', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: true, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'e23fcb9f62104eb284b553403a12ee12', + field: 'fullName', + label: '名称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入名称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'd32af84b3fc8443cbef441fc6ce5fc0b', + field: 'enterprise', + label: '所属企业', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入所属企业', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '5adb1f7560b344d789102d4b0af05b64', + field: 'contact', + label: '联系人', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入联系人', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'a5a825723d8f4789aaea9189a98f792c', + field: 'tel', + label: '电话', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入电话', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'cbdd54bdc1334671904b1c10e064571d', + field: 'email', + label: '邮箱', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入邮箱', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '1485b829c80a493bb55f37d1c839ccc9', + field: 'regionCode', + label: '行政区域', + type: 'area', + component: 'Area', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择行政区域', + showLabel: true, + disabled: false, + allowClear: false, + required: false, + rules: [], + events: {}, + isShow: true, + style: { width: '100%' }, + }, + }, + { + key: 'e98223a611784bee9a626acceb1745e8', + field: 'addr', + label: '地址', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入地址', + maxlength: null, + rows: 4, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: 'a0e7e0343222424c823d2a3149a0ceb6', + field: 'addrMail', + label: '通讯地址', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入通讯地址', + maxlength: null, + rows: 4, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '94d31ed5e9b04033bf33a41d10f2d33b', + field: 'ownSign', + label: '自有设备标识', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择自有设备标识', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1679045876047552513' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: true, + rules: [], + events: {}, + isShow: true, + itemId: '1679045876047552513', + style: { width: '100%' }, + }, + }, + { + key: '136ded020cc84ef4827e0b077b64d24f', + field: 'onlineSign', + label: '系统直联', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择系统直联', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1419276800524423168' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1419276800524423168', + style: { width: '100%' }, + }, + }, + { + key: '38a1796c62434566ae6de94eb1b5f914', + field: 'sort', + label: '显示顺序', + type: 'number', + component: 'InputNumber', + colProps: { span: 24 }, + defaultValue: null, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + width: '100%', + span: '', + defaultValue: null, + min: null, + max: null, + step: 1, + maxlength: null, + disabled: false, + showLabel: true, + controls: true, + required: false, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '7c3ac171d20642bcb8f5b079f118b775', + field: 'valid', + label: '有效标志', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择有效标志', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1978057078528327681', + style: { width: '100%' }, + }, + }, + { + key: '972e6f34ee7d42899f19a9cae558544f', + field: 'note', + label: '备注', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入备注', + maxlength: null, + rows: 4, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/mdm/LNGStation/components/workflowPermission.ts b/src/views/mdm/LNGStation/components/workflowPermission.ts new file mode 100644 index 0000000..3e0a64e --- /dev/null +++ b/src/views/mdm/LNGStation/components/workflowPermission.ts @@ -0,0 +1,212 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: '6e1b995f3d4c45c79288cee66ce5308d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e23fcb9f62104eb284b553403a12ee12', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '所属企业', + fieldId: 'enterprise', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'd32af84b3fc8443cbef441fc6ce5fc0b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '联系人', + fieldId: 'contact', + isSubTable: false, + showChildren: true, + type: 'input', + key: '5adb1f7560b344d789102d4b0af05b64', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '电话', + fieldId: 'tel', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'a5a825723d8f4789aaea9189a98f792c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '邮箱', + fieldId: 'email', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'cbdd54bdc1334671904b1c10e064571d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '行政区域', + fieldId: 'regionCode', + isSubTable: false, + showChildren: true, + type: 'area', + key: '1485b829c80a493bb55f37d1c839ccc9', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '地址', + fieldId: 'addr', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'e98223a611784bee9a626acceb1745e8', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '通讯地址', + fieldId: 'addrMail', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'a0e7e0343222424c823d2a3149a0ceb6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '自有设备标识', + fieldId: 'ownSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: '94d31ed5e9b04033bf33a41d10f2d33b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '系统直联', + fieldId: 'onlineSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: '136ded020cc84ef4827e0b077b64d24f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'number', + key: '38a1796c62434566ae6de94eb1b5f914', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '7c3ac171d20642bcb8f5b079f118b775', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '972e6f34ee7d42899f19a9cae558544f', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/LNGStation/index.vue b/src/views/mdm/LNGStation/index.vue new file mode 100644 index 0000000..de71014 --- /dev/null +++ b/src/views/mdm/LNGStation/index.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file diff --git a/src/views/mdm/Port/components/Form.vue b/src/views/mdm/Port/components/Form.vue new file mode 100644 index 0000000..e00f956 --- /dev/null +++ b/src/views/mdm/Port/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/Port/components/PortModal.vue b/src/views/mdm/Port/components/PortModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/Port/components/PortModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/Port/components/config.ts b/src/views/mdm/Port/components/config.ts new file mode 100644 index 0000000..d6e7b5e --- /dev/null +++ b/src/views/mdm/Port/components/config.ts @@ -0,0 +1,770 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'fullName', + label: '名称', + component: 'Input', + }, + { + field: 'valid', + label: '有效标志', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'code', + label: '编码', + component: 'Input', + }, + { + field: 'shortName', + label: '简称', + component: 'Input', + }, + { + field: 'regionCode', + label: '所属国家和地区', + component: 'ApiCascader', + componentProps: { + apiConfig: { + path: 'CodeGeneration/cascade', + method: 'GET', + apiId: '0772d128d20f4f80aaafc784adba338a', + }, + showFormat: 'all', + separator: '/', + selectedConfig: 'any', + }, + }, + + { + field: 'capacity', + label: '吞吐量', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + field: 'longitude', + label: '连线经度', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + field: 'latitude', + label: '连线纬度', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + field: 'limit1', + label: '限制1', + component: 'Input', + }, + { + field: 'limit2', + label: '限制2', + component: 'Input', + }, + { + field: 'limit3', + label: '限制3', + component: 'Input', + }, + { + field: 'limit4', + label: '限制4', + component: 'Input', + }, + { + field: 'sort', + label: '显示顺序', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'code', + title: '编码', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'fullName', + title: '名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'shortName', + title: '简称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'regionCode', + title: '所属国家和地区', + componentType: 'cascader', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'capacity', + title: '吞吐量', + componentType: 'number', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'longitude', + title: '连线经度', + componentType: 'number', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'latitude', + title: '连线纬度', + componentType: 'number', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'limit1', + title: '限制1', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'limit2', + title: '限制2', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'limit3', + title: '限制3', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'limit4', + title: '限制4', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'sort', + title: '显示顺序', + componentType: 'number', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, +]; +//表单事件 +export const formEventConfigs = { + 0: [ + { + type: 'circle', + color: '#2774ff', + text: '开始节点', + icon: '#icon-kaishi', + bgcColor: '#D8E5FF', + isUserDefined: false, + }, + { + color: '#F6AB01', + icon: '#icon-chushihua', + text: '初始化表单', + bgcColor: '#f9f5ea', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 1: [ + { + color: '#B36EDB', + icon: '#icon-shujufenxi', + text: '获取表单数据', + detail: '(新增无此操作)', + bgcColor: '#F8F2FC', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 2: [ + { + color: '#F8625C', + icon: '#icon-jiazai', + text: '加载表单', + bgcColor: '#FFF1F1', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 3: [ + { + color: '#6C6AE0', + icon: '#icon-jsontijiao', + text: '提交表单', + bgcColor: '#F5F4FF', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 4: [ + { + type: 'circle', + color: '#F8625C', + text: '结束节点', + icon: '#icon-jieshuzhiliao', + bgcColor: '#FFD6D6', + isLast: true, + isUserDefined: false, + }, + ], +}; +export const formProps: FormProps = { + labelCol: { span: 3, offset: 0 }, + labelAlign: 'right', + layout: 'horizontal', + size: 'default', + schemas: [ + { + key: 'ea4fcc80a1dd40219bcc8e28b7052655', + field: 'code', + label: '编码', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入编码', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: true, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '1b3bf1efab214701a9588b4cfb9dfd5c', + field: 'fullName', + label: '名称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入名称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '0dcc7f43f9e34f1b87cc2f730417b3e0', + field: 'shortName', + label: '简称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入简称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: true, + showLabel: true, + required: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '6020d6d0bab849089148eba1d194931a', + field: 'regionCode', + label: '所属国家和地区', + type: 'cascader', + component: 'ApiCascader', + colProps: { span: 24 }, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + width: '100%', + span: '', + placeholder: '请选择所属国家和地区', + showFormat: 'all', + separator: '/', + selectedConfig: 'selectMostChildLevel', + disabled: false, + allowClear: false, + showLabel: true, + apiConfig: { + path: 'CodeGeneration/cascade', + method: 'GET', + apiId: '0772d128d20f4f80aaafc784adba338a', + }, + required: false, + rules: [], + events: {}, + isShow: true, + style: { width: '100%' }, + }, + }, + { + key: 'cd46b163fa8345809ab5d579d96f40f2', + field: 'capacity', + label: '吞吐量', + type: 'number', + component: 'InputNumber', + colProps: { span: 24 }, + defaultValue: null, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + width: '100%', + span: '', + defaultValue: null, + min: null, + max: null, + step: 0.01, + maxlength: '', + disabled: false, + showLabel: true, + controls: true, + required: false, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '16e52805d5334759be1d2f40d517efa6', + field: 'longitude', + label: '连线经度', + type: 'number', + component: 'InputNumber', + colProps: { span: 24 }, + defaultValue: null, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + width: '100%', + span: '', + defaultValue: null, + min: null, + max: null, + step: 0.01, + maxlength: 2, + disabled: false, + showLabel: true, + controls: true, + required: false, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '6b1a921de60d4676be79074cefe0327a', + field: 'latitude', + label: '连线纬度', + type: 'number', + component: 'InputNumber', + colProps: { span: 24 }, + defaultValue: null, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + width: '100%', + span: '', + defaultValue: null, + min: null, + max: null, + step: 0.01, + maxlength: 2, + disabled: false, + showLabel: true, + controls: true, + required: false, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '68e573db83d941efb9a5687f84726b6b', + field: 'limit1', + label: '限制1', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入限制1', + maxlength: null, + rows: 4, + autoSize: false, + showCount: true, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '34c007fd1d9544ecb3a5ecea5d7f7b1b', + field: 'limit2', + label: '限制2', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入限制2', + maxlength: null, + rows: 4, + autoSize: false, + showCount: true, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '9099e3d919a64dfe860719c34fcaf37d', + field: 'limit3', + label: '限制3', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入限制3', + maxlength: null, + rows: 4, + autoSize: false, + showCount: true, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '16fbe387e5c6471b9be06524f4766f10', + field: 'limit4', + label: '限制4', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入限制4', + maxlength: null, + rows: 4, + autoSize: false, + showCount: true, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: 'ef6536972cc54e21b09b4f5637730d0b', + field: 'sort', + label: '显示顺序', + type: 'number', + component: 'InputNumber', + colProps: { span: 24 }, + defaultValue: null, + componentProps: { + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + width: '100%', + span: '', + defaultValue: null, + min: 0, + max: null, + step: 1, + maxlength: '', + disabled: false, + showLabel: true, + controls: true, + required: false, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '03f1a079e8544b77a793460306207f41', + field: 'valid', + label: '有效标志', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择有效标志', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: true, + mode: 'multiple', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '1978057078528327681' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1978057078528327681', + style: { width: '100%' }, + }, + }, + { + key: 'e15f5901160a49e9969fdd7d61e00053', + field: 'note', + label: '备注', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入备注', + maxlength: null, + rows: 4, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/mdm/Port/components/workflowPermission.ts b/src/views/mdm/Port/components/workflowPermission.ts new file mode 100644 index 0000000..7b3d114 --- /dev/null +++ b/src/views/mdm/Port/components/workflowPermission.ts @@ -0,0 +1,212 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'ea4fcc80a1dd40219bcc8e28b7052655', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1b3bf1efab214701a9588b4cfb9dfd5c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '简称', + fieldId: 'shortName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '0dcc7f43f9e34f1b87cc2f730417b3e0', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '所属国家和地区', + fieldId: 'regionCode', + isSubTable: false, + showChildren: true, + type: 'cascader', + key: '6020d6d0bab849089148eba1d194931a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '吞吐量', + fieldId: 'capacity', + isSubTable: false, + showChildren: true, + type: 'number', + key: 'cd46b163fa8345809ab5d579d96f40f2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '连线经度', + fieldId: 'longitude', + isSubTable: false, + showChildren: true, + type: 'number', + key: '16e52805d5334759be1d2f40d517efa6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '连线纬度', + fieldId: 'latitude', + isSubTable: false, + showChildren: true, + type: 'number', + key: '6b1a921de60d4676be79074cefe0327a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '限制1', + fieldId: 'limit1', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '68e573db83d941efb9a5687f84726b6b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '限制2', + fieldId: 'limit2', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '34c007fd1d9544ecb3a5ecea5d7f7b1b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '限制3', + fieldId: 'limit3', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '9099e3d919a64dfe860719c34fcaf37d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '限制4', + fieldId: 'limit4', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '16fbe387e5c6471b9be06524f4766f10', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'number', + key: 'ef6536972cc54e21b09b4f5637730d0b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '03f1a079e8544b77a793460306207f41', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'e15f5901160a49e9969fdd7d61e00053', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/Port/index.vue b/src/views/mdm/Port/index.vue new file mode 100644 index 0000000..cbc607d --- /dev/null +++ b/src/views/mdm/Port/index.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file