From c44864c67cf979e032a1e47ce9710dcd18127d58 Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Thu, 25 Nov 2021 17:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=AE=A2=E5=8D=95=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/order_main/index.html | 55 ++++++++++++++++++------- application/admin/view/payment_order/index.html | 22 +++++++++- 2 files changed, 59 insertions(+), 18 deletions(-) diff --git a/application/admin/view/order_main/index.html b/application/admin/view/order_main/index.html index 51db32c..9030651 100755 --- a/application/admin/view/order_main/index.html +++ b/application/admin/view/order_main/index.html @@ -154,21 +154,13 @@
- - - - - - - - - @@ -314,7 +319,8 @@ {"id": 0, 'value': "未付款"}, {"id": 1, 'value': "付款中"}, {"id": 2, 'value': "已付款"} - ] + ], + type_list:[], } }, created() { @@ -325,8 +331,9 @@ }); this.getAdminUser(); this.getChannelList(); - this.getProvince(); - this.getData(1) + this.getProvince(); + this.getConfig() + this.getData(1) }, watch: { "search.province" : function (newVal,oldVal){ @@ -376,6 +383,22 @@ }, }, methods: { + getTypeName(info) { + for (let i = 0; i < this.type_list.length; i++) { + if (this.type_list[i].id == info.item_type) { + return this.type_list[i].name + } + } + return "" + }, + getConfig(){ + axios.post("/hotel.php/general/config/getList?key=site.item_category", {}).then((response) => { + let data = response.data; + this.type_list = data.list; + }).catch(function (error) { + console.log(error); + }); + }, paymentOrderStatus(info){ if (info.payment_order_id ==0) { return "-" diff --git a/application/admin/view/payment_order/index.html b/application/admin/view/payment_order/index.html index 50bb4fa..74c3ce3 100755 --- a/application/admin/view/payment_order/index.html +++ b/application/admin/view/payment_order/index.html @@ -221,7 +221,7 @@ - + @@ -349,7 +349,8 @@ supplierList:[], multipleSelection: [], hotelList:[], - itemList:[] + itemList:[], + type_list:[], } }, created() { @@ -357,6 +358,7 @@ this.getSupplierList(); this.getData(1) this.getHotelList() + this.getConfig() this.getItemList() }, @@ -366,6 +368,22 @@ } }, methods: { + getTypeName(info) { + for (let i = 0; i < this.type_list.length; i++) { + if (this.type_list[i].id == info.hotel_name) { + return this.type_list[i].name + } + } + return info.hotel_name + }, + getConfig(){ + axios.post("/hotel.php/general/config/getList?key=site.item_category", {}).then((response) => { + let data = response.data; + this.type_list = data.list; + }).catch(function (error) { + console.log(error); + }); + }, getProdTypeName(info){ for (let i = 0; i < this.prodTypeList.length; i++) { if (this.prodTypeList[i].id == info.prod_type) {