Commit a76cfe91 authored by Bill's avatar Bill

fix: 修复加工取消反选时继续请求接口错误

parent d87a9ce6
......@@ -283,6 +283,7 @@ const Create = () => {
}, [])
const handleBeforeProductChecked = useCallback(async (record: GetProductCommodityCommonGetCommodityListByBuyerResponseDetail, selected: boolean, list: GetProductCommodityCommonGetCommodityListByBuyerResponseDetail[]) => {
if (selected) {
const postData = list.map((item) => {
return {
/** * 这里指的是skuid, 而接口getProductCommodityCommonGetCommodityListByBuyer 的主键id 就是skuid, 不是(commodityId)*/
......@@ -296,6 +297,8 @@ const Create = () => {
})
const { flag } = await checkProcessEnum(postData);
return flag;
}
return true
}, [])
/** @review 总感觉这个接口有大问题,能力中心没办法拿到shopId,不知道这个shopId 的意义在哪里 */
......@@ -982,7 +985,7 @@ const Create = () => {
}}
components={{Cascader}}
effects={($, actions) => {
useStateFilterSearchLinkageEffect($, actions, 'name', FORM_FILTER_PATH);
useStateFilterSearchLinkageEffect($, actions, 'orderNo', FORM_FILTER_PATH);
}}
mode={"checkbox"}
beforeChecked={handleBeforeOrderChecked}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment