Commit df7b29ff authored by GuanHua's avatar GuanHua
parents d64dba56 dff0fe5c
......@@ -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