diff --git a/src/components/order_list/mall/mall.vue b/src/components/order_list/mall/mall.vue index e07e766..1b126b5 100644 --- a/src/components/order_list/mall/mall.vue +++ b/src/components/order_list/mall/mall.vue @@ -112,7 +112,6 @@ export default { width: 152upx; height: 152upx; border-radius: 10upx; - background-color: skyblue; } .rs-view{ @include textHide(3); diff --git a/src/subpackage/order/pages/mall/detail/detail.vue b/src/subpackage/order/pages/mall/detail/detail.vue index 0a19efc..0111c8f 100644 --- a/src/subpackage/order/pages/mall/detail/detail.vue +++ b/src/subpackage/order/pages/mall/detail/detail.vue @@ -32,7 +32,11 @@ ¥{{ e.product_price || '0' }} - 比赛专用;黑色 + + + {{ k + ';' }} + + ×{{ e.product_nums || 0 }} @@ -113,7 +117,7 @@ export default { methods: { toSendOut(){ let { orderInfo } = this; - util.routeTo(`/subpackage/order/pages/mall/send_out/send_out?order_no=${orderInfo.order_no}`, 'nT'); + util.routeTo(`/subpackage/order/pages/mall/send_out/send_out?order_no=${orderInfo.order_no}&brand_id=${orderInfo.brand_id}`, 'nT'); }, payTypeTxt: util.order_pay_type_txt, getInfo(order_no){ diff --git a/src/subpackage/order/pages/mall/send_out/send_out.vue b/src/subpackage/order/pages/mall/send_out/send_out.vue index c8cb265..4c50b07 100644 --- a/src/subpackage/order/pages/mall/send_out/send_out.vue +++ b/src/subpackage/order/pages/mall/send_out/send_out.vue @@ -46,7 +46,11 @@ {{ e.product_name || '-' }} - 比赛专用;黑色 + + + {{ k + ';' }} + + @@ -54,9 +58,9 @@ *发货仓库 - + - + @@ -123,16 +127,18 @@ 无已发货 - - 包裹1 - 快递:顺丰速递 SF1090317923085复制 + + 包裹{{ i+1 }} + + 快递:{{ e.logistics_info.logistics_name || '-' }} {{ e.logistics_info.logistics_no || '-' }} + 复制 - - - 克洛羽毛球… + + + {{ k.product_name || '-' }} - 共10件商品 + 共{{ e.logistics_product_lite_list.length || 0 }}件商品 @@ -162,8 +168,8 @@ export default { // 已发货列表 shippedLs(){ let { orderInfo } = this; - let _list = orderInfo.product_order_goods || []; - return _list.filter(e=>e.product_logistics_end == 1) || []; + let _list = orderInfo.product_order_logistics_data || []; + return _list; }, // 选中发货 id列表 selectedSendOutIds(){ @@ -197,10 +203,14 @@ export default { onLoad(options){ this.order_no = options.order_no || ''; this.getInfo(options.order_no); - this.getWarehouse({}); + this.getWarehouse({ brand_id: options.brand_id }); this.getLogisticsCompanyLs({}); }, methods: { + // 复制快递单号 + copyNo(num){ + uni.setClipboardData({ data: num }) + }, logisticsChange(e){ let { logisticsCompanyLs } = this; this.curlogisticsName = logisticsCompanyLs[e.detail.value] || ''; @@ -217,12 +227,12 @@ export default { this.getInfo(order_no); }, confirmSendOutBtn: util.debounce(function(){ - let { order_no, selectedSendOutIds, selectedWarehouse, sendOutMethod, curlogisticsName, logisticsOrderNum, sendOutRemark } = this; + let { order_no, selectedSendOutLs, selectedWarehouse, sendOutMethod, curlogisticsName, logisticsOrderNum, sendOutRemark } = this; let _query = { order_no, - ids: selectedSendOutIds, - esh_type: selectedWarehouse.esh_type, - esh_id: selectedWarehouse.esh_id, + ids: selectedSendOutLs.map(ele=>ele.product_cart_id), + esh_type: selectedWarehouse.erp_type, + esh_id: selectedWarehouse.erp_id, logistics_type: sendOutMethod, } @@ -233,27 +243,21 @@ export default { if(sendOutMethod == 1)_query['mark'] = sendOutRemark; this.shop2OrderLogistics(_query); }, 300,true), - shop2OrderLogistics({ - order_no = '', - ids = [], - esh_type = '', - esh_id = '', - logistics_type = '', - logistics_name = '', - logistics_no = '', - }){ + shop2OrderLogistics(_query){ server.post({ url: ORDER_API.shop2OrderLogistics, - data: { - order_no, // 订单编号 - ids, // 发货商品购物车ID数组 - esh_type, // 类型 0/1 - 仓库/店铺 - esh_id, // 发货仓库/店铺 ID - logistics_type, // 发货方式 0/1 - 快递/无需发货 - logistics_name, // 物流公司 - logistics_no, // 物流单号 - }, - isDefaultGet: false + data: _query, + // { + // order_no, // 订单编号 + // ids, // 发货商品购物车ID数组 + // esh_type, // 类型 0/1 - 仓库/店铺 + // esh_id, // 发货仓库/店铺 ID + // logistics_type, // 发货方式 0/1 - 快递/无需发货 + // logistics_name, // 物流公司 + // logistics_no, // 物流单号 + // mark, // 备注 + // }, + isDefaultGet: false }) .then(res=>{ if(res.data.code == 0){ @@ -286,12 +290,13 @@ export default { }, // 仓库列表 getWarehouse({ + brand_id = '', page_size = 9999, page = 1, }){ server.get({ url: ORDER_API.erpshList, - data: { page_size, page }, + data: { brand_id, page_size, page }, failMsg: '加载仓库列表失败!' }) .then(res=>{