From e9e90596a8e47b8781accb35a3ca7d67e3901bbb Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Thu, 8 Feb 2024 14:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/StoreManagerCenter.js | 16 +++ api/newFun.js | 19 ++- pages/news/goods/batchdel.vue | 89 ++++++++++-- pages/news/goods/del.vue | 146 +++++++++++++++++--- pages/news/goods/list.vue | 25 ++-- pages/news3/sendOutGoods.vue | 37 +++-- pages/news3/shopOrder.vue | 251 +++++++++++++++++++--------------- pages/user/index.vue | 18 ++- 8 files changed, 424 insertions(+), 177 deletions(-) create mode 100644 api/StoreManagerCenter.js diff --git a/api/StoreManagerCenter.js b/api/StoreManagerCenter.js new file mode 100644 index 0000000..b158c00 --- /dev/null +++ b/api/StoreManagerCenter.js @@ -0,0 +1,16 @@ +import request from '@/utils/request' + +// api地址 +const api = { + storeGoodsList:'storeKeeper/list', + delGoods:'storeKeeper/delete' +} + +// 店主--商品列表 +export function storeGoodsList(param) { + return request.get(api.storeGoodsList, { ...param }) +} +//店主--删除/批量删除 +export function delGoods(param) { + return request.post(api.delGoods, { ...param }) +} diff --git a/api/newFun.js b/api/newFun.js index deb258c..5a1afb8 100644 --- a/api/newFun.js +++ b/api/newFun.js @@ -131,4 +131,21 @@ export const storeKeeperList = (param) => { // 门店详情 export const storeKeeperDetail = (shopId) => { return request.get('shop/detail', { shopId }) -} +} + +// 店长 删除/批量删除 +export const delGoods = (param) => { + return request.post('storeKeeper/delete', param) +} +//店长 商品订单 +export const shopOrderList = (param) => { + return request.get('storeKeeper/orderList', param) +} +//店长--发货 +export const sendGoods = (param) => { + return request.post('storeKeeper/delivery', param) +} +//店长==物流列表 +export const wuliuList = (param) => { + return request.post('storeKeeper/expressAll', param) +} \ No newline at end of file diff --git a/pages/news/goods/batchdel.vue b/pages/news/goods/batchdel.vue index 6380c35..f204f48 100644 --- a/pages/news/goods/batchdel.vue +++ b/pages/news/goods/batchdel.vue @@ -2,47 +2,56 @@ - - + + - + - + - 荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB + {{i.goods_name}} - 16GB,128GB + {{i.selling_point}} - 1120 - 库存20 + {{i.goods_price_max}} + 库存{{i.stock_total}} - 商品状态:上架中 - 删除 + 商品状态:{{i.status==10?'上架':i.status==20?'下架':'未知'}} + 删除 批量删除 - + + + - diff --git a/pages/news/goods/del.vue b/pages/news/goods/del.vue index fbe4ae5..8cf9c42 100644 --- a/pages/news/goods/del.vue +++ b/pages/news/goods/del.vue @@ -2,60 +2,162 @@ - - + + - + - - + + - + - 荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB + {{i.goods_name}} - 16GB,128GB + {{i.selling_point}} - 1120 - 库存20 + {{i.goods_price_max}} + 库存{{i.stock_total}} - 商品状态:上架中 + 商品状态:{{i.status==10?'上架':i.status==20?'下架':'未知'}} - - + + 全选 - 0件商品 - 删除 - + {{checkedList.length}}件商品 + 删除 + + + - @@ -94,10 +196,10 @@ color: #ED2B00; padding: 0 10rpx; } - font-size: 28rpx; + font-size: 26rpx; font-weight: 400; color: #A2A2A2; - margin-right: 20rpx; + margin-right: 16rpx; } .c{ width: 408rpx; diff --git a/pages/news/goods/list.vue b/pages/news/goods/list.vue index 7a6e2cc..971d073 100644 --- a/pages/news/goods/list.vue +++ b/pages/news/goods/list.vue @@ -2,32 +2,33 @@ - - + + - + - + - 荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB + {{i.goods_name}} - 16GB,128GB + {{i.selling_point}} - 1120 - 库存20 + {{i.goods_price_max}} + 库存{{i.stock_total}} - 商品状态:上架中 + 商品状态:{{i.status==10?'上架':i.status==20?'下架':'未知'}} @@ -49,12 +50,16 @@ this.getList(); }, onReachBottom() { - if(this.articleList.length <= this.total){ + if(this.list.length <= this.total){ this.pageNum ++; this.getList(); } }, methods: { + getListAfter(){ + this.list = []; + this.getList() + }, /** * 获取列表 */ diff --git a/pages/news3/sendOutGoods.vue b/pages/news3/sendOutGoods.vue index bb4ebff..0a15b4a 100644 --- a/pages/news3/sendOutGoods.vue +++ b/pages/news3/sendOutGoods.vue @@ -3,23 +3,24 @@ - 订单号:7868867676878676876 + 订单号:{{orderInfo.order_no}} - - + + - 联想小新笔记本电脑2023年新款 + {{item.goods_name}} - - 16GB,128GB + + {{p.group.name}}:{{p.value.name}} + - x1 + x{{item.total_num}} ¥ - 288 + {{item.total_price}} @@ -36,7 +37,7 @@ --> - @@ -79,13 +80,29 @@ export default{ } ], wuliu:'', - codeNum:'' + codeNum:'', + orderInfo:{}, + expressList:[], } }, methods:{ showAction(){ this.wuliuShow = true; }, + async getWuliuList(){ + let {status, message, data} = await newFunApi.wuliuList(); + if(status == 200){ + uni.hideLoading(); + this.expressList = data.list + } + + }, + }, + onLoad(option){ + console.log(option) + this.orderInfo = JSON.parse(option.item) + console.log(this.orderInfo) + this.getWuliuList() } } diff --git a/pages/news3/shopOrder.vue b/pages/news3/shopOrder.vue index aa0ed1f..c8b8591 100644 --- a/pages/news3/shopOrder.vue +++ b/pages/news3/shopOrder.vue @@ -3,64 +3,65 @@ - - - + + + + {{item.name}} - + - 订单号:{{item.orderNum}} - {{getLable(item.status)}} + 订单号:{{item.order_no}} + {{item.state_text}} - - + + - x{{p.num}} + x{{p.total_num}} ¥ - {{p.price}} + {{p.total_price}} - 含运费¥{{item.yunfei}} + 含运费¥{{item.third_money}} 共计: - ¥{{item.total}} + ¥{{item.total_price}} - 收件人姓名 {{item.phone}} + 收件人姓名 {{item.address?item.address.name:''}} {{item.remark}} - 修改地址 - 修改价格 - 发货 - 拒绝 - 同意 - 删除订单 - 转至售后 - 修改物流 + 修改地址 + 修改价格 + 发货 + 拒绝 + 同意 + 删除订单 + 转至售后 + 修改物流 @@ -152,75 +153,42 @@ diff --git a/pages/user/index.vue b/pages/user/index.vue index 457ff70..572e490 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -84,7 +84,7 @@ - + 商品管理 查看全部 @@ -92,19 +92,20 @@ src="https://lanhu.oss-cn-beijing.aliyuncs.com/FigmaDDSSlicePNG734520a67fe8e1d927b6d6e351bd2ade.png" class="thumbnail_4"> - - + + + 2 一键上架 - + 删除商品 - + 商品查询 @@ -163,7 +164,7 @@ 商品订单 - 查看全部 + 查看全部 @@ -545,6 +546,11 @@ url: "/pages/news/recycling/orderList?type=" + type }) }, + goJump(path){ + uni.navigateTo({ + url: path + }) + }, goLogin() { // 去登录 uni.navigateTo({