Commit 15f9d34e20f248b248dae69a22903a3aa392b2a3

Authored by 陈鑫涛
1 parent f550ba14

排版

src/components/Common/Typesetting/typesetting.js
... ... @@ -707,7 +707,7 @@ const Typesetting = props => {
707 707 Number(slaveDataDetail?.dMaxLength) >= Number(slaveRowData?.dMachineLength) &&
708 708 Number(slaveDataDetail?.dMaxWidth) >= Number(slaveRowData?.dMachineWidth);
709 709  
710   - const isShow = true || slaveRowData && slaveRowData.dMachineLength && slaveRowData.dMaxWidth && slaveRowData.dMaxLength && isMax && innerDivs.length > 0;
  710 + const isShow = slaveRowData && slaveRowData.dMachineLength && slaveRowData.dMaxWidth && slaveRowData.dMaxLength && isMax && innerDivs.length > 0;
711 711 console.log(
712 712 slaveDataDetail?.dMaxLength,
713 713 slaveDataDetail?.dMaxWidth,
... ...
src/components/QuickQuote/index.jsx
... ... @@ -15,6 +15,7 @@ import AntdDraggableModal from "@/components/Common/AntdDraggableModal";
15 15 import styles from "./index.less";
16 16 import Typesetting from "@/components/Common/Typesetting/typesetting";
17 17 import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg";
  18 +import KapaiJson from './kapai.json'
18 19 // 事件
19 20 const QuickQuoteEvent = props => {
20 21 const addState = {};
... ... @@ -1452,23 +1453,33 @@ const BoxComponent = props => {
1452 1453 const [boxData, setBoxData] = useState([]);
1453 1454 useEffect(() => {
1454 1455 if (selectedNode.sTypeKey === "kapai" || selectedNode.sTypeKey === "juantong") {
1455   - const getSqlDropDownData = async ({ sId }, cb) => {
1456   - const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`;
1457   - const body = {
1458   - sKeyUpFilterName: "",
1459   - pageNum: 1,
1460   - pageSize: 1000,
1461   - sSqlCondition: {
1462   - sProductClassifyId: selectedNode.sId,
1463   - },
1464   - };
1465   - const retrunData = await commonServices.postValueService(props.app.token, body, url);
1466   - const dropDownData = retrunData.data?.dataset?.rows;
1467   - console.log("🚀 ~ getSqlDropDownData ~ dropDownData:", dropDownData)
1468   - cb(dropDownData);
1469   - };
1470   -
1471   - getSqlDropDownData({ sId: "17428091410008594700322758474000" }, dropDownData => {
  1456 + // const getSqlDropDownData = async ({ sId }, cb) => {
  1457 + // const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`;
  1458 + // const body = {
  1459 + // sKeyUpFilterName: "",
  1460 + // pageNum: 1,
  1461 + // pageSize: 1000,
  1462 + // sSqlCondition: {
  1463 + // sProductClassifyId: selectedNode.sId,
  1464 + // },
  1465 + // };
  1466 + // const retrunData = await commonServices.postValueService(props.app.token, body, url);
  1467 + // const dropDownData = retrunData.data?.dataset?.rows;
  1468 + // console.log("🚀 ~ getSqlDropDownData ~ dropDownData:", dropDownData)
  1469 + // };
  1470 +
  1471 + // getSqlDropDownData({ sId: "17428091410008594700322758474000" }, dropDownData => {
  1472 + // const boxTypeList = Array.from(new Set((dropDownData || []).map(item => item.sBoxType || "其它")));
  1473 + // setBoxTypeList(boxTypeList);
  1474 + // setBoxData(
  1475 + // (dropDownData || []).map((item, index) => ({
  1476 + // ...item,
  1477 + // iOrder: index + 1,
  1478 + // }))
  1479 + // );
  1480 + // });
  1481 + let dropDownData = []
  1482 + dropDownData.push(KapaiJson)
1472 1483 const boxTypeList = Array.from(new Set((dropDownData || []).map(item => item.sBoxType || "其它")));
1473 1484 setBoxTypeList(boxTypeList);
1474 1485 setBoxData(
... ... @@ -1477,7 +1488,6 @@ const BoxComponent = props => {
1477 1488 iOrder: index + 1,
1478 1489 }))
1479 1490 );
1480   - });
1481 1491 }
1482 1492 }, [boxModel]);
1483 1493 useEffect(() => {
... ... @@ -2163,7 +2173,7 @@ const BoxComponent = props => {
2163 2173 <div className={styles.boxRreview}>
2164 2174 <Image.PreviewGroup>
2165 2175 {svgProps.boxList.length ? (
2166   - <div style={{ width: " 300px", height: "290px", backgroundColor: "#fff", borderRight: "1px solid #ccc" }}>
  2176 + <div style={{ width: " 300px", height: "290px",lineHeight:'290px', backgroundColor: "#fff", borderRight: "1px solid #ccc" }}>
2167 2177 <DynamicSVG {...svgProps} />
2168 2178 </div>
2169 2179 ) : (
... ...
src/components/QuickQuote/kapai.json
... ... @@ -3,14 +3,14 @@
3 3 "sName": "卡牌",
4 4 "sBrandsId": "1111111111",
5 5 "sSubsidiaryId": "1111111111",
6   - "tCreateDate": "2025-06-19 13:49:04",
  6 + "tCreateDate": "2025-06-19 17:52:40",
7 7 "sMakePerson": "陈鑫涛",
8 8 "iOrder": 0,
9 9 "bInvalid": false,
10 10 "tMakeDate": "2025-06-19 13:48:43",
11 11 "sFormId": "172129113112117427164802170",
12 12 "sBillNo": "00002099",
13   - "sPackPath": "http://8.130.144.93:8088/xlyEntry/file/downloadLogo?sLogoName=logosPackPath卡牌&date=1750312141994",
  13 + "sPackPath": "http://8.130.144.93:8088/xlyEntry/file/downloadLogo?sLogoName=logosPackPath卡牌&date=1750758758828",
14 14 "dSBLB": 10,
15 15 "dXBLB": 10,
16 16 "dZBLB": 5,
... ... @@ -19,11 +19,14 @@
19 19 "dXBJJ": 5,
20 20 "dZBJJ": 0,
21 21 "dYBJJ": 5,
22   - "sColumnNameConfig": "[{\"sId\": \"17503121050007868467942061636000\", \"sBig5\": \"上方盒舌\", \"sName\": \"dSFHS\", \"iOrder\": 1, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"上方盒舌\", \"sDefault\": 0, \"showName\": \"上方盒舌\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24930, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050004734713992285329000\", \"sBig5\": \"盒底组件\", \"sName\": \"dHDC\", \"iOrder\": 2, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"盒底组件\", \"sDefault\": 0, \"showName\": \"盒底组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24931, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050003805022968003848700\", \"sBig5\": \"下方盒舌\", \"sName\": \"dXFHS\", \"iOrder\": 3, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"下方盒舌\", \"sDefault\": 0, \"showName\": \"下方盒舌\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24932, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050009676586559595633000\", \"sBig5\": \"左(上)插位组件\", \"sName\": \"dZSCW\", \"iOrder\": 4, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"左(上)插位组件\", \"sDefault\": 0, \"showName\": \"左(上)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24933, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050001962345088454939000\", \"sBig5\": \"左贴边位\", \"sName\": \"dZTBW\", \"iOrder\": 5, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"左贴边位\", \"sDefault\": 0, \"showName\": \"左贴边位\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24934, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050002414611810439558000\", \"sBig5\": \"左(下)插位组件\", \"sName\": \"dZXCW\", \"iOrder\": 6, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"左(下)插位组件\", \"sDefault\": 0, \"showName\": \"左(下)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24935, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050002143115722990272500\", \"sBig5\": \"右(上)插位组件\", \"sName\": \"dYSCW\", \"iOrder\": 7, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"右(上)插位组件\", \"sDefault\": 0, \"showName\": \"右(上)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24936, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050003634411255280123400\", \"sBig5\": \"右贴边位\", \"sName\": \"dYTBW\", \"iOrder\": 8, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"右贴边位\", \"sDefault\": 0, \"showName\": \"右贴边位\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24937, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050004462109599634759000\", \"sBig5\": \"右(下)插位组件\", \"sName\": \"dYXCW\", \"iOrder\": 9, \"sTypes\": null, \"bVisible\": 0, \"sChinese\": \"右(下)插位组件\", \"sDefault\": 0, \"showName\": \"右(下)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24938, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null}]",
  22 + "sColumnNameConfig": "[{\"sId\": \"17503121050007868467942061636000\", \"sBig5\": \"上方盒舌\", \"sName\": \"dSFHS\", \"iOrder\": 1, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"上方盒舌\", \"sDefault\": 0, \"showName\": \"上方盒舌\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24930, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050004734713992285329000\", \"sBig5\": \"盒底组件\", \"sName\": \"dHDC\", \"iOrder\": 2, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"盒底组件\", \"sDefault\": 0, \"showName\": \"盒底组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24931, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050003805022968003848700\", \"sBig5\": \"下方盒舌\", \"sName\": \"dXFHS\", \"iOrder\": 3, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"下方盒舌\", \"sDefault\": 0, \"showName\": \"下方盒舌\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24932, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050009676586559595633000\", \"sBig5\": \"左(上)插位组件\", \"sName\": \"dZSCW\", \"iOrder\": 4, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"左(上)插位组件\", \"sDefault\": 0, \"showName\": \"左(上)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24933, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050001962345088454939000\", \"sBig5\": \"左贴边位\", \"sName\": \"dZTBW\", \"iOrder\": 5, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"左贴边位\", \"sDefault\": 0, \"showName\": \"左贴边位\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24934, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050002414611810439558000\", \"sBig5\": \"左(下)插位组件\", \"sName\": \"dZXCW\", \"iOrder\": 6, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"左(下)插位组件\", \"sDefault\": 0, \"showName\": \"左(下)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24935, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050002143115722990272500\", \"sBig5\": \"右(上)插位组件\", \"sName\": \"dYSCW\", \"iOrder\": 7, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"右(上)插位组件\", \"sDefault\": 0, \"showName\": \"右(上)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24936, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050003634411255280123400\", \"sBig5\": \"右贴边位\", \"sName\": \"dYTBW\", \"iOrder\": 8, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"右贴边位\", \"sDefault\": 0, \"showName\": \"右贴边位\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24937, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null},{\"sId\": \"17503121050004462109599634759000\", \"sBig5\": \"右(下)插位组件\", \"sName\": \"dYXCW\", \"iOrder\": 9, \"sTypes\": \"\", \"bVisible\": 0, \"sChinese\": \"右(下)插位组件\", \"sDefault\": 0, \"showName\": \"右(下)插位组件\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 24938, \"sSubsidiaryId\": \"1111111111\", \"sAssignFormula\": null}]",
  23 + "sColumnNameConfigExclusion": "[{\"sId\": \"17503122410009257367226894416000\", \"sBig5\": \"001\", \"sCode\": \"横向\", \"sName\": \"横向\", \"iOrder\": 1, \"iFAngle\": 0, \"iSAngle\": 0, \"sChinese\": \"001\", \"showName\": \"001\", \"iFitWidth\": 120, \"sBrandsId\": \"1111111111\", \"sParentId\": \"17503120900005596112489925319000\", \"iIncrement\": 23752, \"sFWidthOffset\": \"0\", \"sSGroupOffset\": \"首盒\", \"sSWidthOffset\": \"0\", \"sSubsidiaryId\": \"1111111111\", \"sFLengthOffset\": \"0\", \"sSLengthOffset\": \"0\", \"sSettingMethod\": \"从上到下\", \"sSecondorizontalOffset\": \"0\", \"sSecondLongitudinalOffset\": \"0\"}]",
  24 + "sLengthFormula": "L",
23 25 "sWidthFormula": "W",
24 26 "sBoxType": "其它",
25   - "dBoxHeight": 0,
  27 + "dBoxHeight": 50,
26 28 "dBoxLength": 50,
27 29 "dBoxWidth": 50,
28   - "sTypes": "6"
  30 + "sTypes": "6",
  31 + "sPackDetailPathUpLoad": "http://8.130.144.93:8088/xlyEntry/file/downloadLogo?sLogoName=logosPackPath卡牌&date=1750312141994"
29 32 }
30 33 \ No newline at end of file
... ...