添加项目
收银列表
-
{{isAddition==1?'收银':'补单'}}
+
{{ isAddition == 1 ? '收银' : '补单' }}
清空页面
确认收银
@@ -317,6 +359,7 @@ export default {
rowList: [],
form: {
collectionCashAmount: 0,
+ collectionCashAmounts: 0,
cashAmount: 0,
debtMoney: 0,
},
@@ -350,6 +393,9 @@ export default {
};
},
methods: {
+ selectindex(row) {
+ console.log(row)
+ },
changeMember() {
if (this.cashNumber == 1) {
Object.assign(this.$data, this.$options.data.call(this));
@@ -364,30 +410,26 @@ export default {
},
clear(row, text) {
- console.log(text);
+ //console.log(text);
let form = { ...row };
form[text] = [];
- console.log(form);
+ //console.log(form);
this.list.splice(row.index, 1, form);
},
//修改卡付金额
editcard(row, index) {
this.recIndex = index;
+ console.log(index)
+ },
+ endEditcard(row, index) {
+ console.log(index)
let debtMoney =
(this.recForm.amount * 1 - this.recForm.cashAmount * 1).toFixed(2) * 1;
+ console.log(this.recForm)
let form = { ...row };
- console.log(debtMoney);
+ console.log(form)
+ //console.log(debtMoney);//套餐价格
if (debtMoney > 0) {
- // let cardMoney =
- // (form.offsetMoney + form.offsetGiftMoney).toFixed(2) * 1;
- // if (cardMoney < debtMoney) {
- // form.spendMoney = form.cardOver;
- // form.giftSpendMoney = form.giftConsumeMoney;
- // form.discoutMoney = form.offsetMoney;
- // form.discoutGiftMoney = form.offsetGiftMoney;
- // } else {
- console.log(form.type);
- console.log(this.useRecharge);
if (form.type == 2 || form.type == 0) {
if (this.useRecharge == 2) {
//先用充值再用赠送
@@ -423,47 +465,35 @@ export default {
} else {
//按比例使用
let sunRatio =
- (form.cardRestMoney + form.cardGiftOvers).toFixed(2) * 1;
- let recRatio = (form.cardRestMoney / sunRatio).toFixed(2) * 1;
- let recGiftRatio = (form.cardGiftOvers / sunRatio).toFixed(2) * 1;
- console.log(form.cardRestMoney);
- console.log(form.cardGiftOvers);
- console.log(sunRatio);
- if (form.offsetMoney > debtMoney * recRatio) {
+ (form.cardRestMoney + form.cardGiftOvers).toFixed(2) * 1;///可用余额+赠送余额
+ let recRatio = (form.cardRestMoney / sunRatio).toFixed(2) * 1;//可用余额比例
+ let recGiftRatio = (form.cardGiftOvers / sunRatio).toFixed(2) * 1;//赠送余额比例
+ if (form.offsetMoney > debtMoney * recRatio) {//
if (this.recForm.noDiscount == 0) {
- form.spendMoney =
- (debtMoney * recRatio * (form.discount / 100)).toFixed(2) * 1;
- form.discoutMoney = (debtMoney * recRatio).toFixed(2) * 1;
- form.giftSpendMoney =
- (
- debtMoney *
- recGiftRatio *
- (form.discountFreeAmount / 100)
- ).toFixed(2) * 1;
- form.discoutGiftMoney =
- (debtMoney * recGiftRatio).toFixed(2) * 1;
+ form.discoutMoney =//充值卡支付的钱
+ ((form.spendMoney * 1) / (form.discount / 100)).toFixed(2) * 1;
+ form.giftSpendMoney = ((form.spendMoney * 1) / recRatio * recGiftRatio).toFixed(2) * 1;
+ console.log("这个是赠送金额" + form.giftSpendMoney)
+ form.discoutGiftMoney =//赠送卡支付的钱
+ (form.giftSpendMoney / (form.discountFreeAmount / 100)).toFixed(2) * 1;
+ //console.log(form.discoutGiftMoney)
} else {
- console.log(debtMoney);
+ //console.log(debtMoney);
form.spendMoney = (debtMoney * recRatio).toFixed(2) * 1;
form.discoutMoney = (debtMoney * recRatio).toFixed(2) * 1;
form.giftSpendMoney = (debtMoney * recGiftRatio).toFixed(2) * 1;
form.discoutGiftMoney =
(debtMoney * recGiftRatio).toFixed(2) * 1;
}
+
} else {
form.spendMoney = form.cardOver;
form.discoutMoney =
- (form.cardOver / (form.discount / 100)).toFixed(2) * 1;
- form.giftSpendMoney =
- debtMoney * recRatio -
- form.discoutMoney +
- (debtMoney * recGiftRatio).toFixed(2) * 1;
- form.discoutGiftMoney =
- (
- debtMoney * recRatio -
- form.discoutMoney +
- (debtMoney * recGiftRatio) / (form.discountFreeAmount / 100)
- ).toFixed(2) * 1;
+ ((form.spendMoney * 1) * (form.discount / 100)).toFixed(2) * 1;
+ form.giftSpendMoney = ((form.spendMoney * 1) / recRatio * recGiftRatio).toFixed(2) * 1;
+ console.log("这个是赠送金额" + form.giftSpendMoney)
+ form.discoutGiftMoney =//赠送卡支付的钱
+ (form.giftSpendMoney * (form.discount / 100)).toFixed(2) * 1;
}
}
if (form.spendMoney == 0) {
@@ -474,71 +504,100 @@ export default {
} else {
if (this.recForm.noDiscount == 0) {
// 可以打折
- form.spendMoney =
- ((debtMoney * form.discount) / 100).toFixed(2) * 1;
+
+ form.discoutMoney =
+ ((form.spendMoney * form.discount) / 100).toFixed(2) * 1;
} else {
- // 不可以打折
- form.spendMoney = debtMoney;
+ 不可以打折
+ form.discoutMoney = form.spendMoney;
}
- form.discoutMoney = debtMoney;
+ form.discoutGiftMoney=0
+ }
+ if (form.discoutGiftMoney + form.discoutMoney > this.list[this.editProIndex].amount) {
+ this.$message.info({
+ message: "卡付金额不能大于套餐金额",
+ });
+ form.spendMoney = 0
+ form.discoutMoney = 0
+ form.discoutGiftMoney = 0
+ form.giftSpendMoney = 0
}
} else {
form.spendMoney = 0;
form.giftSpendMoney = 0;
+ if (0 <= row.spendMoney * 1 > row.cardOver * 1) {
+ this.$message.info({
+ message: "支付金额不能大于可用金额!",
+ });
+ }
}
if (form.spendMoney > form.cardOver) {
form.spendMoney = form.cardOver;
form.giftSpendMoney = form.cardGiftOvers;
}
- this.rowRecList.splice(index, 1, form);
- },
- endEditcard(row, index) {
- if (!row.spendMoney) {
- row.spendMoney = 0;
- }
- row.spendMoney = row.spendMoney * 1;
- if (0 <= row.spendMoney * 1 > row.cardOver * 1) {
- this.$message.info({
- message: "支付金额不能大于可用金额!",
- });
- } else {
- this.recIndex = -1;
- if (row.spendMoney * 1 < 0) {
- } else {
- if (this.recForm.noDiscount == 0) {
- row.discoutMoney =
- ((row.spendMoney * 1) / ((row.discount * 1) / 100)).toFixed(2) *
- 1;
- } else {
- row.discoutMoney = row.spendMoney;
- }
- row.cardOvers =
- (row.cardOver * 1 - row.spendMoney * 1).toFixed(2) * 1;
- row.cardGiftOvers =
- (row.giftConsumeMoney * 1 - row.giftSpendMoney * 1).toFixed(2) * 1;
- }
- if (row.spendMoney == 0) {
- row.discoutGiftMoney = 0;
- }
- }
- let res = { ...row };
- this.rowRecList.splice(index, 1, res);
+ this.rowRecList.splice(index, 1, form);
+ this.list[this.editProIndex].collectionCashAmounts = this.list[this.editProIndex].amount - (form.discoutMoney + form.discoutGiftMoney)
+ //console.log(this.list)
+ //console.log('这是index'+index)
+ let num = 0;
+ this.list.forEach((item) => {
+ // //console.log("这个是"+item.collectionCashAmounts)
+ num = num + item.collectionCashAmounts
+ });
+ //console.log(num)
+ this.form.collectionCashAmounts = num;
this.sumNum();
+ // this.rowRecList.splice(index, 1, form);
+
+ // ---------------------------------------------------------------------------------------------------------------
+ // if (!row.spendMoney) {
+ // row.spendMoney = 0;
+ // }
+ // row.spendMoney = row.spendMoney * 1;
+
+ // if (0 <= row.spendMoney * 1 > row.cardOver * 1) {
+ // this.$message.info({
+ // message: "支付金额不能大于可用金额!",
+ // });
+ // } else {
+ // this.recIndex = -1;
+ // if (row.spendMoney * 1 < 0) {
+ // } else {
+ // if (this.recForm.noDiscount == 0) {
+ // row.discoutMoney =
+ // ((row.spendMoney * 1) / ((row.discount * 1) / 100)).toFixed(2) * 1;
+ // } else {
+ // row.discoutMoney = row.spendMoney;
+ // }
+ // row.cardOvers =
+ // (row.cardOver * 1 - row.spendMoney * 1).toFixed(2) * 1;
+ // row.cardGiftOvers =
+ // (row.giftConsumeMoney * 1 - row.giftSpendMoney * 1).toFixed(2) * 1;
+ // }
+ // if (row.spendMoney == 0) {
+ // row.discoutGiftMoney = 0;
+ // }
+ // }
+ // let res = { ...row };
+ // this.rowRecList.splice(index, 1, res);
+ // this.sumNum();
},
sumNum() {
let spendMoney = 0;
let spendNumber = 0;
+ //console.log(this.rowRecList)
this.rowRecList.forEach((item) => {
- console.log(item.discoutMoney);
- console.log(item.discoutGiftMoney);
spendMoney += (item.discoutMoney + item.discoutGiftMoney) * 1;
spendNumber += (item.spendMoney * 1 + item.giftSpendMoney) * 1;
+ //console.log(item.discoutMoney);
+ //console.log(item.discoutGiftMoney);
});
- console.log(spendMoney);
+ //console.log(spendMoney);
+
this.recForm.collectionRechargeAmount = spendNumber.toFixed(2) * 1;
this.recForm.collRecAmonnt = spendMoney.toFixed(2) * 1;
-
+ //console.log(this.recForm.collectionRechargeAmount)
this.recForm.cashAmount =
(
this.recForm.collectionCashAmount +
@@ -555,6 +614,11 @@ export default {
this.recForm.collectionCashAmount +
this.recForm.collectionIntegralAmount
).toFixed(2) * 1;
+ this.recForm.collectionAmounts =
+ (
+ spendMoney
+ ).toFixed(2) * 1;
+ //console.log(this.recForm.collectionAmount)
this.recForm.rechargeAmount = spendNumber;
this.list.splice(this.recForm.index, 1, this.recForm);
let rList = [];
@@ -564,7 +628,7 @@ export default {
JSON.stringify(item.rechargeAccountList)
);
rechargeAccountList.forEach((item) => {
- console.log(item);
+ //console.log(item);
item.cardOver = item.cardOvers;
item.giftConsumeMoney = item.cardGiftOvers;
item.giftSpendMoney = 0;
@@ -578,12 +642,13 @@ export default {
this.list.forEach((item) => {
if (item.index != this.editProIndex) {
- console.log(this.setRecList(item));
+ //console.log(this.setRecList(item));
let recArr = this.setRecList(item);
item.rechargeAccountList.forEach((item, index) => {
if (item.spendMoney > 0) {
+ this.sumAmont();
} else {
- console.log(item);
+ //console.log(item);
item.cardOver = recArr[index].cardOvers;
item.cardOvers = recArr[index].cardOvers;
item.giftConsumeMoney = recArr[index].cardGiftOvers;
@@ -592,14 +657,15 @@ export default {
});
}
});
- console.log(rList);
- console.log(this.list);
+ //console.log(rList);
+ //console.log(this.list);
this.sumAmont();
},
openRec(row) {
this.recForm = JSON.parse(JSON.stringify(row));
this.rowRecList = JSON.parse(JSON.stringify(row.rechargeAccountList));
this.editProIndex = row.index;
+ console.log( this.editProIndex)
},
recashData(v) {
this.list = v.list;
@@ -607,7 +673,7 @@ export default {
let recList = v.form.rechargeAccountList;
this.list.forEach((item, index) => {
if (Vindex < index) {
- console.log("大于当前, 卡包变");
+ //console.log("大于当前, 卡包变");
recList.forEach((rec, recIndex) => {
if (rec.spendMoney > 0) {
item.rechargeAccountList[recIndex].cardOver = rec.cardOvers;
@@ -649,7 +715,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -665,7 +731,7 @@ export default {
endEditMoney(row) {
let form = { ...row };
- console.log(row);
+ //console.log(row);
if (this.cashNumber == 1) {
if (
form.topPriceMember < form.transactionPrice * 1 ||
@@ -700,7 +766,7 @@ export default {
this.sumAmont();
},
handleChange(data, row, text) {
- console.log("行号", row.index);
+ //console.log("行号", row.index);
let form = { ...row };
if (text == "managerList") {
this.managerOptions.forEach((item, index) => {
@@ -723,7 +789,7 @@ export default {
} else {
this.options.forEach((item, index) => {
if (item.id == data) {
- console.log("返回数据:", item);
+ //console.log("返回数据:", item);
item.ratio = 100;
form[text] = [];
form[text].push(item);
@@ -760,7 +826,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
this.cashNumber = 0;
}
@@ -772,6 +838,7 @@ export default {
},
passcodeData(v) {
if (v != null) {
+ console.log(v)
this.formData.append("file", v);
}
this.addCashConfirm();
@@ -788,7 +855,7 @@ export default {
this.$refs.project.show(this.memberForm);
},
projectData(v) {
- console.log(v);
+ //console.log(v);
if (!v.courseAccountId) {
v.courseAccountId = null;
v.courseProjectId = v.id;
@@ -861,7 +928,7 @@ export default {
numberTimes: 1,
minumumTimes: res.data.minumumTimes,
};
- console.log(form);
+ //console.log(form);
this.setRecList(form);
if (this.cashNumber == 1) {
if (row.courseAccountId == null) {
@@ -892,9 +959,10 @@ export default {
} else {
form.cashAmount = form.amount;
form.collectionAmount = form.cashAmount;
+ //console.log("1")
}
if (this.list.length > 0) {
- console.log(this.list.length);
+ //console.log(this.list.length);
if (!this.list[0].projectName) {
this.proIndex = 0;
}
@@ -923,7 +991,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -956,7 +1024,7 @@ export default {
2
) * 1;
}
- console.log(item);
+ //console.log(item);
} else {
item.offsetMoney = item.giftConsumeMoney + item.cardConsumeMoney;
item.offsetGiftMoney = 0;
@@ -973,7 +1041,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
flag = false;
}
@@ -1001,8 +1069,8 @@ export default {
if (
this.balance <=
- (this.form.collectionCashAmount - sumMoney).toFixed(2) * 1 ||
- (this.form.collectionCashAmount - sumMoney).toFixed(2) * 1 < 0
+ (this.form.collectionCashAmounts - sumMoney).toFixed(2) * 1 ||
+ (this.form.collectionCashAmounts - sumMoney).toFixed(2) * 1 < 0
) {
flag = false;
this.$alert("实付金额不等于项目金额", "提示", {
@@ -1010,7 +1078,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
if (this.isAddition == 1 && !this.additionDate) {
@@ -1020,7 +1088,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
if (flag) {
@@ -1109,17 +1177,26 @@ export default {
item.rechargeAccountList = rechargeAccountList;
if (item.courseAccountId != null) {
item.collectionAmount = item.amount;
+ //console.log("2")
}
if (item.projectId) {
list.push(item);
}
});
+ console.log(list)
+
+ list.forEach((item) => {
+ item.collectionAmount = item.collectionAmounts
+
+ })
+ console.log(list)
this.formData.append("cashListRequestList", JSON.stringify(list));
addCash(this.formData).then((res) => {
if (res.code == "000000") {
this.$message.success({
message: "验证成功 , 收银" + res.message,
});
+ this.formData = new FormData()
this.notData();
} else {
this.payLists = this.payListsCopy;
@@ -1131,16 +1208,22 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
+ this.formData = new FormData()
}
});
},
openStaffRatio(row, index, text) {
this.editIndex = index;
+ console.log(row)
this.$refs.staffratio.show(row, text);
+ this.$refs.staffratio.showdetele();
+ localStorage.setItem("row",JSON.stringify(row))
+ localStorage.setItem("text",text)
},
staffratioData(v) {
+ console.log(v)
let form = this.list[this.editIndex];
let texts = v.text + "s";
form[v.text] = v.list;
@@ -1163,32 +1246,40 @@ export default {
this.list.push(list);
},
delPro(row) {
- this.czRecList(row);
+ // this.czRecList(row);
this.list.splice(row.index, 1);
- },
- czRecList(row) {
- let list = [];
- row.rechargeAccountList.forEach((item) => {
- if (item.spendMoney > 0) {
- list.push(item);
- }
- });
- this.recListCopy.forEach((item) => {
- list.forEach((items) => {
- if (item.id == items.id) {
- console.log(item);
- console.log(item.giftConsumeMoney);
- console.log(item.giftSpendMoney);
- item.cardOver = (item.cardOver + items.spendMoney).toFixed(2) * 1;
- item.cardOvers = (item.cardOvers + items.spendMoney).toFixed(2) * 1;
- item.cardGiftOvers =
- (item.giftConsumeMoney + items.giftSpendMoney).toFixed(2) * 1;
- item.giftConsumeMoney =
- (item.giftConsumeMoney + items.giftSpendMoney).toFixed(2) * 1;
- }
- });
+ //console.log(row)
+ this.form.cashAmount = this.form.cashAmount - row.amount + row.cashAmount
+ this.form.collectionCashAmounts = this.form.cashAmount - row.amount + row.cashAmount
+ this.form.collectionCashAmount = this.form.collectionCashAmounts
+ this.payLists.forEach((item) => {
+ item.payMoney = 0
});
+ this.sumAmont()
},
+ // czRecList(row) {
+ // let list = [];
+ // row.rechargeAccountList.forEach((item) => {
+ // if (item.spendMoney > 0) {
+ // list.push(item);
+ // }
+ // });
+ // this.recListCopy.forEach((item) => {
+ // list.forEach((items) => {
+ // if (item.id == items.id) {
+ // //console.log(item);
+ // //console.log(item.giftConsumeMoney);
+ // //console.log(item.giftSpendMoney);
+ // item.cardOver = (item.cardOver + items.spendMoney).toFixed(2) * 1;
+ // item.cardOvers = (item.cardOvers + items.spendMoney).toFixed(2) * 1;
+ // item.cardGiftOvers =
+ // (item.giftConsumeMoney + items.giftSpendMoney).toFixed(2) * 1;
+ // item.giftConsumeMoney =
+ // (item.giftConsumeMoney + items.giftSpendMoney).toFixed(2) * 1;
+ // }
+ // });
+ // });
+ // },
//打开选择会员弹窗
openMember() {
this.cashNumber = 1;
@@ -1196,16 +1287,16 @@ export default {
},
//选中会员返回方法
memberData(v) {
- console.log(v);
+ //console.log(v);
this.memberForm.mobilePhone = v.mobilePhone;
this.inputMember();
},
- reccardData(v) {},
+ reccardData(v) { },
courseData(v) {
this.setProOne(v);
},
paymentData(v) {
- console.log(v);
+ //console.log(v);
this.form = v.form;
this.payLists = v.list;
this.sumAmont();
@@ -1228,7 +1319,7 @@ export default {
},
//点击选中
rowClick(row) {
- console.log(row);
+ //console.log(row);
this.$refs.list.toggleRowExpansion(row);
},
close() {
@@ -1278,7 +1369,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
//查询当前会员下的所有项目疗程 如果有相对应的项目 就给courseAccountId赋值 没有的话 就是卡付现付
@@ -1307,7 +1398,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
@@ -1382,6 +1473,7 @@ export default {
} else {
itemLists.cashAmount = itemLists.amount;
itemLists.collectionAmount = itemLists.amount;
+ //console.log(3)
itemLists.courseMoney = itemLists.transactionPrice;
}
list.push(itemLists);
@@ -1542,7 +1634,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -1564,7 +1656,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -1582,7 +1674,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -1600,7 +1692,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -1633,7 +1725,7 @@ export default {
confirmButtonClass: "confirmbtnFalses",
type: "warning",
center: true,
- callback: (action) => {},
+ callback: (action) => { },
});
}
});
@@ -1654,17 +1746,22 @@ export default {
item.collectionIntegralAmount +
item.collectionCashAmount
).toFixed(2) * 1;
+ //console.log(4)
} else {
item.collectionAmount =
(
item.collectionIntegralAmount + item.collectionCashAmount
).toFixed(2) * 1;
}
+ //console.log(5)
});
}
+ let collectionRechargeAmountg = 0;
this.list.forEach((item) => {
let debtMoney = 0;
+
if (item.amount && item.courseAccountId == null) {
+
debtMoney =
(
item.amount -
@@ -1674,8 +1771,13 @@ export default {
).toFixed(2) * 1;
money += debtMoney;
}
+ collectionRechargeAmountg += (item.collectionRechargeAmount).toFixed(2) * 1;
});
- this.form.cashAmount = money.toFixed(2) * 1;
+
+ this.form.cashAmount = (money.toFixed(2) * 1) + (collectionRechargeAmountg.toFixed(2) * 1)
+ this.form.collectionCashAmounts = (money.toFixed(2) * 1)
+ console.log(this.form.collectionCashAmounts)
+ console.log(this.form.cashAmount)
this.list.forEach((item) => {
if (
this.form.cashAmount == this.form.collectionCashAmount &&
@@ -1695,11 +1797,15 @@ export default {
item.collectionIntegralAmount +
item.collectionCashAmount
).toFixed(2) * 1;
+ //console.log(6)
+ //console.log( item.collectionAmount)
+
} else {
item.collectionAmount =
(item.collectionIntegralAmount + item.collectionCashAmount).toFixed(
2
) * 1;
+ //console.log(7)
}
});
this.form.debtMoney =
@@ -1707,6 +1813,7 @@ export default {
var that = this;
setTimeout(() => {
that.$nextTick(() => {
+ console.log(that.form)
that.$refs.payment.show(that.form, that.payLists);
});
}, 500);
@@ -1770,23 +1877,26 @@ export default {
activated() {
this.setPage();
},
- created() {},
+ created() { },
};
-
+
+
\ No newline at end of file
diff --git a/src/pages/eashier/service/staffratio.vue b/src/pages/eashier/service/staffratio.vue
index 3709c9b..e6063a9 100644
--- a/src/pages/eashier/service/staffratio.vue
+++ b/src/pages/eashier/service/staffratio.vue
@@ -1,5 +1,6 @@
-
+
添加
删除
@@ -7,7 +8,8 @@
-
+
@@ -15,7 +17,8 @@
-
+
@@ -28,7 +31,7 @@
-
+
-
+
+
\ No newline at end of file
diff --git a/src/pages/promotion/components/memberSuit.vue b/src/pages/promotion/components/memberSuit.vue
index cf47d7d..f6303b9 100644
--- a/src/pages/promotion/components/memberSuit.vue
+++ b/src/pages/promotion/components/memberSuit.vue
@@ -16,7 +16,7 @@
-
+
diff --git a/src/pages/statistics/negativeCard/negativeCard.vue b/src/pages/statistics/negativeCard/negativeCard.vue
index 34e05f7..7a9249c 100644
--- a/src/pages/statistics/negativeCard/negativeCard.vue
+++ b/src/pages/statistics/negativeCard/negativeCard.vue
@@ -6,24 +6,63 @@
-
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -55,7 +94,9 @@ export default {
dayStatisticRecharge() {
dayStatisticRecharge({ date: partten.dayStatisticDate }).then((res) => {
if (res.code == "000000") {
- this.tableDate = res.rows;
+ var arr=[];
+ arr.push(res.data)
+ this.tableDate = arr;
} else {
this.$alert(res.message, "提示", {
confirmButtonText: "确定",
@@ -70,7 +111,9 @@ export default {
dayStatisticTreatment() {
dayStatisticTreatment({ date: partten.dayStatisticDate }).then((res) => {
if (res.code == "000000") {
- this.tableDate1 = res.rows;
+ var arr=[];
+ arr.push(res.data)
+ this.tableDate1 = arr;
} else {
this.$alert(res.message, "提示", {
confirmButtonText: "确定",
@@ -107,35 +150,35 @@ export default {
this.dayStatisticRecharge();
},
//合计
- getSummaries(param) {
- const { columns, data } = param;
- const sums = [];
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = '';
- return;
- }
+ // getSummaries(param) {
+ // const { columns, data } = param;
+ // const sums = [];
+ // columns.forEach((column, index) => {
+ // if (index === 0) {
+ // sums[index] = '';
+ // return;
+ // }
- const values = data.map(item => Number(item[column.property]));
- if (!values.every(value => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr);
- if (!isNaN(value)) {
- return prev + curr;
- } else {
- return prev;
- }
+ // const values = data.map(item => Number(item[column.property]));
+ // if (!values.every(value => isNaN(value))) {
+ // sums[index] = values.reduce((prev, curr) => {
+ // const value = Number(curr);
+ // if (!isNaN(value)) {
+ // return prev + curr;
+ // } else {
+ // return prev;
+ // }
- }, 0);
- sums[index] += ' 元';
- } else {
- sums[index] = 'N/A';
- }
- });
+ // }, 0);
+ // sums[index] += ' 元';
+ // } else {
+ // sums[index] = 'N/A';
+ // }
+ // });
- return sums;
- }
+ // return sums;
+ // }
};
@@ -143,7 +186,7 @@ export default {
diff --git a/src/pages/statistics/staffBrokerage/staffBrokerage.vue b/src/pages/statistics/staffBrokerage/staffBrokerage.vue
index 9acacc7..e2296b3 100644
--- a/src/pages/statistics/staffBrokerage/staffBrokerage.vue
+++ b/src/pages/statistics/staffBrokerage/staffBrokerage.vue
@@ -78,7 +78,7 @@
-->
-
+
{{scope.row.tkyj?scope.row.tkyj:'--'}}
diff --git a/src/pages/storeManage/baseProject/components/edit.vue b/src/pages/storeManage/baseProject/components/edit.vue
index 0f864d4..e939c43 100644
--- a/src/pages/storeManage/baseProject/components/edit.vue
+++ b/src/pages/storeManage/baseProject/components/edit.vue
@@ -68,10 +68,10 @@
-
+
-
+
diff --git a/src/pages/storeManage/gradeList/components/Edit.vue b/src/pages/storeManage/gradeList/components/Edit.vue
index 0695539..a3210e5 100644
--- a/src/pages/storeManage/gradeList/components/Edit.vue
+++ b/src/pages/storeManage/gradeList/components/Edit.vue
@@ -83,7 +83,7 @@ export default {
this.dialogFormVisible = false;
this.$message.success({ message: this.title + "成功" });
this.$emit("editData");
- this.close();
+ this.handleClose();
} else {
this.$alert(res.message, "提示", {
confirmButtonText: "确定",
diff --git a/src/pages/storeManage/jobList/components/Edit.vue b/src/pages/storeManage/jobList/components/Edit.vue
index 5cf0d0c..5543d85 100644
--- a/src/pages/storeManage/jobList/components/Edit.vue
+++ b/src/pages/storeManage/jobList/components/Edit.vue
@@ -87,7 +87,7 @@ export default {
this.dialogFormVisible = false;
this.$message.success({ message: this.title + "成功" });
this.$emit("editData");
- this.close();
+ this.handleClose();
} else {
this.$alert(res.message, "提示", {
confirmButtonText: "确定",
diff --git a/src/pages/storeManage/role/components/meun.vue b/src/pages/storeManage/role/components/meun.vue
index 9b4057f..9eb141d 100644
--- a/src/pages/storeManage/role/components/meun.vue
+++ b/src/pages/storeManage/role/components/meun.vue
@@ -141,20 +141,27 @@ export default {
idlists = idlists.concat(
item.getCheckedKeys().concat(item.getHalfCheckedKeys())
);
+ // console.log(idlists)
});
//取前三位 然后去重
var newarr = [];
+
for (let i in idlists) {
if (idlists[i] < 9000) {
newarr[i] = idlists[i];
} else {
+
+ //父ID非数据库重新获取,直接从子ID前面直接截取前4位,如果添加新权限数据,要遵守上级ID在前面进行拼接原则
newarr[i] = Number.parseInt(("" + idlists[i]).substring(0, 3));
}
}
+
idlists = idlists.concat([...new Set(newarr)]);
+
if (idlists.length == 0) {
idlists[0] = 100;
}
+
let list = [];
idlists.forEach((item) => {
let items = { roleId: this.form.id, powerId: item };
diff --git a/src/router/index.js b/src/router/index.js
index 142a252..754e84f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -620,7 +620,7 @@ const router = new VueRouter({
component: () =>
import("../pages/statistics/memberRanking/memberRanking.vue"),
meta: {
- title: "会员排行榜",
+ title: "员工业绩提成表",
index: "memberRanking"
}
},
@@ -784,7 +784,7 @@ const router = new VueRouter({
path: "/transferstore",
component: () => import("../pages/storeManage/transferStore/index"), //会员转门店
meta: {
- title: "会员转门店",
+ title: "疗程转门店",
index: "transferstore"
}
},
diff --git a/src/style/ele.css b/src/style/ele.css
index ea44f79..46d7b71 100644
--- a/src/style/ele.css
+++ b/src/style/ele.css
@@ -1,6 +1,6 @@
.print-table {
font-size: 14px !important;
- height:30px;
+ height: 30px;
}
.el-table {
@@ -12,9 +12,6 @@
width: 100%;
}
-
-
-
.el-table--border th.gutter:last-of-type {
display: block !important;
width: 17px !important;
@@ -36,7 +33,7 @@
}
.line-height {
- line-height: 100%
+ line-height: 100%;
}
.border-top {
@@ -137,13 +134,11 @@
.form-width-xxl {
width: 530px !important;
cursor: pointer;
-
}
.form-width-xxxl {
width: 860px !important;
cursor: pointer;
-
}
.pointer {
@@ -265,6 +260,16 @@
border-radius: 25px;
}
+/* ==================
+ 宽度
+ ==================== */
+.width-m {
+ width: 150px;
+}
+.width-ms {
+ width: 200px;
+}
+
/* el-table */
.el-table .el-table__row .el-date-editor {
width: 100%;
@@ -284,7 +289,7 @@
background: #74bafc;
}
-.el-form .normal .el-radio__input.is-checked+.el-radio__label {
+.el-form .normal .el-radio__input.is-checked + .el-radio__label {
color: #74bafc;
}
@@ -293,7 +298,7 @@
background: #f56c6c;
}
-.el-form .blockUp .el-radio__input.is-checked+.el-radio__label {
+.el-form .blockUp .el-radio__input.is-checked + .el-radio__label {
color: #f56c6c;
}
@@ -347,7 +352,7 @@ input::-webkit-inner-spin-button {
color: #fff !important;
font-size: 20px !important;
font-weight: 700 !important;
- font-family: '幼圆';
+ font-family: "幼圆";
background-color: #389efd;
}
@@ -372,8 +377,6 @@ input::-webkit-inner-spin-button {
height: 70px;
}
-
-
.my-pro-bottom {
height: 50px;
width: 100px;
@@ -388,7 +391,6 @@ input::-webkit-inner-spin-button {
/*伸缩盒子的子元素排列:从上到下*/
}
-
.expand-card:hover {
padding-top: 1px;
z-index: 9;
@@ -418,7 +420,6 @@ input::-webkit-inner-spin-button {
.el-table--border th.gutter:last-of-type {
/* border-bottom: 1px solid rgb(185, 185, 185) !important; */
/* 横线颜色 */
-
}
.el-table--border td,
@@ -457,7 +458,6 @@ input::-webkit-inner-spin-button {
padding: 0 8px;
}
-
/* 滑动条 */
::-webkit-scrollbar {
width: 8px;
@@ -475,7 +475,6 @@ input::-webkit-inner-spin-button {
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: #ededed;
border-radius: 5px;
-
}
.el-form-item__error {
diff --git a/src/style/main.css b/src/style/main.css
index 02c9837..bd08da3 100644
--- a/src/style/main.css
+++ b/src/style/main.css
@@ -11,8 +11,6 @@
初始化
==================== */
-
-
body {
background-color: #f1f1f1;
color: #333333;
@@ -39,22 +37,16 @@ image {
border-radius: 6px;
}
-
-
-
-
/* ==================
开关
==================== */
-
/* ==================
边框
==================== */
/* -- 实线 -- */
-
.solid::after,
.solid-top::after,
.solid-right::after,
@@ -123,10 +115,9 @@ image {
border-left: 8px solid #eee;
}
-
/* -- 阴影 -- */
-.shadow[class*='white'] {
+.shadow[class*="white"] {
--ShadowSize: 0 1px 6px;
}
@@ -299,22 +290,18 @@ button.cuIcon.lg {
徽章
==================== */
-
/* ==================
头像
==================== */
-
/* ==================
列表
==================== */
-
/* ==================
操作条
==================== */
-
/* ==================
表单
==================== */
@@ -328,7 +315,7 @@ button.cuIcon.lg {
justify-content: space-between;
}
-.cu-form-group+.cu-form-group {
+.cu-form-group + .cu-form-group {
border-top: 1px solid #eee;
}
@@ -348,7 +335,7 @@ button.cuIcon.lg {
padding-right: 20px;
}
-.cu-form-group>text[class*="cuIcon-"] {
+.cu-form-group > text[class*="cuIcon-"] {
font-size: 36px;
padding: 0;
box-sizing: border-box;
@@ -1285,6 +1272,9 @@ button.cuIcon.lg {
文本
==================== */
+.text-s {
+ font-size: 16px;
+}
.text-xs {
font-size: 20px;
}