Commit 1b0f10c1d870cb71d71acc854d4a24e1eaef3bc0
1 parent
ad257f3e
去console.log;
Showing
11 changed files
with
1 additions
and
24 deletions
src/components/Common/BoxDesignCompontent/svg.js
| @@ -234,7 +234,6 @@ const SvgBox = props => { | @@ -234,7 +234,6 @@ const SvgBox = props => { | ||
| 234 | svgContainerRef.current.style.height = `${dSvgBoxHeight ? dSvgBoxHeight : 250}px`; | 234 | svgContainerRef.current.style.height = `${dSvgBoxHeight ? dSvgBoxHeight : 250}px`; |
| 235 | } | 235 | } |
| 236 | } else if (props.showNew === 1) { | 236 | } else if (props.showNew === 1) { |
| 237 | - console.log("🚀 ~ initSVG ~ props:", props) | ||
| 238 | let ySvg = topOffect(boxList, boxLength, boxWidth, boxHeight) * scale; | 237 | let ySvg = topOffect(boxList, boxLength, boxWidth, boxHeight) * scale; |
| 239 | let leftSize = 0; | 238 | let leftSize = 0; |
| 240 | let topSize = 0; | 239 | let topSize = 0; |
src/components/Common/BoxProject/svg.js
| @@ -10,7 +10,6 @@ import { | @@ -10,7 +10,6 @@ import { | ||
| 10 | createNoneProject, | 10 | createNoneProject, |
| 11 | } from "../BoxDesign/createAirplaneBox"; | 11 | } from "../BoxDesign/createAirplaneBox"; |
| 12 | const SvgBox = props => { | 12 | const SvgBox = props => { |
| 13 | - console.log("🚀 ~ propsprops:", props); | ||
| 14 | const svgContainerRef = useRef(null); | 13 | const svgContainerRef = useRef(null); |
| 15 | const svgRef = useRef(null); | 14 | const svgRef = useRef(null); |
| 16 | const [boxKey, setBoxKey] = useState(new Date().getTime()); | 15 | const [boxKey, setBoxKey] = useState(new Date().getTime()); |
src/components/Common/CommonViewTable/index.js
| @@ -362,7 +362,6 @@ export default class CommonViewTable extends Component { | @@ -362,7 +362,6 @@ export default class CommonViewTable extends Component { | ||
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | const viewRowNew = this.props.getViewRow?.(child) || viewRow; | 364 | const viewRowNew = this.props.getViewRow?.(child) || viewRow; |
| 365 | - console.log("🚀 ~ CommonViewTable ~ viewConfigs&&viewConfigs.map ~ viewRowNew:", viewRowNew) | ||
| 366 | 365 | ||
| 367 | const showTypeProps = { | 366 | const showTypeProps = { |
| 368 | app, | 367 | app, |
src/components/Common/ShowImgMaterial/index.js
| @@ -302,7 +302,6 @@ export default class ShowImg extends Component { | @@ -302,7 +302,6 @@ export default class ShowImg extends Component { | ||
| 302 | 302 | ||
| 303 | // //横向+竖 添加HTML | 303 | // //横向+竖 添加HTML |
| 304 | getHHPHtml = (dMatLength, dMatWidth, dLength, dWidth, dBoold, dBite, wlfx, bBox) => { | 304 | getHHPHtml = (dMatLength, dMatWidth, dLength, dWidth, dBoold, dBite, wlfx, bBox) => { |
| 305 | - console.log("🚀 ~ ShowImg ~ bBox:", bBox) | ||
| 306 | const elements = []; | 305 | const elements = []; |
| 307 | var p_dMatLength = dMatLength; | 306 | var p_dMatLength = dMatLength; |
| 308 | var p_dMatWidth = dMatWidth; //减去咬口后的高度 | 307 | var p_dMatWidth = dMatWidth; //减去咬口后的高度 |
src/components/Common/Typesetting/typesetting.js
| @@ -21,7 +21,6 @@ const Typesetting = props => { | @@ -21,7 +21,6 @@ const Typesetting = props => { | ||
| 21 | boxHeight, | 21 | boxHeight, |
| 22 | textSize, | 22 | textSize, |
| 23 | } = props; | 23 | } = props; |
| 24 | - console.log("🚀 ~ typesettingsss:", props) | ||
| 25 | if (!slaveRowData) return | 24 | if (!slaveRowData) return |
| 26 | const { | 25 | const { |
| 27 | dSBLB, // 上边留白 | 26 | dSBLB, // 上边留白 |
| @@ -551,9 +550,7 @@ const Typesetting = props => { | @@ -551,9 +550,7 @@ const Typesetting = props => { | ||
| 551 | }, 0); // 使用 0 延迟,将任务放入事件队列 | 550 | }, 0); // 使用 0 延迟,将任务放入事件队列 |
| 552 | } | 551 | } |
| 553 | const isMax = slaveDataDetail?.dMaxLength && Number(slaveDataDetail?.dMaxLength) >= Number(slaveRowData?.dMachineLength); | 552 | const isMax = slaveDataDetail?.dMaxLength && Number(slaveDataDetail?.dMaxLength) >= Number(slaveRowData?.dMachineLength); |
| 554 | - console.log("🚀 ~ isMax:", isMax,slaveDataDetail,slaveRowData) | ||
| 555 | const isShow = slaveRowData && slaveRowData.dMachineLength && slaveRowData.dMaxWidth && slaveRowData.dMaxLength && isMax && innerDivs.length; | 553 | const isShow = slaveRowData && slaveRowData.dMachineLength && slaveRowData.dMaxWidth && slaveRowData.dMaxLength && isMax && innerDivs.length; |
| 556 | - console.log(innerDivs,cols,rows,'innerDivs'); | ||
| 557 | 554 | ||
| 558 | const onClick = () => { | 555 | const onClick = () => { |
| 559 | setIsModalOpen(true); | 556 | setIsModalOpen(true); |
src/components/QuickQuote/index.jsx
| @@ -906,7 +906,6 @@ const QuickQuoteEvent = props => { | @@ -906,7 +906,6 @@ const QuickQuoteEvent = props => { | ||
| 906 | // 入口 | 906 | // 入口 |
| 907 | const QuickQuote = baseProps => { | 907 | const QuickQuote = baseProps => { |
| 908 | const props = QuickQuoteEvent(baseProps); | 908 | const props = QuickQuoteEvent(baseProps); |
| 909 | - console.log("🚀 ~ QuickQuote:", props) | ||
| 910 | 909 | ||
| 911 | const [treeClassName, setTreeClassName] = useState(""); | 910 | const [treeClassName, setTreeClassName] = useState(""); |
| 912 | 911 | ||
| @@ -1093,7 +1092,6 @@ const ContentComponent = props => { | @@ -1093,7 +1092,6 @@ const ContentComponent = props => { | ||
| 1093 | const { selectedNode = {}, extraParts = {} } = props.state; | 1092 | const { selectedNode = {}, extraParts = {} } = props.state; |
| 1094 | const { showName } = selectedNode; | 1093 | const { showName } = selectedNode; |
| 1095 | const extraPartsList = extraParts[showName] || []; | 1094 | const extraPartsList = extraParts[showName] || []; |
| 1096 | - console.log("🚀 ~ extraPartsList:", extraPartsList) | ||
| 1097 | let { sAllPartsName = "" } = selectedNode; | 1095 | let { sAllPartsName = "" } = selectedNode; |
| 1098 | let bEmpty = false; | 1096 | let bEmpty = false; |
| 1099 | if (commonUtils.isEmptyObject(selectedNode)) { | 1097 | if (commonUtils.isEmptyObject(selectedNode)) { |
| @@ -1104,7 +1102,6 @@ const ContentComponent = props => { | @@ -1104,7 +1102,6 @@ const ContentComponent = props => { | ||
| 1104 | } | 1102 | } |
| 1105 | 1103 | ||
| 1106 | const boxModelList = sAllPartsName.split(","); | 1104 | const boxModelList = sAllPartsName.split(","); |
| 1107 | - console.log("🚀 ~ boxModelList:", boxModelList) | ||
| 1108 | const [activeKey, setActiveKey] = useState(0); | 1105 | const [activeKey, setActiveKey] = useState(0); |
| 1109 | 1106 | ||
| 1110 | useEffect(() => { | 1107 | useEffect(() => { |
| @@ -1166,7 +1163,6 @@ const ContentComponent = props => { | @@ -1166,7 +1163,6 @@ const ContentComponent = props => { | ||
| 1166 | } | 1163 | } |
| 1167 | }; | 1164 | }; |
| 1168 | 1165 | ||
| 1169 | - console.log("🚀 ~ props:", props) | ||
| 1170 | return ( | 1166 | return ( |
| 1171 | <> | 1167 | <> |
| 1172 | {/* <Divider {...dividerProps}>产品参数</Divider> */} | 1168 | {/* <Divider {...dividerProps}>产品参数</Divider> */} |
| @@ -1267,7 +1263,6 @@ const BoxComponent = props => { | @@ -1267,7 +1263,6 @@ const BoxComponent = props => { | ||
| 1267 | }; | 1263 | }; |
| 1268 | 1264 | ||
| 1269 | const getUpViewPropsByITag = iTag => { | 1265 | const getUpViewPropsByITag = iTag => { |
| 1270 | - console.log(slaveConfig,'slaveConfig1'); | ||
| 1271 | 1266 | ||
| 1272 | const config = slaveConfig.gdsconfigformslave.filter(item => { | 1267 | const config = slaveConfig.gdsconfigformslave.filter(item => { |
| 1273 | if (item.sName === "dSumPQty" && selectedNode.sTypeKey !== "huace") { | 1268 | if (item.sName === "dSumPQty" && selectedNode.sTypeKey !== "huace") { |
| @@ -1303,6 +1298,7 @@ const BoxComponent = props => { | @@ -1303,6 +1298,7 @@ const BoxComponent = props => { | ||
| 1303 | 1298 | ||
| 1304 | const [downAbleConfigsNew, setDownAbleConfigsNew] = useState([]); | 1299 | const [downAbleConfigsNew, setDownAbleConfigsNew] = useState([]); |
| 1305 | useEffect(() => { | 1300 | useEffect(() => { |
| 1301 | + console.log('=====downAbleConfigs', downAbleConfigs) | ||
| 1306 | setDownAbleConfigsNew(downAbleConfigs); | 1302 | setDownAbleConfigsNew(downAbleConfigs); |
| 1307 | }, [selectedNode.showName, boxModel]); | 1303 | }, [selectedNode.showName, boxModel]); |
| 1308 | 1304 | ||
| @@ -1572,7 +1568,6 @@ const BoxComponent = props => { | @@ -1572,7 +1568,6 @@ const BoxComponent = props => { | ||
| 1572 | let boxList = []; | 1568 | let boxList = []; |
| 1573 | if (slaveRowData.sColumnNameConfig && masterData.dLength && masterData.dWidth && masterData.dHeight) { | 1569 | if (slaveRowData.sColumnNameConfig && masterData.dLength && masterData.dWidth && masterData.dHeight) { |
| 1574 | const slaveNewData = JSON.parse(slaveRowData.sColumnNameConfig); | 1570 | const slaveNewData = JSON.parse(slaveRowData.sColumnNameConfig); |
| 1575 | - console.log("🚀 ~ slaveRowData:", slaveRowData) | ||
| 1576 | const tables = [ | 1571 | const tables = [ |
| 1577 | { name: "盒型类别", value: slaveRowData.sBoxType, type: null }, | 1572 | { name: "盒型类别", value: slaveRowData.sBoxType, type: null }, |
| 1578 | { name: "盒身", value: slaveRowData.sBoxBody, type: slaveRowData.sTypes }, | 1573 | { name: "盒身", value: slaveRowData.sBoxBody, type: slaveRowData.sTypes }, |
src/mobile/components/SelectInput.jsx
| @@ -9,7 +9,6 @@ import styles from "./selectInput.less"; | @@ -9,7 +9,6 @@ import styles from "./selectInput.less"; | ||
| 9 | import debounce from "lodash/debounce"; | 9 | import debounce from "lodash/debounce"; |
| 10 | 10 | ||
| 11 | const SelectInput = props => { | 11 | const SelectInput = props => { |
| 12 | - console.log("🚀 ~ selectInputValue:", props); | ||
| 13 | const [value, setValue] = useState(props.sValue || ""); // 如果存在 name 属性,将其值赋值给 value | 12 | const [value, setValue] = useState(props.sValue || ""); // 如果存在 name 属性,将其值赋值给 value |
| 14 | const [values, setValues] = useState(""); | 13 | const [values, setValues] = useState(""); |
| 15 | const [searchValue, setSearchValue] = useState(""); | 14 | const [searchValue, setSearchValue] = useState(""); |
| @@ -82,7 +81,6 @@ const SelectInput = props => { | @@ -82,7 +81,6 @@ const SelectInput = props => { | ||
| 82 | debouncedChangeOption(val); | 81 | debouncedChangeOption(val); |
| 83 | }; | 82 | }; |
| 84 | useEffect(() => { | 83 | useEffect(() => { |
| 85 | - console.log("🚀 ~ useEffect ~ itemDetailssss:", itemDetail) | ||
| 86 | 84 | ||
| 87 | if (!visible) return; | 85 | if (!visible) return; |
| 88 | let { sDropDownType } = itemDetail; | 86 | let { sDropDownType } = itemDetail; |
src/mobile/quotation/detail.jsx
| @@ -14,7 +14,6 @@ import Typesetting from "@/components/Common/Typesetting/typesetting"; | @@ -14,7 +14,6 @@ import Typesetting from "@/components/Common/Typesetting/typesetting"; | ||
| 14 | import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg"; | 14 | import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg"; |
| 15 | import ShowImgM from "@/components/Common/BoxShowImgMaterial/indexNew"; | 15 | import ShowImgM from "@/components/Common/BoxShowImgMaterial/indexNew"; |
| 16 | const QuickQuoteEvent = props => { | 16 | const QuickQuoteEvent = props => { |
| 17 | - console.log("🚀 ~ QuickQuoteEvent:", props); | ||
| 18 | const { location } = props; | 17 | const { location } = props; |
| 19 | const selectedNode = JSON.parse(location.state).quotationData; | 18 | const selectedNode = JSON.parse(location.state).quotationData; |
| 20 | const addState = {}; | 19 | const addState = {}; |
| @@ -915,7 +914,6 @@ const QuotationAllprogressDetail = baseProps => { | @@ -915,7 +914,6 @@ const QuotationAllprogressDetail = baseProps => { | ||
| 915 | 914 | ||
| 916 | const QuotationDetail = props => { | 915 | const QuotationDetail = props => { |
| 917 | const { location, app, sModelsId, state, masterData, selectedNode = {} } = props; | 916 | const { location, app, sModelsId, state, masterData, selectedNode = {} } = props; |
| 918 | - console.log("🚀 ~ QuotationDetail:", props); | ||
| 919 | const { token } = app; | 917 | const { token } = app; |
| 920 | const { formData = [], masterConfig } = state || {}; | 918 | const { formData = [], masterConfig } = state || {}; |
| 921 | const { quotationData } = JSON.parse(location.state) || {}; | 919 | const { quotationData } = JSON.parse(location.state) || {}; |
| @@ -931,7 +929,6 @@ const QuotationDetail = props => { | @@ -931,7 +929,6 @@ const QuotationDetail = props => { | ||
| 931 | viewRow: { ...masterData, sProductClassifyId: selectedNode.sId }, | 929 | viewRow: { ...masterData, sProductClassifyId: selectedNode.sId }, |
| 932 | tableName: "master", | 930 | tableName: "master", |
| 933 | }; | 931 | }; |
| 934 | - console.log("🚀 ~ viewProps:", viewProps); | ||
| 935 | 932 | ||
| 936 | return ( | 933 | return ( |
| 937 | <div> | 934 | <div> |
| @@ -947,7 +944,6 @@ const QuotationDetail = props => { | @@ -947,7 +944,6 @@ const QuotationDetail = props => { | ||
| 947 | ); | 944 | ); |
| 948 | }; | 945 | }; |
| 949 | const MasterComponent = props => { | 946 | const MasterComponent = props => { |
| 950 | - console.log("🚀 ~ MasterComponent:", props); | ||
| 951 | const { viewConfigs, masterData } = props; | 947 | const { viewConfigs, masterData } = props; |
| 952 | 948 | ||
| 953 | const customer = viewConfigs?.find(x => x.sName === "sCustomerName") || {}; | 949 | const customer = viewConfigs?.find(x => x.sName === "sCustomerName") || {}; |
| @@ -1097,7 +1093,6 @@ const QuotationTabs = props => { | @@ -1097,7 +1093,6 @@ const QuotationTabs = props => { | ||
| 1097 | const BoxComponent = props => { | 1093 | const BoxComponent = props => { |
| 1098 | const { state, boxModel } = props; | 1094 | const { state, boxModel } = props; |
| 1099 | const { activeKey, slaveConfig, masterData, selectedNode, boxConfig, downAbleConfigs = [], slaveData } = state || {}; | 1095 | const { activeKey, slaveConfig, masterData, selectedNode, boxConfig, downAbleConfigs = [], slaveData } = state || {}; |
| 1100 | - console.log("🚀 ~ BoxComponent:", slaveData); | ||
| 1101 | const { sModelsId } = props; | 1096 | const { sModelsId } = props; |
| 1102 | const [selectList, setSelectList] = useState([]); | 1097 | const [selectList, setSelectList] = useState([]); |
| 1103 | const [boxTypeList, setBoxTypeList] = useState([]); | 1098 | const [boxTypeList, setBoxTypeList] = useState([]); |
| @@ -1445,7 +1440,6 @@ const BoxComponent = props => { | @@ -1445,7 +1440,6 @@ const BoxComponent = props => { | ||
| 1445 | }); | 1440 | }); |
| 1446 | const slaveDataDetail = slaveData.find(item => item.sTreeNodeName === selectedNode.showName && item.sBoxModel === boxModel) || {}; | 1441 | const slaveDataDetail = slaveData.find(item => item.sTreeNodeName === selectedNode.showName && item.sBoxModel === boxModel) || {}; |
| 1447 | 1442 | ||
| 1448 | - console.log("🚀 ~ slaveDataDetail:", slaveNewData) | ||
| 1449 | const rowData = { | 1443 | const rowData = { |
| 1450 | ...slaveDataDetail, | 1444 | ...slaveDataDetail, |
| 1451 | ...data, | 1445 | ...data, |
src/mobile/quotation/detailNew.jsx
| @@ -14,7 +14,6 @@ import Typesetting from "@/components/Common/Typesetting/typesetting"; | @@ -14,7 +14,6 @@ import Typesetting from "@/components/Common/Typesetting/typesetting"; | ||
| 14 | import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg"; | 14 | import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg"; |
| 15 | import ShowImgM from "@/components/Common/BoxShowImgMaterial/indexNew"; | 15 | import ShowImgM from "@/components/Common/BoxShowImgMaterial/indexNew"; |
| 16 | const QuickQuoteEvent = props => { | 16 | const QuickQuoteEvent = props => { |
| 17 | - console.log("🚀 ~ QuickQuoteEvent:", props); | ||
| 18 | const { location } = props; | 17 | const { location } = props; |
| 19 | const selectedNode = JSON.parse(location.state).quotationData; | 18 | const selectedNode = JSON.parse(location.state).quotationData; |
| 20 | const addState = {}; | 19 | const addState = {}; |
src/mobile/quotation/index.jsx
| @@ -22,7 +22,6 @@ const QuotationAllprogress = baseProps => { | @@ -22,7 +22,6 @@ const QuotationAllprogress = baseProps => { | ||
| 22 | }; | 22 | }; |
| 23 | const dataUrl = `${commonConfig.server_host}filterTree/getFilterTree/${configDataId}?sModelsId=${sModelsId}&sName=${formSrcRoute}`; | 23 | const dataUrl = `${commonConfig.server_host}filterTree/getFilterTree/${configDataId}?sModelsId=${sModelsId}&sName=${formSrcRoute}`; |
| 24 | const dataReturn = (await commonServices.postValueService(token, condition, dataUrl)).data; | 24 | const dataReturn = (await commonServices.postValueService(token, condition, dataUrl)).data; |
| 25 | - console.log("🚀 ~ getQuotationList ~ dataReturn:", dataReturn) | ||
| 26 | // if (dataReturn.dataset.rows) return | 25 | // if (dataReturn.dataset.rows) return |
| 27 | const treeDataList = dataReturn.dataset.rows[0].children.map(item => { | 26 | const treeDataList = dataReturn.dataset.rows[0].children.map(item => { |
| 28 | return item; | 27 | return item; |
src/utils/request.js
| @@ -39,7 +39,6 @@ export default function request(url, options) { | @@ -39,7 +39,6 @@ export default function request(url, options) { | ||
| 39 | .then(checkStatus) | 39 | .then(checkStatus) |
| 40 | .then(parseJSON) | 40 | .then(parseJSON) |
| 41 | .then((data) => { | 41 | .then((data) => { |
| 42 | - console.log('=====data', data); | ||
| 43 | // window.fetchCount -= 1; | 42 | // window.fetchCount -= 1; |
| 44 | // if (window.fetchCount <= 0) { | 43 | // if (window.fetchCount <= 0) { |
| 45 | // fetchLoading(); | 44 | // fetchLoading(); |