From 867bd8eb99c0cb1af6d74040917a6cdef20cabf6 Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Tue, 25 Nov 2025 14:02:34 +0800 Subject: [PATCH] 优化指令集功能; --- src/components/Common/CommonComponent/index.js | 9 +++++---- src/components/Common/CommonNewBill.js | 10 +++++----- src/components/Common/InstructSetSetting/index.js | 3 +-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 42d1438..d7fa5b8 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -493,9 +493,10 @@ export default class CommonComponent extends Component { } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf("sAssignField") > -1) { /* 赋值字段 变量设置双击弹出 */ this.props.onFieldDoubleClick(this.state.dataValue, this.props.showConfig, this.props.name); - } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf("sInstruct") > -1) { + } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.toLowerCase().includes('instruct')) { /* 赋值字段 变量设置双击弹出 */ - this.props.onFieldDoubleClick(this.state.dataValue, this.props.showConfig, this.props.name); + // this.props.onFieldDoubleClick(this.state.dataValue, this.props.showConfig, this.props.name); + this.handleEditInstruct(); } }; @@ -1827,7 +1828,7 @@ export default class CommonComponent extends Component { rows: commonUtils.isNotEmptyNumber(this.props.showConfig.iRowValue) ? this.props.showConfig.iRowValue : 1, }; - if (this.props.showConfig.sName.toLowerCase().includes('instruct')) { + if (this.props.showConfig.sName.toLowerCase().includes('instruct') && this.props.enabled) { obj.suffix = ( @@ -2077,7 +2078,7 @@ export default class CommonComponent extends Component { ), }; - if (this.props.showConfig.sName.toLowerCase().includes('instruct')) { + if (this.props.showConfig.sName.toLowerCase().includes('instruct') && this.props.enabled) { obj.suffix = ( diff --git a/src/components/Common/CommonNewBill.js b/src/components/Common/CommonNewBill.js index a3258a4..eabb437 100644 --- a/src/components/Common/CommonNewBill.js +++ b/src/components/Common/CommonNewBill.js @@ -1073,11 +1073,11 @@ class CommonNewBill extends Component { } } else if (showConfig?.sName === "sInstruct") { /* 指令集弹窗 */ - const sInstructJsonString = sValue; - this.props.onSaveState({ - visibleInstructField: true, - sInstructJsonString, - }); + // const sInstructJsonString = sValue; + // this.props.onSaveState({ + // visibleInstructField: true, + // sInstructJsonString, + // }); } }; /* 拿到赋值字段 */ diff --git a/src/components/Common/InstructSetSetting/index.js b/src/components/Common/InstructSetSetting/index.js index 6c70587..ebffcb9 100644 --- a/src/components/Common/InstructSetSetting/index.js +++ b/src/components/Common/InstructSetSetting/index.js @@ -7,8 +7,7 @@ import styles from "./index.less"; import { Input, Button, Space } from "antd-v4"; import { MinusOutlined, CloseOutlined } from "@ant-design/icons"; -const IFRAMEURL = "http://project.xlyprint.cn"; -// const IFRAMEURL = "http://localhost:9099"; +const IFRAMEURL = location.hostname === "localhost" ? "http://localhost:9099" : "http://project.xlyprint.cn"; const InstructSetSetting = (props = {}) => { const { instructSetSettingVisible } = props; -- libgit2 0.22.2