From 397a40fe4cb705b8c7fa383b16c2eddbb996837f Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Tue, 6 Jan 2026 18:11:36 +0800 Subject: [PATCH] 首样信息发送要先获取生产执行信息 --- src/mes/productionExec/noticeModal/index.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mes/productionExec/noticeModal/index.js b/src/mes/productionExec/noticeModal/index.js index 62769ef..0aa3879 100644 --- a/src/mes/productionExec/noticeModal/index.js +++ b/src/mes/productionExec/noticeModal/index.js @@ -172,7 +172,7 @@ const firstNoticeModal = _props => { item.sEmployeeName?.includes(filterEmployeeName) || item.sEmployeeNo?.includes(filterEmployeeName) ) || [], tableProps: { - onChange: () => {}, + onChange: () => { }, tableHeight: "100%" }, onSelectRowChange: (name, selectedRowKeys) => { @@ -213,7 +213,7 @@ const firstNoticeModal = _props => { ...commonBusiness.getTableTypes("slave2", props), // data: commonFunc.getTableSelectedData({ props, tableName: "slave1" }), tableProps: { - onChange: () => {}, + onChange: () => { }, tableHeight: "100%" }, onSelectRowChange: (name, selectedRowKeys) => { @@ -232,7 +232,7 @@ const firstNoticeModal = _props => { const tablePropsPost = { ...commonBusiness.getTableTypes("slave0", props), tableProps: { - onChange: () => {}, + onChange: () => { }, tableHeight: "100%" }, onSelectRowChange: props.onSelectRowChange @@ -242,7 +242,7 @@ const firstNoticeModal = _props => { const tableProps = { ...commonBusiness.getTableTypes("slave4", props), tableProps: { - onChange: () => {}, + onChange: () => { }, tableHeight: "100%" } }; @@ -266,6 +266,7 @@ const firstNoticeModal = _props => { viewRow, tableName: viewName }; + console.log("🚀 ~ firstNoticeModal ~ viewProps:", viewProps) return ( { size="large" type="primary" onClick={() => { + const { sWorkOrderId = "" } = viewProps.viewRow; + if (sWorkOrderId === "undefined" || sWorkOrderId === "") { + message.error("信息丢失,请先点击生产执行获取完整信息!"); + return + } if (commonUtils.isEmptyObject(tablePropsCollect.data)) { message.info("请先选择接收人!"); return; -- libgit2 0.22.2