Commit 5f54bc5c authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复审核过后列表没有刷新的问题

parent e3fccb17
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-03 17:33:46
* @LastEditTime: 2021-01-19 14:53:19
* @Description: 待新增换货发货单
*/
import React, { useState, useRef } from 'react';
......@@ -49,8 +49,17 @@ const ExchangePrAddDeliver: React.FC = () => {
icon: <ExclamationCircleOutlined />,
content: `是否确认审核换货发货单号为${record.replaceDeliveryNo}的换货发货单?`,
onOk() {
return PublicApi.postAsReplaceGoodsVerifyReplaceDeliveryGoods({
dataId: record.replaceId,
return new Promise((resolve, reject) => {
PublicApi.postAsReplaceGoodsVerifyReplaceDeliveryGoods({
dataId: record.replaceId,
}).then(res => {
if (res.code === 1000) {
ref.current.reload();
}
resolve(res);
}).catch(err => {
reject(err);
});
});
},
});
......
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