From f4047c8f85cccdc9c4fd3a97389171db463d240c Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Thu, 5 Mar 2026 14:00:58 +0800 Subject: [PATCH] 1.处理点击取消手动,班次显示成数字的bug --- src/mes/indexMes/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mes/indexMes/index.js b/src/mes/indexMes/index.js index 5078552..592a0f3 100644 --- a/src/mes/indexMes/index.js +++ b/src/mes/indexMes/index.js @@ -988,9 +988,13 @@ const SystemFunComponent = () => { // 切换手动/切换自动 const handleProcedureCall1 = async (params = {}, iFlag) => { const extraValues = await new Promise(resolve => { + const shiftValue = String(props.app.sShift || '1'); form.setFieldsValue({ tReportDate: moment(), - sTeamType: props.app.sShift + sTeamType: { + value: shiftValue, // 统一为字符串类型 + label: shiftValue === '1' ? '白班' : '夜班' + } }); Modal.confirm({ title: "取消手动", @@ -1019,7 +1023,7 @@ const SystemFunComponent = () => { onOk() { const values = form.getFieldsValue(); const tReportDate = values?.tReportDate.format("YYYY-MM-DD") || ""; - const sTeamType = values.sTeamType; + const sTeamType = values.sTeamType?.value || ''; resolve({ tReportDate, sTeamType }); }, onCancel() { -- libgit2 0.22.2