Commit f8fa67c96f2554c8237a13e13ff6d44c587d8fff
1 parent
9cf326e1
1.处理正在计算中的 英文翻译
Showing
6 changed files
with
16 additions
and
6 deletions
src/components/Manufacture/CommonPackEvent.js
| ... | ... | @@ -1484,6 +1484,7 @@ const ParamsChooseNewModal = props => { |
| 1484 | 1484 | |
| 1485 | 1485 | const BtnNext= commonFunc.showMessage(props.app.commonConst, 'BtnNext') || '下一条' ; |
| 1486 | 1486 | |
| 1487 | + const BtnSure = commonFunc.showLocalMessage(props, 'BtnSure', '确定'); | |
| 1487 | 1488 | |
| 1488 | 1489 | return props[modalName] ? ( |
| 1489 | 1490 | <AntdDraggableModal | ... | ... |
src/components/Manufacture/WorkOrderPack/WorkOrderPack.js
| ... | ... | @@ -1199,8 +1199,10 @@ class WorkOrderPack extends Component { |
| 1199 | 1199 | return; |
| 1200 | 1200 | } |
| 1201 | 1201 | } |
| 1202 | + const calculating = commonFunc.showLocalMessage(this.props, 'calculating', '自动计算中,请稍后再试。'); | |
| 1203 | + | |
| 1202 | 1204 | if (['manufacture/workOrder'].includes(sModelsType) && !calculated) { |
| 1203 | - message.warning('自动计算中,请稍后再试。'); | |
| 1205 | + message.warning(calculating); | |
| 1204 | 1206 | await this.handleCalculation(true); |
| 1205 | 1207 | } else { |
| 1206 | 1208 | const data = []; | ... | ... |
src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js
| ... | ... | @@ -1648,8 +1648,10 @@ class WorkOrderPack extends Component { |
| 1648 | 1648 | // return; |
| 1649 | 1649 | // } |
| 1650 | 1650 | // } |
| 1651 | + const calculating = commonFunc.showLocalMessage(this.props, 'calculating', '自动计算中,请稍后再试。'); | |
| 1652 | + | |
| 1651 | 1653 | if (sModelsType.includes('manufacture/workOrder') && !calculated) { |
| 1652 | - message.warning('自动计算中,请稍后再试。'); | |
| 1654 | + message.warning(calculating); | |
| 1653 | 1655 | await this.handleCalculation(true); |
| 1654 | 1656 | } else { |
| 1655 | 1657 | const data = []; | ... | ... |
src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js
| ... | ... | @@ -1547,7 +1547,8 @@ class WorkOrderPack extends Component { |
| 1547 | 1547 | }); |
| 1548 | 1548 | return; |
| 1549 | 1549 | } |
| 1550 | - console.log('3332', 1111); | |
| 1550 | + const calculating = commonFunc.showLocalMessage(this.props, 'calculating', '自动计算中,请稍后再试。'); | |
| 1551 | + | |
| 1551 | 1552 | if (!commonBusiness.validateTable(slaveConfig, slaveData, this.props) || !commonBusiness.validateTable(controlConfig, controlData, this.props) || |
| 1552 | 1553 | (!commonBusiness.validateTable(materialsConfig, materialsData, this.props)) || !commonBusiness.validateTable(processConfig, processData, this.props) || |
| 1553 | 1554 | !commonBusiness.validateTable(colorConfig, colorData, this.props)) { |
| ... | ... | @@ -1582,7 +1583,7 @@ class WorkOrderPack extends Component { |
| 1582 | 1583 | } |
| 1583 | 1584 | } |
| 1584 | 1585 | if (sModelsType.includes('manufacture/workOrder') && !calculated && bAutoCalculate) { |
| 1585 | - message.warning('自动计算中,请稍后再试。'); | |
| 1586 | + message.warning(calculating); | |
| 1586 | 1587 | await this.handleCalculation(true); |
| 1587 | 1588 | } else { |
| 1588 | 1589 | const data = []; | ... | ... |
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
| ... | ... | @@ -2752,8 +2752,10 @@ const WorkOrderPackTableTreeNewEvent = props => { |
| 2752 | 2752 | }); |
| 2753 | 2753 | return; |
| 2754 | 2754 | } |
| 2755 | + const calculating = commonFunc.showLocalMessage(props, 'calculating', '自动计算中,请稍后再试。'); | |
| 2756 | + | |
| 2755 | 2757 | if (sModelsType.includes("manufacture/workOrder") && !calculated) { |
| 2756 | - message.warning("自动计算中,请稍后再试。"); | |
| 2758 | + message.warning(calculating); | |
| 2757 | 2759 | await props.handleCalculation("workOrder", true); |
| 2758 | 2760 | } else { |
| 2759 | 2761 | const data = []; | ... | ... |
src/components/QuoQuotation/QuotationPackTableTree/QuotationPackTableTree.js
| ... | ... | @@ -2348,9 +2348,11 @@ class QuotationPackTableTree extends Component { |
| 2348 | 2348 | data.push(commonBusiness.mergeData('pack', `${packConfig.sTbName.toLowerCase()}_tmp`, packData, [], true)); |
| 2349 | 2349 | const value = { data, sClientType: '1', sGuid: masterData.sId }; |
| 2350 | 2350 | |
| 2351 | + const calculating = commonFunc.showLocalMessage(this.props, 'calculating', '自动计算中,请稍后再试。'); | |
| 2352 | + | |
| 2351 | 2353 | const cacheIndex = dQuickQuoteProductQty === undefined ? -1 : manyDataCache.findIndex(item => item.dManyQty === dQuickQuoteProductQty); |
| 2352 | 2354 | if (cacheIndex === -1) { |
| 2353 | - message.warning('自动计算中,请稍后再试。'); | |
| 2355 | + message.warning(calculating); | |
| 2354 | 2356 | } |
| 2355 | 2357 | const dataReturn = cacheIndex === -1 ? |
| 2356 | 2358 | (await commonServices.postValueService(this.props.app.token, value, dataUrl)).data | ... | ... |