商家转售后

version/0412
fanfan 9 months ago
parent cd5fb71cb2
commit 438b0e566a
  1. 4
      api/newFun.js
  2. 27
      pages/news3/shopOrder.vue

@ -176,6 +176,10 @@ export const updateDelivery = (param) => {
export const updateAddress = (param) => { export const updateAddress = (param) => {
return request.post('StoreKeeper/updateAddress', param) return request.post('StoreKeeper/updateAddress', param)
} }
//店长 查地址
export const addressList = (param) => {
return request.post('Address/list', param)
}
// 店长同意拒绝 // 店长同意拒绝
export const audit = (param) => { export const audit = (param) => {
return request.post('storeKeeper/audit', param) return request.post('storeKeeper/audit', param)

@ -62,8 +62,10 @@
<view class="btn primary" <view class="btn primary"
v-show="!item.order_refund_id&&item.order_status==10&&item.pay_status==20&&item.delivery_status==30" v-show="!item.order_refund_id&&item.order_status==10&&item.pay_status==20&&item.delivery_status==30"
@click="goJump('/pages/news3/sendOutGoods',item,2)">发货</view> @click="goJump('/pages/news3/sendOutGoods',item,2)">发货</view>
<view class="btn info" v-show="item.audit_status==0&&(item.order_status!=20)" @click="refuseOrder(item,20)">拒绝</view> <view class="btn info" v-show="item.audit_status==0&&(item.order_status!=20)"
<view class="btn primary" v-show="item.audit_status==0&&(item.order_status!=20)" @click="refuseOrder(item,10)">同意</view> @click="refuseOrder(item,20)">拒绝</view>
<view class="btn primary" v-show="item.audit_status==0&&(item.order_status!=20)"
@click="refuseOrder(item,10)">同意</view>
<view class="btn info" @click="onDelete(item)" <view class="btn info" @click="onDelete(item)"
v-show="(!item.order_refund_id&&item.order_status==30&&item.pay_status==20&&item.delivery_status==20)||(!item.order_refund_id&&item.order_status==20&&item.pay_status==10&&item.delivery_status==10)"> v-show="(!item.order_refund_id&&item.order_status==30&&item.pay_status==20&&item.delivery_status==20)||(!item.order_refund_id&&item.order_status==20&&item.pay_status==10&&item.delivery_status==10)">
删除订单</view> 删除订单</view>
@ -274,8 +276,8 @@
this.getList() this.getList()
}, },
onLoad(option) { onLoad(option) {
this.delivery_type = option.delivery_type ||''; this.delivery_type = option.delivery_type || '';
this.user_id = option.user_id||'' this.user_id = option.user_id || ''
}, },
methods: { methods: {
reset() { reset() {
@ -312,8 +314,8 @@
payMethod: this.payIndex > 0 ? this.payList[this.payIndex].val : '', payMethod: this.payIndex > 0 ? this.payList[this.payIndex].val : '',
orderSource: this.sourceIndex > 0 ? this.selectList[this.sourceIndex].val : '', orderSource: this.sourceIndex > 0 ? this.selectList[this.sourceIndex].val : '',
betweenTime: this.endTime ? [this.startTime, this.endTime].join(',') : '', betweenTime: this.endTime ? [this.startTime, this.endTime].join(',') : '',
delivery_type:this.delivery_type, delivery_type: this.delivery_type,
user_id:this.user_id, user_id: this.user_id,
}); });
if (status == 200) { if (status == 200) {
uni.hideLoading(); uni.hideLoading();
@ -395,6 +397,19 @@
return idList.join(',') return idList.join(',')
}, },
async getAddressList() {
let {
status,
message,
data
} = await newFunApi.addressList({
user_id: 10006
});
if (status == 200) {
console.log(data)
}
},
// //
refuseOrder(item, status) { refuseOrder(item, status) {
this.itemInfor = item; this.itemInfor = item;

Loading…
Cancel
Save