|
@@ -69,16 +69,23 @@ export default class SubOrderProfile extends Component {
|
|
|
* 点击确认收货
|
|
|
*/
|
|
|
confirmReceipt = () => {
|
|
|
- const { dispatch, orderDetail } = this.props;
|
|
|
- const { currentItem, filters } = orderDetail;
|
|
|
- const { id } = currentItem;
|
|
|
- dispatch({
|
|
|
- type: 'orderDetail/orderReceive',
|
|
|
- payload: { id },
|
|
|
- callback: () => dispatch(routerRedux.push({
|
|
|
- pathname: `/trade/order/sub/profile/${id}`,
|
|
|
- search: queryString.stringify(filters),
|
|
|
- })),
|
|
|
+ Modal.confirm({
|
|
|
+ title: '是否确认收货?',
|
|
|
+ okText: '确定',
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk: () => {
|
|
|
+ const { dispatch, orderDetail } = this.props;
|
|
|
+ const { currentItem, filters } = orderDetail;
|
|
|
+ const { id } = currentItem;
|
|
|
+ dispatch({
|
|
|
+ type: 'orderDetail/orderReceive',
|
|
|
+ payload: { id },
|
|
|
+ callback: () => dispatch(routerRedux.push({
|
|
|
+ pathname: `/trade/order/sub/profile/${id}`,
|
|
|
+ search: queryString.stringify(filters),
|
|
|
+ })),
|
|
|
+ });
|
|
|
+ },
|
|
|
});
|
|
|
}
|
|
|
|