商家转售后

version/0412
fanfan 9 months ago
parent cd5fb71cb2
commit 438b0e566a
  1. 4
      api/newFun.js
  2. 19
      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>
@ -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