|
@@ -7,10 +7,10 @@
|
|
|
<view class="result-title">操作成功,还有下一步</view>
|
|
<view class="result-title">操作成功,还有下一步</view>
|
|
|
<view class="pay-confirm-content">
|
|
<view class="pay-confirm-content">
|
|
|
<view class="confirm-text">
|
|
<view class="confirm-text">
|
|
|
- <view class="text-desc">请线下转账给客户,或充到客户账户</view>
|
|
|
|
|
|
|
+ <view class="text-desc">请线下转账给客户,或充余额给客户</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
- <button class="admin-button-com blue big" @click="" style="width:320upx;">充到客户余额</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com blue big" @click="recharge()" style="width:320upx;">充余额给客户</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="margin-top:30upx;">
|
|
<view style="margin-top:30upx;">
|
|
|
<button class="admin-button-com big" @click="goBack" style="width:320upx;">线下退钱给客户</button>
|
|
<button class="admin-button-com big" @click="goBack" style="width:320upx;">线下退钱给客户</button>
|
|
@@ -22,10 +22,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import { getDetB} from "@/api/order";
|
|
import { getDetB} from "@/api/order";
|
|
|
|
|
+ import {toManRecharge} from "@/api/recharge"
|
|
|
export default {
|
|
export default {
|
|
|
name: "remind",
|
|
name: "remind",
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ orderInfo:[]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(){
|
|
onLoad(){
|
|
@@ -35,6 +37,29 @@
|
|
|
prevPage.$vm.pageAction = {refresh:1}
|
|
prevPage.$vm.pageAction = {refresh:1}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ recharge(){
|
|
|
|
|
+ if(this.$util.isEmpty(this.orderInfo)){
|
|
|
|
|
+ this.$msg('没有找到订单信息')
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$util.confirmModal({content:'确认充余额给客户?'},() => {
|
|
|
|
|
+ this.toRecharge()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ toRecharge(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
|
|
+ let remark = '开负数订单退款,单号'+this.orderInfo.orderSn
|
|
|
|
|
+ toManRecharge({amount:this.orderInfo.actPrice,remark:remark,payWay:0,customId:this.orderInfo.customId}).then(res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$msg('充值成功')
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ that.pageTo({url:`/admin/billing/resultCp?id=${this.option.orderId}`, type: 2})
|
|
|
|
|
+ }, 1100)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
init(){
|
|
init(){
|
|
|
let orderId = this.option.orderId?this.option.orderId:0
|
|
let orderId = this.option.orderId?this.option.orderId:0
|
|
|
getDetB({id: orderId}).then(res => {
|
|
getDetB({id: orderId}).then(res => {
|