|
|
@@ -116,14 +116,14 @@
|
|
|
<!-- #endif -->
|
|
|
<block v-if="currentStatus == 2">
|
|
|
<block v-if="item.book == 0">
|
|
|
- <view><button @click.stop="directFh(item)" class="admin-button-com bule">自配送</button> </view>
|
|
|
+ <view><button @click.stop="directFh(item)" class="admin-button-com bule">发货</button> </view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<view><button @click.stop="confirmFh(item)" class="admin-button-com bule">发货</button> </view>
|
|
|
</block>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <view><button disabled="true" class="admin-button-com bule active">自配送</button> </view>
|
|
|
+ <view><button disabled="true" class="admin-button-com bule active">发货</button> </view>
|
|
|
</block>
|
|
|
<view v-if="currentStatus == 1">
|
|
|
<button disabled="true" class="admin-button-com bule active">打印(${item.printNum})</button>
|
|
|
@@ -134,7 +134,12 @@
|
|
|
</button>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <button @click.stop="openMore(item)" class="admin-button-com bule">更多</button>
|
|
|
+ <button @click.stop="printWlFlag(item)" class="admin-button-com bule">
|
|
|
+ 打物流<text>({{ item.printWlNum || 0 }})</text>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ <view class="more-icon-btn" @click.stop="openMore(item)">
|
|
|
+ <image class="more-icon-btn__icon" :src="iconSrc('more_button')" mode="aspectFit" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -260,6 +265,8 @@ import { getUserDet } from '@/api/member';
|
|
|
import { createExpressOrder, cancelExpressOrder as cancelSFExpressOrder } from '@/api/express';
|
|
|
import { cancelDeliveryOrder } from '@/api/express/delivery';
|
|
|
import { createCallExpressOrder, cancelCallExpressOrder,getOrderFee } from '@/api/shop/shop-express';
|
|
|
+import { printWlLabel } from '@/api/order';
|
|
|
+import { iconSrc } from '@/utils/iconSrc';
|
|
|
export default {
|
|
|
name: 'OrderItem',
|
|
|
options: {
|
|
|
@@ -302,6 +309,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ iconSrc,
|
|
|
modifyAddress(item) {
|
|
|
this.closeExpressPop()
|
|
|
this.$util.pageTo({url: '/pagesClient/member/modify?id=' + item.customId + '&name=' + item.customName,type:2})
|
|
|
@@ -332,6 +340,22 @@ export default {
|
|
|
that.$emit('printOrder', item);
|
|
|
}
|
|
|
},
|
|
|
+ printWlFlag(item) {
|
|
|
+ const that = this
|
|
|
+ const doPrint = () => {
|
|
|
+ printWlLabel({ id: item.id }).then(res => {
|
|
|
+ if (res.code == 1) {
|
|
|
+ that.$msg(res.msg)
|
|
|
+ that.$set(item, 'printWlNum', (Number(item.printWlNum) || 0) + 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (item.printWlNum && Number(item.printWlNum) > 0) {
|
|
|
+ this.$util.confirmModal({ content: '确认补打物流标?' }, doPrint)
|
|
|
+ } else {
|
|
|
+ doPrint()
|
|
|
+ }
|
|
|
+ },
|
|
|
openMore(item) {
|
|
|
this.$refs.morePopup.open('center');
|
|
|
},
|
|
|
@@ -498,6 +522,19 @@ export default {
|
|
|
flex: none;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+ .more-icon-btn {
|
|
|
+ margin: 0 6upx 12upx 6upx;
|
|
|
+ width: 65upx;
|
|
|
+ height: 65upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex: none;
|
|
|
+ }
|
|
|
+ .more-icon-btn__icon {
|
|
|
+ width: 63upx;
|
|
|
+ height: 63upx;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.order-top_box {
|