|
|
@@ -239,7 +239,27 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button v-if="changeMoney" @click="wxRefundVisible=false">关闭</el-button>
|
|
|
- <el-button v-else type="primary" @click="handleWxRefund()">确认退款</el-button>
|
|
|
+ <el-button v-else type="primary" @click="handleWxRefund(true)">确认退款</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="申请微信退款(手动退款)"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :visible.sync="wxRefundVisible2"
|
|
|
+ @close="closeRefundDialog"
|
|
|
+ width="38%">
|
|
|
+ <el-form :model="wxRefundData" label-position="right">
|
|
|
+ <el-form-item label="订单号" label-width="70px">
|
|
|
+ <el-input v-model="wxRefundData.orderNumber" placeholder="请输入订单号" @change="queryWxRefundInfo"></el-input>
|
|
|
+ <span style="color: red" v-if="wxRefundBalanceVisible">{{orderRefundQueryInfo}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="退款金额" label-width="70px">
|
|
|
+ <el-input v-model="wxRefundData.refundAmount" type="number" placeholder="请输入退款金额"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button v-if="changeMoney" @click="wxRefundVisible2=false">关闭</el-button>
|
|
|
+ <el-button v-else type="primary" @click="handleWxRefund(false)">确认退款</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
@@ -259,6 +279,7 @@ export default {
|
|
|
},
|
|
|
refoundRow: {},
|
|
|
wxRefundVisible: false,
|
|
|
+ wxRefundVisible2: false,
|
|
|
wxRefundBalanceVisible: false,
|
|
|
shopId: this.$store.state.user.shopId,
|
|
|
wxRefundData: {
|
|
|
@@ -297,10 +318,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
openWxRefundDialog(){
|
|
|
- this.wxRefundVisible = true;
|
|
|
+ this.wxRefundVisible2 = true;
|
|
|
},
|
|
|
closeRefundDialog(){
|
|
|
this.wxRefundVisible = false;
|
|
|
+ this.wxRefundVisible2 = false;
|
|
|
this.wxRefundBalanceVisible = false;
|
|
|
this.wxRefundData = {}
|
|
|
},
|
|
|
@@ -347,7 +369,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- handleWxRefund(){
|
|
|
+ handleWxRefund(updateRow){
|
|
|
this.$confirm('即将退款' + this.wxRefundData.refundAmount + '元, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
@@ -361,7 +383,9 @@ export default {
|
|
|
this.wxRefundBalanceVisible = false;
|
|
|
this.wxRefundVisible = false;
|
|
|
this.wxRefundData = {};
|
|
|
- this.updateRow()
|
|
|
+ if(updateRow){
|
|
|
+ this.updateRow()
|
|
|
+ }
|
|
|
this.$message({
|
|
|
message: '退款发起成功',
|
|
|
type: 'success'
|