diff --git a/api/admin.js b/api/admin.js index e3a88ee..2bc65db 100644 --- a/api/admin.js +++ b/api/admin.js @@ -230,4 +230,12 @@ export function orderCancellation(merId, id) { */ export function purchaseOrder(where, merId) { return request.get(`admin/${merId}/purchaseOrder`, where, { login: true }); +} + +/** + * 商家物流取件二维码 + * @param object data + */ +export function logisticsCode(id) { + return request.get(`order/logistics_code/${id}`); } \ No newline at end of file diff --git a/api/trading-floor.js b/api/trading-floor.js new file mode 100644 index 0000000..c0cd124 --- /dev/null +++ b/api/trading-floor.js @@ -0,0 +1,65 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +import request from "@/utils/request.js"; + +/** + * 调货列表 + * + */ +export function getCommunityList(data) { + return request.get('community/lst', data, { + noAuth: true + }); +} +/** + * 商品详情 + * + */ +export function getCommunityshow(data) { + console.log(data) + return request.get('community/show/'+data,{}, { + noAuth: true + }); +} + +/** + * 可转售的订单列表 + * + */ +export function getCommunitygetOrderList(data) { + return request.get('community/getOrderList', data, { + noAuth: true + }); +} + +/** + * 发起转售 + * + */ +export function getCommunitycreate( data) { + return request.post(`community/create`, data, { login: true }); +} + +/** + * 修改转售 + * + */ +export function getCommunityUpdate( data) { + return request.post(`community/update`, data, { login: true }); +} +/** + * 加入购物车 + * + */ +export function getCommunityaddCart(data) { + return request.get('community/addCart', data, { + noAuth: true + }); +} \ No newline at end of file diff --git a/components/orderGoods/index.vue b/components/orderGoods/index.vue index ddf9e18..3688141 100644 --- a/components/orderGoods/index.vue +++ b/components/orderGoods/index.vue @@ -25,7 +25,7 @@ {{ item.cart_info.productPresell.delivery_type === 1 ? '支付尾款后' : '预售结束后' }}{{ item.cart_info.productPresell.delivery_day }}天内 - 申请退款 + 申请退款 退款中 x {{item.product_num - item.refund_num}} 已退款 x {{item.product_num - item.refund_num}} 去评价 @@ -73,7 +73,7 @@ 退款中 x {{item.product_num - item.refund_num}} 已退款 x {{item.product_num - item.refund_num}} - 申请退款 + 申请退款 去评价 已评价 diff --git a/components/release/release.vue b/components/release/release.vue index 8bd80f2..41c69c1 100644 --- a/components/release/release.vue +++ b/components/release/release.vue @@ -68,7 +68,9 @@ url: '/pages/trading_hall/adddiscounts/index' }) } else { - + uni.navigateTo({ + url: '/pages/trading_hall/transfer_goods/index' + }) } }, close() { diff --git a/pages.json b/pages.json index 39ccf49..156beeb 100644 --- a/pages.json +++ b/pages.json @@ -712,12 +712,19 @@ "root": "pages/trading_hall", "name": "trading_hall", "pages": [{ - "path": "adddiscounts/index", + "path": "transfer_goods/index", "style": { "navigationBarTitleText": "新增调货", "enablePullDownRefresh": false } + },{ + "path": "adddiscounts/index", + "style": { + "navigationBarTitleText": "新增打折", + "enablePullDownRefresh": false + } + },{ "path": "product_details/index", "style": { diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index 6a507df..0f8d883 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -201,6 +201,18 @@ + + + 请把二维码展示给取货人员 + + + + + + + @@ -223,8 +235,10 @@ setOrderRefund, refundOrderReceive, setRefundMark, - postconfirm + postconfirm, + logisticsCode } from "@/api/admin"; + import zbCode from '@/components/zb-code/zb-code.vue' import Loading from '@/components/Loading/index' import PriceChange from '@/components/PriceChange/index' import { @@ -233,6 +247,7 @@ export default { name: "AdminOrderList", components: { + zbCode, // 渲染二维码 Loading, PriceChange }, @@ -255,7 +270,20 @@ refundInfo: {}, orderInfo: {}, status: "", - merId: '' + merId: '', + popUpShow: false, + payCodeUrl: '', + cid: '1', + ifShow: true, + size: 200, // 二维码大小 + unit: 'px', // 单位 + background: '#FFF', // 背景色 + foreground: '#000', // 前景色 + pdground: '#32dbc6', // 角标色 + lv: 3, // 二维码容错级别 , 一般不用设置,默认就行 + onval: true, // val值变化时自动重新生成二维码 + loadMake: true, // 组件加载完成后自动生成二维码 + src: '', // 二维码生成后的图片地址或base64 }; }, watch: { @@ -278,6 +306,11 @@ this.getIndex(); }, methods: { + // 扫码 + popUpClose() { + this.popUpShow = false + + }, //同意先货后款订单 tongyi(id, number) { let data = { @@ -433,22 +466,38 @@ }, toPostage(item) { let that = this; + console.log(item) + if (item.refunding != 0) { uni.showModal({ title: '标题', content: '该订单有售后申请,请确认已处理!', success: function(res) { if (res.confirm) { - uni.navigateTo({ - url: `/pages/admin/delivery/index?id=${item.order_id}&merId=${that.merId}` + // uni.navigateTo({ + // url: `/pages/admin/delivery/index?id=${item.order_id}&merId=${that.merId}` + // }) + this.popUpShow = true + logisticsCode(item.order_id).then(res => { + + if (res.status == 200) { + this.payCodeUrl = res.data.qrcode + } }) } } }) } else { - uni.navigateTo({ - url: `/pages/admin/delivery/index?id=${item.order_id}&merId=${that.merId}` + this.popUpShow = true + logisticsCode(item.order_id).then(res => { + + if (res.status == 200) { + this.payCodeUrl = res.data.qrcode + } }) + // uni.navigateTo({ + // url: `/pages/admin/delivery/index?id=${item.order_id}&merId=${that.merId}` + // }) } }, async savePrice(opt) { diff --git a/pages/order_details/index.vue b/pages/order_details/index.vue index 1ba177a..57aa752 100644 --- a/pages/order_details/index.vue +++ b/pages/order_details/index.vue @@ -132,8 +132,10 @@ + + {{ orderInfo.remark }} - + 订单编号: @@ -222,8 +224,7 @@ 支付宝支付 微信支付 - 先货后款 + 先货后款 买家留言: @@ -280,7 +281,8 @@ - {{ orderInfo.presellOrder.final_start_time | filterDay }} 付尾款 + {{ orderInfo.presellOrder.final_start_time | filterDay }} 付尾款 + 立即付款 取消订单 @@ -301,7 +303,7 @@ 查看物流 - 确认收货 + 确认收货 删除订单 - 批量退款 + 批量退款 + 再次购买 @@ -342,7 +345,7 @@ {{orderInfo.verify_code}} - + @@ -352,18 +355,21 @@ - - - - - - -

确认收到货了吗?

- 此订单为先货后款订单,确认收货后将开始计算结算周期。为保障售后权益,请检查后再确认收货。 - - 取消 -
-
+ + + + + + +

确认收到货了吗?

+ 此订单为先货后款订单,确认收货后将开始计算结算周期。为保障售后权益,请检查后再确认收货。 + + 取消 +
+
@@ -145,9 +157,11 @@ .content_top { padding: 21rpx 28rpx; background: #FFFFFF; + .content_top-one { display: flex; border-bottom: 1rpx solid #CCCCCC; + .content_symbol { width: 81rpx; height: 81rpx; @@ -313,7 +327,7 @@ .pay { width: 100%; height: 121rpx; - line-height:121rpx; + line-height: 121rpx; background: #FFFFFF; position: absolute; bottom: 0; @@ -321,28 +335,81 @@ display: flex; justify-content: space-between; padding: 0 28rpx; - .pay_tilte-a{ - font-size: 32rpx; - font-family: PingFang SC; - font-weight: 500; - color: #333333; - span{ + + .pay_tilte-a { + font-size: 32rpx; + font-family: PingFang SC; + font-weight: 500; + color: #333333; + + span { font-size: 42rpx; font-family: PingFang SC; font-weight: 500; color: #F84221; } } - .pay_tilte-b{ + + .pay_tilte-b { width: 238rpx; height: 74rpx; - line-height:74rpx; + line-height: 74rpx; text-align: center; background: linear-gradient(90deg, #F98649 0%, #F34E45 100%); border-radius: 37rpx 37rpx 37rpx 37rpx; opacity: 1; font-size: 32rpx; - font-family: PingFang SC; + font-family: PingFang SC; + font-weight: 500; + color: #FFFFFF; + margin: auto 0; + } + } + + .domain { + width: 100%; + height: 121rpx; + line-height: 121rpx; + background: #FFFFFF; + position: absolute; + bottom: 0; + position: fixed; + display: flex; + justify-content: space-between; + padding: 0 28rpx; + + .domain_tilte-a { + font-size: 32rpx; + font-family: PingFang SC; + font-weight: 500; + color: #333333; + + span { + font-size: 42rpx; + font-family: PingFang SC; + font-weight: 500; + color: #F84221; + } + } + + .domain_tilte-b { + font-size: 32rpx; + font-family: PingFang SC-Regular, PingFang SC; + font-weight: 400; + color: #666666; + } + + .domain_tilte-c { + width: 238rpx; + height: 74rpx; + line-height: 74rpx; + text-align: center; + background: linear-gradient(90deg, #F98649 0%, #F34E45 100%); + border-radius: 37rpx 37rpx 37rpx 37rpx; + opacity: 1; + + font-size: 32rpx; + font-family: PingFang SC; font-weight: 500; color: #FFFFFF; margin: auto 0; diff --git a/pages/trading_hall/transfer_goods/index.vue b/pages/trading_hall/transfer_goods/index.vue new file mode 100644 index 0000000..88a07df --- /dev/null +++ b/pages/trading_hall/transfer_goods/index.vue @@ -0,0 +1,979 @@ + + + + + \ No newline at end of file diff --git a/pages/users/online_warehousing/index.vue b/pages/users/online_warehousing/index.vue index 38c6fb1..b6a02bc 100644 --- a/pages/users/online_warehousing/index.vue +++ b/pages/users/online_warehousing/index.vue @@ -295,7 +295,7 @@ .pictrue { width: 120rpx; height: 120rpx; - +margin-bottom: 20rpx; image { width: 100%; height: 100%; diff --git a/pages/users/order_list/index.vue b/pages/users/order_list/index.vue index 79bb8e2..ab3cebb 100644 --- a/pages/users/order_list/index.vue +++ b/pages/users/order_list/index.vue @@ -557,7 +557,9 @@ * 去订单详情 */ goOrderDetails: function(order_id) { + let self = this + if (!order_id) return that.$util.Tips({ title: '缺少订单号无法查看订单详情' }); @@ -565,12 +567,19 @@ uni.showLoading({ title: '正在加载', }) + openOrderSubscribe().then(() => { + uni.hideLoading(); if (self.orderStatus == 0) { uni.navigateTo({ url: '/pages/order_details/stay?order_id=' + order_id }) + } else if (self.orderStatus == 1) { + + uni.navigateTo({ + url: `/pages/order_details/stay?order_id=${order_id}&orderStatus=${self.orderStatus}` + }) } else { uni.navigateTo({ url: '/pages/order_details/index?order_id=' + order_id @@ -585,6 +594,13 @@ uni.navigateTo({ url: '/pages/order_details/stay?order_id=' + order_id }) + } else if (self.orderStatus == 1) { + // uni.navigateTo({ + // url: '/pages/order_details/index?order_id=' + order_id + // }) + uni.navigateTo({ + url: '/pages/order_details/index?order_id=' + order_id + }) } else { uni.navigateTo({ url: '/pages/order_details/index?order_id=' + order_id @@ -650,7 +666,7 @@ groupOrderList({ page: that.page, limit: that.limit, - product_type:0 + product_type: 0 }).then(res => { that.isReady = true; let list = res.data.list || []; @@ -671,7 +687,7 @@ status: that.orderStatus - 1, page: that.page, limit: that.limit, - product_type:0 + product_type: 0 }).then(res => { let list = res.data.list || []; let loadend = list.length < that.limit; @@ -744,6 +760,7 @@ }, // 确认收货 confirmOrder: function(item, index) { + let that = this; uni.showModal({ title: '确认收货', @@ -755,6 +772,17 @@ title: '操作成功', icon: 'success' }, function() { + uni.showModal({ + title: '取件码', + content: item.logistics_code, + success: function(res) { + if (res.confirm) { + // console.log('用户点击确定'); + } else if (res.cancel) { + // console.log('用户点击取消'); + } + } + }) that.orderList.splice(index, 1); that.getOrderData(); }); diff --git a/pages/users/releaseOrdermanagement/index.vue b/pages/users/releaseOrdermanagement/index.vue index edd5ade..388ebf3 100644 --- a/pages/users/releaseOrdermanagement/index.vue +++ b/pages/users/releaseOrdermanagement/index.vue @@ -26,7 +26,6 @@ - @@ -45,10 +44,9 @@ - - + 编辑 @@ -63,29 +61,29 @@ --> - + 删除 - + 编辑 - + 删除 - + 编辑 - + 拒绝 - + 同意 @@ -133,16 +131,46 @@ }, methods: { tabClick(e) { //点击获取当前标签数据 - console.log('你点击了【' + e.label + '】的选项卡标签', e.name) this.activeItem = e.name; //当前class类名 this.tabTitle = e.name; //当前选的标签名 + }, + // 已售出 编辑 + soldEdit() { + + }, + //待审核 删除 + pendingDeletion() { + + }, + //待审核 编辑 + editReviewe() { + + }, + // 审核未通过 删除 + auditDelete() { + + }, + + // 审核未通过 编辑 + auditEdit() { + + }, + //审核通过 拒绝 + passDelete() { + + }, + //审核通过 同意 + passagree() { + } } }