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 }));
},
};