|
@@ -73,10 +73,12 @@
|
|
|
(row.status === 4 || row._status === 2 || row._status === 8) &&
|
|
(row.status === 4 || row._status === 2 || row._status === 8) &&
|
|
|
row.shipping_type === 1 &&
|
|
row.shipping_type === 1 &&
|
|
|
(row.pinkStatus === null || row.pinkStatus === 2) &&
|
|
(row.pinkStatus === null || row.pinkStatus === 2) &&
|
|
|
- row.is_del !== 1
|
|
|
|
|
|
|
+ row.is_del !== 1 &&
|
|
|
|
|
+ !row.is_stock_up
|
|
|
"
|
|
"
|
|
|
>发送货</a
|
|
>发送货</a
|
|
|
>
|
|
>
|
|
|
|
|
+ <a v-else-if="row.is_stock_up" @click="changeMenu(row, '13')">取消商家寄件</a>
|
|
|
<a @click="delivery(row)" v-if="row._status === 4 && !row.split.length">配送信息</a>
|
|
<a @click="delivery(row)" v-if="row._status === 4 && !row.split.length">配送信息</a>
|
|
|
<a
|
|
<a
|
|
|
@click="bindWrite(row)"
|
|
@click="bindWrite(row)"
|
|
@@ -201,6 +203,7 @@ import {
|
|
|
refundIntegral,
|
|
refundIntegral,
|
|
|
getDistribution,
|
|
getDistribution,
|
|
|
writeUpdate,
|
|
writeUpdate,
|
|
|
|
|
+ shipmentCancelOrder,
|
|
|
} from '@/api/order';
|
|
} from '@/api/order';
|
|
|
import { mapState, mapMutations } from 'vuex';
|
|
import { mapState, mapMutations } from 'vuex';
|
|
|
import editFrom from '../../../../components/from/from';
|
|
import editFrom from '../../../../components/from/from';
|
|
@@ -327,6 +330,7 @@ export default {
|
|
|
...mapMutations('order', ['getIsDel', 'getisDelIdListl']),
|
|
...mapMutations('order', ['getIsDel', 'getisDelIdListl']),
|
|
|
// 操作
|
|
// 操作
|
|
|
changeMenu(row, name) {
|
|
changeMenu(row, name) {
|
|
|
|
|
+ console.log(row, name);
|
|
|
this.orderId = row.id;
|
|
this.orderId = row.id;
|
|
|
switch (name) {
|
|
switch (name) {
|
|
|
case '1':
|
|
case '1':
|
|
@@ -422,6 +426,22 @@ export default {
|
|
|
case '12':
|
|
case '12':
|
|
|
this.printImg(row.kuaidi_label);
|
|
this.printImg(row.kuaidi_label);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case '13':
|
|
|
|
|
+ this.delfromData = {
|
|
|
|
|
+ title: '取消寄件',
|
|
|
|
|
+ info: '您确认取消商家寄件吗?',
|
|
|
|
|
+ url: `/order/shipment_cancel_order/${row.id}`,
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$modalSure(this.delfromData)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$Message.success(res.msg);
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((res) => {
|
|
|
|
|
+ this.$Message.error(res.msg);
|
|
|
|
|
+ });
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
this.delfromData = {
|
|
this.delfromData = {
|
|
|
title: '删除订单',
|
|
title: '删除订单',
|