Commit 9509a46cc5631df6b596e45d922ee070a6dbb3ac
1 parent
08357ad9
调整产量上班按钮名
Showing
6 changed files
with
25 additions
and
25 deletions
src/components/Common/CommonListEvent.js
| @@ -49,7 +49,7 @@ export default (ChildComponent) => { | @@ -49,7 +49,7 @@ export default (ChildComponent) => { | ||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | async componentWillReceiveProps(nextProps) { | 51 | async componentWillReceiveProps(nextProps) { |
| 52 | - | 52 | + |
| 53 | const { app, formData, currentId, searchSolution, masterData, sGroupByList, formRoute, sModelsType, } = nextProps; | 53 | const { app, formData, currentId, searchSolution, masterData, sGroupByList, formRoute, sModelsType, } = nextProps; |
| 54 | let { slaveConfig: slaveConfigOld } = nextProps; | 54 | let { slaveConfig: slaveConfigOld } = nextProps; |
| 55 | // nextProps.onSaveState({ realizeHeight: nextProps.realizeHeight }); | 55 | // nextProps.onSaveState({ realizeHeight: nextProps.realizeHeight }); |
| @@ -139,7 +139,7 @@ export default (ChildComponent) => { | @@ -139,7 +139,7 @@ export default (ChildComponent) => { | ||
| 139 | bFilterValue: app.sMachineNameSId, | 139 | bFilterValue: app.sMachineNameSId, |
| 140 | }); | 140 | }); |
| 141 | const pageNum = 1; | 141 | const pageNum = 1; |
| 142 | - | 142 | + |
| 143 | addState = (await this.props.handleGetDataSet({ | 143 | addState = (await this.props.handleGetDataSet({ |
| 144 | name: 'slave', | 144 | name: 'slave', |
| 145 | configData: slaveConfig, | 145 | configData: slaveConfig, |
| @@ -344,7 +344,7 @@ export default (ChildComponent) => { | @@ -344,7 +344,7 @@ export default (ChildComponent) => { | ||
| 344 | if (commonUtils.isNotEmptyNumber(formData[0].iPageSize) && formData[0].iPageSize !== 0) { | 344 | if (commonUtils.isNotEmptyNumber(formData[0].iPageSize) && formData[0].iPageSize !== 0) { |
| 345 | iPageSize = formData[0].iPageSize; | 345 | iPageSize = formData[0].iPageSize; |
| 346 | } | 346 | } |
| 347 | - | 347 | + |
| 348 | await this.handleGetData(slaveConfig, filterCondition, 1, commonUtils.isNotEmptyNumber(iPageSize) && iPageSize !== 0 ? iPageSize : commonConfig.pageSize, '', false, sGroupByList); | 348 | await this.handleGetData(slaveConfig, filterCondition, 1, commonUtils.isNotEmptyNumber(iPageSize) && iPageSize !== 0 ? iPageSize : commonConfig.pageSize, '', false, sGroupByList); |
| 349 | slaveInfoConfig = formData[1]; | 349 | slaveInfoConfig = formData[1]; |
| 350 | slaveInfoColumn = {}; | 350 | slaveInfoColumn = {}; |
| @@ -422,7 +422,7 @@ export default (ChildComponent) => { | @@ -422,7 +422,7 @@ export default (ChildComponent) => { | ||
| 422 | }); | 422 | }); |
| 423 | } else if (JSON.stringify(app.currentPane.conditonValues) !== JSON.stringify(this.props.app.currentPane.conditonValues)) { | 423 | } else if (JSON.stringify(app.currentPane.conditonValues) !== JSON.stringify(this.props.app.currentPane.conditonValues)) { |
| 424 | const { slaveConfig, slaveFilterCondition } = nextProps; | 424 | const { slaveConfig, slaveFilterCondition } = nextProps; |
| 425 | - | 425 | + |
| 426 | this.handleGetData(slaveConfig, slaveFilterCondition, 1, commonUtils.isNotEmptyNumber(iPageSize) && iPageSize !== 0 ? iPageSize : commonConfig.pageSize, undefined, undefined, undefined, nextProps); | 426 | this.handleGetData(slaveConfig, slaveFilterCondition, 1, commonUtils.isNotEmptyNumber(iPageSize) && iPageSize !== 0 ? iPageSize : commonConfig.pageSize, undefined, undefined, undefined, nextProps); |
| 427 | } else if (JSON.stringify(nextProps.id) !== JSON.stringify(this.props.id)) { | 427 | } else if (JSON.stringify(nextProps.id) !== JSON.stringify(this.props.id)) { |
| 428 | this.props.onSaveState({ slaveSelectedRowKeys: [] }); | 428 | this.props.onSaveState({ slaveSelectedRowKeys: [] }); |
| @@ -442,7 +442,7 @@ export default (ChildComponent) => { | @@ -442,7 +442,7 @@ export default (ChildComponent) => { | ||
| 442 | 442 | ||
| 443 | const slaveConfig = formData.filter(item => item.bGrd && item.sTbName === 'elemachine')[0]; | 443 | const slaveConfig = formData.filter(item => item.bGrd && item.sTbName === 'elemachine')[0]; |
| 444 | const slaveColumn = commonFunc.getHeaderConfig(slaveConfig); | 444 | const slaveColumn = commonFunc.getHeaderConfig(slaveConfig); |
| 445 | - | 445 | + |
| 446 | this.handleGetData(slaveConfig, undefined, undefined, undefined, undefined, undefined, undefined, nextProps); | 446 | this.handleGetData(slaveConfig, undefined, undefined, undefined, undefined, undefined, undefined, nextProps); |
| 447 | this.props.onSaveState({ | 447 | this.props.onSaveState({ |
| 448 | masterConfig: currConfig, masterData, slaveConfig, slaveColumn, enabled: true, pageLoading: false, | 448 | masterConfig: currConfig, masterData, slaveConfig, slaveColumn, enabled: true, pageLoading: false, |
| @@ -452,10 +452,10 @@ export default (ChildComponent) => { | @@ -452,10 +452,10 @@ export default (ChildComponent) => { | ||
| 452 | if (this.props.pageNum >= Math.ceil(slavePagination.total / slavePagination.pageSize)) { | 452 | if (this.props.pageNum >= Math.ceil(slavePagination.total / slavePagination.pageSize)) { |
| 453 | this.props.onToFirst(); | 453 | this.props.onToFirst(); |
| 454 | } else if (commonUtils.isNotEmptyArr(treeFilterCondition)) { /* 判断是否有树过滤条件 */ | 454 | } else if (commonUtils.isNotEmptyArr(treeFilterCondition)) { /* 判断是否有树过滤条件 */ |
| 455 | - | 455 | + |
| 456 | this.handleGetData(slaveConfig, slaveFilterCondition, nextProps.pageNum, slavePagination.pageSize, slaveOrderBy, '', sGroupByList, '', treeFilterCondition); | 456 | this.handleGetData(slaveConfig, slaveFilterCondition, nextProps.pageNum, slavePagination.pageSize, slaveOrderBy, '', sGroupByList, '', treeFilterCondition); |
| 457 | } else { | 457 | } else { |
| 458 | - | 458 | + |
| 459 | this.handleGetData(slaveConfig, slaveFilterCondition, nextProps.pageNum, slavePagination.pageSize, slaveOrderBy, '', sGroupByList); | 459 | this.handleGetData(slaveConfig, slaveFilterCondition, nextProps.pageNum, slavePagination.pageSize, slaveOrderBy, '', sGroupByList); |
| 460 | } | 460 | } |
| 461 | } | 461 | } |
| @@ -693,7 +693,7 @@ export default (ChildComponent) => { | @@ -693,7 +693,7 @@ export default (ChildComponent) => { | ||
| 693 | if (formRoute === '/indexPage/materialRequirementsPlanning' && clearSelectData) { | 693 | if (formRoute === '/indexPage/materialRequirementsPlanning' && clearSelectData) { |
| 694 | const { slaveFilterCondition, slaveInfoConfig } = this.props; | 694 | const { slaveFilterCondition, slaveInfoConfig } = this.props; |
| 695 | if (commonUtils.isNotEmptyObject(slaveInfoConfig)) { | 695 | if (commonUtils.isNotEmptyObject(slaveInfoConfig)) { |
| 696 | - | 696 | + |
| 697 | this.handleGetDataInfo(slaveInfoConfig, slaveFilterCondition, 1); | 697 | this.handleGetDataInfo(slaveInfoConfig, slaveFilterCondition, 1); |
| 698 | } | 698 | } |
| 699 | } | 699 | } |
| @@ -1540,7 +1540,7 @@ export default (ChildComponent) => { | @@ -1540,7 +1540,7 @@ export default (ChildComponent) => { | ||
| 1540 | message.warn('未配置!不能生成!'); | 1540 | message.warn('未配置!不能生成!'); |
| 1541 | return; | 1541 | return; |
| 1542 | } | 1542 | } |
| 1543 | - } else if (name === 'BtnCopyTo.ActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ | 1543 | + } else if (name === 'BtnCopyTo.tmpInfoBySqlActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ |
| 1544 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { | 1544 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { |
| 1545 | message.warn('工序已暂停,无法开工!'); | 1545 | message.warn('工序已暂停,无法开工!'); |
| 1546 | return; | 1546 | return; |
| @@ -1774,7 +1774,7 @@ export default (ChildComponent) => { | @@ -1774,7 +1774,7 @@ export default (ChildComponent) => { | ||
| 1774 | }); | 1774 | }); |
| 1775 | copyToData = copyToDataNew; | 1775 | copyToData = copyToDataNew; |
| 1776 | } | 1776 | } |
| 1777 | - } else if (name === 'BtnCopyTo.ActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ | 1777 | + } else if (name === 'BtnCopyTo.tmpInfoBySqlActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ |
| 1778 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { | 1778 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { |
| 1779 | message.warn('工序已暂停,无法开工!'); | 1779 | message.warn('工序已暂停,无法开工!'); |
| 1780 | return; | 1780 | return; |
src/components/Common/CommonListTabEvent.js
| @@ -1262,7 +1262,7 @@ export default (ChildComponent) => { | @@ -1262,7 +1262,7 @@ export default (ChildComponent) => { | ||
| 1262 | conditionValues = this.props.getSqlCondition(slaveConfig, tableType, record); | 1262 | conditionValues = this.props.getSqlCondition(slaveConfig, tableType, record); |
| 1263 | } else if(commonUtils.isNotEmptyObject(currentPane) && !commonUtils.isEmpty(currentPane.conditonValues)) { | 1263 | } else if(commonUtils.isNotEmptyObject(currentPane) && !commonUtils.isEmpty(currentPane.conditonValues)) { |
| 1264 | conditionValues = currentPane.conditonValues; | 1264 | conditionValues = currentPane.conditonValues; |
| 1265 | - } | 1265 | + } |
| 1266 | 1266 | ||
| 1267 | /* 导出使用Post提交 */ | 1267 | /* 导出使用Post提交 */ |
| 1268 | const url = `${commonConfig.server_host}excel/export/${slaveConfig.sId}?sModelsId=${slaveConfig.sParentId}&sName=${formRoute}&token=${encodeURIComponent(this.props.app.token)}`; | 1268 | const url = `${commonConfig.server_host}excel/export/${slaveConfig.sId}?sModelsId=${slaveConfig.sParentId}&sName=${formRoute}&token=${encodeURIComponent(this.props.app.token)}`; |
| @@ -1614,7 +1614,7 @@ export default (ChildComponent) => { | @@ -1614,7 +1614,7 @@ export default (ChildComponent) => { | ||
| 1614 | }); | 1614 | }); |
| 1615 | copyToData = copyToDataNew; | 1615 | copyToData = copyToDataNew; |
| 1616 | } | 1616 | } |
| 1617 | - } else if (name === 'BtnCopyTo.ActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ | 1617 | + } else if (name === 'BtnCopyTo.tmpInfoBySqlActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ |
| 1618 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { | 1618 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { |
| 1619 | message.warn('工序已暂停,无法开工!'); | 1619 | message.warn('工序已暂停,无法开工!'); |
| 1620 | return; | 1620 | return; |
| @@ -1798,7 +1798,7 @@ export default (ChildComponent) => { | @@ -1798,7 +1798,7 @@ export default (ChildComponent) => { | ||
| 1798 | }); | 1798 | }); |
| 1799 | copyToData = copyToDataNew; | 1799 | copyToData = copyToDataNew; |
| 1800 | } | 1800 | } |
| 1801 | - } else if (name === 'BtnCopyTo.ActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ | 1801 | + } else if (name === 'BtnCopyTo.tmpInfoBySqlActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ |
| 1802 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { | 1802 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { |
| 1803 | message.warn('工序已暂停,无法开工!'); | 1803 | message.warn('工序已暂停,无法开工!'); |
| 1804 | return; | 1804 | return; |
src/components/Common/CommonListTreeEvent.js
| @@ -1087,7 +1087,7 @@ export default (ChildComponent) => { | @@ -1087,7 +1087,7 @@ export default (ChildComponent) => { | ||
| 1087 | detailCopy.data = sChildData; | 1087 | detailCopy.data = sChildData; |
| 1088 | } | 1088 | } |
| 1089 | addcopyOther.push(detailCopy); | 1089 | addcopyOther.push(detailCopy); |
| 1090 | - } else if (name === 'BtnCopyTo.ActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ | 1090 | + } else if (name === 'BtnCopyTo.tmpInfoBySqlActProduceReport') { /* 若机台中点击暂停 则待产量上报中点击上报提示”工序已暂停,无法上报 */ |
| 1091 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { | 1091 | if (commonUtils.isNotEmptyArr(copyToData) && copyToData[0].sState === '3') { |
| 1092 | message.warn('工序已暂停,无法开工!'); | 1092 | message.warn('工序已暂停,无法开工!'); |
| 1093 | return; | 1093 | return; |
src/components/Common/CommonTable/index.js
| @@ -4859,8 +4859,8 @@ class CommonTableRc extends React.Component { | @@ -4859,8 +4859,8 @@ class CommonTableRc extends React.Component { | ||
| 4859 | 4859 | ||
| 4860 | const { [this.rowKey]: rowKeyId } = record; | 4860 | const { [this.rowKey]: rowKeyId } = record; |
| 4861 | const { selectedRowKeys = [] } = props; | 4861 | const { selectedRowKeys = [] } = props; |
| 4862 | - if (sControlName?.includes('BtnTableCopyTo.ActProduceReport')) { | ||
| 4863 | - const copyToConfig = props?.config?.gdsconfigformslave.filter(x=>x.sControlName.includes('BtnTableCopyTo.ActProduceReport')) | 4862 | + if (sControlName?.includes('BtnTableCopyTo.tmpInfoBySqlActProduceReport')) { |
| 4863 | + const copyToConfig = props?.config?.gdsconfigformslave.filter(x=>x.sControlName.includes('BtnTableCopyTo.tmpInfoBySqlActProduceReport')) | ||
| 4864 | props.onCopyTo(props.name, config.sActiveId, config, copyToConfig, record) | 4864 | props.onCopyTo(props.name, config.sActiveId, config, copyToConfig, record) |
| 4865 | return | 4865 | return |
| 4866 | } | 4866 | } |
src/mes/common/commonOperationBarComponent/MesToolbar.js
| @@ -1059,9 +1059,9 @@ const handleScanFace = (props) => { | @@ -1059,9 +1059,9 @@ const handleScanFace = (props) => { | ||
| 1059 | proData.forEach(item => { | 1059 | proData.forEach(item => { |
| 1060 | const data = commonFunc.getAssignFieldValue(copyConfig?.sAssignField, item) | 1060 | const data = commonFunc.getAssignFieldValue(copyConfig?.sAssignField, item) |
| 1061 | const index = tableData.findIndex(x => x.sEmployeeNo === item.sEmployeeNo) | 1061 | const index = tableData.findIndex(x => x.sEmployeeNo === item.sEmployeeNo) |
| 1062 | - if (index !== -1) { | ||
| 1063 | - message.error('人员重复,请重新添加', 5) | ||
| 1064 | - } else { | 1062 | + // if (index !== -1) { |
| 1063 | + // message.error('人员重复,请重新添加', 5) | ||
| 1064 | + // } else { | ||
| 1065 | tableData.push({ | 1065 | tableData.push({ |
| 1066 | ...item, | 1066 | ...item, |
| 1067 | ...data, | 1067 | ...data, |
| @@ -1070,7 +1070,7 @@ const handleScanFace = (props) => { | @@ -1070,7 +1070,7 @@ const handleScanFace = (props) => { | ||
| 1070 | sParentId: props.masterData.sId, | 1070 | sParentId: props.masterData.sId, |
| 1071 | slaveId: props?.slaveData ? props?.slaveData[0].sId : '' | 1071 | slaveId: props?.slaveData ? props?.slaveData[0].sId : '' |
| 1072 | }) | 1072 | }) |
| 1073 | - } | 1073 | + // } |
| 1074 | 1074 | ||
| 1075 | }); | 1075 | }); |
| 1076 | 1076 |
src/mes/scheduledTasks/machineTasks/index.js
| @@ -524,7 +524,7 @@ const MachineTasks = baseProps => { | @@ -524,7 +524,7 @@ const MachineTasks = baseProps => { | ||
| 524 | ) || {}; | 524 | ) || {}; |
| 525 | // 产量上报按钮 | 525 | // 产量上报按钮 |
| 526 | const actProduceReportConfig = slave0Config?.gdsconfigformslave?.find( | 526 | const actProduceReportConfig = slave0Config?.gdsconfigformslave?.find( |
| 527 | - item => item.sControlName === 'BtnTableCopyTo.ActProduceReport' | 527 | + item => item.sControlName === 'BtnTableCopyTo.tmpInfoBySqlActProduceReport' |
| 528 | ) || {}; | 528 | ) || {}; |
| 529 | const copytoConfig = slave0Config?.gdsconfigformslave?.find( | 529 | const copytoConfig = slave0Config?.gdsconfigformslave?.find( |
| 530 | item => item.sControlName === "BtnTableCopyTo" | 530 | item => item.sControlName === "BtnTableCopyTo" |
| @@ -586,7 +586,7 @@ const MachineTasks = baseProps => { | @@ -586,7 +586,7 @@ const MachineTasks = baseProps => { | ||
| 586 | sDefault = "${false}"; | 586 | sDefault = "${false}"; |
| 587 | } | 587 | } |
| 588 | 588 | ||
| 589 | - const outPut = bManual ? [actProduceReportConfig, { showName, btnBgColor, sDefault, startWorkConfig, pauseWorkConfig }, | 589 | + const outPut = bManual ? [actProduceReportConfig, |
| 590 | { showName: "完工", btnBgColor: finishBtnBgColor, sDefault: finishSdefault }] : [{ showName, btnBgColor, sDefault, startWorkConfig, pauseWorkConfig }, | 590 | { showName: "完工", btnBgColor: finishBtnBgColor, sDefault: finishSdefault }] : [{ showName, btnBgColor, sDefault, startWorkConfig, pauseWorkConfig }, |
| 591 | { showName: "完工", btnBgColor: finishBtnBgColor, sDefault: finishSdefault }] | 591 | { showName: "完工", btnBgColor: finishBtnBgColor, sDefault: finishSdefault }] |
| 592 | return [ | 592 | return [ |
| @@ -604,9 +604,9 @@ const MachineTasks = baseProps => { | @@ -604,9 +604,9 @@ const MachineTasks = baseProps => { | ||
| 604 | }; | 604 | }; |
| 605 | const record = tableProps?.data?.[0] || {} | 605 | const record = tableProps?.data?.[0] || {} |
| 606 | // 如果bManual为true的时候 操作栏加长 | 606 | // 如果bManual为true的时候 操作栏加长 |
| 607 | - if (record && record.bManual) { | ||
| 608 | - tableProps.tableBtnsWidth = '300px' | ||
| 609 | - } | 607 | + // if (record && record.bManual) { |
| 608 | + // tableProps.tableBtnsWidth = '300px' | ||
| 609 | + // } | ||
| 610 | // 全部按钮事件 | 610 | // 全部按钮事件 |
| 611 | const tableAll = () => { | 611 | const tableAll = () => { |
| 612 | setSSrcNo(""); | 612 | setSSrcNo(""); |