From 17be547c16ad063474b3300a8d2089418b15f2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=81=E4=B8=83?= <2390744110@qq.com> Date: Tue, 21 Jun 2022 15:08:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/staff/index.vue | 264 +- src/components/staffList/admin/index.vue | 358 +- src/components/staffList/manager/index.vue | 334 +- src/components/staffList/staff/index.vue | 360 +- src/home/components/bottom_left.vue | 345 +- src/home/components/bottom_right.vue | 142 +- src/home/home.vue | 71 +- src/layout/components/Emain.vue | 48 +- .../eashier/collectionList/collectionList.vue | 6 + .../eashier/proceeds/components/edit.vue | 45 +- .../eashier/proceeds/components/payment.vue | 184 +- .../eashier/proceeds/detail/editform.vue | 1202 +++--- src/pages/eashier/reatment/reatment.vue | 76 +- .../eashier/refundCourse/refundCourse.vue | 3244 ++++++++--------- src/pages/eashier/repayment/repayment.vue | 1352 +++---- .../storeManage/baseStaff/components/edit.vue | 30 +- .../baseStaff/components/onJob.vue | 2 +- .../baseStaff/components/tostore/edit.vue | 466 +-- .../storeManage/staffVipSum/staffVipSum.vue | 562 +-- src/router/index.js | 9 +- src/style/ele.css | 6 +- 21 files changed, 4543 insertions(+), 4563 deletions(-) diff --git a/src/components/staff/index.vue b/src/components/staff/index.vue index 779928d..cdeb447 100644 --- a/src/components/staff/index.vue +++ b/src/components/staff/index.vue @@ -1,140 +1,124 @@ - - - - - + + + + + diff --git a/src/components/staffList/admin/index.vue b/src/components/staffList/admin/index.vue index 2d16af3..43fd348 100644 --- a/src/components/staffList/admin/index.vue +++ b/src/components/staffList/admin/index.vue @@ -1,178 +1,180 @@ - - - - + + + + diff --git a/src/components/staffList/manager/index.vue b/src/components/staffList/manager/index.vue index 9220cc1..249d12e 100644 --- a/src/components/staffList/manager/index.vue +++ b/src/components/staffList/manager/index.vue @@ -1,167 +1,167 @@ - - - - + + + + diff --git a/src/components/staffList/staff/index.vue b/src/components/staffList/staff/index.vue index 17d16ff..c2a890e 100644 --- a/src/components/staffList/staff/index.vue +++ b/src/components/staffList/staff/index.vue @@ -1,180 +1,180 @@ - - - - - + + + + + diff --git a/src/home/components/bottom_left.vue b/src/home/components/bottom_left.vue index 0f29c54..efc39a2 100644 --- a/src/home/components/bottom_left.vue +++ b/src/home/components/bottom_left.vue @@ -1,171 +1,174 @@ - - - - + + + + diff --git a/src/home/components/bottom_right.vue b/src/home/components/bottom_right.vue index 849ed19..6fafaf1 100644 --- a/src/home/components/bottom_right.vue +++ b/src/home/components/bottom_right.vue @@ -1,71 +1,71 @@ - - - - + + + + diff --git a/src/home/home.vue b/src/home/home.vue index 9d13cf4..b53ac72 100644 --- a/src/home/home.vue +++ b/src/home/home.vue @@ -1,20 +1,32 @@ - + - - + + @@ -260,7 +260,7 @@
不允许卡付
- + @@ -288,7 +288,7 @@ -
+
现付金额: @@ -1513,7 +1513,7 @@ export default { goBack() { this.$router.push({ query: {} }); - this.$router.push({ path: "/service" }); + this.$router.push({ path: "/shareBill" }); this.notData(); }, getRecCard() { @@ -1750,29 +1750,32 @@ export default { this.setPage(); }, setPage() { - let list = JSON.parse(this.$route.query.list); - if (list.length != 0 || list === 0) { - if (list == 0 || list == 1) { - this.newOrder = true; - this.orderNumber = list; - this.isAddition = list; - this.additionDate = this.formatTime(new Date(), "YYYY-MM-DD"); + if (this.$route.query.list) { + let list = JSON.parse(this.$route.query.list); + if (list.length != 0 || list === 0) { + if (list == 0 || list == 1) { + this.newOrder = true; + this.orderNumber = list; + this.isAddition = list; + this.additionDate = this.formatTime(new Date(), "YYYY-MM-DD"); + } else { + this.list = [...list]; + this.dialogFormVisible = true; + console.log(this.list); + this.getData(); + this.newOrder = false; + } } else { - this.list = [...list]; - this.dialogFormVisible = true; - console.log(this.list); - this.getData(); - this.newOrder = false; + this.goBack(); } - } else { - this.goBack(); } this.getDetail(); }, }, - created() { + activated() { this.setPage(); }, + created() {}, }; diff --git a/src/pages/eashier/proceeds/components/payment.vue b/src/pages/eashier/proceeds/components/payment.vue index 0c33433..4d11ac2 100644 --- a/src/pages/eashier/proceeds/components/payment.vue +++ b/src/pages/eashier/proceeds/components/payment.vue @@ -1,92 +1,92 @@ - - - - + + + + diff --git a/src/pages/eashier/proceeds/detail/editform.vue b/src/pages/eashier/proceeds/detail/editform.vue index ef49e43..a1426f6 100644 --- a/src/pages/eashier/proceeds/detail/editform.vue +++ b/src/pages/eashier/proceeds/detail/editform.vue @@ -1,601 +1,601 @@ - - - - + + + + diff --git a/src/pages/eashier/reatment/reatment.vue b/src/pages/eashier/reatment/reatment.vue index 3e58021..975b3c8 100644 --- a/src/pages/eashier/reatment/reatment.vue +++ b/src/pages/eashier/reatment/reatment.vue @@ -1196,33 +1196,35 @@ export default { } }, empty() { - this.form = { - mobilePhone: null, - integralCheckbox: false, - description: "", - salesPrice: "", - numberTimes: "", - menberShow: false, - courseReatmentAmount: 0, - isDebt: false, - collectionRechargeAmount: 0, - collectionCashAmount: 0, - collectionIntegralAmount: 0, - integral: 0, - integralMoney: 0, - consumeIntegral: 0, - debtMoney: 0, - }; - this.debtMoneys = 0; - this.staffLists = [{ brandNumber: "", staffName: "", ratio: 100 }]; - this.rechargeAccountList = []; - this.rechargeAccountLis = []; - this.payLists = []; - this.managerLists = [{ ratio: 100 }]; - this.adminList = [{ ratio: 100 }]; - this.activeName = "现付"; - this.ctlist(); - this.setStaffRatio(); + // this.form = { + // mobilePhone: null, + // integralCheckbox: false, + // description: "", + // salesPrice: "", + // numberTimes: "", + // menberShow: false, + // courseReatmentAmount: 0, + // isDebt: false, + // collectionRechargeAmount: 0, + // collectionCashAmount: 0, + // collectionIntegralAmount: 0, + // integral: 0, + // integralMoney: 0, + // consumeIntegral: 0, + // debtMoney: 0, + // }; + // this.debtMoneys = 0; + // this.staffLists = [{ brandNumber: "", staffName: "", ratio: 100 }]; + // this.rechargeAccountList = []; + // this.rechargeAccountLis = []; + // this.payLists = []; + // this.managerLists = [{ ratio: 100 }]; + // this.adminList = [{ ratio: 100 }]; + // this.activeName = "现付"; + // this.ctlist(); + // this.setStaffRatio(); + Object.assign(this.$data, this.$options.data.call(this)); + this.setPage(); }, //保存确定方法 @@ -1339,9 +1341,16 @@ export default { that.addCourse(); that.loading = false; } + setTimeout(() => { + this.loading = false; + }, 3000); }, addCourse() { + setTimeout(() => { + this.loading = false; + }, 3000); addcourse(this.form).then((res) => { + this.loading = false; if (res.code == "000000") { this.empty(); this.$message.success({ @@ -1693,13 +1702,16 @@ export default { }); return sums; }, + setPage() { + this.ctlist(); + this.setStaffRatio(); + this.sessionStorageData = JSON.parse( + sessionStorage.getItem("sessionStorageData") + ); + }, }, created() { - this.ctlist(); - this.setStaffRatio(); - this.sessionStorageData = JSON.parse( - sessionStorage.getItem("sessionStorageData") - ); + this.setPage(); }, }; diff --git a/src/pages/eashier/refundCourse/refundCourse.vue b/src/pages/eashier/refundCourse/refundCourse.vue index 1664763..3c9b80d 100644 --- a/src/pages/eashier/refundCourse/refundCourse.vue +++ b/src/pages/eashier/refundCourse/refundCourse.vue @@ -1,1657 +1,1587 @@ - - - - - + + + + + diff --git a/src/pages/eashier/repayment/repayment.vue b/src/pages/eashier/repayment/repayment.vue index 8e1e60a..bf66529 100644 --- a/src/pages/eashier/repayment/repayment.vue +++ b/src/pages/eashier/repayment/repayment.vue @@ -1,672 +1,680 @@ - - - - + + + + diff --git a/src/pages/storeManage/baseStaff/components/edit.vue b/src/pages/storeManage/baseStaff/components/edit.vue index 96018f5..555989f 100644 --- a/src/pages/storeManage/baseStaff/components/edit.vue +++ b/src/pages/storeManage/baseStaff/components/edit.vue @@ -64,7 +64,10 @@ - + + + + @@ -146,6 +149,7 @@ import { rolepage, editStaff, pageBasePost, + pageBaseWorkType, } from "@/api/storeManage.js"; export default { data() { @@ -162,6 +166,7 @@ export default { { value: 1, label: "美容部" }, { value: 2, label: "其他部" }, ], + jobList: [], rule: {}, rules: { staffName: { @@ -367,6 +372,13 @@ export default { }); this.gradeList = res.pageInfo.list; }); + pageBaseWorkType({}).then((res) => { + res.data.forEach((item) => { + item.value = item.wordTypeNum; + item.label = item.wordTypeName; + }); + this.jobList = res.data; + }); }, //选择角色改变时的方法 changeRole(v) { @@ -405,12 +417,16 @@ export default { } }, //工种改变方法 - jobchange(row) { - if (row) { - row.forEach((item) => { - this.form.job = item; - }); - } + jobchange(e) { + console.log(e); + this.jobList.forEach((item) => { + if (item.id == e) { + this.form.wordTypeNum = item.wordTypeNum; + this.form.wordTypeName = item.wordTypeName; + this.form.wordTypeId = item.id; + console.log(this.form); + } + }); }, //确定返回方法 confirm() { diff --git a/src/pages/storeManage/baseStaff/components/onJob.vue b/src/pages/storeManage/baseStaff/components/onJob.vue index 4a586b3..f7e557f 100644 --- a/src/pages/storeManage/baseStaff/components/onJob.vue +++ b/src/pages/storeManage/baseStaff/components/onJob.vue @@ -18,7 +18,7 @@ - + diff --git a/src/pages/storeManage/baseStaff/components/tostore/edit.vue b/src/pages/storeManage/baseStaff/components/tostore/edit.vue index ab60d50..c086283 100644 --- a/src/pages/storeManage/baseStaff/components/tostore/edit.vue +++ b/src/pages/storeManage/baseStaff/components/tostore/edit.vue @@ -1,233 +1,233 @@ - - - - - + + + + + diff --git a/src/pages/storeManage/staffVipSum/staffVipSum.vue b/src/pages/storeManage/staffVipSum/staffVipSum.vue index 650959f..5ba34fa 100644 --- a/src/pages/storeManage/staffVipSum/staffVipSum.vue +++ b/src/pages/storeManage/staffVipSum/staffVipSum.vue @@ -1,281 +1,281 @@ - - - + + + diff --git a/src/router/index.js b/src/router/index.js index 535f6f8..f4bc1d4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -257,8 +257,7 @@ const router = new VueRouter({ import("../pages/eashier/proceeds/components/edit.vue"), meta: { title: "服务单-收银", - index: "proceeds-edit", - keepAlive: true + index: "proceeds-edit" } }, //充值 shareBill @@ -268,8 +267,7 @@ const router = new VueRouter({ import("../pages/eashier/collectionList/collectionList.vue"), meta: { title: "充值", - index: "collectionList", - keepAlive: true + index: "collectionList" } }, //疗程 reatment @@ -278,8 +276,7 @@ const router = new VueRouter({ component: () => import("../pages/eashier/reatment/reatment.vue"), meta: { title: "疗程", - index: "reatment", - keepAlive: true + index: "reatment" } }, //加价转疗程 raiseReatment diff --git a/src/style/ele.css b/src/style/ele.css index c218ca2..00d207e 100644 --- a/src/style/ele.css +++ b/src/style/ele.css @@ -12,9 +12,9 @@ } .into-table-width { - width: -webkit-calc(100% - 360px); - width: -moz-calc(100% - 360px); - width: calc(100% - 360px); + width: -webkit-calc(100% - 450px); + width: -moz-calc(100% - 450px); + width: calc(100% - 450px); } .text-out {