Commit 5e69ab053e147da03c486191b316e08cadfacbb2

Authored by 陈鑫涛
1 parent ddf71483

勒口参数展示

src/components/QuickQuote/index.jsx
... ... @@ -764,7 +764,7 @@ const QuickQuoteEvent = props => {
764 764 processAfterDataRow.sId = commonUtils.createSid();
765 765 processAfterDataRow.sParentId = masterData.sId;
766 766 processAfterDataRow.sControlId = partsDataRow.sId;
767   -
  767 +
768 768 const sBackendParams = process.sBackendParams || [];
769 769 if (sBackendParams.length) {
770 770 const sQuoParams = sBackendParams.map(item => ({
... ... @@ -1366,7 +1366,14 @@ const BoxComponent = props => {
1366 1366 // 材料信息表单
1367 1367 // const upViewProps11 = getUpViewPropsByITag(11);
1368 1368 // 印刷参数表单
1369   - const upViewProps12 = getUpViewPropsByITag(12);
  1369 + let upViewProps12 = getUpViewPropsByITag(12);
  1370 +if (!(selectedNode.sTypeKey === "huace" && slaveRowData.sBoxModel === "封面")) {
  1371 + upViewProps12.viewConfigs = upViewProps12.viewConfigs.slice(0, 6);
  1372 +}
  1373 +
  1374 + // useEffect(() => {
  1375 +
  1376 + // }, [selectedNode.sTypeKey, slaveRowData.sBoxModel]);
1370 1377 // 拼板信息表单
1371 1378 const upViewProps20 = getUpViewPropsByITag(20);
1372 1379  
... ...
src/mobile/quotation/detailNew.jsx
... ... @@ -1536,23 +1536,6 @@ const BoxComponent = props => {
1536 1536 // 后道参数
1537 1537 const { sBackProcessData } = slaveRowData || [];
1538 1538 const [downAbleConfigsNew, setDownAbleConfigsNew] = useState([]);
1539   -
1540   - // const downAbleConfigsNew = downAbleConfigs.reduce((pre, cur) => {
1541   - // const childConfigs = downAbleExtraConfigs.filter(item => item.sParentName === cur.showName);
1542   - // pre.push(cur, ...childConfigs);
1543   - // return pre;
1544   - // }, []);
1545   - // useEffect(() => {
1546   - // // setDownAbleConfigsNew(downAbleConfigs);
1547   - // const data = downAbleConfigs.reduce((pre, cur) => {
1548   - // const childConfigs = downAbleExtraConfigs.filter(item => item.sParentName === cur.showName);
1549   - // pre.push(cur, ...childConfigs);
1550   - // return pre;
1551   - // }, []);
1552   - // setDownAbleConfigsNew(data);
1553   - // }, [downAbleConfigs, downAbleExtraConfigs]);
1554   -
1555   - // 使用 useMemo 缓存 downAbleConfigsNew 的计算结果
1556 1539 const computedDownAbleConfigsNew = useMemo(() => {
1557 1540 return downAbleConfigs.reduce((pre, cur) => {
1558 1541 const childConfigs = downAbleExtraConfigs.filter(item => item.sParentName === cur.showName);
... ... @@ -1829,34 +1812,41 @@ const BoxComponent = props => {
1829 1812  
1830 1813 return (
1831 1814 <div>
1832   - <Selector
1833   - columns={4}
1834   - options={boxTypeList}
1835   - style={{ "--padding": "0.8rem 0" }}
1836   - value={selected ? [selected] : []}
1837   - onChange={v => handleChange(v)}
1838   - />
1839   - <div className={styles.line}></div>
1840   - <div>
1841   - <Grid columns={4} gap={8}>
1842   - {upViewProps
1843   - ? upViewProps.viewConfigs.map(x => (
1844   - <Grid.Item>
1845   - <div className={styles.customer} key={x.id || x.sBig5}>
1846   - <div>{x.sBig5}</div>
1847   - <SelectInput {...upViewProps} itemDetail={x} bCanInput={true} />
1848   - </div>
1849   - </Grid.Item>
1850   - ))
1851   - : ""}
1852   - </Grid>
1853   - </div>
1854   - <div className={styles.svgBox}>
1855   - <div style={{ width: "9.375rem", height: "9.375rem" }}>
1856   - <DynamicSVG {...svgProps} />
  1815 + {selectedNode.box ? (
  1816 + <div>
  1817 + <Selector
  1818 + columns={4}
  1819 + options={boxTypeList}
  1820 + style={{ "--padding": "0.8rem 0" }}
  1821 + value={selected ? [selected] : []}
  1822 + onChange={v => handleChange(v)}
  1823 + />
  1824 + <div className={styles.line}></div>
  1825 + <div>
  1826 + <Grid columns={4} gap={8}>
  1827 + {upViewProps
  1828 + ? upViewProps.viewConfigs.map(x => (
  1829 + <Grid.Item>
  1830 + <div className={styles.customer} key={x.id || x.sBig5}>
  1831 + <div>{x.sBig5}</div>
  1832 + <SelectInput {...upViewProps} itemDetail={x} bCanInput={true} />
  1833 + </div>
  1834 + </Grid.Item>
  1835 + ))
  1836 + : ""}
  1837 + </Grid>
  1838 + </div>
  1839 + <div className={styles.svgBox}>
  1840 + <div style={{ width: "9.375rem", height: "9.375rem" }}>
  1841 + <DynamicSVG {...svgProps} />
  1842 + </div>
  1843 + {slaveRowData && slaveRowData.sPackPath ? <Image src={slaveRowData.sPackPath} width={125} height={125} fit="fill" /> : ""}
  1844 + </div>
1857 1845 </div>
1858   - {slaveRowData && slaveRowData.sPackPath ? <Image src={slaveRowData.sPackPath} width={125} height={125} fit="fill" /> : ""}
1859   - </div>
  1846 + ) : (
  1847 + ""
  1848 + )}
  1849 +
1860 1850 <div>
1861 1851 <div className={styles.boxTitle}>
1862 1852 印刷信息
... ...