From 8599ef3c9a31bdedd2e9224b04cea46bda8be518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Tue, 20 Jan 2026 10:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E9=87=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dayPlan/PngMeasureSalesPur/index.ts | 31 ++- .../PngMeasureSalesPur/components/config.ts | 12 +- .../components/searchForm.vue | 38 ++- .../dayPlan/PngMeasureSalesPur/index.vue | 222 +++++++++++------- 4 files changed, 209 insertions(+), 94 deletions(-) diff --git a/src/api/dayPlan/PngMeasureSalesPur/index.ts b/src/api/dayPlan/PngMeasureSalesPur/index.ts index 8035293..a15b2f1 100644 --- a/src/api/dayPlan/PngMeasureSalesPur/index.ts +++ b/src/api/dayPlan/PngMeasureSalesPur/index.ts @@ -11,8 +11,37 @@ enum Api { PageAdd = '/magic-api/dayPlan/dayPlanSelectList', Export = '/dayPlan/pngMeasureSalesPur/export', + Cancel = '/dayPlan/pngMeasureSalesPur/cancel', + Reject = '/dayPlan/pngMeasureSalesPur/reject' - +} +/** + * @description: 驳回LngPngMeasureSalesPur + */ +export async function rejectLngPngMeasureSalesPur(lngPngMeasureSalesPur: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Reject, + params: lngPngMeasureSalesPur, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 取消LngPngMeasureSalesPur + */ +export async function cancelLngPngMeasureSalesPur(lngPngMeasureSalesPur: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Cancel, + params: lngPngMeasureSalesPur, + }, + { + errorMessageMode: mode, + }, + ); } /** * @description: 查询LngPngMeasureSalesPur分页列表 diff --git a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts index 7e23408..81a2fef 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts +++ b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts @@ -39,7 +39,7 @@ export const columns: BasicColumn[] = [ title: '计划日期', componentType: 'input', align: 'left', - + width: 100, sorter: true, }, @@ -48,7 +48,7 @@ export const columns: BasicColumn[] = [ title: '计量日期', componentType: 'input', align: 'left', - + width: 100, sorter: true, }, { @@ -135,7 +135,7 @@ export const columns: BasicColumn[] = [ title: '客户确认人', componentType: 'input', align: 'left', - + width: 110, sorter: true, }, @@ -144,7 +144,7 @@ export const columns: BasicColumn[] = [ title: '客户确认时间', componentType: 'input', align: 'left', - + width: 150, sorter: true, }, @@ -153,7 +153,7 @@ export const columns: BasicColumn[] = [ title: '内部确认人', componentType: 'input', align: 'left', - + width: 110, sorter: true, }, @@ -162,7 +162,7 @@ export const columns: BasicColumn[] = [ title: '内部确认时间', componentType: 'input', align: 'left', - + width: 150, sorter: true, }, { diff --git a/src/views/dayPlan/PngMeasureSalesPur/components/searchForm.vue b/src/views/dayPlan/PngMeasureSalesPur/components/searchForm.vue index f98a258..018da32 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/components/searchForm.vue +++ b/src/views/dayPlan/PngMeasureSalesPur/components/searchForm.vue @@ -8,12 +8,12 @@ - + - + @@ -61,6 +61,7 @@ import downloadPointModal from '/@/components/common/downloadPointModal.vue'; import { Button as AButton, ButtonProps } from '/@/components/Button'; import { BasicArrow } from '/@/components/Basic'; +import { dE } from '@fullcalendar/core/internal-common'; const userStore = useUserStore(); @@ -85,9 +86,10 @@ }); - const emit = defineEmits(['search', 'reset']); + const emit = defineEmits(['search', 'reset', 'toggle']); function toggleAdvanced() { isAdvanced.value = !isAdvanced.value + emit('toggle', isAdvanced.value) } const onSearchDownLoad = (val)=> { openModal(true,{isUpdate: false, type: val}) @@ -102,7 +104,18 @@ } } const onSearch = () => { - emit('search', formState.value) + let obj = { + ...formState.value, + startDate: formState.value.datePlan[0], + endDate: formState.value.datePlan[0], + dateMeaStart: formState.value.dateMea[0], + dateMeaEnd: formState.value.dateMea[1], + } + delete obj.datePlan + delete obj.dateMea + delete obj.pointUpName + delete obj.pointDelyName + emit('search', obj) } const onReset = () => { formState.value ={ page: 1,size: 10} @@ -117,4 +130,21 @@ display: flex; align-items: center; } + .ant-form-item { + margin-bottom: 8px !important; + } + :deep( .ant-col-6) { + width: 320px !important; + max-width: 320px !important;; + } + :deep(.ant-col-6 .ant-form-item-label) { + width: 70px !important; + max-width: 70px !important; + } + :deep(.ant-col-6 .ant-form-item-control) { + width: 240px !important; + max-width: 240px !important; + } + + diff --git a/src/views/dayPlan/PngMeasureSalesPur/index.vue b/src/views/dayPlan/PngMeasureSalesPur/index.vue index 1b7f4fd..d2f93eb 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/index.vue +++ b/src/views/dayPlan/PngMeasureSalesPur/index.vue @@ -1,43 +1,60 @@