From ac634dfaf87b25facc22e7ad09acf09dbd276ebf Mon Sep 17 00:00:00 2001 From: zhangyouji Date: Fri, 2 Feb 2024 13:44:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/packageIntegral/orderList.js | 9 +- packageIntegral/components/mulpicker.vue | 172 +++++++++++ packageIntegral/orderDetails/index.vue | 22 +- packageIntegral/orderList/index.vue | 8 +- packageIntegral/productAddition/index.vue | 281 ++++++++++++++++++ .../productAddition/productAddStep2.vue | 55 ++++ packageIntegral/productList/index.vue | 130 +++++++- packageIntegral/takeGoods/index.vue | 85 +++++- pages.json | 3 + pages/home/home.vue | 6 + 10 files changed, 732 insertions(+), 39 deletions(-) create mode 100644 packageIntegral/components/mulpicker.vue create mode 100644 packageIntegral/productAddition/index.vue create mode 100644 packageIntegral/productAddition/productAddStep2.vue diff --git a/api/packageIntegral/orderList.js b/api/packageIntegral/orderList.js index 078d334..5967824 100644 --- a/api/packageIntegral/orderList.js +++ b/api/packageIntegral/orderList.js @@ -13,5 +13,12 @@ export default{ url: `/oil-mall/mallOrderInfo/get/${id}`, method: 'get', }) - } + }, + takeOrder(data) { + return request({ + url: `/oil-mall/mallOrderInfo/takeOrder`, + method: 'post', + data + }) + }, } \ No newline at end of file diff --git a/packageIntegral/components/mulpicker.vue b/packageIntegral/components/mulpicker.vue new file mode 100644 index 0000000..eb1b465 --- /dev/null +++ b/packageIntegral/components/mulpicker.vue @@ -0,0 +1,172 @@ + + + + + \ No newline at end of file diff --git a/packageIntegral/orderDetails/index.vue b/packageIntegral/orderDetails/index.vue index e4559a7..339fbd1 100644 --- a/packageIntegral/orderDetails/index.vue +++ b/packageIntegral/orderDetails/index.vue @@ -23,13 +23,12 @@ 订单编号: {{info.orderCode}} 下单时间: {{info.createTime}} - 站点电话: 18879008956 支付方式: 积分 商品金额: ¥{{info.marketPrice}} 支付积分: {{info.integral}} - 确定提货 + 确定提货 @@ -103,8 +102,23 @@ } }) }, - confirm() { - this.controlWindows.code = false + submit(){ + + let data = {} + data.id = this.dataList[0].orderId + data.takeCode = this.dataList[0].takeCode + serve.takeOrder(data).then(res => { + if (res.code === 20000) { + uni.showToast({ + title: res.msg, + icon: 'none' + }); + this.$refs.popup.close(); + this.get(options.orderId) + + } + }) + } } } diff --git a/packageIntegral/orderList/index.vue b/packageIntegral/orderList/index.vue index b209ace..a13f107 100644 --- a/packageIntegral/orderList/index.vue +++ b/packageIntegral/orderList/index.vue @@ -6,8 +6,8 @@ - + @@ -49,7 +49,7 @@ currentPage: 1, pagesize: 20, params: { - customerphone: '' + customerPhone: '' }, }, dataList: [], @@ -109,7 +109,7 @@ getByPageCloudMini() { serve.getByPageCloudMini(this.paramter).then(res => { if (res.code === 20000) { - if (!res.data.list.length) { + if (!res.data.list.length && this.paramter.currentPage != 1) { uni.showToast({ title: '没有更多订单啦~', icon: 'none' diff --git a/packageIntegral/productAddition/index.vue b/packageIntegral/productAddition/index.vue new file mode 100644 index 0000000..04a0c16 --- /dev/null +++ b/packageIntegral/productAddition/index.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/packageIntegral/productAddition/productAddStep2.vue b/packageIntegral/productAddition/productAddStep2.vue new file mode 100644 index 0000000..fa962aa --- /dev/null +++ b/packageIntegral/productAddition/productAddStep2.vue @@ -0,0 +1,55 @@ + + + + + \ No newline at end of file diff --git a/packageIntegral/productList/index.vue b/packageIntegral/productList/index.vue index c598dcb..54e62db 100644 --- a/packageIntegral/productList/index.vue +++ b/packageIntegral/productList/index.vue @@ -27,7 +27,7 @@ ¥{{item.marketPrice}} X{{item.orderNum}} 库存:{{item.orderNum}} - {{statusEnum[1].value}} + {{statusEnum[1].value}} 删除 编辑 @@ -40,7 +40,31 @@ 还没有订单哦~ - + + + + 审核详情 + + + + 审核时间 + {{item.createTime}} + + + 审核结果 + {{item.status}} + + + 反馈详情 + {{item.dateil}} + + + + 关闭 + + + + 是否删除该商品? @@ -50,7 +74,7 @@ - + 是否上架/下架该商品? @@ -60,7 +84,7 @@ - + @@ -73,7 +97,7 @@ }, data() { return { - + currentIndex: 0, code: '', controlWindows: { @@ -129,7 +153,24 @@ color: '#FCB438', value: "已审核" }, - } + }, + examineDetailList:[ + { + createTime:'2023.11.22', + status:'1', + dateil:'未审核' + }, + { + createTime:'2023.11.23', + status:'2', + dateil:'已审核' + }, + { + createTime:'2023.11.24', + status:'已驳回', + dateil:'图片不清晰,请重新上传图片' + } + ] } }, @@ -181,6 +222,9 @@ this.paramter.currentPage += 1 this.getByPageCloudMini() }, + examineDetail(){ + this.$refs.detail.open('center') + }, orderDelete(){ this.$refs.delete.open('center') }, @@ -352,7 +396,7 @@ border: 1px solid #999; border-radius: 10rpx; } - + >.button{ &:nth-of-type(1){ right: 360rpx; @@ -363,32 +407,86 @@ &:nth-of-type(3){ right: 40rpx; } - + } } } } - + + .determine-detail { + padding: 30rpx 0; + width: 681rpx; + background: #FFFFFF; + border-radius: 15rpx; + position: relative; + + >.title { + text-align: center; + font-size: 38rpx; + color: #000; + margin-bottom: 20rpx; + } + >uni-icons{ + position: absolute; + top: 30rpx; + right: 30rpx; + } + >.item{ + display: flex; + justify-content: space-evenly; + overflow-y: hidden; + font-size: 22rpx; + color: #666; + padding: 10rpx; + view{ + width: 200rpx; + line-height: 46rpx; + } + .header{ + font-size: 32rpx; + color: #000; + } + } + + >.buttons { + + display: flex; + justify-content: space-evenly; + margin-top: 50rpx; + + >view { + width: 550rpx; + height: 76rpx; + text-align: center; + line-height: 76rpx; + border-radius: 10rpx; + font-size: 28rpx; + background: #FE0505; + color: #fff; + } + } + } + .determine-frame { padding-top: 85rpx; width: 681rpx; height: 340rpx; background: #FFFFFF; border-radius: 15rpx; - + >.title { text-align: center; font-size: 38rpx; color: #000; - + } - + >.buttons { - + display: flex; justify-content: space-evenly; margin-top: 80rpx; - + >view { width: 250rpx; height: 76rpx; @@ -396,13 +494,13 @@ line-height: 76rpx; border-radius: 10rpx; font-size: 28rpx; - + &:nth-of-type(1) { background: #FFFFFF; border: 1rpx solid #B6B6B6; color: #333; } - + &:nth-of-type(2) { background: #FE0505; color: #fff; diff --git a/packageIntegral/takeGoods/index.vue b/packageIntegral/takeGoods/index.vue index f4d7e50..6fc91f1 100644 --- a/packageIntegral/takeGoods/index.vue +++ b/packageIntegral/takeGoods/index.vue @@ -5,21 +5,21 @@ 订单提货 - 提货码: 1899 + 提货码: {{code}} - 用户手机:18879008955待提货 + 用户手机:{{item.customerPhone}}{{item.statusMerge}} - - 康师傅方便面 经典红烧牛肉面*5+番茄鸡蛋牛肉*1 - 规格:默认 - ¥120.61 X1 - 共1件商品已支付积分:20000 + + {{item.productName}} + 规格:{{handler(item.attributeJson)}} + ¥{{item.marketPrice}} X{{item.orderNum}} + 共{{item.orderNum}}件商品已支付积分:{{item.payIntegral}} - 提货码:1899 - 确定提货 + 提货码:{{item.takeCode}} + 确定提货 @@ -48,7 +48,7 @@ 是否立即提货 取消 - 确认 + 确认 @@ -56,7 +56,7 @@