Commit baf4a6d636831814ea5242dfab6259b7e801e51c
1 parent
03a04404
1.增加报价提示翻译
Showing
1 changed file
with
11 additions
and
6 deletions
src/mobile/quotation/detailNew.jsx
| ... | ... | @@ -452,6 +452,11 @@ const QuickQuoteEvent = props => { |
| 452 | 452 | addState.handleCalcPrice = async () => { |
| 453 | 453 | const { masterData = {}, slaveData = [], selectedNode = {}, extraParts = {} } = state; |
| 454 | 454 | const selectProduct = commonFunc.showLocalMessage(props, 'selectProduct', '请先选择产品'); |
| 455 | + const selectCustomer = commonFunc.showLocalMessage(props, 'selectCustomer', '请先选择客户名称'); | |
| 456 | + const selectProductUnit = commonFunc.showLocalMessage(props, 'selectProductUnit', '请先输入产品单位'); | |
| 457 | + const inputLength = commonFunc.showLocalMessage(props, 'inputLength', '请先输入长度'); | |
| 458 | + const inputWidth = commonFunc.showLocalMessage(props, 'inputWidth', '请先输入宽度'); | |
| 459 | + const inputQty = commonFunc.showLocalMessage(props, 'inputQty', '请先输入数量'); | |
| 455 | 460 | if (commonUtils.isEmptyObject(selectedNode)) { |
| 456 | 461 | // message.error("请先选择产品"); |
| 457 | 462 | Toast.show({ |
| ... | ... | @@ -461,12 +466,12 @@ const QuickQuoteEvent = props => { |
| 461 | 466 | return; |
| 462 | 467 | } |
| 463 | 468 | const mustFieldsMap = { |
| 464 | - sCustomerName: "请先选择客户名称", | |
| 465 | - sProductName: "请先输入产品名称", | |
| 466 | - sProductUnit: "请先输入产品单位", | |
| 467 | - dLength: "请先输入长度", | |
| 468 | - dWidth: "请先输入宽度", | |
| 469 | - dProductQty: "请先输入数量", | |
| 469 | + sCustomerName: selectCustomer, | |
| 470 | + sProductName: selectCustomer, | |
| 471 | + sProductUnit: selectProductUnit, | |
| 472 | + dLength: inputLength, | |
| 473 | + dWidth: inputWidth, | |
| 474 | + dProductQty: inputQty, | |
| 470 | 475 | }; |
| 471 | 476 | |
| 472 | 477 | const checkResult = Object.keys(mustFieldsMap).find(item => masterData[item] === undefined); | ... | ... |