Commit fafd72c77c450f45c63224d414e89e07d0c91a03

Authored by chenxt
1 parent 5bd485e2

完工按钮提示

src/mes/scheduledTasks/machineTasks/index.js
@@ -349,13 +349,21 @@ const useInfoEvent = props => { @@ -349,13 +349,21 @@ const useInfoEvent = props => {
349 return; 349 return;
350 } 350 }
351 if (showName === "完工") { 351 if (showName === "完工") {
352 - console.log(item.record)  
353 - var prompt = "生产订单号:"+item.record.sSReserve5+"<br/>"+item.record.sProductName+""  
354 - + "<br/>已完成:"+item.record.dProductionReportQty+"<br/>剩余:"+item.record.dNoProductionReportQty+"<br/>是否确认完工!"  
355 - ; 352 + // var prompt = "生产订单号:"+item.record.sSReserve5+"<br/>"+item.record.sProductName+""
  353 + // + "<br/>已完成:"+item.record.dProductionReportQty+"<br/>剩余:"+item.record.dNoProductionReportQty+"<br/>是否确认完工!"
  354 + // ;
  355 +
356 Modal.confirm({ 356 Modal.confirm({
357 title: "温馨提示:", 357 title: "温馨提示:",
358 - content: prompt, 358 + content: (
  359 + <div>
  360 + <div>生产订单号:{item.record.sSReserve5}</div>
  361 + <div>{item.record.sProductName}</div>
  362 + <div>已完成:{item.record.dProductionReportQty}</div>
  363 + <div>剩余:{item.record.dNoProductionReportQty}</div>
  364 + <div>是否确认完工?</div>
  365 + </div>
  366 + ),
359 okText: "确认", 367 okText: "确认",
360 cancelText: "取消", 368 cancelText: "取消",
361 onOk() { 369 onOk() {