Commit 06033ae26e360e96733757cae5b97ec712ee2c1b

Authored by 陈鑫涛
1 parent 5cf7ebf1

app 获取盒型接口

src/mobile/quotation/detailNew.jsx
... ... @@ -1397,6 +1397,7 @@ const BoxComponent = props => {
1397 1397 const slaveRowData = slaveData.find(item => item.sTreeNodeName === selectedNode.showName && item.sBoxModel === boxModel) || {};
1398 1398  
1399 1399 const { sModelsId } = props;
  1400 + console.log("🚀 ~ props:", props)
1400 1401 const [selectList, setSelectList] = useState([]);
1401 1402 const [boxTypeList, setBoxTypeList] = useState([]);
1402 1403 const [searchValue, setSearchValue] = useState("");
... ... @@ -1407,10 +1408,12 @@ const BoxComponent = props => {
1407 1408 // 获取盒型信息
1408 1409 useEffect(() => {
1409 1410 const sId = "17428091410008594700322758474000";
1410   - const url = `${commonConfig.server_host}business/getSelectLimit/${sId}?sModelsId=${sModelsId}&sName=${""}`;
  1411 + const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`;
1411 1412 const body = {
1412   - sSqlCondition: "",
1413   - sKeyUpFilterName: searchValue,
  1413 + sSqlCondition: {
  1414 + sProductClassifyId:sModelsId
  1415 + },
  1416 + sKeyUpFilterName: '',
1414 1417 pageNum: 1,
1415 1418 pageSize: 1000,
1416 1419 };
... ... @@ -1443,7 +1446,7 @@ const BoxComponent = props => {
1443 1446 }
1444 1447 });
1445 1448 // 获取盒型
1446   - }, []);
  1449 + }, [sModelsId]);
1447 1450  
1448 1451 const { sColumnNameConfig } = slaveRowData || {};
1449 1452 const upAbleConfigsExtra = commonUtils.convertStrToObj(sColumnNameConfig, []).map(item => ({
... ...