部署
This commit is contained in:
parent
d721c27ea0
commit
f99e9c442e
|
@ -109,7 +109,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
@click="handleRefund(d.row.billId)"
|
@click="handleRefund(d.row)"
|
||||||
v-has-permi="['system:bill:refund']"
|
v-has-permi="['system:bill:refund']"
|
||||||
v-show="canRefund(d.row)"
|
v-show="canRefund(d.row)"
|
||||||
>订单退款</el-button>
|
>订单退款</el-button>
|
||||||
|
@ -135,8 +135,8 @@
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 添加或修改充值记录对话框 -->
|
<!-- 退款 -->
|
||||||
<el-dialog :visible.sync="showRefund" title="退款">
|
<el-dialog :visible.sync="showRefund" title="退款" width="400px">
|
||||||
<el-form :model="refundForm" :rules="refundRules">
|
<el-form :model="refundForm" :rules="refundRules">
|
||||||
<el-form-item label="退款金额" prop="refundAmount">
|
<el-form-item label="退款金额" prop="refundAmount">
|
||||||
<el-input-number v-model="refundForm.refundAmount" placeholder="请输入退款金额" /> 元
|
<el-input-number v-model="refundForm.refundAmount" placeholder="请输入退款金额" /> 元
|
||||||
|
@ -144,8 +144,8 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitRefund">确 定</el-button>
|
<el-button type="primary" @click="submitRefund" :loading="refundLoading">确 定</el-button>
|
||||||
<el-button @click="this.showRefund = false">取 消</el-button>
|
<el-button @click="showRefund = false" >取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ export default {
|
||||||
},
|
},
|
||||||
refundRules: {
|
refundRules: {
|
||||||
refundAmount: [
|
refundAmount: [
|
||||||
{ required: true, message: "退款金额不能为空", trigger: "blur" }
|
{ required: true, type: 'number', message: "退款金额不能为空", trigger: "blur" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
showRefund: false,
|
showRefund: false,
|
||||||
|
@ -237,15 +237,17 @@ export default {
|
||||||
refundBill(this.refundForm.billId, this.refundForm.refundAmount).then(res => {
|
refundBill(this.refundForm.billId, this.refundForm.refundAmount).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.$message.success("操作成功");
|
this.$message.success("操作成功");
|
||||||
|
this.showRefund = false;
|
||||||
|
this.getList();
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
refundLoading
|
this.refundLoading = false;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleRefund(id) {
|
handleRefund(row) {
|
||||||
this.refundForm = {
|
this.refundForm = {
|
||||||
billId: id,
|
billId: row.billId,
|
||||||
refundAmount: null,
|
refundAmount: row.money,
|
||||||
}
|
}
|
||||||
this.showRefund = true;
|
this.showRefund = true;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user