|
|
@@ -385,6 +385,8 @@
|
|
|
<button class="admin-button-com middle blue" @click="shareOrder()">分享</button>
|
|
|
<!-- #endif -->
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" v-if="detailInfo.status == 5" @click="backMoney(detailInfo)">一键退款</button>
|
|
|
+
|
|
|
<button class="admin-button-com middle blue" style="background-color: green;border-color: green;" v-if="detailInfo.status != 1 && detailInfo.status != 5" @click="printOrder(detailInfo)">打印(无价格)</button>
|
|
|
|
|
|
<template v-for="s in detailInfo.buttonList">
|
|
|
@@ -474,6 +476,7 @@ import { ORDER_STATUS } from "@/utils/declare";
|
|
|
import { cloudPrintOrder, cancelOrder,cancelBookOrderInfo,confirmReachFn,changeSendStaffFn } from "@/api/order";
|
|
|
import { hasHitNavigate } from "@/api/map";
|
|
|
import { getWeixinId } from "@/api/invite";
|
|
|
+import { refundMoney } from "@/api/refund";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
import { partItem } from "@/api/part"
|
|
|
import { delItem,updateRemarkItemFn } from "@/api/order-item";
|
|
|
@@ -901,6 +904,17 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ backMoney(info){
|
|
|
+ refundMoney({id:info.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ if(res.data.status == 1){
|
|
|
+ this.$msg('退款成功')
|
|
|
+ }else{
|
|
|
+ this.$msg(res.msg)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
cancelOrderFn(info) {
|
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认取消?'},() => {
|