Commit 03a0440401d5ee5a8d077e60d980738d03f9836f

Authored by 陈鑫涛
2 parents bc888833 fd9b8bf7

Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main

src/components/QuickQuote/index.jsx
@@ -479,9 +479,9 @@ const QuickQuoteEvent = props => { @@ -479,9 +479,9 @@ const QuickQuoteEvent = props => {
479 // 核价按钮 479 // 核价按钮
480 addState.handleCalcPrice = async () => { 480 addState.handleCalcPrice = async () => {
481 const { masterConfig, masterData = {}, slaveConfig, slaveData = [], selectedNode = {}, extraParts = {} } = state; 481 const { masterConfig, masterData = {}, slaveConfig, slaveData = [], selectedNode = {}, extraParts = {} } = state;
482 - 482 + const selectProduct = commonFunc.showLocalMessage(props, 'selectProduct', '请先选择产品');
483 if (commonUtils.isEmptyObject(selectedNode)) { 483 if (commonUtils.isEmptyObject(selectedNode)) {
484 - message.error("请先选择产品", 2); 484 + message.error(selectProduct, 2);
485 return; 485 return;
486 } 486 }
487 487
@@ -1204,12 +1204,13 @@ const TreeComponent = props => { @@ -1204,12 +1204,13 @@ const TreeComponent = props => {
1204 const ContentComponent = props => { 1204 const ContentComponent = props => {
1205 const { selectedNode = {}, extraParts = {} } = props.state; 1205 const { selectedNode = {}, extraParts = {} } = props.state;
1206 const manyqtysInfo = props.getI18nName("manyqtysInfo", "多数量报价"); 1206 const manyqtysInfo = props.getI18nName("manyqtysInfo", "多数量报价");
  1207 + const selectProduct = commonFunc.showLocalMessage(props, 'selectProduct', '请先选择产品');
1207 const { showName } = selectedNode; 1208 const { showName } = selectedNode;
1208 const extraPartsList = extraParts[showName] || []; 1209 const extraPartsList = extraParts[showName] || [];
1209 let { sAllPartsName = "" } = selectedNode; 1210 let { sAllPartsName = "" } = selectedNode;
1210 let bEmpty = false; 1211 let bEmpty = false;
1211 if (commonUtils.isEmptyObject(selectedNode)) { 1212 if (commonUtils.isEmptyObject(selectedNode)) {
1212 - sAllPartsName = "请先选择产品"; 1213 + sAllPartsName = selectProduct;
1213 bEmpty = true; 1214 bEmpty = true;
1214 } else if (!sAllPartsName) { 1215 } else if (!sAllPartsName) {
1215 sAllPartsName = showName; 1216 sAllPartsName = showName;
@@ -1488,6 +1489,9 @@ const BoxComponent = props => { @@ -1488,6 +1489,9 @@ const BoxComponent = props => {
1488 if (selectedNode.sProductType === "不干胶") { 1489 if (selectedNode.sProductType === "不干胶") {
1489 showNameKeyList = ["dZBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"]; 1490 showNameKeyList = ["dZBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"];
1490 } 1491 }
  1492 + const UlToolPosition = commonFunc.showLocalMessage(props, 'UlToolPosition', '上下刀位');
  1493 + const RLToolPosition = commonFunc.showLocalMessage(props, 'RLToolPosition', '左右刀位');
  1494 + const LeftMargin = commonFunc.showLocalMessage(props, 'LeftMargin', '左右刀位');
1491 boxConfigList = boxConfig?.gdsconfigformslave?.filter(item => item.bVisible && showNameKeyList.includes(item.sName)) || []; 1495 boxConfigList = boxConfig?.gdsconfigformslave?.filter(item => item.bVisible && showNameKeyList.includes(item.sName)) || [];
1492 if (selectedNode.sProductType === "不干胶") { 1496 if (selectedNode.sProductType === "不干胶") {
1493 const mappings = { 1497 const mappings = {
@@ -1503,9 +1507,9 @@ const BoxComponent = props => { @@ -1503,9 +1507,9 @@ const BoxComponent = props => {
1503 }); 1507 });
1504 } else { 1508 } else {
1505 const mappings = { 1509 const mappings = {
1506 - dZBLB: "左边留白",  
1507 - dXBJJ: "上下刀位",  
1508 - dYBJJ: "左右刀位", 1510 + dZBLB: LeftMargin,
  1511 + dXBJJ: UlToolPosition,
  1512 + dYBJJ: RLToolPosition,
1509 }; 1513 };
1510 1514
1511 boxConfigList.forEach(item => { 1515 boxConfigList.forEach(item => {
@@ -1983,6 +1987,11 @@ const BoxComponent = props => { @@ -1983,6 +1987,11 @@ const BoxComponent = props => {
1983 }; 1987 };
1984 const isShowImg = boxList.find(x => x.sName === "盒身")?.type !== "" || false; 1988 const isShowImg = boxList.find(x => x.sName === "盒身")?.type !== "" || false;
1985 const PrintingParameters = props.getI18nName("PrintingParameters", "印刷参数"); 1989 const PrintingParameters = props.getI18nName("PrintingParameters", "印刷参数");
  1990 +
  1991 + const BoxInformation = commonFunc.showLocalMessage(props, 'Box-typeInformation', '拼版信息');
  1992 + const ImpositionInformation = commonFunc.showLocalMessage(props, 'ImpositionInformation', '拼版信息');
  1993 +
  1994 +
1986 // props.setState(prevState => ({ 1995 // props.setState(prevState => ({
1987 // ...prevState, 1996 // ...prevState,
1988 // svgBoxList: boxList, 1997 // svgBoxList: boxList,
@@ -1992,7 +2001,7 @@ const BoxComponent = props => { @@ -1992,7 +2001,7 @@ const BoxComponent = props => {
1992 key={boxModel} 2001 key={boxModel}
1993 type="card" 2002 type="card"
1994 className={`noXlyTabs ${styles.tabs} ${!bBox ? styles.hideTab : ""}`} 2003 className={`noXlyTabs ${styles.tabs} ${!bBox ? styles.hideTab : ""}`}
1995 - items={["盒型信息", "拼版信息"].map((title, index) => { 2004 + items={[BoxInformation, ImpositionInformation].map((title, index) => {
1996 return { 2005 return {
1997 label: title, 2006 label: title,
1998 key: index, 2007 key: index,
@@ -2585,17 +2594,22 @@ const BoxModelSelectedModal = props => { @@ -2585,17 +2594,22 @@ const BoxModelSelectedModal = props => {
2585 const [boxData, setBoxData] = useState([]); 2594 const [boxData, setBoxData] = useState([]);
2586 const [treeClassName, setTreeClassName] = useState(""); 2595 const [treeClassName, setTreeClassName] = useState("");
2587 const [boxTypeSelected, setBoxTypeSelected] = useState("全部"); 2596 const [boxTypeSelected, setBoxTypeSelected] = useState("全部");
  2597 + const UniqueID = commonFunc.showLocalMessage(props, 'UniqueID', '唯一ID');
  2598 + const sName = commonFunc.showLocalMessage(props, 'jurCon', '名称');
  2599 + const KnifeLineChart = commonFunc.showLocalMessage(props, 'KnifeLineChart', '刀线图');
  2600 + const ThreeDGraph = commonFunc.showLocalMessage(props, '3DGraph', '3D图');
  2601 + const BtnOperations = commonFunc.showLocalMessage(props, 'BtnOperations', '操作');
2588 2602
2589 useEffect(() => { 2603 useEffect(() => {
2590 const boxList = [ 2604 const boxList = [
2591 - ["sId", "唯一ID"], 2605 + ["sId", UniqueID],
2592 ["iOrder", "#", 60], 2606 ["iOrder", "#", 60],
2593 // ["sBoxId", "盒型ID"], 2607 // ["sBoxId", "盒型ID"],
2594 - ["sName", "名称", 119],  
2595 - ["sPackDetailPathUpLoad", "刀线图", 300], 2608 + ["sName", sName, 119],
  2609 + ["sPackDetailPathUpLoad", KnifeLineChart, 300],
2596 // ["sPackDetailPathUpLoad", "刀线图", 300], 2610 // ["sPackDetailPathUpLoad", "刀线图", 300],
2597 - ["sPackPath", "3D图", 300],  
2598 - ["operation", "操作", 80], 2611 + ["sPackPath", ThreeDGraph, 300],
  2612 + ["operation", BtnOperations, 80],
2599 ]; 2613 ];
2600 const config = { 2614 const config = {
2601 sId: commonUtils.createSid(), 2615 sId: commonUtils.createSid(),
@@ -2770,16 +2784,17 @@ const BoxModelSelectedModal = props => { @@ -2770,16 +2784,17 @@ const BoxModelSelectedModal = props => {
2770 }); 2784 });
2771 }, 2785 },
2772 }; 2786 };
2773 - 2787 + const BoxSelection = commonFunc.showLocalMessage(props, 'Box-TypeSelection', '盒型选择');
  2788 + const BtnClose = commonFunc.showLocalMessage(props, 'BtnClose', '关闭');
2774 return ( 2789 return (
2775 <AntdDraggableModal 2790 <AntdDraggableModal
2776 width="min(calc(100vw - 350px), 1100px)" 2791 width="min(calc(100vw - 350px), 1100px)"
2777 - title="盒型选择" 2792 + title={BoxSelection}
2778 visible={boxModelSelectedModalVisible} 2793 visible={boxModelSelectedModalVisible}
2779 onCancel={onCancel} 2794 onCancel={onCancel}
2780 footer={ 2795 footer={
2781 <Button type="primary" onClick={onCancel}> 2796 <Button type="primary" onClick={onCancel}>
2782 - 关闭 2797 + {BtnClose}
2783 </Button> 2798 </Button>
2784 } 2799 }
2785 > 2800 >
src/mobile/quotation/detailNew.jsx
@@ -451,11 +451,12 @@ const QuickQuoteEvent = props =&gt; { @@ -451,11 +451,12 @@ const QuickQuoteEvent = props =&gt; {
451 // 核价按钮 451 // 核价按钮
452 addState.handleCalcPrice = async () => { 452 addState.handleCalcPrice = async () => {
453 const { masterData = {}, slaveData = [], selectedNode = {}, extraParts = {} } = state; 453 const { masterData = {}, slaveData = [], selectedNode = {}, extraParts = {} } = state;
  454 + const selectProduct = commonFunc.showLocalMessage(props, 'selectProduct', '请先选择产品');
454 if (commonUtils.isEmptyObject(selectedNode)) { 455 if (commonUtils.isEmptyObject(selectedNode)) {
455 // message.error("请先选择产品"); 456 // message.error("请先选择产品");
456 Toast.show({ 457 Toast.show({
457 icon: "fail", 458 icon: "fail",
458 - content: "请先选择产品", 459 + content: selectProduct,
459 }); 460 });
460 return; 461 return;
461 } 462 }
@@ -1575,6 +1576,10 @@ const BoxComponent = props =&gt; { @@ -1575,6 +1576,10 @@ const BoxComponent = props =&gt; {
1575 if (selectedNode.sProductType === "不干胶") { 1576 if (selectedNode.sProductType === "不干胶") {
1576 showNameKeyList = ["dZBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"]; 1577 showNameKeyList = ["dZBLB", "dZBJJ", "dYBJJ", "dSBJJ", "dXBJJ"];
1577 } 1578 }
  1579 + const UlToolPosition = commonFunc.showLocalMessage(props, 'UlToolPosition', '上下刀位');
  1580 + const RLToolPosition = commonFunc.showLocalMessage(props, 'RLToolPosition', '左右刀位');
  1581 + const LeftMargin = commonFunc.showLocalMessage(props, 'LeftMargin', '左右刀位');
  1582 +
1578 boxConfigList = boxConfig?.gdsconfigformslave?.filter(item => item.bVisible && showNameKeyList.includes(item.sName)) || []; 1583 boxConfigList = boxConfig?.gdsconfigformslave?.filter(item => item.bVisible && showNameKeyList.includes(item.sName)) || [];
1579 if (selectedNode.sProductType === "不干胶") { 1584 if (selectedNode.sProductType === "不干胶") {
1580 const mappings = { 1585 const mappings = {
@@ -1590,9 +1595,9 @@ const BoxComponent = props =&gt; { @@ -1590,9 +1595,9 @@ const BoxComponent = props =&gt; {
1590 }); 1595 });
1591 } else { 1596 } else {
1592 const mappings = { 1597 const mappings = {
1593 - dZBLB: "左边留白",  
1594 - dXBJJ: "上下刀位",  
1595 - dYBJJ: "左右刀位", 1598 + dZBLB: LeftMargin,
  1599 + dXBJJ: UlToolPosition,
  1600 + dYBJJ: RLToolPosition,
1596 }; 1601 };
1597 1602
1598 boxConfigList.forEach(item => { 1603 boxConfigList.forEach(item => {