diff --git a/api/order.js b/api/order.js index 98f78eb..f4abb78 100644 --- a/api/order.js +++ b/api/order.js @@ -14,8 +14,8 @@ const api = { orderfast:'order/orderfast' } // 催单 -export function orderfast(param, option) { - return request.get(api.orderfast, param, option) +export function orderfast(orderId, param) { + return request.get(api.orderfast, { orderId, ...param }) } // 当前用户待处理的订单数量 export function todoCounts(param, option) { diff --git a/pages.json b/pages.json index 6d1427d..42d0d03 100644 --- a/pages.json +++ b/pages.json @@ -1114,6 +1114,14 @@ "navigationBarTextStyle": "black", "navigationBarTitleText": "商品发货" } + },{ + "path": "addressList", + "style": { + // "enablePullDownRefresh": true, + "navigationStyle": "default", + "navigationBarTextStyle": "black", + "navigationBarTitleText": "退货地址" + } }, { "path": "JoinDistribution", diff --git a/pages/news/park/addressList.vue b/pages/news/park/addressList.vue index 7fc47d4..e2b1db5 100644 --- a/pages/news/park/addressList.vue +++ b/pages/news/park/addressList.vue @@ -1,7 +1,7 @@ --> + + 退货地址: + + {{addressData?addressData.name+addressData.phone:'请选择退货地址'}} + + + 备注 @@ -209,7 +216,7 @@ id: 'cancel', name: '已取消', }, ], - goodsList: [], + goodShopsList: [], show: false, timeShow: false, afterSale: false, @@ -261,7 +268,7 @@ refund_notes: '', itemInfor: '', audit_status: 20, - audit_notes: '', + addressData: '', user_id: '', delivery_type: '' } @@ -295,7 +302,7 @@ }, sureOrder() { this.pageNum = 1 - this.goodsList = []; + this.goodShopsList = []; this.getList() this.show = false; }, @@ -319,7 +326,7 @@ }); if (status == 200) { uni.hideLoading(); - this.goodsList = this.goodsList.concat(data.list.data) + this.goodShopsList = this.goodShopsList.concat(data.list.data) this.total = data.list.total } }, @@ -334,7 +341,7 @@ onClassify(item, index) { this.pageNum = 1 this.classifyShow = item.id; - this.goodsList = []; + this.goodShopsList = []; this.getList() }, setResourceIndex(index) { @@ -368,7 +375,7 @@ // 显示成功信 app.deleteShow = false app.pageNum = 1 - app.goodsList = []; + app.goodShopsList = []; app.getList() }) }, @@ -397,34 +404,23 @@ return idList.join(',') }, - async getAddressList() { - - let { - status, - message, - data - } = await newFunApi.addressList({ - user_id: 10006 - }); - if (status == 200) { - console.log(data) - } - }, // 同意拒绝 refuseOrder(item, status) { this.itemInfor = item; this.audit_status = status; - this.afterSale = true + this.afterSale = true; }, async submitRefund() { + if(this.audit_status==10 &&!this.addressData){ + return that.$toast('请选择退货地址') + } let params = { "orderId": this.itemInfor.order_id, "orderRefundId": this.itemInfor.order_refund_id, "form": { "audit_status": this.audit_status, - "refund_notes": this.refund_notes, - 'refuse_desc': this.audit_notes, - 'address_id': this.itemInfor.address ? this.itemInfor.address.order_address_id : '', + "refuse_desc": this.refund_notes, + 'address_id': this.addressData.address_id, } } let { @@ -436,13 +432,13 @@ this.afterSale = false uni.hideLoading(); this.pageNum = 1 - this.goodsList = []; + this.goodShopsList = []; this.getList() } }, }, onReachBottom() { - if (this.goodsList.length <= this.total) { + if (this.goodShopsList.length <= this.total) { this.pageNum++; this.getList(); } @@ -481,6 +477,14 @@ color: #616161; } + .tuiAdderss { + padding: 30rpx 0; + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 1rpx solid #EAEAEA; + } + page { background-color: #F7F8FA; min-height: 100%; diff --git a/pages/news3/shopOrderDetails.vue b/pages/news3/shopOrderDetails.vue index d269edc..f82fa89 100644 --- a/pages/news3/shopOrderDetails.vue +++ b/pages/news3/shopOrderDetails.vue @@ -170,13 +170,13 @@ 修改地址 修改价格 发货 拒绝 同意 @@ -184,7 +184,7 @@ v-show="(!orderInfo.order_refund_id&&orderInfo.order_status==30&&orderInfo.pay_status==20&&orderInfo.delivery_status==20)||(!orderInfo.order_refund_id&&orderInfo.order_status==20&&orderInfo.pay_status==10&&orderInfo.delivery_status==10)"> 删除订单 修改物流 @@ -194,6 +194,13 @@ {{audit_status==20?'拒绝':'同意'}}转移至售后 + + 退货地址: + + {{addressData?addressData.name+addressData.phone:'请选择退货地址'}} + + + @@ -233,6 +240,7 @@