Commit fa12d8a90626cce2d60d361fcefd797f7d31d9b8

Authored by chenxt
1 parent 440782b8

调机开始状态

src/mes/common/commonOperationBarComponent/index.js
... ... @@ -739,7 +739,7 @@ const useCommonOperationBarComponentEvent = props => {
739 739 } else if (props.bMesBill) {
740 740  
741 741 const btnName = sControlName.replace('BtnLeft.', '').replace('BtnRight.', '').toLowerCase();
742   - let enabled = props.enabled
  742 + let enabled = props.enabled
743 743 if (props.enabled === undefined && !props?.parentProps?.record) {
744 744 enabled = true
745 745 }
... ... @@ -840,7 +840,13 @@ const useCommonOperationBarComponentEvent = props => {
840 840 style.color = "#000";
841 841 defaultProps.style = style;
842 842 }
843   -
  843 + if (config.btnBgColor) {
  844 + const { style = {} } = defaultProps;
  845 + style.backgroundColor = config.btnBgColor;
  846 + style.borderColor = config.btnBgColor;
  847 + style.color = "#fff";
  848 + defaultProps.style = style;
  849 + }
844 850 return defaultProps;
845 851 };
846 852  
... ...
src/mes/productionExec/productionExecMain/index.js
... ... @@ -560,15 +560,20 @@ const ProductionExecContentByType = props => {
560 560 )
561 561 return;
562 562 const { globalData } = props?.app
563   - const {currentWorkOrderInfo} = globalData || {}
  563 + const { currentWorkOrderInfo } = globalData || {}
564 564 const { dAdjustOrRun } = currentWorkOrderInfo || {}
565   - const sStatusNameValue = dAdjustOrRun === 0
  565 + // const sStatusNameValue = dAdjustOrRun === 0
  566 + // ? 0
  567 + // : 1;
  568 + const sStatusNameValue = deviceTargetInfoData[0]?.sStatus?.includes(
  569 + "adjustment"
  570 + )
566 571 ? 0
567 572 : 1;
568 573  
569 574 const showValue = {
570 575 stop: {
571   - showName: "调机 / 生产",
  576 + showName: "调机开始",
572 577 onClick: config =>
573 578 operationFetch(props, config, undefined, () => {
574 579 props.onSaveState({
... ... @@ -578,7 +583,7 @@ const ProductionExecContentByType = props => {
578 583 })
579 584 },
580 585 again: {
581   - showName: "调机 / 生产",
  586 + showName: "调机结束",
582 587 onClick: config =>
583 588 operationFetch(props, config, "again", () => {
584 589 props.onSaveState({
... ...