|
|
|
|
@ -75,7 +75,7 @@
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
<el-form-item prop="summation" label="退款金额:">
|
|
|
|
|
<div class="form-width-ms">
|
|
|
|
|
<el-input oninput="this.value=this.value.replace(/\D*(\d*)(\.?)(\d{0,2})\d*/,'$1$2$3')" pattern="[0-9]*\.?[0-9]{0,2}" @change="endRefundMoney" @blur="endRefundMoney" v-model="refund.courseRefundMoney"></el-input>
|
|
|
|
|
<el-input :disabled="refund.refundNumber==refund.courseConsumeCount" oninput="this.value=this.value.replace(/\D*(\d*)(\.?)(\d{0,2})\d*/,'$1$2$3')" pattern="[0-9]*\.?[0-9]{0,2}" @change="endRefundMoney" @blur="endRefundMoney" v-model="refund.courseRefundMoney"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<br />
|
|
|
|
|
@ -643,37 +643,17 @@ export default {
|
|
|
|
|
detailData(v) {
|
|
|
|
|
this.getOrder();
|
|
|
|
|
},
|
|
|
|
|
endRefundMoney() {
|
|
|
|
|
let money =
|
|
|
|
|
(this.refund.courseConsumeCount * this.refund.price).toFixed(2) * 1;
|
|
|
|
|
if (this.refund.courseRefundMoney * 1 > money) {
|
|
|
|
|
this.$alert("退款金额不能大于: " + money, "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
});
|
|
|
|
|
this.refund.courseRefundMoney = money;
|
|
|
|
|
endRefundMoney() {},
|
|
|
|
|
endNum() {
|
|
|
|
|
if (this.refund.refundNumber > this.refund.courseConsumeCount) {
|
|
|
|
|
this.refund.refundNumber = this.refund.courseConsumeCount;
|
|
|
|
|
this.refund.courseRefundMoney = this.refund.courseConsumePrice;
|
|
|
|
|
} else {
|
|
|
|
|
this.refund.refundNumber =
|
|
|
|
|
(this.refund.courseRefundMoney / this.refund.price).toFixed(2) * 1;
|
|
|
|
|
this.refund.refundNumber = parseInt(this.refund.refundNumber);
|
|
|
|
|
this.upNum = this.refund.refundNumber;
|
|
|
|
|
let form = { ...this.refund };
|
|
|
|
|
this.refund = JSON.parse(JSON.stringify(form));
|
|
|
|
|
this.refund.courseRefundMoney =
|
|
|
|
|
(this.refund.price * this.refund.refundNumber).toFixed(2) * 1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
endNum() {
|
|
|
|
|
this.refund.refundNumber =
|
|
|
|
|
(this.refund.courseRefundMoney / this.refund.price).toFixed(2) * 1;
|
|
|
|
|
this.refund.refundNumber = parseInt(this.refund.refundNumber);
|
|
|
|
|
this.upNum = this.refund.refundNumber;
|
|
|
|
|
},
|
|
|
|
|
endMoney() {
|
|
|
|
|
let money =
|
|
|
|
|
(this.refund.courseConsumeCount * this.refund.price).toFixed(2) * 1;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
close() {
|
|
|
|
|
this.refDialogVisible = false;
|
|
|
|
|
this.openCollNumber = 0;
|
|
|
|
|
@ -969,7 +949,6 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
that.refund = Object.assign(that.refund, that.radioValueList);
|
|
|
|
|
that.refund.refundNumber = null;
|
|
|
|
|
|
|
|
|
|
let page = {
|
|
|
|
|
memberId: that.radioValueList.memberId,
|
|
|
|
|
storeId: that.radioValueList.storeId,
|
|
|
|
|
|