Commit c0e8fae4a14f970be6da2113bc25e8dd63290f9b

Authored by zhangzzzz
1 parent 86f77d1a

盒型弹窗新增查询条件;

src/components/QuickQuote/index.jsx
... ... @@ -2698,19 +2698,20 @@ const BoxModelSelectedModal = props => {
2698 2698 const column = commonFunc.getHeaderConfig(config);
2699 2699 setBoxColumn(column);
2700 2700  
2701   - const getSqlDropDownData = async ({ sId }, cb) => {
  2701 + const getSqlDropDownData = async ({ sId, sSqlCondition = {} }, cb) => {
2702 2702 const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`;
2703 2703 const body = {
2704 2704 sKeyUpFilterName: "",
2705 2705 pageNum: 1,
2706 2706 pageSize: 1000,
  2707 + sSqlCondition,
2707 2708 };
2708 2709 const retrunData = await commonServices.postValueService(props.app.token, body, url);
2709 2710 const dropDownData = retrunData.data?.dataset?.rows;
2710 2711 cb(dropDownData);
2711 2712 };
2712 2713  
2713   - getSqlDropDownData({ sId: "17428091410008594700322758474000" }, dropDownData => {
  2714 + getSqlDropDownData({ sId: "17428091410008594700322758474000", sSqlCondition: { sProductClassifyId: selectedNode.sId } }, dropDownData => {
2714 2715 const boxTypeList = Array.from(new Set(dropDownData.map(item => item.sBoxType || "其它")));
2715 2716 setBoxTypeList(boxTypeList);
2716 2717 setBoxData(
... ...