diff --git a/src/api/mdm/ExpenseName/index.ts b/src/api/mdm/ExpenseName/index.ts new file mode 100644 index 0000000..351bdfd --- /dev/null +++ b/src/api/mdm/ExpenseName/index.ts @@ -0,0 +1,139 @@ +import { LngBFeePageModel, LngBFeePageParams, LngBFeePageResult } from './model/ExpenseNameModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/expenseName/page', + List = '/mdm/expenseName/list', + Info = '/mdm/expenseName/info', + LngBFee = '/mdm/expenseName', + + + + Enable = '/mdm/expenseName/enable', + Disable= '/mdm/expenseName/disable', + + DataLog = '/mdm/expenseName/datalog', +} + +/** + * @description: 查询LngBFee分页列表 + */ +export async function getLngBFeePage(params: LngBFeePageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBFee信息 + */ +export async function getLngBFee(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBFee + */ +export async function addLngBFee(lngBFee: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBFee, + params: lngBFee, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBFee + */ +export async function updateLngBFee(lngBFee: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBFee, + params: lngBFee, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBFee(批量删除) + */ +export async function deleteLngBFee(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBFee, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBFee + */ +export async function enableLngBFee(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBFee + */ +export async function disableLngBFee(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + /** + * @description: 获取数据日志LngBFee + */ + export async function getDataLogLngBFee(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/ExpenseName/model/ExpenseNameModel.ts b/src/api/mdm/ExpenseName/model/ExpenseNameModel.ts new file mode 100644 index 0000000..a5be4b6 --- /dev/null +++ b/src/api/mdm/ExpenseName/model/ExpenseNameModel.ts @@ -0,0 +1,40 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBFee分页参数 模型 + */ +export interface LngBFeePageParams extends BasicPageParams { + fullName: string; + + valid: string; + + code: string; + + sort: string; + + note: string; +} + +/** + * @description: LngBFee分页返回值模型 + */ +export interface LngBFeePageModel { + id: string; + + code: string; + + fullName: string; + + valid: string; + + note: string; + + sort: string; +} + +0; + +/** + * @description: LngBFee分页返回值结构 + */ +export type LngBFeePageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/mdm/TaxRate/index.ts b/src/api/mdm/TaxRate/index.ts new file mode 100644 index 0000000..0f8e4fe --- /dev/null +++ b/src/api/mdm/TaxRate/index.ts @@ -0,0 +1,139 @@ +import { LngBTaxPageModel, LngBTaxPageParams, LngBTaxPageResult } from './model/TaxRateModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/taxRate/page', + List = '/mdm/taxRate/list', + Info = '/mdm/taxRate/info', + LngBTax = '/mdm/taxRate', + + + + Enable = '/mdm/taxRate/enable', + Disable= '/mdm/taxRate/disable', + + DataLog = '/mdm/taxRate/datalog', +} + +/** + * @description: 查询LngBTax分页列表 + */ +export async function getLngBTaxPage(params: LngBTaxPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBTax信息 + */ +export async function getLngBTax(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBTax + */ +export async function addLngBTax(lngBTax: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBTax, + params: lngBTax, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBTax + */ +export async function updateLngBTax(lngBTax: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBTax, + params: lngBTax, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBTax(批量删除) + */ +export async function deleteLngBTax(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBTax, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBTax + */ +export async function enableLngBTax(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBTax + */ +export async function disableLngBTax(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + /** + * @description: 获取数据日志LngBTax + */ + export async function getDataLogLngBTax(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/TaxRate/model/TaxRateModel.ts b/src/api/mdm/TaxRate/model/TaxRateModel.ts new file mode 100644 index 0000000..5d360ef --- /dev/null +++ b/src/api/mdm/TaxRate/model/TaxRateModel.ts @@ -0,0 +1,77 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBTax分页参数 模型 + */ +export interface LngBTaxPageParams extends BasicPageParams { + fullName: string; + + valid: string; + + code: string; + + rate: string; + + sort: string; + + note: string; +} + +/** + * @description: LngBTax分页返回值模型 + */ +export interface LngBTaxPageModel { + id: string; + + code: string; + + fullName: string; + + rate: string; + + valid: string; + + note: string; + + sort: string; +} + +/** + * @description: LngBTax表类型 + */ +export interface LngBTaxModel { + id: number; + + code: string; + + fullName: string; + + rate: number; + + sort: number; + + valid: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + deleteMark: number; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngBTax分页返回值结构 + */ +export type LngBTaxPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/views/mdm/ExpenseName/components/ExpenseNameModal.vue b/src/views/mdm/ExpenseName/components/ExpenseNameModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/ExpenseName/components/ExpenseNameModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/ExpenseName/components/Form.vue b/src/views/mdm/ExpenseName/components/Form.vue new file mode 100644 index 0000000..62633fe --- /dev/null +++ b/src/views/mdm/ExpenseName/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/ExpenseName/components/config.ts b/src/views/mdm/ExpenseName/components/config.ts new file mode 100644 index 0000000..fb3319a --- /dev/null +++ b/src/views/mdm/ExpenseName/components/config.ts @@ -0,0 +1,343 @@ +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: '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: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'sort', + title: '显示顺序', + componentType: 'number', + 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: '8e5a16f4cdbe495a8afabdc6d68954d9', + 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: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'bab590e2d2bd4113844c3d6834c5e381', + 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: '68cde9811a56457c9998afa941312d2c', + 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: '992c8d7fa196426c948b5273d82bdffe', + 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: '', + 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: 'Y', + 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: 'eb1aa7290e3a461cb290be4c58e8163a', + 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/ExpenseName/components/workflowPermission.ts b/src/views/mdm/ExpenseName/components/workflowPermission.ts new file mode 100644 index 0000000..bb5ab5a --- /dev/null +++ b/src/views/mdm/ExpenseName/components/workflowPermission.ts @@ -0,0 +1,77 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: '8e5a16f4cdbe495a8afabdc6d68954d9', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'bab590e2d2bd4113844c3d6834c5e381', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'number', + key: '68cde9811a56457c9998afa941312d2c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '992c8d7fa196426c948b5273d82bdffe', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'eb1aa7290e3a461cb290be4c58e8163a', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/ExpenseName/index.vue b/src/views/mdm/ExpenseName/index.vue new file mode 100644 index 0000000..5b8139e --- /dev/null +++ b/src/views/mdm/ExpenseName/index.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file diff --git a/src/views/mdm/TaxRate/components/Form.vue b/src/views/mdm/TaxRate/components/Form.vue new file mode 100644 index 0000000..a23005e --- /dev/null +++ b/src/views/mdm/TaxRate/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/TaxRate/components/TaxRateModal.vue b/src/views/mdm/TaxRate/components/TaxRateModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/TaxRate/components/TaxRateModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/TaxRate/components/config.ts b/src/views/mdm/TaxRate/components/config.ts new file mode 100644 index 0000000..9c4047b --- /dev/null +++ b/src/views/mdm/TaxRate/components/config.ts @@ -0,0 +1,390 @@ +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: 'rate', + label: '税率%', + component: 'InputNumber', + componentProps: { + style: { width: '100%' }, + }, + }, + { + 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: 'rate', + 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, + }, + + { + dataIndex: 'sort', + title: '显示顺序', + componentType: 'number', + 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: 'b2105593666543e59343233516072d74', + 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: true, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'efd10fd6b52540008513c3fb2254b63e', + 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: 'f04173ecb4754e2fb8ee2a92aa31b281', + field: 'rate', + 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: null, + maxlength: null, + disabled: false, + showLabel: true, + controls: true, + required: true, + subTotal: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + { + key: '316d13cfd22e4b88ae245258fe68d5e2', + 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: '8c420f9cd77c43cea65f5c39e870087d', + 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: '', + 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: 'Y', + 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: 'f33b25f88b5e4dd4bfdfdae72c650443', + 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/TaxRate/components/workflowPermission.ts b/src/views/mdm/TaxRate/components/workflowPermission.ts new file mode 100644 index 0000000..b3053dd --- /dev/null +++ b/src/views/mdm/TaxRate/components/workflowPermission.ts @@ -0,0 +1,92 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'b2105593666543e59343233516072d74', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'efd10fd6b52540008513c3fb2254b63e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '税率%', + fieldId: 'rate', + isSubTable: false, + showChildren: true, + type: 'number', + key: 'f04173ecb4754e2fb8ee2a92aa31b281', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'number', + key: '316d13cfd22e4b88ae245258fe68d5e2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '8c420f9cd77c43cea65f5c39e870087d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'f33b25f88b5e4dd4bfdfdae72c650443', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/TaxRate/index.vue b/src/views/mdm/TaxRate/index.vue new file mode 100644 index 0000000..a437c2c --- /dev/null +++ b/src/views/mdm/TaxRate/index.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file