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;