|
|
@@ -363,25 +363,13 @@
|
|
|
<view class="page-btn app-footer">
|
|
|
<view class="flex-center"></view>
|
|
|
<view class="operate-btn-wrap">
|
|
|
- <button
|
|
|
- class="admin-button-com middle"
|
|
|
- @click.stop="cancelFn(orderInfo)"
|
|
|
- v-if="orderInfo.status == 1">
|
|
|
- 取消
|
|
|
- </button>
|
|
|
- <button
|
|
|
- class="admin-button-com middle"
|
|
|
- @click.stop="goScan(orderInfo)"
|
|
|
- v-if="orderInfo.status == 1">
|
|
|
- 扫码收款
|
|
|
- </button>
|
|
|
+
|
|
|
+ <button class="admin-button-com middle" @click.stop="sendWork(orderInfo)" v-if="orderInfo.payStatus == 1 && (orderInfo.hasWork == 0 || orderInfo.hasWork == 2)">通知制作</button>
|
|
|
+
|
|
|
+ <button class="admin-button-com middle" @click.stop="cancelFn(orderInfo)" v-if="orderInfo.status == 1"> 取消 </button>
|
|
|
+ <button class="admin-button-com middle" @click.stop="goScan(orderInfo)" v-if="orderInfo.status == 1"> 扫码收款 </button>
|
|
|
<button class="admin-button-com middle" v-if="orderInfo.sendStatus == '-2' && orderInfo.payStatus == 1" @click.stop="openExpressPage(orderInfo.id)">呼叫跑腿</button>
|
|
|
- <button
|
|
|
- class="admin-button-com middle"
|
|
|
- @click.stop="printOrder(orderInfo)"
|
|
|
- v-if="orderInfo.payStatus == 1">
|
|
|
- 打印
|
|
|
- </button>
|
|
|
+ <button class="admin-button-com middle" @click.stop="printOrder(orderInfo)" v-if="orderInfo.payStatus == 1"> 打印 </button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -426,6 +414,7 @@ import { confirmSettle } from "@/api/settle/index"
|
|
|
import { refundAmount } from "@/api/refund";
|
|
|
import { expressDetail } from "@/api/express";
|
|
|
import { cancelExpressOrder,mockNotify } from '@/api/shop-express'
|
|
|
+import { needWork } from "@/api/work"
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
components: {
|
|
|
@@ -543,7 +532,16 @@ export default {
|
|
|
type: 2
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ sendWork(item){
|
|
|
+ let that = this
|
|
|
+ that.$util.confirmModal({content:'确认通知制作?'},() => {
|
|
|
+ needWork({id:item.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
cancelFn(item) {
|
|
|
this.$util.confirmModal({content: '确认取消?'}, () => {
|
|
|
cancelOrder({id: item.id}).then(res => {
|