From 3d0c98be8015a58e9da60abe5884ba965ffb4438 Mon Sep 17 00:00:00 2001 From: shiyj1101 <1098226878@qq.com> Date: Fri, 2 Jul 2021 16:35:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editHousekeepingServ.html | 8 +++--- .../common/editProduct/editProduct.html | 4 +-- .../common/editProduct/editProduct.js | 2 +- .../storeOrderCartManage.html | 27 ++++++++++--------- .../storeOrderCartManage.js | 26 +++++++++++++++++- 5 files changed, 46 insertions(+), 21 deletions(-) diff --git a/public/components/common/editHousekeepingServ/editHousekeepingServ.html b/public/components/common/editHousekeepingServ/editHousekeepingServ.html index 1cc475398..a54852d55 100644 --- a/public/components/common/editHousekeepingServ/editHousekeepingServ.html +++ b/public/components/common/editHousekeepingServ/editHousekeepingServ.html @@ -28,7 +28,7 @@
- @@ -48,7 +48,7 @@
- @@ -56,7 +56,7 @@
- @@ -67,7 +67,7 @@
- diff --git a/public/components/common/editProduct/editProduct.html b/public/components/common/editProduct/editProduct.html index e3c830479..55abc793b 100644 --- a/public/components/common/editProduct/editProduct.html +++ b/public/components/common/editProduct/editProduct.html @@ -17,7 +17,7 @@
- @@ -167,7 +167,7 @@
- diff --git a/public/components/common/editProduct/editProduct.js b/public/components/common/editProduct/editProduct.js index 83ebc7106..ca10cef44 100644 --- a/public/components/common/editProduct/editProduct.js +++ b/public/components/common/editProduct/editProduct.js @@ -137,7 +137,7 @@ } }; //发送get请求 - vc.http.apiGet('/productCategory/queryProductCategory', + vc.http.apiGet('/productCategory/queryAdminProductCategory', param, function (json, res) { let _productCategoryManageInfo = JSON.parse(json); diff --git a/public/pages/admin/storeOrderCartManage/storeOrderCartManage.html b/public/pages/admin/storeOrderCartManage/storeOrderCartManage.html index 5a63f21f8..b212e63cf 100755 --- a/public/pages/admin/storeOrderCartManage/storeOrderCartManage.html +++ b/public/pages/admin/storeOrderCartManage/storeOrderCartManage.html @@ -35,6 +35,17 @@ v-model="storeOrderCartManageInfo.conditions.prodName" class=" form-control">
+
+
+ +
+
+
- -
- @@ -107,7 +108,7 @@
- diff --git a/public/pages/admin/storeOrderCartManage/storeOrderCartManage.js b/public/pages/admin/storeOrderCartManage/storeOrderCartManage.js index 7ca42d806..77f755584 100755 --- a/public/pages/admin/storeOrderCartManage/storeOrderCartManage.js +++ b/public/pages/admin/storeOrderCartManage/storeOrderCartManage.js @@ -9,9 +9,11 @@ total: 0, records: 1, orderDetail: false, + shops:[], conditions: { cartId: '', state: '', + shopId: '', prodName: '' }, address: { @@ -24,6 +26,7 @@ }, _initMethod: function () { vc.component._listOrders(DEFAULT_PAGE, DEFAULT_ROWS); + vc.component._listOrderShops(DEFAULT_PAGE, DEFAULT_ROWS); }, _initEvent: function () { vc.on('storeOrderCartManage', 'goBack', function (_param) { @@ -44,7 +47,7 @@ params: vc.component.storeOrderCartManageInfo.conditions }; //发送get请求 - vc.http.apiGet('/storeOrder/queryStoreOrderCart', + vc.http.apiGet('/storeOrder/queryAdminStoreOrderCart', param, function (json, res) { var _storeOrderCartManageInfo = JSON.parse(json); @@ -74,6 +77,27 @@ } ); }, + _listOrderShops:function(_page, _rows){ + var param = { + params: { + page: _page, + row: _rows, + } + }; + + //发送get请求 + vc.http.apiGet('/shop/queryShopsByAdmin', + param, + function(json,res){ + var _shopManageInfo=JSON.parse(json); + vc.component.storeOrderCartManageInfo.total = _shopManageInfo.total; + vc.component.storeOrderCartManageInfo.records = _shopManageInfo.records; + vc.component.storeOrderCartManageInfo.shops = _shopManageInfo.data; + },function(errInfo,error){ + console.log('请求失败处理'); + } + ); + }, _queryOrdersMethod: function () { vc.component._listOrders(DEFAULT_PAGE, DEFAULT_ROWS); },