Commit 397a40fe4cb705b8c7fa383b16c2eddbb996837f

Authored by chenxt
1 parent 6eb9cca8

首样信息发送要先获取生产执行信息

src/mes/productionExec/noticeModal/index.js
... ... @@ -172,7 +172,7 @@ const firstNoticeModal = _props => {
172 172 item.sEmployeeName?.includes(filterEmployeeName) || item.sEmployeeNo?.includes(filterEmployeeName)
173 173 ) || [],
174 174 tableProps: {
175   - onChange: () => {},
  175 + onChange: () => { },
176 176 tableHeight: "100%"
177 177 },
178 178 onSelectRowChange: (name, selectedRowKeys) => {
... ... @@ -213,7 +213,7 @@ const firstNoticeModal = _props => {
213 213 ...commonBusiness.getTableTypes("slave2", props),
214 214 // data: commonFunc.getTableSelectedData({ props, tableName: "slave1" }),
215 215 tableProps: {
216   - onChange: () => {},
  216 + onChange: () => { },
217 217 tableHeight: "100%"
218 218 },
219 219 onSelectRowChange: (name, selectedRowKeys) => {
... ... @@ -232,7 +232,7 @@ const firstNoticeModal = _props => {
232 232 const tablePropsPost = {
233 233 ...commonBusiness.getTableTypes("slave0", props),
234 234 tableProps: {
235   - onChange: () => {},
  235 + onChange: () => { },
236 236 tableHeight: "100%"
237 237 },
238 238 onSelectRowChange: props.onSelectRowChange
... ... @@ -242,7 +242,7 @@ const firstNoticeModal = _props => {
242 242 const tableProps = {
243 243 ...commonBusiness.getTableTypes("slave4", props),
244 244 tableProps: {
245   - onChange: () => {},
  245 + onChange: () => { },
246 246 tableHeight: "100%"
247 247 }
248 248 };
... ... @@ -266,6 +266,7 @@ const firstNoticeModal = _props => {
266 266 viewRow,
267 267 tableName: viewName
268 268 };
  269 + console.log("🚀 ~ firstNoticeModal ~ viewProps:", viewProps)
269 270  
270 271 return (
271 272 <Modal
... ... @@ -341,6 +342,11 @@ const firstNoticeModal = _props =&gt; {
341 342 size="large"
342 343 type="primary"
343 344 onClick={() => {
  345 + const { sWorkOrderId = "" } = viewProps.viewRow;
  346 + if (sWorkOrderId === "undefined" || sWorkOrderId === "") {
  347 + message.error("信息丢失,请先点击生产执行获取完整信息!");
  348 + return
  349 + }
344 350 if (commonUtils.isEmptyObject(tablePropsCollect.data)) {
345 351 message.info("请先选择接收人!");
346 352 return;
... ...