Commit 8b302a40e331d7437e117f29f9b09f583305b439
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
# Conflicts: # src/components/QuickQuote/index.jsx # src/mobile/components/SelectInput.jsx
Showing
6 changed files
with
2 additions
and
13 deletions
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/QuickQuote/index.jsx
| @@ -1257,7 +1257,6 @@ const BoxComponent = props => { | @@ -1257,7 +1257,6 @@ const BoxComponent = props => { | ||
| 1257 | }; | 1257 | }; |
| 1258 | 1258 | ||
| 1259 | const getUpViewPropsByITag = iTag => { | 1259 | const getUpViewPropsByITag = iTag => { |
| 1260 | - | ||
| 1261 | const config = slaveConfig.gdsconfigformslave.filter(item => { | 1260 | const config = slaveConfig.gdsconfigformslave.filter(item => { |
| 1262 | if (item.sName === "dSumPQty" && selectedNode.sTypeKey !== "huace") { | 1261 | if (item.sName === "dSumPQty" && selectedNode.sTypeKey !== "huace") { |
| 1263 | return false; | 1262 | return false; |
| @@ -1293,7 +1292,7 @@ const BoxComponent = props => { | @@ -1293,7 +1292,7 @@ const BoxComponent = props => { | ||
| 1293 | const [downAbleConfigsNew, setDownAbleConfigsNew] = useState([]); | 1292 | const [downAbleConfigsNew, setDownAbleConfigsNew] = useState([]); |
| 1294 | useEffect(() => { | 1293 | useEffect(() => { |
| 1295 | setDownAbleConfigsNew(downAbleConfigs); | 1294 | setDownAbleConfigsNew(downAbleConfigs); |
| 1296 | - }, [selectedNode.showName, boxModel]); | 1295 | + }, [selectedNode.showName, boxModel, downAbleConfigs.length]); |
| 1297 | 1296 | ||
| 1298 | // 获取sType为2的 | 1297 | // 获取sType为2的 |
| 1299 | const downViewProps = { | 1298 | const downViewProps = { |
| @@ -1416,7 +1415,7 @@ const BoxComponent = props => { | @@ -1416,7 +1415,7 @@ const BoxComponent = props => { | ||
| 1416 | props.setState(pre => { | 1415 | props.setState(pre => { |
| 1417 | const { sBackProcessData = [] } = slaveData[slaveRowIndex]; | 1416 | const { sBackProcessData = [] } = slaveData[slaveRowIndex]; |
| 1418 | const iIndex = sBackProcessData.findIndex(item => item[child.sName]); | 1417 | const iIndex = sBackProcessData.findIndex(item => item[child.sName]); |
| 1419 | - slaveData[slaveRowIndex].sBackProcessData.splice(iIndex, 1); | 1418 | + slaveData[slaveRowIndex].sBackProcessData?.splice(iIndex, 1); |
| 1420 | return { ...pre, slaveData }; | 1419 | return { ...pre, slaveData }; |
| 1421 | }); | 1420 | }); |
| 1422 | }} | 1421 | }} |
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/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(); |