|
|
|
|
@ -213,7 +213,7 @@
|
|
|
|
|
<!-- fixed="right" -->
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button :disabled="scope.row.editNumber==1" icon="el-icon-delete" circle size="mini" type="primary" @click.stop="delPro(scope.row)"></el-button>
|
|
|
|
|
<!-- </el-tooltip> -->
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -362,12 +362,11 @@ export default {
|
|
|
|
|
openList() {
|
|
|
|
|
this.$refs.orders.show();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear(row, text) {
|
|
|
|
|
console.log(text);
|
|
|
|
|
let form = { ...row };
|
|
|
|
|
form[text] = [];
|
|
|
|
|
|
|
|
|
|
console.log(form);
|
|
|
|
|
this.list.splice(row.index, 1, form);
|
|
|
|
|
},
|
|
|
|
|
@ -400,7 +399,7 @@ export default {
|
|
|
|
|
form.spendMoney = form.cardOver;
|
|
|
|
|
form.discoutMoney =
|
|
|
|
|
(form.cardOver * (form.discount / 100)).toFixed(2) * 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.giftSpendMoney =
|
|
|
|
|
(
|
|
|
|
|
(debtMoney - form.discoutMoney) *
|
|
|
|
|
@ -498,7 +497,7 @@ export default {
|
|
|
|
|
row.spendMoney = 0;
|
|
|
|
|
}
|
|
|
|
|
row.spendMoney = row.spendMoney * 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (0 <= row.spendMoney * 1 > row.cardOver * 1) {
|
|
|
|
|
this.$message.info({
|
|
|
|
|
message: "支付金额不能大于可用金额!",
|
|
|
|
|
@ -539,7 +538,7 @@ export default {
|
|
|
|
|
console.log(spendMoney);
|
|
|
|
|
this.recForm.collectionRechargeAmount = spendNumber.toFixed(2) * 1;
|
|
|
|
|
this.recForm.collRecAmonnt = spendMoney.toFixed(2) * 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.recForm.cashAmount =
|
|
|
|
|
(
|
|
|
|
|
this.recForm.collectionCashAmount +
|
|
|
|
|
@ -574,9 +573,9 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.recListCopy = JSON.parse(JSON.stringify(rList));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.list.forEach((item) => {
|
|
|
|
|
if (item.index != this.editProIndex) {
|
|
|
|
|
console.log(this.setRecList(item));
|
|
|
|
|
@ -656,14 +655,14 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openAddMember() {
|
|
|
|
|
this.$refs.addmember.show("添加");
|
|
|
|
|
},
|
|
|
|
|
getRowKeys(row) {
|
|
|
|
|
return row.index;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endEditMoney(row) {
|
|
|
|
|
let form = { ...row };
|
|
|
|
|
console.log(row);
|
|
|
|
|
@ -731,10 +730,8 @@ export default {
|
|
|
|
|
form.texts = item.label;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
console.log(form);
|
|
|
|
|
}
|
|
|
|
|
this.list.splice(row.index, 1, form);
|
|
|
|
|
console.log(this.list)
|
|
|
|
|
},
|
|
|
|
|
goPayDebt() {
|
|
|
|
|
this.$refs.repayment.show(this.memberForm);
|
|
|
|
|
@ -888,7 +885,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
form.memberName = this.memberForm.memberName;
|
|
|
|
|
form.mobilePhone = this.memberForm.mobilePhone;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (form.courseAccountId == null) {
|
|
|
|
|
form.cashAmount = 0;
|
|
|
|
|
form.collectionAmount = 0;
|
|
|
|
|
@ -1001,7 +998,7 @@ export default {
|
|
|
|
|
// flag = false;
|
|
|
|
|
// }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
this.balance <=
|
|
|
|
|
(this.form.collectionCashAmount - sumMoney).toFixed(2) * 1 ||
|
|
|
|
|
@ -1070,7 +1067,7 @@ export default {
|
|
|
|
|
item.collectionCashAmount
|
|
|
|
|
).toFixed(2) * 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
item.isAddition = this.isAddition;
|
|
|
|
|
if (this.isAddition == 1) {
|
|
|
|
|
item.additionDate = this.additionDate;
|
|
|
|
|
@ -1141,9 +1138,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
openStaffRatio(row, index, text) {
|
|
|
|
|
this.editIndex = index;
|
|
|
|
|
// row.text.ratio=100;
|
|
|
|
|
this.$refs.staffratio.show(row, text);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
staffratioData(v) {
|
|
|
|
|
let form = this.list[this.editIndex];
|
|
|
|
|
@ -1164,7 +1159,7 @@ export default {
|
|
|
|
|
payLists: this.payLists,
|
|
|
|
|
rechargeAccountList: [], //卡付列表
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.list.push(list);
|
|
|
|
|
},
|
|
|
|
|
delPro(row) {
|
|
|
|
|
@ -1218,7 +1213,7 @@ export default {
|
|
|
|
|
rowClassName({ row, rowIndex }) {
|
|
|
|
|
row.index = rowIndex;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
expandSelect: function (row, expandedRows) {
|
|
|
|
|
var that = this;
|
|
|
|
|
this.expandedRows = JSON.parse(JSON.stringify(expandedRows));
|
|
|
|
|
@ -1315,7 +1310,7 @@ export default {
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let list = [];
|
|
|
|
|
this.list.forEach((itemList, index) => {
|
|
|
|
|
var itemLists = {
|
|
|
|
|
@ -1379,7 +1374,7 @@ export default {
|
|
|
|
|
itemList.cardAchievementTechnician,
|
|
|
|
|
cardAchievementZhonggong: itemList.cardAchievementZhonggong,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (itemLists.courseAccountId == null) {
|
|
|
|
|
itemLists.cashAmount = 0;
|
|
|
|
|
itemLists.collectionAmount = 0;
|
|
|
|
|
@ -1519,7 +1514,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
goBack() {
|
|
|
|
|
if (this.isAddition == 0) {
|
|
|
|
|
this.orderNumber = 1;
|
|
|
|
|
@ -1561,7 +1556,7 @@ export default {
|
|
|
|
|
item.ratio = 100;
|
|
|
|
|
delete item.state;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.adminOptions = res.rows;
|
|
|
|
|
} else {
|
|
|
|
|
this.$alert(res.message, "加载员工提示", {
|
|
|
|
|
@ -1778,7 +1773,7 @@ export default {
|
|
|
|
|
created() {},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.el-icon-edit-outline {
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
@ -1794,4 +1789,4 @@ export default {
|
|
|
|
|
.el-form-item {
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|