From dc58c91b6717ba7bdfc8e210118e33b26fd0c6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Tue, 7 Apr 2026 17:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=95=86=E9=94=80=E5=94=AE=E7=BB=93?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dayPlan/PngSettleHdrEc/index.ts | 90 +++ .../model/PngSettleHdrEcModel.ts | 66 ++ .../dayPlan/PngMeasureSalesPur/indexOld.vue | 532 --------------- .../PngSettleHdrEc/components/Form.vue | 224 +++++++ .../components/PngSettleHdrEcModal.vue | 110 ++++ .../PngSettleHdrEc/components/config.ts | 607 ++++++++++++++++++ .../components/workflowPermission.ts | 182 ++++++ src/views/dayPlan/PngSettleHdrEc/index.vue | 293 +++++++++ 8 files changed, 1572 insertions(+), 532 deletions(-) create mode 100644 src/api/dayPlan/PngSettleHdrEc/index.ts create mode 100644 src/api/dayPlan/PngSettleHdrEc/model/PngSettleHdrEcModel.ts delete mode 100644 src/views/dayPlan/PngMeasureSalesPur/indexOld.vue create mode 100644 src/views/dayPlan/PngSettleHdrEc/components/Form.vue create mode 100644 src/views/dayPlan/PngSettleHdrEc/components/PngSettleHdrEcModal.vue create mode 100644 src/views/dayPlan/PngSettleHdrEc/components/config.ts create mode 100644 src/views/dayPlan/PngSettleHdrEc/components/workflowPermission.ts create mode 100644 src/views/dayPlan/PngSettleHdrEc/index.vue diff --git a/src/api/dayPlan/PngSettleHdrEc/index.ts b/src/api/dayPlan/PngSettleHdrEc/index.ts new file mode 100644 index 0000000..67ef32c --- /dev/null +++ b/src/api/dayPlan/PngSettleHdrEc/index.ts @@ -0,0 +1,90 @@ +import { LngPngSettleHdrPageModel, LngPngSettleHdrPageParams, LngPngSettleHdrPageResult } from './model/PngSettleHdrEcModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/dayPlan/pngSettleHdrEc/page', + List = '/dayPlan/pngSettleHdrEc/list', + Info = '/dayPlan/pngSettleHdrEc/info', + LngPngSettleHdr = '/dayPlan/pngSettleHdrEc', + + + + + DataLog = '/dayPlan/pngSettleHdrEc/datalog', +} + +/** + * @description: 查询LngPngSettleHdr分页列表 + */ +export async function getLngPngSettleHdrPage(params: LngPngSettleHdrPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngPngSettleHdr信息 + */ +export async function getLngPngSettleHdr(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngPngSettleHdr + */ +export async function addLngPngSettleHdr(lngPngSettleHdr: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngPngSettleHdr, + params: lngPngSettleHdr, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngPngSettleHdr + */ +export async function updateLngPngSettleHdr(lngPngSettleHdr: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngPngSettleHdr, + params: lngPngSettleHdr, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngPngSettleHdr(批量删除) + */ +export async function deleteLngPngSettleHdr(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngPngSettleHdr, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/dayPlan/PngSettleHdrEc/model/PngSettleHdrEcModel.ts b/src/api/dayPlan/PngSettleHdrEc/model/PngSettleHdrEcModel.ts new file mode 100644 index 0000000..09399fa --- /dev/null +++ b/src/api/dayPlan/PngSettleHdrEc/model/PngSettleHdrEcModel.ts @@ -0,0 +1,66 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngPngSettleHdr分页参数 模型 + */ +export interface LngPngSettleHdrPageParams extends BasicPageParams { + id: string; + + settleMonth: string; + + dateFrom: string; + + dateTo: string; + + settleDesc: string; + + qtySettleGj: string; + + qtySettleM3: string; + + amount: string; + + comId: string; + + note: string; + + modifyUserId: string; + + approCode: string; +} + +/** + * @description: LngPngSettleHdr分页返回值模型 + */ +export interface LngPngSettleHdrPageModel { + id: string; + + settleMonth: string; + + dateFrom: string; + + dateTo: string; + + settleDesc: string; + + qtySettleGj: string; + + qtySettleM3: string; + + amount: string; + + comId: string; + + note: string; + + modifyUserId: string; + + approCode: string; +} + +0; + +/** + * @description: LngPngSettleHdr分页返回值结构 + */ +export type LngPngSettleHdrPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/views/dayPlan/PngMeasureSalesPur/indexOld.vue b/src/views/dayPlan/PngMeasureSalesPur/indexOld.vue deleted file mode 100644 index d0fc3fa..0000000 --- a/src/views/dayPlan/PngMeasureSalesPur/indexOld.vue +++ /dev/null @@ -1,532 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/dayPlan/PngSettleHdrEc/components/Form.vue b/src/views/dayPlan/PngSettleHdrEc/components/Form.vue new file mode 100644 index 0000000..e8a5910 --- /dev/null +++ b/src/views/dayPlan/PngSettleHdrEc/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/PngSettleHdrEc/components/PngSettleHdrEcModal.vue b/src/views/dayPlan/PngSettleHdrEc/components/PngSettleHdrEcModal.vue new file mode 100644 index 0000000..0cf2395 --- /dev/null +++ b/src/views/dayPlan/PngSettleHdrEc/components/PngSettleHdrEcModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/PngSettleHdrEc/components/config.ts b/src/views/dayPlan/PngSettleHdrEc/components/config.ts new file mode 100644 index 0000000..7cf7392 --- /dev/null +++ b/src/views/dayPlan/PngSettleHdrEc/components/config.ts @@ -0,0 +1,607 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'datePlan', + label: '结算月', + component: 'RangePicker', + componentProps: { + format: 'YYYY-MM', + picker: 'month', + style: { width: '100%' }, + getPopupContainer: () => document.body, + }, + }, +]; + +export const columns: BasicColumn[] = [ + + { + dataIndex: 'settleMonth', + title: '结算月', + componentType: 'input', + align: 'left', + width: 100, + sorter: true, + }, + + { + dataIndex: 'dateFrom', + title: '结算月开始日期', + componentType: 'input', + align: 'left', + width: 120, + sorter: true, + }, + + { + dataIndex: 'dateTo', + title: '结算月结束日期', + componentType: 'input', + align: 'left', + width: 120, + sorter: true, + }, + + { + dataIndex: 'settleDesc', + title: '结算说明', + componentType: 'input', + align: 'left', + width: 150, + sorter: true, + }, + + { + dataIndex: 'qtySettleGj', + title: '结算总数量(吉焦)', + componentType: 'input', + align: 'left', + width: 130, + sorter: true, + }, + + { + dataIndex: 'qtySettleM3', + title: '结算总数量(方)', + componentType: 'input', + align: 'left', + width: 130, + sorter: true, + }, + + { + dataIndex: 'amount', + title: '结算总金额(元)', + componentType: 'input', + align: 'left', + width: 130, + sorter: true, + }, + + { + dataIndex: 'comId', + title: '交易主体', + componentType: 'input', + align: 'left', + width: 120, + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'input', + align: 'left', + width: 130, + sorter: true, + }, + + { + dataIndex: 'lngFileUploadList', + title: '附件', + componentType: 'input', + align: 'left', + width: 130, + sorter: true, + }, + + { + dataIndex: 'approName', + title: '审批状态', + componentType: 'input', + align: 'left', + width: 80, + 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: 'c893c651fe6f40cb8124804ced3691ff', + field: 'id', + label: 'id', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入id', + 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: '47a9692d15ba4459ac5cca9b0ef27acc', + field: 'settleMonth', + 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: 'a95dc3471e4d453d828cad09cd0ac8c8', + field: 'dateFrom', + 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: '6dee32fb86f84ae6be00c80500d9a1ed', + field: 'dateTo', + 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: '295417400b824b0285e7faf38ea7be0a', + field: 'settleDesc', + 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: 'fc2e47b088504c768a01d6e78ae449f2', + field: 'qtySettleGj', + 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: '69c52f9c3e4d49108d8ec630e8be0577', + field: 'qtySettleM3', + 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: '440a729cdb614cccbf2ba06e71b06d23', + field: 'amount', + 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: 'f900c96471e946089ebc6a6c5bdc5627', + field: 'comId', + 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: '3a0fc6043c254d62833aaaa53d4150e6', + 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%' }, + }, + }, + { + key: 'aa3fcef0b6434517933d07a9dc0992b1', + field: 'modifyUserId', + 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: 'db449bfa91764e60948bc29684f371e7', + field: 'approCode', + 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/dayPlan/PngSettleHdrEc/components/workflowPermission.ts b/src/views/dayPlan/PngSettleHdrEc/components/workflowPermission.ts new file mode 100644 index 0000000..866ac0c --- /dev/null +++ b/src/views/dayPlan/PngSettleHdrEc/components/workflowPermission.ts @@ -0,0 +1,182 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: 'id', + fieldId: 'id', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'c893c651fe6f40cb8124804ced3691ff', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算月', + fieldId: 'settleMonth', + isSubTable: false, + showChildren: true, + type: 'input', + key: '47a9692d15ba4459ac5cca9b0ef27acc', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算月开始日期', + fieldId: 'dateFrom', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'a95dc3471e4d453d828cad09cd0ac8c8', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算月结束日期', + fieldId: 'dateTo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '6dee32fb86f84ae6be00c80500d9a1ed', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算说明', + fieldId: 'settleDesc', + isSubTable: false, + showChildren: true, + type: 'input', + key: '295417400b824b0285e7faf38ea7be0a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算总数量(吉焦)', + fieldId: 'qtySettleGj', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'fc2e47b088504c768a01d6e78ae449f2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算总数量(方)', + fieldId: 'qtySettleM3', + isSubTable: false, + showChildren: true, + type: 'input', + key: '69c52f9c3e4d49108d8ec630e8be0577', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '结算总金额(元)', + fieldId: 'amount', + isSubTable: false, + showChildren: true, + type: 'input', + key: '440a729cdb614cccbf2ba06e71b06d23', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '交易主体', + fieldId: 'comId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'f900c96471e946089ebc6a6c5bdc5627', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3a0fc6043c254d62833aaaa53d4150e6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '附件', + fieldId: 'modifyUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'aa3fcef0b6434517933d07a9dc0992b1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '审批状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'db449bfa91764e60948bc29684f371e7', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/dayPlan/PngSettleHdrEc/index.vue b/src/views/dayPlan/PngSettleHdrEc/index.vue new file mode 100644 index 0000000..4209e78 --- /dev/null +++ b/src/views/dayPlan/PngSettleHdrEc/index.vue @@ -0,0 +1,293 @@ + + + \ No newline at end of file