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