Commit 5951956d551858eb72ae4cc0fdd177b85e289033
1 parent
0537585c
快速报价支持保存工序报价参数;
Showing
1 changed file
with
12 additions
and
1 deletions
src/components/QuickQuote/index.jsx
| ... | ... | @@ -436,7 +436,7 @@ const QuickQuoteEvent = props => { |
| 436 | 436 | loading: true, |
| 437 | 437 | }, |
| 438 | 438 | () => { |
| 439 | - props.onButtonClick("BtnDraft"); | |
| 439 | + props.onButtonClick("BtnDraft", true); | |
| 440 | 440 | } |
| 441 | 441 | ); |
| 442 | 442 | }; |
| ... | ... | @@ -763,6 +763,17 @@ const QuickQuoteEvent = props => { |
| 763 | 763 | processAfterDataRow.sId = commonUtils.createSid(); |
| 764 | 764 | processAfterDataRow.sParentId = masterData.sId; |
| 765 | 765 | processAfterDataRow.sControlId = partsDataRow.sId; |
| 766 | + | |
| 767 | + const sBackendParams = process.sBackendParams || []; | |
| 768 | + if (sBackendParams.length) { | |
| 769 | + const sQuoParams = sBackendParams.map(item => ({ | |
| 770 | + sParamName: item.sParam, | |
| 771 | + sParamValue: item.value !== undefined ? item.value : "", | |
| 772 | + bSelfCbx: !(item.value === "" || item.value === undefined), | |
| 773 | + })); | |
| 774 | + processAfterDataRow.sQuoParams = JSON.stringify(sQuoParams); | |
| 775 | + } | |
| 776 | + | |
| 766 | 777 | // processAfterDataRow.sSlaveId = ' '; |
| 767 | 778 | processData.push(processAfterDataRow); |
| 768 | 779 | // 配套工序 | ... | ... |