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 @@
-
diff --git a/pages/news3/addressList.vue b/pages/news3/addressList.vue
new file mode 100644
index 0000000..ca06ec2
--- /dev/null
+++ b/pages/news3/addressList.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+ {{item.name}} {{item.phone}}默认
+
+
+
+ {{item.detail}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/news3/sendOutGoods.vue b/pages/news3/sendOutGoods.vue
index 9cee324..24882fc 100644
--- a/pages/news3/sendOutGoods.vue
+++ b/pages/news3/sendOutGoods.vue
@@ -129,9 +129,10 @@
if (status == 200) {
uni.hideLoading();
uni.showToast({
- title: this.source == 1?'修改成功':'发货成功',
+ title: this.source == 1 ? '修改成功' : '发货成功',
icon: 'none'
})
+ uni.$emit('refreshData');
uni.navigateBack({
delta: 1
})
diff --git a/pages/news3/shopOrder.vue b/pages/news3/shopOrder.vue
index 0985e79..265f66c 100644
--- a/pages/news3/shopOrder.vue
+++ b/pages/news3/shopOrder.vue
@@ -21,7 +21,7 @@
-
+
订单号:{{item.order_no}}
{{item.state_text}}
@@ -55,12 +55,12 @@
修改地址
修改价格
发货
拒绝
@@ -71,7 +71,7 @@
删除订单
转至售后
修改物流
@@ -151,6 +151,13 @@
-->
+
备注
@@ -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 @@
修改物流
@@ -194,6 +194,13 @@
{{audit_status==20?'拒绝':'同意'}}转移至售后
+
@@ -233,6 +240,7 @@