diff --git a/src/mobile/quotation/detailNew.jsx b/src/mobile/quotation/detailNew.jsx index e0c86ed..75e21c7 100644 --- a/src/mobile/quotation/detailNew.jsx +++ b/src/mobile/quotation/detailNew.jsx @@ -1397,6 +1397,7 @@ const BoxComponent = props => { const slaveRowData = slaveData.find(item => item.sTreeNodeName === selectedNode.showName && item.sBoxModel === boxModel) || {}; const { sModelsId } = props; + console.log("🚀 ~ props:", props) const [selectList, setSelectList] = useState([]); const [boxTypeList, setBoxTypeList] = useState([]); const [searchValue, setSearchValue] = useState(""); @@ -1407,10 +1408,12 @@ const BoxComponent = props => { // 获取盒型信息 useEffect(() => { const sId = "17428091410008594700322758474000"; - const url = `${commonConfig.server_host}business/getSelectLimit/${sId}?sModelsId=${sModelsId}&sName=${""}`; + const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`; const body = { - sSqlCondition: "", - sKeyUpFilterName: searchValue, + sSqlCondition: { + sProductClassifyId:sModelsId + }, + sKeyUpFilterName: '', pageNum: 1, pageSize: 1000, }; @@ -1443,7 +1446,7 @@ const BoxComponent = props => { } }); // 获取盒型 - }, []); + }, [sModelsId]); const { sColumnNameConfig } = slaveRowData || {}; const upAbleConfigsExtra = commonUtils.convertStrToObj(sColumnNameConfig, []).map(item => ({