diff --git a/src/api/mdm/Currency/index.ts b/src/api/mdm/Currency/index.ts new file mode 100644 index 0000000..b6e69e0 --- /dev/null +++ b/src/api/mdm/Currency/index.ts @@ -0,0 +1,87 @@ +import { LngBCurrencyPageModel, LngBCurrencyPageParams, LngBCurrencyPageResult } from './model/CurrencyModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/currency/page', + List = '/mdm/currency/list', + Info = '/mdm/currency/info', + LngBCurrency = '/mdm/currency', + + +} + +/** + * @description: 查询LngBCurrency分页列表 + */ +export async function getLngBCurrencyPage(params: LngBCurrencyPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBCurrency信息 + */ +export async function getLngBCurrency(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBCurrency + */ +export async function addLngBCurrency(lngBCurrency: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBCurrency, + params: lngBCurrency, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBCurrency + */ +export async function updateLngBCurrency(lngBCurrency: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBCurrency, + params: lngBCurrency, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBCurrency(批量删除) + */ +export async function deleteLngBCurrency(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBCurrency, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/mdm/Currency/model/CurrencyModel.ts b/src/api/mdm/Currency/model/CurrencyModel.ts new file mode 100644 index 0000000..94bc47b --- /dev/null +++ b/src/api/mdm/Currency/model/CurrencyModel.ts @@ -0,0 +1,48 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBCurrency分页参数 模型 + */ +export interface LngBCurrencyPageParams extends BasicPageParams { + code: string; + + fullName: string; + + currSymbol: string; + + localSign: string; + + sort: string; + + valid: string; + + note: string; +} + +/** + * @description: LngBCurrency分页返回值模型 + */ +export interface LngBCurrencyPageModel { + id: string; + + code: string; + + fullName: string; + + currSymbol: string; + + localSign: string; + + sort: string; + + valid: string; + + note: string; +} + +0; + +/** + * @description: LngBCurrency分页返回值结构 + */ +export type LngBCurrencyPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/views/mdm/Currency/components/CurrencyModal.vue b/src/views/mdm/Currency/components/CurrencyModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/Currency/components/CurrencyModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/Currency/components/Form.vue b/src/views/mdm/Currency/components/Form.vue new file mode 100644 index 0000000..290109f --- /dev/null +++ b/src/views/mdm/Currency/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/Currency/components/config.ts b/src/views/mdm/Currency/components/config.ts new file mode 100644 index 0000000..88e9296 --- /dev/null +++ b/src/views/mdm/Currency/components/config.ts @@ -0,0 +1,462 @@ +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: 'currSymbol', + label: '符号', + component: 'Input', + }, + { + field: 'localSign', + label: '是否本币', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1978056598125330433' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'sort', + label: '显示顺序', + component: 'Input', + }, + { + 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: 'currSymbol', + title: '符号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'localSign', + title: '是否本币', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'sort', + title: '显示顺序', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'input', + 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: '8bdc5b8468004f54904d30bf03e445cc', + 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: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '866d9f66d886441990702205e50214ae', + 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: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'afe4e7d3e0f34542baa38a7201d987f0', + field: 'currSymbol', + 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: '1270794f304d4a2dbc0f4b9428979900', + field: 'localSign', + 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: '1978056598125330433' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1978056598125330433', + style: { width: '100%' }, + }, + }, + { + key: 'eaa4d5c8eda64cd897bd7fd99bc7c583', + field: 'sort', + 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: '601920889e184a83b2838b9959afd477', + 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: '3c877465ed7c43239afbf22889098695', + field: 'note', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/mdm/Currency/components/workflowPermission.ts b/src/views/mdm/Currency/components/workflowPermission.ts new file mode 100644 index 0000000..43ae616 --- /dev/null +++ b/src/views/mdm/Currency/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: '8bdc5b8468004f54904d30bf03e445cc', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '866d9f66d886441990702205e50214ae', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '符号', + fieldId: 'currSymbol', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'afe4e7d3e0f34542baa38a7201d987f0', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '是否本币', + fieldId: 'localSign', + isSubTable: false, + showChildren: true, + type: 'select', + key: '1270794f304d4a2dbc0f4b9428979900', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'eaa4d5c8eda64cd897bd7fd99bc7c583', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '601920889e184a83b2838b9959afd477', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3c877465ed7c43239afbf22889098695', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/Currency/index.vue b/src/views/mdm/Currency/index.vue new file mode 100644 index 0000000..778526a --- /dev/null +++ b/src/views/mdm/Currency/index.vue @@ -0,0 +1,300 @@ + + + \ No newline at end of file