|
|
@@ -51,8 +51,8 @@
|
|
|
clearable
|
|
|
placeholder="请选择登记人"
|
|
|
size="small">
|
|
|
- <el-option key="zh" label="永平" value="永平"></el-option>
|
|
|
- <el-option key="zh" label="文楷" value="文楷"></el-option>
|
|
|
+ <el-option key="yp" label="永平" value="永平"></el-option>
|
|
|
+ <el-option key="zh" label="文锴" value="文锴"></el-option>
|
|
|
<el-option key="fq" label="方权" value="方权"></el-option>
|
|
|
<el-option key="wx" label="文祥" value="文祥"></el-option>
|
|
|
</el-select>
|
|
|
@@ -237,7 +237,7 @@
|
|
|
<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">当前可退款金额:1111</span>
|
|
|
+ <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>
|
|
|
@@ -283,7 +283,8 @@ export default {
|
|
|
resourcesUrl: process.env.VUE_APP_RESOURCES_URL,
|
|
|
importDialogVisible: false,
|
|
|
uploading: false,
|
|
|
- files:[]
|
|
|
+ files:[],
|
|
|
+ orderRefundQueryInfo:{}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -304,10 +305,32 @@ export default {
|
|
|
this.wxRefundData = {}
|
|
|
},
|
|
|
queryWxRefundInfo(){
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl(`/order/refund/refundQuery/`+ this.wxRefundData.orderNumber),
|
|
|
+ method: 'get',
|
|
|
+ }).then(({ data }) => {
|
|
|
+ if(data){
|
|
|
+ this.orderRefundQueryInfo = "订单支付金额:" + data.payAmount + "元,已退款金额:" + data.totalRefundAmount + "元,可退款金额:" + (data.payAmount - data.totalRefundAmount).toFixed(2) + "元"
|
|
|
+ }else{
|
|
|
+ this.orderRefundQueryInfo
|
|
|
+ }
|
|
|
+ })
|
|
|
this.wxRefundBalanceVisible = true;
|
|
|
},
|
|
|
handleWxRefund(){
|
|
|
-
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl('/order/refund/partRefundRequest'),
|
|
|
+ method: 'post',
|
|
|
+ data: this.$http.adornData(this.wxRefundData)
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.wxRefundBalanceVisible = false;
|
|
|
+ this.wxRefundVisible = false;
|
|
|
+ this.wxRefundData = {};
|
|
|
+ this.$message({
|
|
|
+ message: '退款发起成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
getDataList (page) {
|
|
|
this.dataListLoading = true
|