From 27e13f4ffab7690d556ec5b2caee4567c18767cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 14 Nov 2022 16:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E7=9A=84=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/order/index.vue | 69 ++++++++++++++++---------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index f3c4723..934d852 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -194,10 +194,10 @@ /> - + + + @@ -262,12 +264,12 @@ style="width: 190px" /> - + @@ -516,12 +518,11 @@ import { appointmentOrderDetails, } from "@/api/system/order"; import { getListByUser } from "@/api/system/userlist.js"; -import { weChatRefundOrderApply } from "@/api/system/goodsOrder"; export default { name: "order", data() { return { - orderStatuslist: [ + orderStatuslist: [ { value: "WAIT_PAY", label: "待付款", @@ -534,16 +535,6 @@ export default { value: "CANCEL", label: "已取消", }, - - // { - // value: "WAIT_RECEIVED_GOODS", - // label: "待收货", - // }, - - // { - // value: "RECEIVED_GOODS", - // label: "已收货", - // }, { value: "WAIT_DISPATCH", label: "待派单", @@ -569,7 +560,7 @@ export default { value: "RETURNED_GOODS", label: "已退货", }, - { + { value: "NOT_FINISH", label: "未完成", }, @@ -628,7 +619,6 @@ export default { departmentName: null, pageNum: 1, pageSize: 10, - }, query: [], // 表单参数 @@ -639,7 +629,7 @@ export default { }, created() { this.getList(); - this.info() + this.info(); }, methods: { //取消预约确定按钮 @@ -654,14 +644,13 @@ export default { this.$modal.msgSuccess("退款有延迟,请耐心等待"); } this.getList(); - this.innerrefund=false + this.innerrefund = false; console.log(res); }); - }, // 取消按钮 - cencelbtn(){ - this.innerrefund = false; + cencelbtn() { + this.innerrefund = false; }, switchOrderStatus(orderStatus) { switch (orderStatus) { @@ -673,6 +662,18 @@ export default { return "未完成"; case "COMPLETE": return "服务完成"; + case "PAY": + return "已付款"; + case "WAIT_REFUND": + return "退款中"; + case "CANCEL": + return "已取消"; + case "REFUNDED": + return "退款成功"; + case "WAIT_RETURNED_GOODS": + return "待退货"; + case "RETURNED_GOODS": + return "已退货"; default: break; } @@ -779,20 +780,20 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - if (this.nurseStationlist[0].isAdmin == '1') { + if (this.nurseStationlist[0].isAdmin == "1") { this.resetForm("queryForm"); this.queryParams = { pageNum: 1, - pageSize: 10 - } + pageSize: 10, + }; } else { this.queryParams.pageNum = 1; - this.queryParams.pageSize = 10 + this.queryParams.pageSize = 10; } this.handleQuery(); }, - //权限列表 - info() { + //权限列表 + info() { getListByUser(this.queryParams).then((res) => { if (res.rows[0].isAdmin == "1") { this.nurseStationlist = res.rows;