|
|
@@ -174,6 +174,7 @@
|
|
|
<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="printOrder(orderInfo)" v-if="orderInfo.payStatus == 1">打印</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -186,7 +187,7 @@ import detailItem from "./components/detail-item.vue";
|
|
|
import AppCoupon from "@/components/app-coupon-sel";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import RateModule from "@/components/plugin/rate";
|
|
|
-import { onlinePrintOrder } from '@/api/order'
|
|
|
+import { onlinePrintOrder,cancelOrder } from '@/api/order'
|
|
|
import { getDetB} from "@/api/order";
|
|
|
const commonUtil = require("@/utils/common.js");
|
|
|
import { confirmSettle } from "@/api/settle/index"
|
|
|
@@ -229,6 +230,16 @@ export default {
|
|
|
callUp(mobile) {
|
|
|
this.$util.callUp(mobile)
|
|
|
},
|
|
|
+ cancelFn(item){
|
|
|
+ this.$util.confirmModal({content:'确认取消?'},() => {
|
|
|
+ cancelOrder({id:item.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg('取消成功')
|
|
|
+ this.getDetailInfo()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
printOrder(item){
|
|
|
onlinePrintOrder({id:item.id}).then(res=>{
|
|
|
if(res.code == 1){
|