diff --git a/src/components/Common/CommonBill/index.js b/src/components/Common/CommonBill/index.js index 2c9fe27..ead27fc 100644 --- a/src/components/Common/CommonBill/index.js +++ b/src/components/Common/CommonBill/index.js @@ -2529,9 +2529,12 @@ const BillComponent = Form.create({ } return Object.keys(controlGroup).map((tabNameKey) => { - const tabName = tabNameKey.replace(/\d+/g, ""); + let tabName = tabNameKey.replace(/\d+/g, ""); const num = tabNameKey.replace(/[^\d]/g, "").trim(); - + const tableConfigArr = config?.gdsconfigformslave.filter(row => row.sControlName === tabNameKey.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName= tableConfigArr[0].showName; + } const viewProps = { ...props, viewConfigs: controlGroup[tabNameKey], diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index eb97465..356ca1b 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -2961,6 +2961,8 @@ export default class CommonComponent extends Component { ); } const sModelsType = commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) ? this.props.app.currentPane.sModelsType : ''; + const pleaseSelect = commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'pleaseSelect') : '请选择' ; + const combinedInfo = commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'CombinedInfo') : '合版信息' ; let bParamColor = false; if (this.props && sName === 'sParamValue' && this.props.dataValue) { if (this.props.dataValue === '选择色序' || this.props.record.sParamKey === 'sParam1001') { @@ -2985,7 +2987,7 @@ export default class CommonComponent extends Component { }); sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ''; } - } else if (sName === 'sColorSerialMemo' || bSColorSerialMemo || sName === 'sPositiveColor' || sName === 'sOppositeColor' || bParamColor) { + } else if (sName === "sColorSerialMemo" || bSColorSerialMemo || sName === "sPositiveColor" || sName === "sOppositeColor" || bParamColor) { let JsonData = []; if (commonUtils.isNotEmptyObject(this.props.dataValue)) { try { @@ -2994,13 +2996,13 @@ export default class CommonComponent extends Component { JsonData = []; } } - if (typeof JsonData === 'object' && commonUtils.isNotEmptyArr(JsonData)) { - JsonData.forEach((item) => { + if (typeof JsonData === "object" && commonUtils.isNotEmptyArr(JsonData)) { + JsonData.forEach(item => { sValue += `${item.sName}+`; }); - sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ''; + sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ""; } - } else if (sName === 'sParams' || sName === 'sQuoParams' || sName === 'sParamsNew') { + } else if (sName === "sParams" || sName === "sQuoParams" || sName === "sParamsNew") { if (this.props.onGetParamsValue) { // 页面自行处理sparams的sValue sValue = this.props.onGetParamsValue({ sName, sValue: this.props.dataValue, record: this.props.record }); @@ -3014,13 +3016,13 @@ export default class CommonComponent extends Component { } } if (commonUtils.isNotEmptyArr(JsonData)) { - JsonData.forEach((item) => { + JsonData.forEach(item => { if (item.bSelfCbx) { - const strValue = commonUtils.isNotEmptyObject(item.sParamValue) ? item.sParamValue : ''; + const strValue = commonUtils.isNotEmptyObject(item.sParamValue) ? item.sParamValue : ""; sValue += `${item.sParamName}:${strValue},`; } }); - sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ''; + sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ""; } } } else { @@ -3043,15 +3045,16 @@ export default class CommonComponent extends Component { style={{ width: '100%', overflow: 'hidden', color: '#2f54eb', background: 'transparent', }} - > {commonUtils.isNotEmptyObject(sValue) ? sValue : sName === 'sCombinedMemo' ? '合版信息' : '请选择'} + > {commonUtils.isNotEmptyObject(sValue) ? sValue : sName === 'sCombinedMemo' ? combinedInfo : pleaseSelect} ); } /* commonClassify 制单日期、制单人员新增时设置保存时自动生成 */ let speacilNote = ''; const { record } = this.props; + const afterSave = commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'afterSave') : '保存后自动生成'; if (commonUtils.isNotEmptyObject(record) && commonUtils.isEmptyObject(record[sName]) && commonUtils.isNotEmptyObject(sName) && (sName === 'tCreateDate' || sName === 'sMakePerson')) { - speacilNote = (
保存后自动生成
); + speacilNote = (
{afterSave}
); } const bShowMemo = false && commonUtils.isNotEmptyObject(sName) && sName.indexOf('sMemo') > -1 && !sName.includes('ProcessMemo'); /* 非编辑状态下 备注以蓝色链接呈现 */ diff --git a/src/components/Common/CommonComponent/index_new.js b/src/components/Common/CommonComponent/index_new.js index 3e4ccef..a3b7bf5 100644 --- a/src/components/Common/CommonComponent/index_new.js +++ b/src/components/Common/CommonComponent/index_new.js @@ -1150,8 +1150,9 @@ function CommonComponent(props) { } let speacilNote = ''; const { record } = props; + const afterSave = commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'afterSave') : '保存后自动生成'; if (commonUtils.isNotEmptyObject(record) && commonUtils.isEmptyObject(record[sName]) && commonUtils.isNotEmptyObject(sName) && (sName === 'tCreateDate' || sName === 'sMakePerson')) { - speacilNote = (
保存后自动生成
); + speacilNote = (
{afterSave}
); } let imgBox = ''; if (commonUtils.isNotEmptyObject(sName) && sName.indexOf('picture') > -1) { diff --git a/src/components/Common/CommonGroupBill.js b/src/components/Common/CommonGroupBill.js index 93bd19d..59a3c5b 100644 --- a/src/components/Common/CommonGroupBill.js +++ b/src/components/Common/CommonGroupBill.js @@ -2065,7 +2065,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2103,7 +2107,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2139,7 +2147,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2175,7 +2187,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2211,7 +2227,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2247,7 +2267,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
diff --git a/src/components/Common/CommonNewBill.js b/src/components/Common/CommonNewBill.js index ca96a3c..386d768 100644 --- a/src/components/Common/CommonNewBill.js +++ b/src/components/Common/CommonNewBill.js @@ -2622,7 +2622,12 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } return (
@@ -2699,7 +2704,12 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } return (
@@ -2784,7 +2794,12 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } return (
@@ -2830,7 +2845,12 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } return (
@@ -2876,7 +2896,12 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName = tableConfigArr[0].showName; + } return (
diff --git a/src/components/Common/CommonNewListBill.js b/src/components/Common/CommonNewListBill.js index 8ad929b..c673b89 100644 --- a/src/components/Common/CommonNewListBill.js +++ b/src/components/Common/CommonNewListBill.js @@ -2345,7 +2345,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2385,7 +2389,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2469,7 +2477,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2547,7 +2559,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2586,7 +2602,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
@@ -2625,7 +2645,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
diff --git a/src/components/Common/CommonNewTabBill.js b/src/components/Common/CommonNewTabBill.js index 4915f2a..a8e11d8 100644 --- a/src/components/Common/CommonNewTabBill.js +++ b/src/components/Common/CommonNewTabBill.js @@ -2386,7 +2386,11 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } return (
diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index 1dbc0ad..3a4216d 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -1967,6 +1967,7 @@ class CommonTableRc extends React.Component { } // 处理拖拽排序 if (this.props.dragHandle) { + const handleSortTitle = commonFunc.showMessage(this.props.app.commonConst, 'sort') || '排序' ; const handleSort = tableColumn.filter(item => item.dataIndex === 'handleSort').length; if (tableColumn[0]) { function arrayMoveMutable(array, fromIndex, toIndex) { @@ -2029,7 +2030,7 @@ class CommonTableRc extends React.Component { } tableColumn.unshift( { - title: '排序', + title: handleSortTitle, dataIndex: 'handleSort', fixed: 'left', width: 40, @@ -4924,17 +4925,20 @@ class CommonTableRc extends React.Component { /** 删除行 */ handleDelRow = (index, record) => { if(this.props.name !== 'slaveFilter') { + const sureDel = commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'SureDel') : '确认要删除吗?' ; + const BtnSure = commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'BtnSure') : '确定?' ; + const BtnCancel = commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'BtnCancel') : '确定?' ; const _this = this; confirm({ - title: '确认要删除吗?', + title: sureDel, onOk() { _this.handleDelOkRow(index, record); }, onCancel() { return false; }, - okText: '确定', - cancelText: '取消' + okText: BtnSure, + cancelText: BtnCancel }); } else { this.handleDelOkRow(index, record); @@ -5575,6 +5579,10 @@ class CommonTableRc extends React.Component { let clickEvent = ''; /* 选择合版产品弹窗 */ const sModelsType = commonUtils.isNotEmptyObject(props) && commonUtils.isNotEmptyObject(props.app) ? props.app.currentPane.sModelsType : ''; + const combinedInfo = commonUtils.isNotEmptyObject(props) && commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'CombinedInfo') : '合版信息' ; + + const pleaseSelect = commonUtils.isNotEmptyObject(props) && commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'pleaseSelect') : '请选择' ; + if (commonUtils.isNotEmptyObject(sName) && ( sName === 'sCombinedMemo' || sName ==='sCombineProductNameNew' || sName === 'sColorSerialMemo' || sName === 'sPositiveColor' || sName === 'sOppositeColor' || sName === 'sParams' || sName === 'sParamsNew'|| sName === 'sQuoParams' || (commonUtils.isNotEmptyObject(sModelsType) && !sModelsType.includes('Set') && sName === 'sCombinePartsNameNew'))) { linkStyle = 'linksActiveIdStyle'; clickEvent = 'onViewChoose'; @@ -5651,7 +5659,7 @@ class CommonTableRc extends React.Component { } } } - sValue = commonUtils.isEmpty(sValue) ? sName === 'sCombinedMemo' ? '合版信息' : '请选择' : sValue; + sValue = commonUtils.isEmpty(sValue) ? sName === 'sCombinedMemo' ? combinedInfo : pleaseSelect : sValue; } else if ((!props.enabled) && sName.indexOf('Memo') > -1 && showConfigObj.iTag !== 3 ) { linkStyle = 'linksActiveIdStyle'; clickEvent = 'onMemoShow'; @@ -6715,7 +6723,7 @@ class CommonTableRc extends React.Component { /* 通用弹窗功能 */ let commonPopupProps = {}; let commonPopupTitle = '选择弹窗'; - let bCommonPopup = false; /* 多列弹出窗 */ + let bCommonPopup = false; /* 多列弹出窗11 */ let bCommonPopup1 = false; /* 单列弹出窗 */ let bCommonPopupTree = false; /* 树形列弹出窗 */ let bCommonPopupProcess = false; diff --git a/src/components/Common/ToolBar/ToolBarNew.js b/src/components/Common/ToolBar/ToolBarNew.js index 5d18db0..bcdfbd8 100644 --- a/src/components/Common/ToolBar/ToolBarNew.js +++ b/src/components/Common/ToolBar/ToolBarNew.js @@ -2154,8 +2154,9 @@ class ToolBarComponent extends Component { } } else if (key === "BtnDel") { /* 删除 */ + const sureDelTitle = commonUtils.isNotEmptyObject(this.props?.app) ? commonFunc.showMessage(this.props.app.commonConst, "SureDel") : "SureDel"; obj = { - title: "确定要删除", + title: sureDelTitle, }; this.props.onDel(obj); } else if (key === "BtnGetGoods") { diff --git a/src/components/CommonElementEvent/SisformulaInfo.js b/src/components/CommonElementEvent/SisformulaInfo.js index a5b22ed..f39cc09 100644 --- a/src/components/CommonElementEvent/SisformulaInfo.js +++ b/src/components/CommonElementEvent/SisformulaInfo.js @@ -25,6 +25,14 @@ class SisformulaInfoComponent extends Component { this.state = { }; this.form = {}; /* 表单对象 */ + // 删除sessionStorage里key值已sModelsId开头的值 + const { sModelsId } = props; + for (let i = 0; i < sessionStorage.length; i++) { + const key = sessionStorage.key(i); + if (key.startsWith(`${sModelsId}_`)) { + sessionStorage.removeItem(key); + } + } } // onDoubleClick = (record) => { /* 双击行 将参数名 @参数名放到公式框里 */ diff --git a/src/components/CommonElementEvent/StatementInfo.js b/src/components/CommonElementEvent/StatementInfo.js index e519057..384098c 100644 --- a/src/components/CommonElementEvent/StatementInfo.js +++ b/src/components/CommonElementEvent/StatementInfo.js @@ -36,18 +36,20 @@ export default class StatementInfo extends Component { let { reportColumn } = nextProps; const { app, visibleStatement } = nextProps; const reportName = commonFunc.showMessage(app.commonConst, 'reportName');/* 设计功能 */ + const sTemplateName= commonFunc.showMessage(app.commonConst, 'sTemplateName') || '模板名称' ; + const sReportName= commonFunc.showMessage(app.commonConst, 'sReportName') || '报表名称' ; if (commonUtils.isEmptyArr(reportColumn) && visibleStatement) { const reportConfig = {}; reportConfig.gdsconfigformslave = [{ bVisible: true, sName: 'sReportName', bNotEmpty: true, - showName: '报表名称', + showName: sReportName, }, { bVisible: true, sName: 'sReportPath', bReadOnly: true, - showName: '模板名称', + showName: sTemplateName, iTag: 1, }]; reportColumn = [{ @@ -55,7 +57,7 @@ export default class StatementInfo extends Component { dataIndex: 'sReportName', width: 200, }, { - title: '模板名称', + title: sTemplateName, dataIndex: 'sReportPath', width: 239, }]; diff --git a/src/components/Manufacture/ProcessCardPack/ProcessCardPackTableTree.js b/src/components/Manufacture/ProcessCardPack/ProcessCardPackTableTree.js index 16df3f1..c78415c 100644 --- a/src/components/Manufacture/ProcessCardPack/ProcessCardPackTableTree.js +++ b/src/components/Manufacture/ProcessCardPack/ProcessCardPackTableTree.js @@ -7665,7 +7665,7 @@ const ProcessCardComponent = Form.create({ if(commonUtils.isNotEmptyObject(processShowLeft)) { if(processShowLeft.bVisible) { - processShowTitle = processShowLeft.sChinese; + processShowTitle = processShowLeft.showName; } } @@ -8236,6 +8236,9 @@ const ProcessCardComponent = Form.create({ height: 50, } } + + const deleteAll = commonFunc.showMessage(props.app.commonConst, 'deleteAll') || '删除' ; + const autoHeight = `calc( 100vh - 92px )`; const renderByLayout = () => { @@ -8405,7 +8408,7 @@ const ProcessCardComponent = Form.create({ materialsChildTableProps = materialsChildTablePropsList[`${item}ChildTableProps`]; sWidth = '58.5%'; sRightWidth = '42%'; - materialsChildTableTitle = commonUtils.isNotEmptyObject(materialsChildTableProps) && commonUtils.isNotEmptyObject(materialsChildTableProps.config) ? materialsChildTableProps.config.sChinese : ''; + materialsChildTableTitle = commonUtils.isNotEmptyObject(materialsChildTableProps) && commonUtils.isNotEmptyObject(materialsChildTableProps.config) ? materialsChildTableProps.config.showName : ''; } else { sWidth = '100%'; } @@ -8422,7 +8425,7 @@ const ProcessCardComponent = Form.create({
- {index === 0 ?
: ""} + {index === 0 ?
: ""}
{ commonUtils.isNotEmptyObject(materialsChildTableProps)? diff --git a/src/components/Manufacture/ProcessCardPackTableTreeNew/index.js b/src/components/Manufacture/ProcessCardPackTableTreeNew/index.js index 722b3f1..bb852cb 100644 --- a/src/components/Manufacture/ProcessCardPackTableTreeNew/index.js +++ b/src/components/Manufacture/ProcessCardPackTableTreeNew/index.js @@ -3776,8 +3776,8 @@ const OtherComponent = props => { const dailyInfo = commonFunc.showMessage(commonConst, "dailyInfo"); // 日志信息 const visionInfo = commonUtils.isNotEmptyObject(commonFunc.showMessage(commonConst, "visionInfo")) ? commonFunc.showMessage(commonConst, "visionInfo") : '改版记录'; - const colorInfo = commonUtils.isNotEmptyObject(colorConfig) && commonUtils.isNotEmptyObject(colorConfig.sChinese ) ? - colorConfig.sChinese : + const colorInfo = commonUtils.isNotEmptyObject(colorConfig) && commonUtils.isNotEmptyObject(colorConfig.showName ) ? + colorConfig.showName : commonUtils.isNotEmptyObject(commonFunc.showMessage(commonConst, "colorInfo")) ? commonFunc.showMessage(commonConst, "colorInfo") : '工艺颜色'; // "工艺颜色"; @@ -3878,13 +3878,13 @@ const OtherComponent = props => { {materialsChildInfoListFilter.map(tablename => { - const { sChinese } = props[`${tablename}Config`]; + const { showName } = props[`${tablename}Config`]; return ( @@ -3955,7 +3955,7 @@ const ProcessComponent = props => { const showLeftConfig = processConfig.gdsconfigformslave.find(item => item.sControlName === "bShowLeft"); if (showLeftConfig) { - const { iColValue, sChinese: processShowTitle } = showLeftConfig; + const { iColValue, showName: processShowTitle } = showLeftConfig; const processTitleWidth = processConfig.gdsconfigformslave.find(item => item.sControlName === "titleWidth")?.sDefault; const commonViewDragableProps = { @@ -4059,7 +4059,7 @@ const MaterialsComponent = props => { materialsChildTableProps = materialsChildTablePropsList[`${item}ChildTableProps`]; sWidth = "58.5%"; sRightWidth = "42%"; - materialsChildTableTitle = materialsChildTableProps.config.sChinese || ""; + materialsChildTableTitle = materialsChildTableProps.config.showName || ""; } } else { sWidth = "100%"; diff --git a/src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js b/src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js index 9cf61ce..cae75e6 100644 --- a/src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js +++ b/src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js @@ -8190,7 +8190,7 @@ const WorkOrderComponent = Form.create({ if(commonUtils.isNotEmptyObject(processShowLeft)) { if(processShowLeft.bVisible) { - processShowTitle = processShowLeft.sChinese; + processShowTitle = processShowLeft.showName; } } @@ -8738,7 +8738,7 @@ const WorkOrderComponent = Form.create({ let visionTableTitle = '改版记录'; const { visionConfig } = props; if (commonUtils.isNotEmptyObject(visionConfig)) { - visionTableTitle = visionConfig.sChinese; + visionTableTitle = visionConfig.showName; } str = {visionTableTitle} @@ -8901,7 +8901,7 @@ const WorkOrderComponent = Form.create({ const iIndex = materialsChildInfoList.findIndex(child => child.includes(item)); if(iIndex > -1) { materialsChildTableProps = materialsChildTablePropsList[`${item}ChildTableProps`]; - materialsChildTableTitle = commonUtils.isNotEmptyObject(materialsChildTableProps) && commonUtils.isNotEmptyObject(materialsChildTableProps.config) ? materialsChildTableProps.config.sChinese : ''; + materialsChildTableTitle = commonUtils.isNotEmptyObject(materialsChildTableProps) && commonUtils.isNotEmptyObject(materialsChildTableProps.config) ? materialsChildTableProps.config.showName : ''; } } return ( @@ -9348,7 +9348,14 @@ const WorkOrderComponent = Form.create({ // 工艺参数弹窗 const ModalComponent = props => { const modalName = 'sWorkParamsModalVisible'; // commonParamVisible - const sProcessParams = "工单参数"; + const sProcessParams = commonFunc.showMessage(props.app.commonConst, 'workParam') || '工单参数' ; + const BtnFirst= commonFunc.showMessage(props.app.commonConst, 'BtnFirst') || '首条' ; + + const BtnLast= commonFunc.showMessage(props.app.commonConst, 'Btnlast') || '末条' ; + + const BtnPrior= commonFunc.showMessage(props.app.commonConst, 'BtnPrior') || '上一条' ; + + const BtnNext= commonFunc.showMessage(props.app.commonConst, 'BtnNext') || '下一条' ; return props[modalName] ? { >
- - - - + + + +
{ [''].map(() => { diff --git a/src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js b/src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js index 465974c..e9f4e57 100644 --- a/src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js +++ b/src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js @@ -8998,6 +8998,14 @@ const WorkOrderComponent = Form.create({ const ModalComponent = props => { const modalName = 'sWorkParamsModalVisible'; // commonParamVisible const sProcessParams = "工单参数"; + const BtnFirst= commonFunc.showMessage(props.app.commonConst, 'BtnFirst') || '首条' ; + + const BtnLast= commonFunc.showMessage(props.app.commonConst, 'Btnlast') || '末条' ; + + const BtnPrior= commonFunc.showMessage(props.app.commonConst, 'BtnPrior') || '上一条' ; + + const BtnNext= commonFunc.showMessage(props.app.commonConst, 'BtnNext') || '下一条' ; + return props[modalName] ? { >
- - - - + + + +
{ [''].map(() => { @@ -9052,4 +9060,5 @@ const ModalComponent = props => { }; + export default CommonBase(CommonSales(WorkOrderPack)); diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index e874b38..f9fedda 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -1106,6 +1106,7 @@ const TreeComponent = props => { // 内容组件 const ContentComponent = props => { const { selectedNode = {}, extraParts = {} } = props.state; + const manyqtysInfo= commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'manyqtysInfo') : '多数量报价' ; const { showName } = selectedNode; const extraPartsList = extraParts[showName] || []; let { sAllPartsName = "" } = selectedNode; @@ -1208,7 +1209,7 @@ const ContentComponent = props => { })} /> - 多数量报价 + {manyqtysInfo} ); @@ -1730,6 +1731,8 @@ const BoxComponent = props => { showNew: 1, }; const isShowImg = boxList.find(x => x.sName === "盒身")?.type !== "" || false; + const PrintingParameters = commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'PrintingParameters') : '印刷参数' ; + return ( { const cailiaoyinshuaDiv = ( <> - 印刷参数 + {PrintingParameters}
@@ -2030,6 +2033,16 @@ const ManyComponent = props => { const [submitLoading, setSubmitLoading] = useState(false); const [processPercent, setProcessPercent] = useState(0); + const BtnNewQuotation= commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'BtnNewQuotation') : '新报价' ; + + const BtnDraft= commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'BtnDraft') : '存草稿' ; + + const BtnPriceverification= commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'BtnPriceverification') : '核价' ; + + const BtnConfirmQuantity= commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'BtnConfirmQuantity') : '确认下单数量' ; + + const btnOrdering= commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'btnOrdering') : '下单中...' ; + // 核价事件 const onCalcPrice = () => { const addState = { @@ -2118,7 +2131,7 @@ const ManyComponent = props => { {enabled && (
)} @@ -2426,9 +2439,9 @@ const BackendParamsExtraComponent = props => { const viewConfigs = backendParamsConfig.map((item, index) => ({ ...item, - sName: `sParams${index}`, + sName: item.sFieldName || `sParams${index}`, showName: item.sParam, - sDropDownType: "sql", + sDropDownType: item.sParamDropDown ? "sql" : "", iColValue: 4, })); @@ -2467,7 +2480,15 @@ const BackendParamsExtraComponent = props => { onDataChange: (name, sFieldName, changeValue, sId, dropDownData, isWait) => { const iIndex = slaveData.findIndex(item => item.sId === slaveRowData.sId); const iIndex1 = slaveData[iIndex].sBackProcessData.findIndex(item => item[sParentFieldsName]); - const dropDownDataSelected = dropDownData.find(item => item.sId === changeValue[sFieldName]); + const showConfig = viewConfigs.find(item => item.sName === sFieldName); + const dropDownDataSelected = dropDownData?.length + ? dropDownData.find(item => item.sId === changeValue[sFieldName]) + : { + sId: commonUtils.createSid(), + value: changeValue[sFieldName], + sParam: showConfig.sParam, + [sFieldName]: changeValue[sFieldName], + }; const { sParam } = dropDownDataSelected; const { sBackendParams = [] } = slaveData[iIndex].sBackProcessData[iIndex1]; const iIndex2 = sBackendParams.findIndex(item => item.sParam === sParam); @@ -2477,6 +2498,13 @@ const BackendParamsExtraComponent = props => { sBackendParams.push(dropDownDataSelected); } slaveData[iIndex].sBackProcessData[iIndex1].sBackendParams = sBackendParams; + if (!showConfig.sName?.startsWith("sParams")) { + slaveData[iIndex].sBackProcessData[iIndex1][showConfig.sName] = dropDownDataSelected[showConfig.sName]; + const { dManualLength, dManualWidth } = slaveData[iIndex].sBackProcessData[iIndex1]; + if (dManualLength !== undefined && dManualWidth !== undefined) { + slaveData[iIndex].sBackProcessData[iIndex1].dManualValue = dManualLength * dManualWidth; + } + } props.setState(pre => ({ ...pre, slaveData })); }, };