From bdbffe4c308579ca1d360be37931bcf4ceafb697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 21 Jan 2026 17:56:35 +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 | 31 +- .../RichTextEditor/src/RichTextEditor.vue | 3 + .../common/ContractDemandListModal.vue | 63 +++ .../common/ContractSalesListModal.vue | 112 ----- .../common/upLoadDemandListModal.vue | 63 +++ src/design/index.less | 20 + src/router/routes/basic.ts | 8 + .../ContractFact/components/createForm.vue | 3 + .../ContractPurPng/components/createForm.vue | 8 +- .../ContractSales/components/createForm.vue | 16 +- .../dataconfig/oaNews/components/View.vue | 3 + .../dayPlan/Demand/components/basicForm.vue | 79 ++- src/views/dayPlan/Demand/components/config.ts | 24 +- src/views/dayPlan/Demand/index.vue | 8 +- .../dayPlan/PngAppro/components/config.ts | 147 ++++++ src/views/dayPlan/PngAppro/indexJsz.vue | 452 ++++++++++++++++++ .../PngMeasureSalesPur/components/config.ts | 2 +- src/views/secondDev/customFormConfig.ts | 1 - 18 files changed, 886 insertions(+), 157 deletions(-) create mode 100644 src/components/common/ContractDemandListModal.vue delete mode 100644 src/components/common/ContractSalesListModal.vue create mode 100644 src/components/common/upLoadDemandListModal.vue create mode 100644 src/views/dayPlan/PngAppro/indexJsz.vue diff --git a/src/api/dayPlan/Demand/index.ts b/src/api/dayPlan/Demand/index.ts index 6ac326a..6fd2ccf 100644 --- a/src/api/dayPlan/Demand/index.ts +++ b/src/api/dayPlan/Demand/index.ts @@ -3,17 +3,44 @@ import { defHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - Page = '/dayPlan/demand/page', + // Page = '/dayPlan/demand/page', + Page = '/magic-api/dayPlan/pngDemandPageList', List = '/dayPlan/demand/list', Info = '/dayPlan/demand/info', LngPngDemand = '/dayPlan/demand', - + ContractList ='/magic-api/dayPlan/queryPngDemandContractList', + PointDelyList ='/magic-api/dayPlan/queryPngDemandPointDely', Export = '/dayPlan/demand/export', DataLog = '/dayPlan/demand/datalog', } +export async function getLngPngDemandPointDely(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PointDelyList, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 获取LngPngDemand信息 + */ +export async function getLngPngDemandContractList(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.ContractList, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 查询LngPngDemand分页列表 diff --git a/src/components/RichTextEditor/src/RichTextEditor.vue b/src/components/RichTextEditor/src/RichTextEditor.vue index bb09850..d64f288 100644 --- a/src/components/RichTextEditor/src/RichTextEditor.vue +++ b/src/components/RichTextEditor/src/RichTextEditor.vue @@ -88,4 +88,7 @@ :deep(.w-e-text-container) { background-color: v-bind("props.disabled ? '#f5f5f5': '#fff'"); } + :deep(.w-e-text p img) { + margin: 0 auto; + } diff --git a/src/components/common/ContractDemandListModal.vue b/src/components/common/ContractDemandListModal.vue new file mode 100644 index 0000000..afddf16 --- /dev/null +++ b/src/components/common/ContractDemandListModal.vue @@ -0,0 +1,63 @@ + + + diff --git a/src/components/common/ContractSalesListModal.vue b/src/components/common/ContractSalesListModal.vue deleted file mode 100644 index 6cbd7a8..0000000 --- a/src/components/common/ContractSalesListModal.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/src/components/common/upLoadDemandListModal.vue b/src/components/common/upLoadDemandListModal.vue new file mode 100644 index 0000000..afddf16 --- /dev/null +++ b/src/components/common/upLoadDemandListModal.vue @@ -0,0 +1,63 @@ + + + diff --git a/src/design/index.less b/src/design/index.less index 960a9d1..c33cf60 100644 --- a/src/design/index.less +++ b/src/design/index.less @@ -76,4 +76,24 @@ span { .ant-form-item-label > label { color: rgba(0, 0, 0, 0.65) !important; } +} +.ant-table-container { + .ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-table tfoot > tr > th, .ant-table tfoot > tr > td { + padding: 0px 8px; + height: 40px; + + } + .ant-table-thead { + background: #F6F8FA; + height: 46px; + + } + .ant-table-column-title { + font-weight: bold; + color: rgba(0, 0, 0, 0.85) !important; + } + .ant-table-column-sorters { + justify-content: flex-start; + display: inline-flex; + } } \ No newline at end of file diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 840806c..f3044fd 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -286,6 +286,14 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ title: (route) => route.query.formName } }, + { + path: '/dayPlan/Demand/createForm', + name: 'Demand', + component: () => import('/@/views/dayPlan/Demand/components/createForm.vue'), + meta: { + title: (route) => route.query.formName + } + }, ] diff --git a/src/views/contract/ContractFact/components/createForm.vue b/src/views/contract/ContractFact/components/createForm.vue index a3f7423..6d01a41 100644 --- a/src/views/contract/ContractFact/components/createForm.vue +++ b/src/views/contract/ContractFact/components/createForm.vue @@ -434,6 +434,9 @@ } else { rules.dateTo = [{ required: false, message: "该项为必填项", trigger: 'change' }] rules.dateFrom = [{ required: false, message: "该项为必填项", trigger: 'change' }] + + formState.dateFrom = dayjs('2000-01-01') + formState.dateTo = dayjs('2999-12-31') } } const amountTypeCodeChange = (val) => { diff --git a/src/views/contract/ContractPurPng/components/createForm.vue b/src/views/contract/ContractPurPng/components/createForm.vue index 6ebabc1..8c862fd 100644 --- a/src/views/contract/ContractPurPng/components/createForm.vue +++ b/src/views/contract/ContractPurPng/components/createForm.vue @@ -16,7 +16,7 @@ - + {{ item.name }} @@ -319,6 +319,12 @@ } }); + const periodTypeCodeChange = (val) => { + if (val !== 'Y') { + formState.dateFrom = dayjs('2000-01-01') + formState.dateTo = dayjs('2999-12-31') + } + } const uploadListChange = (val) => { dataFile.value = val } diff --git a/src/views/contract/ContractSales/components/createForm.vue b/src/views/contract/ContractSales/components/createForm.vue index 5844d39..87bc382 100644 --- a/src/views/contract/ContractSales/components/createForm.vue +++ b/src/views/contract/ContractSales/components/createForm.vue @@ -16,7 +16,7 @@ - + {{ item.name }} @@ -113,9 +113,9 @@

交割点

- 新增 - 删除
+ 新增 + 删除 @@ -339,6 +339,12 @@ } }); + const periodTypeCodeChange = (val) => { + if (val !== 'Y') { + formState.dateFrom = dayjs('2000-01-01') + formState.dateTo = dayjs('2999-12-31') + } + } const uploadListChange = (val) => { dataFile.value = val } @@ -470,12 +476,12 @@ purList: [] }) } - const deleteUpLoad = () => { + const deleteUpLoad = (idx) => { if (dataListPoint.value[dataListPoint.value.length -1].id) { hasDel.value = true } if (dataListPoint.value.length == 1) return - dataListPoint.value.pop() + dataListPoint.value.splice(idx, 1) } const handleSuccess = (val) => { diff --git a/src/views/dataconfig/oaNews/components/View.vue b/src/views/dataconfig/oaNews/components/View.vue index aaa3d12..382cc9e 100644 --- a/src/views/dataconfig/oaNews/components/View.vue +++ b/src/views/dataconfig/oaNews/components/View.vue @@ -58,4 +58,7 @@ font-size: 14px; height: 440px; } + :deep(.content-box p img) { + margin: 0 auto; + } diff --git a/src/views/dayPlan/Demand/components/basicForm.vue b/src/views/dayPlan/Demand/components/basicForm.vue index 5f8f3a3..e1131a9 100644 --- a/src/views/dayPlan/Demand/components/basicForm.vue +++ b/src/views/dayPlan/Demand/components/basicForm.vue @@ -2,17 +2,17 @@ - + - + - - - {{ formState.fullName }} + + + @@ -89,17 +89,27 @@ - + + + \ No newline at end of file diff --git a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts index bdadbe3..6f257a7 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts +++ b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts @@ -149,7 +149,7 @@ export const columns: BasicColumn[] = [ title: '客户确认时间', componentType: 'input', align: 'left', - width: 150, + width: 180, sorter: true, }, diff --git a/src/views/secondDev/customFormConfig.ts b/src/views/secondDev/customFormConfig.ts index 4d1b6f0..0785f91 100644 --- a/src/views/secondDev/customFormConfig.ts +++ b/src/views/secondDev/customFormConfig.ts @@ -8,6 +8,5 @@ export const customFormConfig = { 'contractFactApprove', 'addContractPurPng', 'addContractSales', - 'addDemand' ], }; \ No newline at end of file