diff --git a/src/components/repayment/index.vue b/src/components/repayment/index.vue index 9c86d5d..e384be9 100644 --- a/src/components/repayment/index.vue +++ b/src/components/repayment/index.vue @@ -239,6 +239,7 @@ export default { }, //打开充值卡付列表 openPro(row) { + let proList = []; this.list.forEach((item, index) => { console.log(item); item.proList.forEach((items) => { @@ -258,9 +259,9 @@ export default { this.list.splice(form.index, 1, form); console.log(this.list); this.sumList(); - this.restList(form); + // this.restPro(form); }, - restList(form) { + restPro(form) { if (form.courseMoney > 0) { var list = []; var listCopy = []; @@ -293,7 +294,11 @@ export default { }, recData(v) { let form = JSON.parse(JSON.stringify(v)); - console.log(form); + this.list.splice(form.index, 1, form); + this.sumList(); + // this.restRec(form); + }, + restRec(form) { if (form.recMoney > 0) { var list = []; form.recList.forEach((item) => { @@ -316,8 +321,6 @@ export default { } }); } - this.list.splice(form.index, 1, form); - this.sumList(); }, //关闭弹窗前的回调方法 handleClose() { diff --git a/src/pages/eashier/refund/components/staffratio.vue b/src/pages/eashier/refund/components/staffratio.vue index f779008..4c10a65 100644 --- a/src/pages/eashier/refund/components/staffratio.vue +++ b/src/pages/eashier/refund/components/staffratio.vue @@ -1,213 +1,214 @@ - - - 添加 - 删除 - - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - - - - - - - + + + 添加 + 删除 + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + + + + + diff --git a/src/pages/eashier/roomRefund/components/staffratio.vue b/src/pages/eashier/roomRefund/components/staffratio.vue index f16e34e..7f3968c 100644 --- a/src/pages/eashier/roomRefund/components/staffratio.vue +++ b/src/pages/eashier/roomRefund/components/staffratio.vue @@ -50,10 +50,11 @@ export default { this.changeStaff(); }, endEdit(row, index) { - if (!row.ratio) { + if (row.ratio || row.ratio * 1 < 101) { + row.ratio = row.ratio * 1; + } else { row.ratio = 0; } - row.ratio = row.ratio * 1; let number = 0; this.list.forEach((item, index) => { if (index != 0) { diff --git a/src/pages/eashier/service/service.vue b/src/pages/eashier/service/service.vue index 6eb7e27..155d2c8 100644 --- a/src/pages/eashier/service/service.vue +++ b/src/pages/eashier/service/service.vue @@ -877,11 +877,6 @@ export default { } form.memberId = this.memberForm.id; form.integral = this.memberForm.integral; - if (this.proIndex != -1) { - // if (this.list[this.proIndex].projectName) { - // this.czRecList(this.list[this.proIndex]); - // } - } form.rechargeAccountList = this.recListCopy; } else { form.amount = res.data.price; @@ -898,7 +893,12 @@ export default { form.cashAmount = form.amount; form.collectionAmount = form.cashAmount; } - + if (this.list.length > 0) { + console.log(this.list.length); + if (!this.list[0].projectName) { + this.proIndex = 0; + } + } if (this.proIndex != -1) { if (this.list[this.proIndex].projectName) { this.czRecList(this.list[this.proIndex]); diff --git a/src/pages/eashier/service/staffratio.vue b/src/pages/eashier/service/staffratio.vue index e8d4793..3709c9b 100644 --- a/src/pages/eashier/service/staffratio.vue +++ b/src/pages/eashier/service/staffratio.vue @@ -53,10 +53,11 @@ export default { this.changeStaff(); }, endEdit(row, index) { - if (!row.ratio) { + if (row.ratio || row.ratio * 1 < 101) { + row.ratio = row.ratio * 1; + } else { row.ratio = 0; } - row.ratio = row.ratio * 1; let number = 0; this.list.forEach((item, index) => { if (index != 0) {