+
@@ -67,9 +71,11 @@ import {
cardChangeOutPro,
} from "@/api/eashier.js";
import staffsles from "@/components/staffList/staff/index";
+import staffslesout from "@/components/staffList/staffout/index";
export default {
components: {
staffsles,
+ staffslesout
},
data() {
return {
@@ -99,6 +105,13 @@ export default {
that.$refs.staffsles.show(that.form.staffLists);
});
},
+ setStaffs() {
+ var that = this;
+ this.$nextTick(() => {
+ console.log(that.form.staffListsout);
+ that.$refs.staffslesout.show(that.form.staffListsout);
+ });
+ },
//员工占比返回方法
staffslesData(v) {
this.form.staffLists = [...v];
@@ -130,7 +143,7 @@ export default {
this.form = {
...item,
};
- this.outList = this.form.coursePayLists;
+ this.outList = this.form.coursePayListRequests;
this.inList = [
{
rechargeTypeId: item.rechargeTypeId,
@@ -141,6 +154,8 @@ export default {
rechargeAfterMoney: item.rechargeAfterMoney,
rechargeAccountId: item.rechargeAccountId,
typeRatio: item.typeRatio,
+ cardConsumeMoney:item.cardConsumeMoney,
+ discount:item.discount
},
];
this.form.staffLists = this.form.entities;
@@ -153,10 +168,16 @@ export default {
this.form.staffLists.forEach((items) => {
items.staffNames = items.brandNumber + "--" + items.staffName;
});
+ this.form.staffListsout = this.form.coursePayListRequests[0].staffLists;
+ this.form.staffListsout.forEach((items) => {
+ items.staffNames = items.brandNumber + "--" + items.staffName;
+ });
+
if (this.form.staffLists.length == 0) {
this.form.staffLists.push({ ratio: 100 });
}
this.setStaff();
+ this.setStaffs();
},
subStaffRatio() {
editRechargeTurnCourse(this.form).then((res) => {
diff --git a/src/pages/eashier/coursetorec/components/index.vue b/src/pages/eashier/coursetorec/components/index.vue
index 9c2c058..0df5845 100644
--- a/src/pages/eashier/coursetorec/components/index.vue
+++ b/src/pages/eashier/coursetorec/components/index.vue
@@ -4,95 +4,343 @@
-
-
+
+
-
-
+
+
- {{proForm.memberName}}
+ {{ proForm.memberName }}
-
+
- {{proForm.additionDate }}
-
+ {{ proForm.additionDate }}
+
+
-
转出疗程
添加
+
+ 转出疗程
+ 添加
- 总金额 : {{outMoneys}}
+ 总金额 : {{ outMoneys }}
-
-
-
-
-
-
-
-
-
转入疗程
@@ -58,7 +62,7 @@
员工/门店管理层/高管业绩
-
+
@@ -85,11 +89,13 @@ import {
import admin from "@/components/staffList/admin/index";
import manager from "@/components/staffList/manager/index";
import staffsles from "@/components/staffList/staff/index";
+import staffslesout from "@/components/staffList/staffout/index";
export default {
components: {
staffsles,
manager,
admin,
+ staffslesout
},
data() {
return {
@@ -124,10 +130,20 @@ export default {
that.$refs.manager.show(that.form.managerList);
});
},
+ setStaffs() {
+ var that = this;
+ this.$nextTick(() => {
+ console.log(that.form.staffListsout);
+ that.$refs.staffslesout.show(that.form.staffListsout);
+ });
+ },
//员工占比返回方法
staffslesData(v) {
this.form.staffLists = [...v];
},
+ staffslesDataout(v) {
+ this.form.staffListsout = [...v];
+ },
//高管占比返回方法
managerData(v) {
this.form.managerList = [...v];
@@ -202,6 +218,7 @@ export default {
this.form.managerList = managerList;
this.form.adminList = adminList;
this.setStaff();
+
} else {
this.$alert(res.message, "加载门店高管", {
confirmButtonText: "确定",
@@ -228,7 +245,18 @@ export default {
}).then((res) => {
if (res.code == "000000") {
this.outList = res.rows;
+ res.rows[0].entities.forEach((item) => {
+ item.id = item.saleStaffId;
+ item.staffName = item.saleStaffName;
+ item.ratio = item.saleRatio;
+ item.identityCard = item.saleIdentityCard;
+ });
+ this.form.staffListsout = res.rows[0].entities;
+ this.form.staffListsout.forEach((items) => {
+ items.staffNames = items.brandNumber + "--" + items.staffName;
+ });
console.log(this.form);
+ this.setStaffs();
} else {
this.$alert("加载转出列表 : " + res.message, "提示", {
confirmButtonText: "确定",