Commit a76cfe91 authored by Bill's avatar Bill

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

parent d87a9ce6
...@@ -283,19 +283,22 @@ const Create = () => { ...@@ -283,19 +283,22 @@ const Create = () => {
}, []) }, [])
const handleBeforeProductChecked = useCallback(async (record: GetProductCommodityCommonGetCommodityListByBuyerResponseDetail, selected: boolean, list: GetProductCommodityCommonGetCommodityListByBuyerResponseDetail[]) => { const handleBeforeProductChecked = useCallback(async (record: GetProductCommodityCommonGetCommodityListByBuyerResponseDetail, selected: boolean, list: GetProductCommodityCommonGetCommodityListByBuyerResponseDetail[]) => {
const postData = list.map((item) => { if (selected) {
return { const postData = list.map((item) => {
/** * 这里指的是skuid, 而接口getProductCommodityCommonGetCommodityListByBuyer 的主键id 就是skuid, 不是(commodityId)*/ return {
productId: item.id, /** * 这里指的是skuid, 而接口getProductCommodityCommonGetCommodityListByBuyer 的主键id 就是skuid, 不是(commodityId)*/
memberId: item.memberId || authInfo.memberId, productId: item.id,
memberRoleId: item.memberRoleId || authInfo.memberRoleId, memberId: item.memberId || authInfo.memberId,
shopId: ENTERPRISE_MALL[authInfo.memberType], memberRoleId: item.memberRoleId || authInfo.memberRoleId,
/** 1.订单交易流程2.售后换货流程3.售后退货流程4.售后维修流程, @todo 5是后端说的,具体不知道代表什么意思? */ shopId: ENTERPRISE_MALL[authInfo.memberType],
type: 5, /** 1.订单交易流程2.售后换货流程3.售后退货流程4.售后维修流程, @todo 5是后端说的,具体不知道代表什么意思? */
} type: 5,
}) }
const { flag } = await checkProcessEnum(postData); })
return flag; const { flag } = await checkProcessEnum(postData);
return flag;
}
return true
}, []) }, [])
/** @review 总感觉这个接口有大问题,能力中心没办法拿到shopId,不知道这个shopId 的意义在哪里 */ /** @review 总感觉这个接口有大问题,能力中心没办法拿到shopId,不知道这个shopId 的意义在哪里 */
...@@ -982,7 +985,7 @@ const Create = () => { ...@@ -982,7 +985,7 @@ const Create = () => {
}} }}
components={{Cascader}} components={{Cascader}}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect($, actions, 'name', FORM_FILTER_PATH); useStateFilterSearchLinkageEffect($, actions, 'orderNo', FORM_FILTER_PATH);
}} }}
mode={"checkbox"} mode={"checkbox"}
beforeChecked={handleBeforeOrderChecked} 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