cmx #21
@ -182,13 +182,11 @@ export default {
|
|||||||
if (this.cur == 0) {
|
if (this.cur == 0) {
|
||||||
// 确定退款
|
// 确定退款
|
||||||
return;
|
return;
|
||||||
this.$u.api
|
this.$u.api.refund({
|
||||||
.refund({
|
|
||||||
refund_id: this.orderid,
|
refund_id: this.orderid,
|
||||||
seller_state:2,
|
seller_state:2,
|
||||||
seller_message:""
|
seller_message:""
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@ -205,13 +203,11 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
// 不进行退款
|
// 不进行退款
|
||||||
return;
|
return;
|
||||||
this.$u.api
|
this.$u.api.refund({
|
||||||
.refund({
|
|
||||||
refund_id: this.orderid,
|
refund_id: this.orderid,
|
||||||
seller_state:3,
|
seller_state:3,
|
||||||
seller_message:""
|
seller_message:""
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@ -239,11 +235,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取物流信息
|
// 获取物流信息
|
||||||
getcarinfo() {
|
getcarinfo() {
|
||||||
this.$u.api
|
this.$u.api.getpushinfo({
|
||||||
.getpushinfo({
|
|
||||||
order_id: this.orderid
|
order_id: this.orderid
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@ -268,13 +262,11 @@ export default {
|
|||||||
confirmpushstyle() {
|
confirmpushstyle() {
|
||||||
if (this.cur == 0) {
|
if (this.cur == 0) {
|
||||||
console.log(this.pushid);
|
console.log(this.pushid);
|
||||||
this.$u.api
|
this.$u.api.bindpushid({
|
||||||
.bindpushid({
|
|
||||||
order_id: this.orderid,
|
order_id: this.orderid,
|
||||||
shipping_code: this.pushid,
|
shipping_code: this.pushid,
|
||||||
shipping_express_id: this.companyidA
|
shipping_express_id: this.companyidA
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@ -291,12 +283,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$u.api
|
this.$u.api.bindcarer({
|
||||||
.bindcarer({
|
|
||||||
order_id: this.orderid,
|
order_id: this.orderid,
|
||||||
takeawayer_id: this.selctcar.takeawayer_id
|
takeawayer_id: this.selctcar.takeawayer_id
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -318,11 +308,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取订单信息
|
// 获取订单信息
|
||||||
resetinfo() {
|
resetinfo() {
|
||||||
this.$u.api
|
this.$u.api.orderdetail({
|
||||||
.orderdetail({
|
|
||||||
order_id: this.orderid
|
order_id: this.orderid
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
@ -123,13 +123,11 @@ export default {
|
|||||||
// 绑定配送方式
|
// 绑定配送方式
|
||||||
confirmpushstyle() {
|
confirmpushstyle() {
|
||||||
if (this.cur == 0) {
|
if (this.cur == 0) {
|
||||||
this.$u.api
|
this.$u.api.agreetest({
|
||||||
.agreetest({
|
|
||||||
goods_try_id: this.orderid,
|
goods_try_id: this.orderid,
|
||||||
type: 1,
|
type: 1,
|
||||||
takeawayer_id: 0
|
takeawayer_id: 0
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -140,13 +138,11 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$u.api
|
this.$u.api.agreetest({
|
||||||
.agreetest({
|
|
||||||
goods_try_id: this.orderid,
|
goods_try_id: this.orderid,
|
||||||
type: 1,
|
type: 1,
|
||||||
takeawayer_id: this.selctcar.takeawayer_id
|
takeawayer_id: this.selctcar.takeawayer_id
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -164,11 +160,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取订单信息
|
// 获取订单信息
|
||||||
resetinfo() {
|
resetinfo() {
|
||||||
this.$u.api
|
this.$u.api.testorderdetail({
|
||||||
.testorderdetail({
|
|
||||||
goods_try_id: this.orderid
|
goods_try_id: this.orderid
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
@ -207,11 +207,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 创建标签
|
// 创建标签
|
||||||
addLiveSpec() {
|
addLiveSpec() {
|
||||||
this.$u.api
|
this.$u.api.createLivesp({
|
||||||
.createLivesp({
|
|
||||||
spec_name: this.tagcontent
|
spec_name: this.tagcontent
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
@ -184,11 +184,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 创建标签
|
// 创建标签
|
||||||
addLiveSpec() {
|
addLiveSpec() {
|
||||||
this.$u.api
|
this.$u.api.createLivesp({
|
||||||
.createLivesp({
|
|
||||||
spec_name: this.tagcontent
|
spec_name: this.tagcontent
|
||||||
})
|
}).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
Loading…
Reference in New Issue
Block a user