Commit 2b3006ab authored by 李腾's avatar 李腾

fix: 查询物流新增skuNo参数

parent b2cac278
...@@ -12,13 +12,9 @@ const LogisticsRecordModal = (props, ref) => { ...@@ -12,13 +12,9 @@ const LogisticsRecordModal = (props, ref) => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [dataList, setDataList] = useState([]); const [dataList, setDataList] = useState([]);
const getRecordList = async orderNo => { const getRecordList = async ({ orderNo, skuNo }) => {
const tempObj = {
detailList: [],
key: Date.now(),
};
setLoading(true); setLoading(true);
const res = await apiDeliveriesTraceList({ orderNo }); const res = await apiDeliveriesTraceList({ orderNo, skuNo });
setLoading(false); setLoading(false);
if (!res) { if (!res) {
notification.info({ message: '暂无物流信息' }); notification.info({ message: '暂无物流信息' });
...@@ -28,9 +24,9 @@ const LogisticsRecordModal = (props, ref) => { ...@@ -28,9 +24,9 @@ const LogisticsRecordModal = (props, ref) => {
setDataList(res.data); setDataList(res.data);
}; };
const open = orderNo => { const open = record => {
setVisible(true); setVisible(true);
getRecordList(orderNo); getRecordList(record);
}; };
const onCancel = () => { const onCancel = () => {
setVisible(false); setVisible(false);
......
...@@ -105,8 +105,7 @@ const AuditModal = props => { ...@@ -105,8 +105,7 @@ const AuditModal = props => {
}; };
const openLogisticsRecord = () => { const openLogisticsRecord = () => {
console.log(formData); logisticsRecordModalRef.current.open(formData);
logisticsRecordModalRef.current.open(formData.orderNo);
}; };
const layout = { const layout = {
......
...@@ -127,15 +127,15 @@ const AfterSale = props => { ...@@ -127,15 +127,15 @@ const AfterSale = props => {
}; };
// 审核 // 审核
const openAudit = async ({ serviceNo, serviceType, orderNo }) => { const openAudit = async ({ serviceNo, serviceType, orderNo, skuNo }) => {
const data = await auditInfoApi({ serviceNo }); const data = await auditInfoApi({ serviceNo });
setAuditInfo({ ...data?.data, serviceNo, serviceType, orderNo }); setAuditInfo({ ...data?.data, serviceNo, serviceType, orderNo, skuNo });
setVisible(true); setVisible(true);
}; };
// 查看物流 // 查看物流
const handleCom = async ({ orderNo }) => { const handleCom = async ({ orderNo, skuNo }) => {
logisticsRecordModalRef.current.open(orderNo); logisticsRecordModalRef.current.open({ orderNo, skuNo });
// const tempObj = { // const tempObj = {
// detailList: [], // detailList: [],
// key: Date.now(), // key: Date.now(),
......
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