parent
d68b24445a
commit
cf73be8270
|
@ -32,8 +32,8 @@ export function getOrderPage(data) {
|
|||
return request.get("app-api/trade/order/page", data);
|
||||
}
|
||||
|
||||
export function takeOrder(id) {
|
||||
return request.put("app-api/trade/order/take?id=" + id, {});
|
||||
export function receiveOrder(id) {
|
||||
return request.put("app-api/trade/order/receive?id=" + id, {});
|
||||
}
|
||||
|
||||
export function cancelOrder(id) {
|
||||
|
|
|
@ -305,6 +305,7 @@
|
|||
import { mapGetters } from "vuex";
|
||||
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
||||
import * as Util from '@/utils/util.js';
|
||||
import {receiveOrder} from "../../api/trade/order";
|
||||
export default {
|
||||
components: {
|
||||
payment,
|
||||
|
@ -434,7 +435,7 @@
|
|||
if (!res.confirm) {
|
||||
return
|
||||
}
|
||||
OrderApi.takeOrder(this.orderInfo.id).then(res => {
|
||||
OrderApi.receiveOrder(this.orderInfo.id).then(res => {
|
||||
return this.$util.Tips({
|
||||
title: '收货成功',
|
||||
icon: 'success'
|
||||
|
|
Loading…
Reference in New Issue