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