diff --git a/src/api/dayPlan/LngMeasurePur/index.ts b/src/api/dayPlan/LngMeasurePur/index.ts index 3e64e23..f9abccf 100644 --- a/src/api/dayPlan/LngMeasurePur/index.ts +++ b/src/api/dayPlan/LngMeasurePur/index.ts @@ -3,17 +3,52 @@ import { defHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - Page = '/dayPlan/lngMeasurePur/page', + // Page = '/dayPlan/lngMeasurePur/page', + Page = '/magic-api/dayPlan/lngMeasurePurPageList', List = '/dayPlan/lngMeasurePur/list', Info = '/dayPlan/lngMeasurePur/info', LngLngMeasure = '/dayPlan/lngMeasurePur', - + submit = '/dayPlan/lngMeasurePur/submit', + Cancel = '/dayPlan/lngMeasurePur/cancel', + Reject = '/dayPlan/lngMeasurePur/reject', DataLog = '/dayPlan/lngMeasurePur/datalog', } - +export async function rejectlLngLngMeasurePur(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Reject, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function submitLngLngMeasurePur(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.submit, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function cancelLngLngMeasurePur(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Cancel, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 查询LngLngMeasure分页列表 */ diff --git a/src/components/common/rejectReplyModal.vue b/src/components/common/rejectReplyModal.vue index cb25c2f..b5b9451 100644 --- a/src/components/common/rejectReplyModal.vue +++ b/src/components/common/rejectReplyModal.vue @@ -47,6 +47,7 @@ const props = defineProps({ () => props.visible, (val) => { isOpen.value = val + formRef.value && formRef.value.resetFields(); }, { immediate: true, @@ -56,12 +57,13 @@ const props = defineProps({ const handleCancel = () => { formRef.value.resetFields(); isOpen.value = false + emit('cancel'); } const handleSubmit = async () => { try { await formRef.value.validate(); emit('success', formState); - formRef.value.resetFields(); + // formRef.value.resetFields(); } catch (error) { console.log('验证失败:', error); } diff --git a/src/views/dayPlan/LngMeasurePur/components/config.ts b/src/views/dayPlan/LngMeasurePur/components/config.ts index f80098e..1e4c8a4 100644 --- a/src/views/dayPlan/LngMeasurePur/components/config.ts +++ b/src/views/dayPlan/LngMeasurePur/components/config.ts @@ -63,7 +63,7 @@ export const columns: BasicColumn[] = [ title: '计划日期', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -72,7 +72,7 @@ export const columns: BasicColumn[] = [ title: '客户简称', componentType: 'input', align: 'left', - + width: 150, sorter: true, }, @@ -81,7 +81,7 @@ export const columns: BasicColumn[] = [ title: '气源地', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -90,7 +90,7 @@ export const columns: BasicColumn[] = [ title: '车头号', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -99,7 +99,7 @@ export const columns: BasicColumn[] = [ title: '挂车号', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -108,7 +108,7 @@ export const columns: BasicColumn[] = [ title: '装车量(吨)', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -117,7 +117,7 @@ export const columns: BasicColumn[] = [ title: '装车量(吉焦)', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -126,7 +126,7 @@ export const columns: BasicColumn[] = [ title: '装车量(方)', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -135,7 +135,7 @@ export const columns: BasicColumn[] = [ title: '进厂皮重时间', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, @@ -144,7 +144,7 @@ export const columns: BasicColumn[] = [ title: '出厂毛重时间', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, @@ -153,7 +153,7 @@ export const columns: BasicColumn[] = [ title: '客户确认人', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -162,7 +162,7 @@ export const columns: BasicColumn[] = [ title: '客户确认时间', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, @@ -171,7 +171,7 @@ export const columns: BasicColumn[] = [ title: '内部确认人', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -180,7 +180,7 @@ export const columns: BasicColumn[] = [ title: '内部确认时间', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, @@ -189,7 +189,7 @@ export const columns: BasicColumn[] = [ title: '销售合同', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, @@ -198,7 +198,7 @@ export const columns: BasicColumn[] = [ title: '供应商', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, @@ -207,7 +207,7 @@ export const columns: BasicColumn[] = [ title: '附件', componentType: 'input', align: 'left', - + width: 200, sorter: true, }, @@ -216,7 +216,7 @@ export const columns: BasicColumn[] = [ title: '状态', componentType: 'input', align: 'left', - + width: 100, sorter: true, }, @@ -225,7 +225,7 @@ export const columns: BasicColumn[] = [ title: '驳回意见', componentType: 'input', align: 'left', - + width: 130, sorter: true, }, ]; diff --git a/src/views/dayPlan/LngMeasurePur/index.vue b/src/views/dayPlan/LngMeasurePur/index.vue index 3824015..04c476d 100644 --- a/src/views/dayPlan/LngMeasurePur/index.vue +++ b/src/views/dayPlan/LngMeasurePur/index.vue @@ -27,7 +27,7 @@ - + - \ No newline at end of file diff --git a/src/views/dayPlan/PngApproGd/index.vue b/src/views/dayPlan/PngApproGd/index.vue index e396964..6fe8395 100644 --- a/src/views/dayPlan/PngApproGd/index.vue +++ b/src/views/dayPlan/PngApproGd/index.vue @@ -34,7 +34,7 @@ - +