Commit 9e6e4421 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理24848销售订单显示优惠券使用记录异常

parent 1a2b110f
......@@ -12,7 +12,7 @@ import {
OrderKindType,
} from '@/constants/order'
import { AddressPop } from '../addressPop'
import { getOrderVendorDetailCoupon, getOrderVendorDetailPromotion, postOrderVendorValidateSubmitFreightUpdate } from '@/services/OrderNewV2Api'
import { getOrderVendorDetailCouponPage, getOrderVendorDetailPromotion, postOrderVendorValidateSubmitFreightUpdate } from '@/services/OrderNewV2Api'
import { postLogisticsFreightTemplateCalFreightPrice } from '@/services/LogisticsV2Api'
import { getProductPositionDeductionRecordList } from '@/services/ProductV2Api'
import { usePageStatus } from '@/hooks/usePageStatus'
......@@ -801,10 +801,10 @@ const SaleOrderProductTable: React.FC<OrderProductTableProps> = (props) => {
return code === 1000 ? data : []
}, [checkProduct])
const fetchCouponData = useCallback(async (params) => {
const { data, code } = await getOrderVendorDetailCoupon({ ...params, orderId: String(orderId) })
const fetchCouponData = async (params) => {
const { data, code } = await getOrderVendorDetailCouponPage({ ...params, orderId: String(orderId) })
return code === 1000 ? data : []
}, [checkProduct])
}
const columns = productInfoColumns.map(col => {
if (!col.editable) {
......
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