Commit 7447756da63a7489d9b36a48ae032a7324aaa5ee
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
Showing
5 changed files
with
30 additions
and
8 deletions
src/components/Common/CommonBillEvent.js
| @@ -5111,6 +5111,7 @@ export default (ChildComponent) => { | @@ -5111,6 +5111,7 @@ export default (ChildComponent) => { | ||
| 5111 | slaveDataNew.push(tableDataRow); | 5111 | slaveDataNew.push(tableDataRow); |
| 5112 | }); | 5112 | }); |
| 5113 | addState.slaveData = slaveDataNew; | 5113 | addState.slaveData = slaveDataNew; |
| 5114 | + addState.slaveDelData = slaveDelData; | ||
| 5114 | } else { | 5115 | } else { |
| 5115 | this.props.getServiceError(dataReturn); | 5116 | this.props.getServiceError(dataReturn); |
| 5116 | } | 5117 | } |
src/components/Common/Typesetting/typesetting.js
| @@ -7,6 +7,7 @@ import commonConfig from "@/utils/config"; | @@ -7,6 +7,7 @@ import commonConfig from "@/utils/config"; | ||
| 7 | import styles from "./index.less"; | 7 | import styles from "./index.less"; |
| 8 | // import DynamicSVG from "../../Common/BoxDesign/index"; | 8 | // import DynamicSVG from "../../Common/BoxDesign/index"; |
| 9 | import DynamicSVG from "../../Common/BoxDesignCompontent/svg"; | 9 | import DynamicSVG from "../../Common/BoxDesignCompontent/svg"; |
| 10 | +import * as commonFunc from "@/components/Common/commonFunc"; | ||
| 10 | 11 | ||
| 11 | const Typesetting = props => { | 12 | const Typesetting = props => { |
| 12 | const { | 13 | const { |
| @@ -666,10 +667,11 @@ const Typesetting = props => { | @@ -666,10 +667,11 @@ const Typesetting = props => { | ||
| 666 | isShow, | 667 | isShow, |
| 667 | "isMax" | 668 | "isMax" |
| 668 | ); | 669 | ); |
| 670 | + const confirmParam = commonFunc.showLocalMessage(props, 'confirmParam', '排版尺寸大于上机尺寸,请确认参数!'); | ||
| 669 | 671 | ||
| 670 | if (isCustomized && !isShow) { | 672 | if (isCustomized && !isShow) { |
| 671 | if (isMobile) return; | 673 | if (isMobile) return; |
| 672 | - message.error("排版尺寸大于上机尺寸,请确认参数!"); | 674 | + message.error( confirmParam); |
| 673 | } | 675 | } |
| 674 | const onClick = () => { | 676 | const onClick = () => { |
| 675 | if (isMobile) return; | 677 | if (isMobile) return; |
| @@ -996,7 +998,7 @@ const Typesetting = props => { | @@ -996,7 +998,7 @@ const Typesetting = props => { | ||
| 996 | wordBreak: "break-all", // 确保长单词换行 | 998 | wordBreak: "break-all", // 确保长单词换行 |
| 997 | }} | 999 | }} |
| 998 | > | 1000 | > |
| 999 | - 排版尺寸大于上机尺寸,请确认参数! | 1001 | + {confirmParam} |
| 1000 | </span> | 1002 | </span> |
| 1001 | </div> | 1003 | </div> |
| 1002 | )} | 1004 | )} |
src/components/QuickQuote/index.jsx
| @@ -1316,6 +1316,7 @@ const ContentComponent = props => { | @@ -1316,6 +1316,7 @@ const ContentComponent = props => { | ||
| 1316 | // 主表组件 | 1316 | // 主表组件 |
| 1317 | const MasterComponent = props => { | 1317 | const MasterComponent = props => { |
| 1318 | const { masterConfig, masterData = {}, selectedNode = {} } = props.state; | 1318 | const { masterConfig, masterData = {}, selectedNode = {} } = props.state; |
| 1319 | + const { app }= props; | ||
| 1319 | if (!masterConfig) return ""; | 1320 | if (!masterConfig) return ""; |
| 1320 | 1321 | ||
| 1321 | const ableConfigs = masterConfig.gdsconfigformslave.filter(item => item.sName && item.bVisible); | 1322 | const ableConfigs = masterConfig.gdsconfigformslave.filter(item => item.sName && item.bVisible); |
| @@ -1343,12 +1344,18 @@ const MasterComponent = props => { | @@ -1343,12 +1344,18 @@ const MasterComponent = props => { | ||
| 1343 | lengthData.showName = "高(D)"; | 1344 | lengthData.showName = "高(D)"; |
| 1344 | lengthData.sChinese = "高(D)"; | 1345 | lengthData.sChinese = "高(D)"; |
| 1345 | lengthData.sEnglish = "Height (D)"; | 1346 | lengthData.sEnglish = "Height (D)"; |
| 1347 | + if(app.userinfo?.sLanguage === 'sEnglish') { | ||
| 1348 | + lengthData.showName = lengthData.sEnglish; | ||
| 1349 | + } | ||
| 1346 | } | 1350 | } |
| 1347 | } else { | 1351 | } else { |
| 1348 | if (lengthData) { | 1352 | if (lengthData) { |
| 1349 | lengthData.showName = "长(L)"; | 1353 | lengthData.showName = "长(L)"; |
| 1350 | lengthData.sChinese = "长(L)"; | 1354 | lengthData.sChinese = "长(L)"; |
| 1351 | lengthData.sEnglish = "Length (L)"; | 1355 | lengthData.sEnglish = "Length (L)"; |
| 1356 | + if(app.userinfo?.sLanguage === 'sEnglish') { | ||
| 1357 | + lengthData.showName = lengthData.sEnglish; | ||
| 1358 | + } | ||
| 1352 | } | 1359 | } |
| 1353 | } | 1360 | } |
| 1354 | const viewProps = { | 1361 | const viewProps = { |
| @@ -1991,6 +1998,8 @@ const BoxComponent = props => { | @@ -1991,6 +1998,8 @@ const BoxComponent = props => { | ||
| 1991 | const BoxInformation = commonFunc.showLocalMessage(props, 'Box-typeInformation', '拼版信息'); | 1998 | const BoxInformation = commonFunc.showLocalMessage(props, 'Box-typeInformation', '拼版信息'); |
| 1992 | const ImpositionInformation = commonFunc.showLocalMessage(props, 'ImpositionInformation', '拼版信息'); | 1999 | const ImpositionInformation = commonFunc.showLocalMessage(props, 'ImpositionInformation', '拼版信息'); |
| 1993 | 2000 | ||
| 2001 | + const noImage = commonFunc.showLocalMessage(props, 'ImpositionInformation', '暂无图片'); | ||
| 2002 | + | ||
| 1994 | 2003 | ||
| 1995 | // props.setState(prevState => ({ | 2004 | // props.setState(prevState => ({ |
| 1996 | // ...prevState, | 2005 | // ...prevState, |
| @@ -2077,7 +2086,7 @@ const BoxComponent = props => { | @@ -2077,7 +2086,7 @@ const BoxComponent = props => { | ||
| 2077 | <DynamicSVG {...svgProps} /> | 2086 | <DynamicSVG {...svgProps} /> |
| 2078 | </div> | 2087 | </div> |
| 2079 | ) : ( | 2088 | ) : ( |
| 2080 | - <div className={styles.noImg}>暂无图片</div> | 2089 | + <div className={styles.noImg}>{noImage}</div> |
| 2081 | )} | 2090 | )} |
| 2082 | {/* {svgProps.boxList.length ? ( | 2091 | {/* {svgProps.boxList.length ? ( |
| 2083 | slaveRowData.sPackDetailPathUpLoad ? | 2092 | slaveRowData.sPackDetailPathUpLoad ? |
| @@ -2092,7 +2101,7 @@ const BoxComponent = props => { | @@ -2092,7 +2101,7 @@ const BoxComponent = props => { | ||
| 2092 | {slaveRowData.sPackPath ? ( | 2101 | {slaveRowData.sPackPath ? ( |
| 2093 | <Image width={300} src={slaveRowData.sPackPath} /> | 2102 | <Image width={300} src={slaveRowData.sPackPath} /> |
| 2094 | ) : ( | 2103 | ) : ( |
| 2095 | - <div className={styles.noImg}>暂无图片</div> | 2104 | + <div className={styles.noImg}>{noImage}</div> |
| 2096 | )} | 2105 | )} |
| 2097 | {/* <div className={styles.boxRreviewTitile}>立体图</div> */} | 2106 | {/* <div className={styles.boxRreviewTitile}>立体图</div> */} |
| 2098 | </Image.PreviewGroup> | 2107 | </Image.PreviewGroup> |
| @@ -2733,6 +2742,7 @@ const BoxModelSelectedModal = props => { | @@ -2733,6 +2742,7 @@ const BoxModelSelectedModal = props => { | ||
| 2733 | return svgProps; | 2742 | return svgProps; |
| 2734 | }; | 2743 | }; |
| 2735 | const selectBoxList = boxData.filter(item => (boxTypeSelected === "全部" ? true : (item.sBoxType || "其它") === boxTypeSelected)); | 2744 | const selectBoxList = boxData.filter(item => (boxTypeSelected === "全部" ? true : (item.sBoxType || "其它") === boxTypeSelected)); |
| 2745 | + const noImage = commonFunc.showLocalMessage(props, 'ImpositionInformation', '暂无图片'); | ||
| 2736 | const tableProps = { | 2746 | const tableProps = { |
| 2737 | ...commonBusiness.getTableTypes("box", { | 2747 | ...commonBusiness.getTableTypes("box", { |
| 2738 | ...props, | 2748 | ...props, |
| @@ -2760,7 +2770,7 @@ const BoxModelSelectedModal = props => { | @@ -2760,7 +2770,7 @@ const BoxModelSelectedModal = props => { | ||
| 2760 | ) : value ? ( | 2770 | ) : value ? ( |
| 2761 | <img src={value} alt="" width={150} height={150} /> | 2771 | <img src={value} alt="" width={150} height={150} /> |
| 2762 | ) : ( | 2772 | ) : ( |
| 2763 | - "暂无图片" | 2773 | + noImage |
| 2764 | ); | 2774 | ); |
| 2765 | }); | 2775 | }); |
| 2766 | 2776 |
src/components/QuickQuote/index.less
| @@ -81,13 +81,14 @@ | @@ -81,13 +81,14 @@ | ||
| 81 | .ant-form-item-label { | 81 | .ant-form-item-label { |
| 82 | background-color: transparent !important; | 82 | background-color: transparent !important; |
| 83 | color: #000 !important; | 83 | color: #000 !important; |
| 84 | - flex: 0 0 100px !important; | ||
| 85 | - max-width: 100px !important; | 84 | + flex: 0 0 70px !important; |
| 85 | + max-width: 70px !important; | ||
| 86 | + text-align: right !important; | ||
| 86 | } | 87 | } |
| 87 | 88 | ||
| 88 | .ant-form-item-control { | 89 | .ant-form-item-control { |
| 89 | flex: 1; | 90 | flex: 1; |
| 90 | - max-width: calc(100% - 100px); | 91 | + max-width: calc(100% - 70x); |
| 91 | } | 92 | } |
| 92 | 93 | ||
| 93 | .viewStyle { | 94 | .viewStyle { |
src/mobile/quotation/detailNew.jsx
| @@ -1077,6 +1077,7 @@ const QuotationAllprogressDetail = baseProps => { | @@ -1077,6 +1077,7 @@ const QuotationAllprogressDetail = baseProps => { | ||
| 1077 | 1077 | ||
| 1078 | const QuotationDetail = props => { | 1078 | const QuotationDetail = props => { |
| 1079 | const { masterConfig, masterData = {}, selectedNode = {} } = props.state; | 1079 | const { masterConfig, masterData = {}, selectedNode = {} } = props.state; |
| 1080 | + const { app } = props; | ||
| 1080 | if (!masterConfig) return ""; | 1081 | if (!masterConfig) return ""; |
| 1081 | const ableConfigs = masterConfig.gdsconfigformslave.filter(item => item.sName && item.bVisible); | 1082 | const ableConfigs = masterConfig.gdsconfigformslave.filter(item => item.sName && item.bVisible); |
| 1082 | // 处理长宽样式 | 1083 | // 处理长宽样式 |
| @@ -1099,12 +1100,19 @@ const QuotationDetail = props => { | @@ -1099,12 +1100,19 @@ const QuotationDetail = props => { | ||
| 1099 | lengthData.showName = "高(D)"; | 1100 | lengthData.showName = "高(D)"; |
| 1100 | lengthData.sChinese = "高(D)"; | 1101 | lengthData.sChinese = "高(D)"; |
| 1101 | lengthData.sEnglish = "Height (D)"; | 1102 | lengthData.sEnglish = "Height (D)"; |
| 1103 | + if(app.userinfo?.sLanguage === 'sEnglish') { | ||
| 1104 | + lengthData.showName = lengthData.sEnglish; | ||
| 1105 | + } | ||
| 1102 | } | 1106 | } |
| 1103 | } else { | 1107 | } else { |
| 1104 | if (lengthData) { | 1108 | if (lengthData) { |
| 1105 | lengthData.showName = "长(L)"; | 1109 | lengthData.showName = "长(L)"; |
| 1106 | lengthData.sChinese = "长(L)"; | 1110 | lengthData.sChinese = "长(L)"; |
| 1107 | lengthData.sEnglish = "Length (L)"; | 1111 | lengthData.sEnglish = "Length (L)"; |
| 1112 | + console.log('23323', app); | ||
| 1113 | + if(app.userinfo?.sLanguage === 'sEnglish') { | ||
| 1114 | + lengthData.showName = lengthData.sEnglish; | ||
| 1115 | + } | ||
| 1108 | } | 1116 | } |
| 1109 | } | 1117 | } |
| 1110 | const viewProps = { | 1118 | const viewProps = { |