From e97ba3bcfb6afb209079947c420df39a3a73f7c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Fri, 16 Jan 2026 17:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dayPlan/Demand/index.ts | 115 +++ src/api/dayPlan/Demand/model/DemandModel.ts | 66 ++ src/api/dayPlan/PngAppro/index.ts | 48 +- src/api/dayPlan/PngMeasureSalesPur/index.ts | 18 +- .../common/ContractSalesListModal.vue | 112 +++ src/components/common/approStatusModal.vue | 8 +- src/router/routes/basic.ts | 10 +- .../dayPlan/Demand/components/DemandModal.vue | 110 +++ src/views/dayPlan/Demand/components/Form.vue | 224 +++++ .../dayPlan/Demand/components/basicForm.vue | 201 ++++ src/views/dayPlan/Demand/components/config.ts | 890 ++++++++++++++++++ .../dayPlan/Demand/components/createForm.vue | 225 +++++ .../Demand/components/workflowPermission.ts | 295 ++++++ src/views/dayPlan/Demand/index.vue | 430 +++++++++ .../dayPlan/PngAppro/components/basicForm.vue | 81 +- .../PngAppro/components/createForm.vue | 318 +++---- src/views/dayPlan/PngAppro/index.vue | 58 +- .../components/createForm.vue | 232 +++++ .../dayPlan/PngMeasureSalesPur/index.vue | 17 +- src/views/secondDev/customFormConfig.ts | 3 +- 20 files changed, 3222 insertions(+), 239 deletions(-) create mode 100644 src/api/dayPlan/Demand/index.ts create mode 100644 src/api/dayPlan/Demand/model/DemandModel.ts create mode 100644 src/components/common/ContractSalesListModal.vue create mode 100644 src/views/dayPlan/Demand/components/DemandModal.vue create mode 100644 src/views/dayPlan/Demand/components/Form.vue create mode 100644 src/views/dayPlan/Demand/components/basicForm.vue create mode 100644 src/views/dayPlan/Demand/components/config.ts create mode 100644 src/views/dayPlan/Demand/components/createForm.vue create mode 100644 src/views/dayPlan/Demand/components/workflowPermission.ts create mode 100644 src/views/dayPlan/Demand/index.vue create mode 100644 src/views/dayPlan/PngMeasureSalesPur/components/createForm.vue diff --git a/src/api/dayPlan/Demand/index.ts b/src/api/dayPlan/Demand/index.ts new file mode 100644 index 0000000..6ac326a --- /dev/null +++ b/src/api/dayPlan/Demand/index.ts @@ -0,0 +1,115 @@ +import { LngPngDemandPageModel, LngPngDemandPageParams, LngPngDemandPageResult } from './model/DemandModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/dayPlan/demand/page', + List = '/dayPlan/demand/list', + Info = '/dayPlan/demand/info', + LngPngDemand = '/dayPlan/demand', + + + Export = '/dayPlan/demand/export', + + + DataLog = '/dayPlan/demand/datalog', +} + +/** + * @description: 查询LngPngDemand分页列表 + */ +export async function getLngPngDemandPage(params: LngPngDemandPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngPngDemand信息 + */ +export async function getLngPngDemand(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngPngDemand + */ +export async function addLngPngDemand(lngPngDemand: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngPngDemand, + params: lngPngDemand, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngPngDemand + */ +export async function updateLngPngDemand(lngPngDemand: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngPngDemand, + params: lngPngDemand, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngPngDemand(批量删除) + */ +export async function deleteLngPngDemand(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngPngDemand, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + + +/** + * @description: 导出LngPngDemand + */ +export async function exportLngPngDemand( + params?: object, + mode: ErrorMessageMode = 'modal' +) { + return defHttp.download( + { + url: Api.Export, + method: 'GET', + params, + responseType: 'blob', + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/dayPlan/Demand/model/DemandModel.ts b/src/api/dayPlan/Demand/model/DemandModel.ts new file mode 100644 index 0000000..6db4f57 --- /dev/null +++ b/src/api/dayPlan/Demand/model/DemandModel.ts @@ -0,0 +1,66 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngPngDemand分页参数 模型 + */ +export interface LngPngDemandPageParams extends BasicPageParams { + verNo: string; + + datePlan: string; + + pointDelyCode: string; + + qtyDemandGj: string; + + qtyDemandM3: string; + + priceSalesGj: string; + + priceSalesM3: string; + + ksId: string; + + id: string; + + orgId: string; + + note: string; + + reply: string; +} + +/** + * @description: LngPngDemand分页返回值模型 + */ +export interface LngPngDemandPageModel { + id: string; + + verNo: string; + + datePlan: string; + + pointDelyCode: string; + + qtyDemandGj: string; + + qtyDemandM3: string; + + priceSalesGj: string; + + priceSalesM3: string; + + ksId: string; + + note: string; + + reply: string; + + orgId: string; +} + +0; + +/** + * @description: LngPngDemand分页返回值结构 + */ +export type LngPngDemandPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/dayPlan/PngAppro/index.ts b/src/api/dayPlan/PngAppro/index.ts index 3c2e49b..c368ae2 100644 --- a/src/api/dayPlan/PngAppro/index.ts +++ b/src/api/dayPlan/PngAppro/index.ts @@ -8,12 +8,54 @@ enum Api { List = '/dayPlan/pngAppro/list', Info = '/dayPlan/pngAppro/info', LngPngAppro = '/dayPlan/pngAppro', + approve = '/dayPlan/pngAppro/approveXS', - - + records = '/magic-api/approve/records', + compare = '/dayPlan/pngAppro/compare' } - +/** + * @description: 获取LngPngAppro信息 + */ +export async function getLngPngApproCompare(demandOrgId: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.compare, + params: { demandOrgId }, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 审批LngPngAppro + */ +export async function approveLngPngAppro(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.approve, + params: lngPngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 获取LngPngAppro审批记录 + */ +export async function getLngPngApproRecords(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.records, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 查询LngPngAppro分页列表 */ diff --git a/src/api/dayPlan/PngMeasureSalesPur/index.ts b/src/api/dayPlan/PngMeasureSalesPur/index.ts index 4b45bba..8035293 100644 --- a/src/api/dayPlan/PngMeasureSalesPur/index.ts +++ b/src/api/dayPlan/PngMeasureSalesPur/index.ts @@ -8,12 +8,26 @@ enum Api { List = '/dayPlan/pngMeasureSalesPur/list', Info = '/dayPlan/pngMeasureSalesPur/info', LngPngMeasureSalesPur = '/dayPlan/pngMeasureSalesPur', - - + PageAdd = '/magic-api/dayPlan/dayPlanSelectList', + Export = '/dayPlan/pngMeasureSalesPur/export', } +/** + * @description: 查询LngPngMeasureSalesPur分页列表 + */ +export async function getLngPngMeasureSalesPurPageAdd(params: LngPngMeasureSalesPurPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PageAdd, + params, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 查询LngPngMeasureSalesPur分页列表 diff --git a/src/components/common/ContractSalesListModal.vue b/src/components/common/ContractSalesListModal.vue new file mode 100644 index 0000000..6cbd7a8 --- /dev/null +++ b/src/components/common/ContractSalesListModal.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/components/common/approStatusModal.vue b/src/components/common/approStatusModal.vue index 3c40515..b5a6d09 100644 --- a/src/components/common/approStatusModal.vue +++ b/src/components/common/approStatusModal.vue @@ -12,7 +12,7 @@ import { BasicTable, useTable, FormSchema, BasicColumn, TableAction } from '/@/components/Table'; import { useMessage } from '/@/hooks/web/useMessage'; import { useI18n } from '/@/hooks/web/useI18n'; - import { getLngSupplierPage } from '/@/api/supplier/Supplier'; + import { getLngPngApproRecords} from '/@/api/dayPlan/PngAppro'; const { t } = useI18n(); const columns: BasicColumn[] = [ @@ -24,16 +24,18 @@ const emit = defineEmits(['success', 'register']); const isUpdate = ref(true); + const id = ref('') const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { setModalProps({ confirmLoading: false }); isUpdate.value = !!data?.isUpdate; + id.value = data.id }); const [registerTable, {}] = useTable({ title: t('审批状态'), - api: getLngSupplierPage, + api: getLngPngApproRecords, columns, formConfig: { rowProps: { @@ -51,7 +53,7 @@ showTableSetting: false, immediate: true, // 设置为不立即调用 beforeFetch: (params) => { - return { ...params,}; + return (id.value); }, }); const getTitle = computed(() => (!unref(isUpdate) ? t('审批状态') : t(''))); diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 131f9e0..840806c 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -275,7 +275,15 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ name: 'PngAppro', component: () => import('/@/views/dayPlan/PngAppro/components/createForm.vue'), meta: { - title: (route) => '管道气审批' + title: (route) => route.query.formName + } + }, + { + path: '/dayPlan/PngMeasureSalesPur/createForm', + name: 'PngMeasureSalesPur', + component: () => import('/@/views/dayPlan/PngMeasureSalesPur/components/createForm.vue'), + meta: { + title: (route) => route.query.formName } }, ] diff --git a/src/views/dayPlan/Demand/components/DemandModal.vue b/src/views/dayPlan/Demand/components/DemandModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/dayPlan/Demand/components/DemandModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/Demand/components/Form.vue b/src/views/dayPlan/Demand/components/Form.vue new file mode 100644 index 0000000..96057c3 --- /dev/null +++ b/src/views/dayPlan/Demand/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/Demand/components/basicForm.vue b/src/views/dayPlan/Demand/components/basicForm.vue new file mode 100644 index 0000000..5f8f3a3 --- /dev/null +++ b/src/views/dayPlan/Demand/components/basicForm.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/views/dayPlan/Demand/components/config.ts b/src/views/dayPlan/Demand/components/config.ts new file mode 100644 index 0000000..a7a0657 --- /dev/null +++ b/src/views/dayPlan/Demand/components/config.ts @@ -0,0 +1,890 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'verNo', + label: '版本号', + component: 'Input', + }, + { + field: 'datePlan', + label: '计划日期', + component: 'Input', + }, + { + field: 'pointDelyCode', + label: '下载点', + component: 'Input', + }, + { + field: 'qtyDemandGj', + label: '指定量 (吉焦)', + component: 'Input', + }, + { + field: 'qtyDemandM3', + label: '指定量 (万方)', + component: 'Input', + }, + { + field: 'priceSalesGj', + label: '批复量 (吉焦)', + component: 'Input', + }, + { + field: 'priceSalesM3', + label: '批复量 (万方)', + component: 'Input', + }, + { + field: 'ksId', + label: '合同', + component: 'Input', + }, + { + field: 'id', + label: 'id', + component: 'Input', + }, + { + field: 'orgId', + label: 'orgId', + component: 'Input', + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, + { + field: 'reply', + label: '批复意见', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'verNo', + title: '版本号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'datePlan', + title: '计划日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'pointDelyCode', + title: '下载点', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyDemandGj', + title: '指定量 (吉焦)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyDemandM3', + title: '指定量 (万方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'priceSalesGj', + title: '批复量 (吉焦)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'priceSalesM3', + title: '批复量 (万方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'ksId', + title: '合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'reply', + title: '批复意见', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'id', + title: 'id', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'orgId', + title: 'orgId', + 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: '507eb62c43774f02bf7ced2f940e3f80', + 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', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: false, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '9b1a78bbef2e4f1d90631cbb6b91fbfb', + field: 'orgId', + label: 'orgId', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入orgId', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: false, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '9623c0b4246d42e4946ee8921534451a', + field: 'verNo', + label: '版本号', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入版本号', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'aa582ae47b85467386f9520d298308a1', + field: 'datePlan', + label: '计划日期', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入计划日期', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '215b645570b844c3a7c5da5ddb283b1b', + field: 'pointDelyCode', + label: '下载点', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入下载点', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '30eaa4cefe5c4cbf91fae935ad28fda4', + field: 'qtyDemandGj', + label: '指定量 (吉焦)', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入指定量 (吉焦)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '509628684d3c4c4badd25da8498cab71', + field: 'qtyDemandM3', + label: '指定量 (万方)', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入指定量 (万方)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '3d0487b5b7324aa8b81ad4f97987fa5c', + field: 'priceSalesGj', + label: '批复量 (吉焦)', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入批复量 (吉焦)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '1087c1af09fa4465adcb09080062a4be', + field: 'priceSalesM3', + label: '批复量 (万方)', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入批复量 (万方)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '3d67cfdee39f454c8a4c1a60a6fb4278', + field: 'ksId', + label: '合同', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入合同', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'c20eeb953fbb4125871b3d214ac9e9cb', + 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: '请输入备注', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'baa1072f803542a78321c5ed9343cd71', + field: 'reply', + label: '批复意见', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入批复意见', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'de7d4ef3aa2749d49aa65ee6400e9c05', + label: '表格组件', + field: 'lngPngDemandPurList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngPngDemandPurList', + columns: [ + { + key: 'cf499d1978bd41a9b56df297e78a1f5f', + title: '供应商', + dataIndex: 'suCode', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入供应商', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { + key: '67e93d9212c94609a514c4edaccc1b31', + title: '上载点', + dataIndex: 'pointUpCode', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入上载点', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { + key: '745dd4f8a280445e94e3104ae4f67324', + title: '指定量 (吉焦)', + dataIndex: 'qtyDemandGj', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入指定量(吉焦)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { + key: 'e9ebeeded6844f58a36f9e4a795086a4', + title: '指定量 (方)', + dataIndex: 'qtyDemandM3', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入指定量 (方)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { + key: 'a6d9c9839a9142a3a0376d09c061b284', + title: '批复量 (吉焦)', + dataIndex: 'qtySalesGj', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入批复量 (吉焦)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { + key: '5eaffb7d44e64e9484c369d037873708', + title: '批复量 (方)', + dataIndex: 'qtySalesM3', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入批复量 (方)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { + key: '4858ef81ff9148b7bd0deb7ded6ef196', + title: '备注', + dataIndex: 'note', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入备注', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/dayPlan/Demand/components/createForm.vue b/src/views/dayPlan/Demand/components/createForm.vue new file mode 100644 index 0000000..b326865 --- /dev/null +++ b/src/views/dayPlan/Demand/components/createForm.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/views/dayPlan/Demand/components/workflowPermission.ts b/src/views/dayPlan/Demand/components/workflowPermission.ts new file mode 100644 index 0000000..df7c8d7 --- /dev/null +++ b/src/views/dayPlan/Demand/components/workflowPermission.ts @@ -0,0 +1,295 @@ +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: '507eb62c43774f02bf7ced2f940e3f80', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: 'orgId', + fieldId: 'orgId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9b1a78bbef2e4f1d90631cbb6b91fbfb', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '版本号', + fieldId: 'verNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9623c0b4246d42e4946ee8921534451a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '计划日期', + fieldId: 'datePlan', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'aa582ae47b85467386f9520d298308a1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '下载点', + fieldId: 'pointDelyCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '215b645570b844c3a7c5da5ddb283b1b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '指定量 (吉焦)', + fieldId: 'qtyDemandGj', + isSubTable: false, + showChildren: true, + type: 'input', + key: '30eaa4cefe5c4cbf91fae935ad28fda4', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '指定量 (万方)', + fieldId: 'qtyDemandM3', + isSubTable: false, + showChildren: true, + type: 'input', + key: '509628684d3c4c4badd25da8498cab71', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '批复量 (吉焦)', + fieldId: 'priceSalesGj', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3d0487b5b7324aa8b81ad4f97987fa5c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '批复量 (万方)', + fieldId: 'priceSalesM3', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1087c1af09fa4465adcb09080062a4be', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同', + fieldId: 'ksId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3d67cfdee39f454c8a4c1a60a6fb4278', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'c20eeb953fbb4125871b3d214ac9e9cb', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '批复意见', + fieldId: 'reply', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'baa1072f803542a78321c5ed9343cd71', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '表格组件', + fieldId: 'lngPngDemandPurList', + type: 'form', + key: 'de7d4ef3aa2749d49aa65ee6400e9c05', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '供应商', + fieldId: 'suCode', + key: 'cf499d1978bd41a9b56df297e78a1f5f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '上载点', + fieldId: 'pointUpCode', + key: '67e93d9212c94609a514c4edaccc1b31', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '指定量 (吉焦)', + fieldId: 'qtyDemandGj', + key: '745dd4f8a280445e94e3104ae4f67324', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '指定量 (方)', + fieldId: 'qtyDemandM3', + key: 'e9ebeeded6844f58a36f9e4a795086a4', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '批复量 (吉焦)', + fieldId: 'qtySalesGj', + key: 'a6d9c9839a9142a3a0376d09c061b284', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '批复量 (方)', + fieldId: 'qtySalesM3', + key: '5eaffb7d44e64e9484c369d037873708', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPngDemandPurList', + fieldName: '备注', + fieldId: 'note', + key: '4858ef81ff9148b7bd0deb7ded6ef196', + children: [], + }, + ], + }, +]; \ No newline at end of file diff --git a/src/views/dayPlan/Demand/index.vue b/src/views/dayPlan/Demand/index.vue new file mode 100644 index 0000000..5afeef3 --- /dev/null +++ b/src/views/dayPlan/Demand/index.vue @@ -0,0 +1,430 @@ + + + \ No newline at end of file diff --git a/src/views/dayPlan/PngAppro/components/basicForm.vue b/src/views/dayPlan/PngAppro/components/basicForm.vue index 1b49578..f51a0cb 100644 --- a/src/views/dayPlan/PngAppro/components/basicForm.vue +++ b/src/views/dayPlan/PngAppro/components/basicForm.vue @@ -4,7 +4,7 @@ {{ formState.datePlan }} - {{ formState.datePlan }} + {{ formState.dayDesc }} {{ formState.kName}} @@ -61,10 +61,12 @@ - 连运{{ formState.powerCont }}台 - 调峰{{ formState.powerPeak }}台 - 停机{{ formState.powerStop }}台 - 其他{{ formState.powerOther }}台 +
+
连运{{ formState.powerCont }}
+
调峰{{ formState.powerCont }}
+
停机{{ formState.powerStop }}
+
其他{{ formState.powerOther }}
+
@@ -76,26 +78,28 @@ - + diff --git a/src/views/dayPlan/PngAppro/components/createForm.vue b/src/views/dayPlan/PngAppro/components/createForm.vue index 4b3799e..571ad9f 100644 --- a/src/views/dayPlan/PngAppro/components/createForm.vue +++ b/src/views/dayPlan/PngAppro/components/createForm.vue @@ -1,104 +1,30 @@