diff --git a/src/components/Common/CommonBillEvent.js b/src/components/Common/CommonBillEvent.js
index 1e8d9cc..8fbdf21 100644
--- a/src/components/Common/CommonBillEvent.js
+++ b/src/components/Common/CommonBillEvent.js
@@ -5038,6 +5038,7 @@ export default (ChildComponent) => {
this.handleGetData(masterConfig, slaveConfig, checkConfig);
} else if(name && name.includes('BtnTempSql')) { /* 通过BtnTempSql按钮 自定义调用Sql 并将数据回填到界面上 */
const { masterConfig, slaveConfig, sModelsId, token } = this.props;
+ const sOperaSuccess = commonFunc.showLocalMessage(props, 'sOperaSuccess', '操作成功');
let { masterData,slaveData } = this.props;
const slave0Data = [];
const slave1Data = [];
@@ -5211,7 +5212,7 @@ export default (ChildComponent) => {
const dataReturn = (await commonServices.postValueService(this.props.app.token, value, url)).data;
if (dataReturn.code === 1) {
/* 数据操作 数据回传页面 */
- message.success('操作成功!');
+ message.success(sOperaSuccess);
const returnData = dataReturn.dataset.rows[0];
if (commonUtils.isNotEmptyArr(slaveNameList) && commonUtils.isNotEmptyObject(returnData)) {
slaveNameList.forEach((name, index) => {
diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js
index e55b4cd..e87edf7 100644
--- a/src/components/Common/CommonComponent/index.js
+++ b/src/components/Common/CommonComponent/index.js
@@ -2,6 +2,7 @@ import moment from 'moment';
import React, { Component, createRef } from 'react';
import reactComponentDebounce from '@/components/Common/ReactDebounce';
import '@ant-design/compatible/assets/index.css';
+import * as commonFunc from '@/components/Common/commonFunc';
import {
InputNumber,
Checkbox,
@@ -558,6 +559,7 @@ export default class CommonComponent extends Component {
}
/** 获取selectprops对象 */
getSelectProps = () => {
+ const noData = commonFunc.showLocalMessage(this.props, 'noData', '暂无数据');
/* 返回值声明 */
const obj = {
showSearch: true, /* 是否有查找功能 */
@@ -567,7 +569,7 @@ export default class CommonComponent extends Component {
onDropdownVisibleChange: this.onDropdownVisibleChange,
onPopupScroll: this.handlePopupScroll,
onSearch: this.handleSearch,
- notFoundContent: this.state.spinState ? : '暂无数据',
+ notFoundContent: this.state.spinState ? : noData,
// getPopupContainer: this.props.name === 'slave' || this.props.name === 'searchColumnShow' ? this.getPopupContainer : null,/*解决下拉框不随浏览器滚动问题 */
onFocus: this.onFocus,
onBlur: this.onBlur,
@@ -825,6 +827,7 @@ export default class CommonComponent extends Component {
/** 获取complete对象 */
getCompleteProps = () => {
/* 返回值声明 */
+ const noData = commonFunc.showLocalMessage(this.props, 'noData', '暂无数据');
const obj = {
// disabled: !this.state.enabled /* 修改的时候传过来的数据 */
onChange: this.handleCompleteInputEvent, /* 选择触发事件 */
@@ -857,7 +860,7 @@ export default class CommonComponent extends Component {
/* 区分Oee设置字体与其他系统设置字体 */
dropdownClassName: commonUtils.isNotEmptyObject(location.pathname) && location.pathname.toLowerCase().indexOf('oee') > -1 ? (location.pathname.toLowerCase().indexOf('loginoee') > -1 ? 'loginOeeDropDown' : 'oeeDropDown') : '',
onSearch: this.handleSearch,
- notFoundContent: this.state.spinState ? : '暂无数据',
+ notFoundContent: this.state.spinState ? : noData,
onFocus: this.onFocus,
onBlur: this.onBlur,
};
@@ -1406,7 +1409,7 @@ export default class CommonComponent extends Component {
obj.title = obj.value;
}
obj.placeholder = this.props.showConfig.placeholder;
-
+
if (this.props.name === "tableS0" && this.props.showConfig.sName === "sStatus") {
if (this.state.dataValue === "已提交") {
obj.className = "sStatusSubmit";
@@ -2716,7 +2719,7 @@ export default class CommonComponent extends Component {
// 登记取样特殊处理
if(slaveConfig.sId=='12710101117346647176280'){
-
+
if(innerInputProps.id.includes('bReturn')){
window.$xlyStorage = this.props.dataValue;
}
@@ -2725,7 +2728,7 @@ export default class CommonComponent extends Component {
this.myRef.current.querySelector('input').addEventListener('keydown',(event)=>{
if (event.code === 'NumpadEnter' || event.code === 'Enter') { // 或者使用 event.keyCode === 13
-
+
event.preventDefault(); // 阻止默认行为
// console.log(this.value)
// const inputValue = this.value;
@@ -2767,7 +2770,7 @@ export default class CommonComponent extends Component {
})
-
+
// debugger
// innerInputProps.onPressEnter = (event2)=>{
// setTimeout(()=>{
@@ -3065,7 +3068,7 @@ export default class CommonComponent extends Component {
const fieldDecoratorProps = this.getFieldDecoratorProps();
/* 通用组件(主表存在getFieldDecorator表单验证,而从表则不需要) */
-
+
// 班组报工,产量上报信息,label文字颜色特殊处理
if(slaveConfig.sId=='17087428780006438414984564455000'){
// 计件
diff --git a/src/components/Common/CommonListSelect/index.js b/src/components/Common/CommonListSelect/index.js
index c52e706..715a0ac 100644
--- a/src/components/Common/CommonListSelect/index.js
+++ b/src/components/Common/CommonListSelect/index.js
@@ -276,11 +276,12 @@ const CommonListComponent = Form.create({
const bPadPop =
props.sModelsId === "12710101117211852461310" ||
props.sModelsId === "12710101117218031681520";
-
+
if (bPadPop) {
tableProps.fixedHeight = "325px";
}
-
+ const BtnSure = commonFunc.showLocalMessage(props, 'BtnSure', '确认');
+ const BtnCancel = commonFunc.showLocalMessage(props, 'BtnCancel', '取消');
return (