From 1c6cde674ab4521631ccc98483168272bf76f98d Mon Sep 17 00:00:00 2001 From: zhangz Date: Tue, 9 Dec 2025 13:47:55 +0800 Subject: [PATCH] 整体下班前新增确认; --- src/mes/common/commonOperationBarComponent/index.js | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/src/mes/common/commonOperationBarComponent/index.js b/src/mes/common/commonOperationBarComponent/index.js index 5c1de3b..04d0f50 100644 --- a/src/mes/common/commonOperationBarComponent/index.js +++ b/src/mes/common/commonOperationBarComponent/index.js @@ -10,7 +10,7 @@ import costomPageFun from "@/mes/costomPageFun"; import * as commonConfig from "@/utils/config"; import styles from "./index.less"; -import { Button, Space, Input, Modal, Dropdown } from "antd"; +import { Button, Space, Input, Modal, Dropdown, Popconfirm } from "antd"; import { ScanOutlined } from "@ant-design/icons"; const useCommonOperationBarComponentEvent = props => { @@ -676,7 +676,7 @@ const useCommonOperationBarComponentEvent = props => { } else { rowDataValue = rowDataValue.toString(); } - } catch (error) {} + } catch (error) { } switch (conditionStr) { case "===": return rowDataValue === conditionValue; @@ -957,23 +957,23 @@ const CommonOperationBarComponent = basProps => { bFilter = searchValue !== undefined && searchValue !== "" ? [ - { - bFilterCondition: bExactMatch ? "=" : "like", - bFilterName: "sWorkOrderNo", - bFilterValue: searchValue - } - ] + { + bFilterCondition: bExactMatch ? "=" : "like", + bFilterName: "sWorkOrderNo", + bFilterValue: searchValue + } + ] : undefined; } else { bFilter = searchValue !== undefined && searchValue !== "" ? [ - { - bFilterCondition: bExactMatch ? "=" : "like", - bFilterName: searchField.sName, - bFilterValue: searchValue - } - ] + { + bFilterCondition: bExactMatch ? "=" : "like", + bFilterName: searchField.sName, + bFilterValue: searchValue + } + ] : undefined; } @@ -1054,6 +1054,23 @@ const CommonOperationBarComponent = basProps => { "" )} {btnRightConfig.map(item => { + // 整体下班 + if (item.sControlName === 'BtnRight.EndWork') { + const btnProps = props.onGetBtnPropps(item, searchField); + if (!btnProps.disabled) { + return ( + + + ); + } + } return (