Commit 6a853abd07673d47a0774c2d7314c1b60f492c90
1 parent
d7151f0d
新增价格明细功能;
Showing
1 changed file
with
15 additions
and
4 deletions
src/components/QuickQuote/index.jsx
| ... | ... | @@ -2287,13 +2287,13 @@ const ManyComponent = props => { |
| 2287 | 2287 | const [submitLoading, setSubmitLoading] = useState(false); |
| 2288 | 2288 | const [processPercent, setProcessPercent] = useState(0); |
| 2289 | 2289 | |
| 2290 | - const [BtnNewQuotation, BtnDraft, BtnPriceverification, BtnConfirmQuantity, btnOrdering, BtnPrintPreview] = props.getI18nNameList( | |
| 2290 | + const [BtnNewQuotation, BtnDraft, BtnPriceverification, BtnConfirmQuantity, btnOrdering, BtnPriceDetails] = props.getI18nNameList( | |
| 2291 | 2291 | ["BtnNewQuotation", "新报价"], |
| 2292 | 2292 | ["BtnDraft", "存草稿"], |
| 2293 | 2293 | ["BtnPriceverification", "核价"], |
| 2294 | 2294 | ["BtnConfirmQuantity", "确认下单数量"], |
| 2295 | 2295 | ["btnOrdering", "下单中..."], |
| 2296 | - ["BtnPrintPreview", "打印预览"] | |
| 2296 | + ["BtnPriceDetails", "价格明细"] | |
| 2297 | 2297 | ); |
| 2298 | 2298 | |
| 2299 | 2299 | // 核价事件 |
| ... | ... | @@ -2411,8 +2411,19 @@ const ManyComponent = props => { |
| 2411 | 2411 | > |
| 2412 | 2412 | {BtnDraft} |
| 2413 | 2413 | </Button> |
| 2414 | - <Button type="primary" size="large" onClick={() => {}}> | |
| 2415 | - {BtnPrintPreview} | |
| 2414 | + <Button | |
| 2415 | + type="primary" | |
| 2416 | + size="large" | |
| 2417 | + onClick={() => { | |
| 2418 | + const { report = [] } = props; | |
| 2419 | + const reportDataOne = report[0]; | |
| 2420 | + if (!reportDataOne) return; | |
| 2421 | + | |
| 2422 | + const { sId } = reportDataOne; | |
| 2423 | + props.onBtnPrint(sId, false, `BtnPrint.${sId}`); | |
| 2424 | + }} | |
| 2425 | + > | |
| 2426 | + {BtnPriceDetails} | |
| 2416 | 2427 | </Button> |
| 2417 | 2428 | <Button type="primary" size="large" loading={loading || calcPriceLoading} className={styles.calcPrice} onClick={onCalcPrice}> |
| 2418 | 2429 | {calcPriceLoading ? `核价中【进度${processPercent}%】...` : BtnPriceverification} | ... | ... |