From 64d76b2f19ca52f92b97c1bbe53bdbe0612d9b52 Mon Sep 17 00:00:00 2001 From: Wangxubin1999 Date: Tue, 11 Oct 2022 17:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=BB=B7=E8=BD=AC=E7=96=97=E7=A8=8B?= =?UTF-8?q?=EF=BC=8C=E7=96=97=E7=A8=8B=E8=BD=AC=E5=85=85=E5=80=BC=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=BD=AC=E5=87=BA=E4=BA=BA=E5=91=98=E6=8F=90=E6=88=90?= =?UTF-8?q?=E5=8D=A0=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/staffList/staffout/index.vue | 296 ++++++++++ .../staffout/员工转出占比选值 | 0 .../eashier/coursetorec/components/detail.vue | 29 +- .../eashier/coursetorec/components/index.vue | 524 ++++++++++++++---- .../coursetorec/components/staffratio.vue | 303 ++++++++++ .../raiseReatment/components/detail.vue | 30 +- 6 files changed, 1067 insertions(+), 115 deletions(-) create mode 100644 src/components/staffList/staffout/index.vue create mode 100644 src/components/staffList/staffout/员工转出占比选值 create mode 100644 src/pages/eashier/coursetorec/components/staffratio.vue diff --git a/src/components/staffList/staffout/index.vue b/src/components/staffList/staffout/index.vue new file mode 100644 index 0000000..9f697ef --- /dev/null +++ b/src/components/staffList/staffout/index.vue @@ -0,0 +1,296 @@ + + + + + diff --git a/src/components/staffList/staffout/员工转出占比选值 b/src/components/staffList/staffout/员工转出占比选值 new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/eashier/coursetorec/components/detail.vue b/src/pages/eashier/coursetorec/components/detail.vue index 5cd2990..b2b29d0 100644 --- a/src/pages/eashier/coursetorec/components/detail.vue +++ b/src/pages/eashier/coursetorec/components/detail.vue @@ -19,8 +19,8 @@ - - + + @@ -28,6 +28,10 @@ + 员工 +
+ +
@@ -44,7 +48,7 @@
员工 -
+
@@ -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 }}
- - - - - - - -