|
|
@ -17,24 +17,20 @@ |
|
|
<view class="ulList" v-if="bList.length > 0"> |
|
|
<view class="ulList" v-if="bList.length > 0"> |
|
|
<ul> |
|
|
<ul> |
|
|
<li v-for="(item,index ) in bList" :key="index"> |
|
|
<li v-for="(item,index ) in bList" :key="index"> |
|
|
<uni-card :title="'店铺名称:张三的店'" :sub-title="'明珠早市馆15001 (13521420172)'"> |
|
|
<uni-card :title="'店铺名称:'+item.shopName" :sub-title="item.getOrderAddress+'('+item.mobile+')'"> |
|
|
<view class="uni-body"> |
|
|
<view class="uni-body"> |
|
|
<text class="cardText">德邦物流</text> |
|
|
<text class="cardText">{{item.orderAddress}}</text> |
|
|
(15014256321) |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-body"> |
|
|
<view class="uni-body"> |
|
|
<text class="cardText"> 下单时间:</text> |
|
|
<text class="cardText"> 下单时间:</text> |
|
|
<text class="priceText"> 2023-11-29 12:00:01</text> |
|
|
<text class="priceText"> {{item.createTime}}</text> |
|
|
</view> |
|
|
|
|
|
<view class="uni-body"> |
|
|
|
|
|
<text class="cardText"> 订单状态:</text> |
|
|
|
|
|
待送达 |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</uni-card> |
|
|
</uni-card> |
|
|
</li> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<u-loadmore :status="status" /> |
|
|
<u-modal :show="modalShow" title="详细地址" :content='content' @confirm="modalShow = false"></u-modal> |
|
|
<u-modal :show="modalShow" title="详细地址" :content='content' @confirm="modalShow = false"></u-modal> |
|
|
<uni-fab ref="fab" :content="content" :horizontal="horizontal" |
|
|
<uni-fab ref="fab" :content="content" :horizontal="horizontal" |
|
|
@trigger="trigger" /> |
|
|
@trigger="trigger" /> |
|
|
@ -47,20 +43,16 @@ |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
range: '', |
|
|
list: ['待接单', '待取货', '待送达'], |
|
|
shopList: [], |
|
|
|
|
|
list: ['待指派', '待取货', '待送达'], |
|
|
|
|
|
modalShow: false, |
|
|
modalShow: false, |
|
|
content:'地址', |
|
|
content:'地址', |
|
|
query: { |
|
|
orderStatus:0, |
|
|
saleVO: { |
|
|
status: 'loadmore', |
|
|
searchDateVo: { |
|
|
endDate: '', |
|
|
endDate: '', |
|
|
startDate: '', |
|
|
startDate: '' |
|
|
transCompany: '', |
|
|
}, |
|
|
totalPages:0, |
|
|
transCompany: '' |
|
|
pages:1, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
bList: [], |
|
|
bList: [], |
|
|
horizontal: 'right', |
|
|
horizontal: 'right', |
|
|
content: [{ |
|
|
content: [{ |
|
|
@ -69,6 +61,11 @@ |
|
|
text: '线路配置', |
|
|
text: '线路配置', |
|
|
active: false |
|
|
active: false |
|
|
},{ |
|
|
},{ |
|
|
|
|
|
iconPath: '/static/images/tabbar/home.png', |
|
|
|
|
|
selectedIconPath: '/static/images/tabbar/home-sel.png', |
|
|
|
|
|
text: '扣减记录', |
|
|
|
|
|
active: false |
|
|
|
|
|
},{ |
|
|
iconPath: '/static/images/tabbar/home.png', |
|
|
iconPath: '/static/images/tabbar/home.png', |
|
|
selectedIconPath: '/static/images/tabbar/home-sel.png', |
|
|
selectedIconPath: '/static/images/tabbar/home-sel.png', |
|
|
text: '退出登录', |
|
|
text: '退出登录', |
|
|
@ -76,28 +73,32 @@ |
|
|
}], |
|
|
}], |
|
|
id:'', |
|
|
id:'', |
|
|
type:'', |
|
|
type:'', |
|
|
companyName:'' |
|
|
companyName:'', |
|
|
|
|
|
current:0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
uni.hideHomeButton() //左上角HOME按钮 |
|
|
uni.hideHomeButton() //左上角HOME按钮 |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
onReachBottom() { |
|
|
|
|
|
if (this.pages >= this.totalPages) return; |
|
|
|
|
|
this.status = 'loading'; |
|
|
|
|
|
this.pages = ++this.pages; |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
}, |
|
|
onShow(){ |
|
|
onShow(){ |
|
|
this.id = uni.getStorageSync('transCompany') |
|
|
this.id = uni.getStorageSync('transCompany') |
|
|
this.companyName = uni.getStorageSync('companyName') |
|
|
this.companyName = uni.getStorageSync('companyName') |
|
|
this.type = uni.getStorageSync('isOnLine') |
|
|
this.type = uni.getStorageSync('isOnLine') |
|
|
const date = this.formatDate(new Date(), 'YYYY-MM-DD') |
|
|
const date = this.formatDate(new Date(), 'YYYY-MM-DD') |
|
|
this.query.saleVO.searchDateVo.startDate = date + ' 00:00:00' |
|
|
this.startDate = date |
|
|
this.query.saleVO.searchDateVo.endDate = date + ' 23:59:59' |
|
|
this.endDate = date |
|
|
this.query.saleVO.transCompany = this.id |
|
|
this.transCompany = this.id |
|
|
// this.range = date |
|
|
this.getList() |
|
|
this.getShopList() |
|
|
|
|
|
this.getAllList() |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
upOrDown(){ |
|
|
upOrDown(){ |
|
|
|
|
|
|
|
|
var url |
|
|
var url |
|
|
if(this.type == 1){ //上线状态 |
|
|
if(this.type == 1){ //上线状态 |
|
|
url = '/app/logitics/offLine' |
|
|
url = '/app/logitics/offLine' |
|
|
@ -136,18 +137,16 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
sectionChange(index) { |
|
|
sectionChange(index) { |
|
|
this.current = index |
|
|
this.current = index |
|
|
this.bList = [] |
|
|
if(index == 2){ |
|
|
if (index == 0) { |
|
|
this.orderStatus = 3 |
|
|
this.getAllList() |
|
|
}else{ |
|
|
} |
|
|
this.orderStatus = index |
|
|
if (index == 1) { |
|
|
|
|
|
this.getList() |
|
|
|
|
|
} |
|
|
|
|
|
if (index == 2) { |
|
|
|
|
|
this.getReturnList() |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.bList = [] |
|
|
|
|
|
this.getList() |
|
|
}, |
|
|
}, |
|
|
trigger(e) { |
|
|
trigger(e) { |
|
|
let that = this; |
|
|
let that = this; |
|
|
@ -156,6 +155,10 @@ |
|
|
// url: `/pages/other/logisticsAddress` |
|
|
// url: `/pages/other/logisticsAddress` |
|
|
// }) |
|
|
// }) |
|
|
that.tui.toast("线路配置暂不可用") |
|
|
that.tui.toast("线路配置暂不可用") |
|
|
|
|
|
}else if(e.index == 1){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/pages/other/companyLog` |
|
|
|
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title: "提示", |
|
|
title: "提示", |
|
|
@ -184,70 +187,33 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
getList() { |
|
|
getList() { |
|
|
|
|
|
this.status = 'loading'; |
|
|
uni.request({ |
|
|
uni.request({ |
|
|
url: this.tui.interfaceUrl() + '/app/sale/listAll', |
|
|
url: this.tui.interfaceUrl() + '/order/getByCondition', |
|
|
data: { |
|
|
data: { |
|
|
remarkSR: 2, |
|
|
orderStatus:this.orderStatus, |
|
|
shopId: this.shopId, |
|
|
endDate: this.endDate, |
|
|
searchDateVo: this.query |
|
|
startDate: this.startDate, |
|
|
|
|
|
transCompany: this.transCompany, |
|
|
|
|
|
pageNumber:this.pages, |
|
|
|
|
|
pageSize:10 |
|
|
}, |
|
|
}, |
|
|
header: { |
|
|
header: { |
|
|
'content-type': 'application/json', |
|
|
'content-type': 'application/x-www-form-urlencoded', |
|
|
'appWLToken': this.tui.getToken() |
|
|
'appWLToken': this.tui.getToken() |
|
|
}, |
|
|
}, |
|
|
method: 'POST', //'GET','POST' |
|
|
method: 'GET', //'GET','POST' |
|
|
dataType: 'json', |
|
|
dataType: 'json', |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
|
|
|
this.status = 'nomore'; |
|
|
if (res.data.code == 200){ |
|
|
if (res.data.code == 200){ |
|
|
this.bList = res.result |
|
|
this.bList = res.data.result.content |
|
|
} |
|
|
if (this.pages == 1) { |
|
|
}, |
|
|
this.bList = res.data.result.content |
|
|
fail: (res) => { |
|
|
} else { |
|
|
this.tui.toast("网络不给力,请稍后再试~") |
|
|
this.bList = [...this.bList, ...res.data.result.content] |
|
|
} |
|
|
} |
|
|
}) |
|
|
this.totalPages = res.data.result.totalPages |
|
|
}, |
|
|
|
|
|
getAllList() { |
|
|
|
|
|
uni.request({ |
|
|
|
|
|
url: this.tui.interfaceUrl() + '/app/sale/listAll', |
|
|
|
|
|
data: { |
|
|
|
|
|
remarkSR: 2, |
|
|
|
|
|
shopId: this.shopId, |
|
|
|
|
|
searchDateVo: this.query |
|
|
|
|
|
}, |
|
|
|
|
|
header: { |
|
|
|
|
|
'content-type': 'application/json', |
|
|
|
|
|
'appWLToken': this.tui.getToken() |
|
|
|
|
|
}, |
|
|
|
|
|
method: 'POST', //'GET','POST' |
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
success: (res) => { |
|
|
|
|
|
if (res.data.code == 200){ |
|
|
|
|
|
this.bList = res.result.saleList |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
fail: (res) => { |
|
|
|
|
|
this.tui.toast("网络不给力,请稍后再试~") |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
getReturnList() { |
|
|
|
|
|
uni.request({ |
|
|
|
|
|
url: this.tui.interfaceUrl() + '/app/sale/listAll', |
|
|
|
|
|
data: { |
|
|
|
|
|
remarkSR: 3, |
|
|
|
|
|
shopId: this.shopId, |
|
|
|
|
|
searchDateVo: this.query |
|
|
|
|
|
}, |
|
|
|
|
|
header: { |
|
|
|
|
|
'content-type': 'application/json', |
|
|
|
|
|
'appWLToken': this.tui.getToken() |
|
|
|
|
|
}, |
|
|
|
|
|
method: 'POST', //'GET','POST' |
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
success: (res) => { |
|
|
|
|
|
if (res.data.code == 200){ |
|
|
|
|
|
this.bList = res.result.returnSaleList |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
fail: (res) => { |
|
|
fail: (res) => { |
|
|
@ -255,56 +221,16 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
dateChange() { |
|
|
|
|
|
this.query.startDate = this.range[0] |
|
|
|
|
|
this.query.endDate = this.range[1] |
|
|
|
|
|
this.sectionChange(this.current) |
|
|
|
|
|
}, |
|
|
|
|
|
gotoInfo() { |
|
|
gotoInfo() { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: `/pages/index/shopInfo` |
|
|
url: `/pages/index/shopInfo` |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gotoSearchData() { |
|
|
gotoSearchData() { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/pages/other/logisticsDetail' |
|
|
url: '/pages/other/logisticsDetail' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getShopList() { |
|
|
|
|
|
const that = this |
|
|
|
|
|
uni.request({ |
|
|
|
|
|
url: tui.interfaceUrl() + '/app/sale/listCompany', |
|
|
|
|
|
data: this.query.saleVO, |
|
|
|
|
|
header: { |
|
|
|
|
|
'content-type': 'application/json', |
|
|
|
|
|
'appWLToken': tui.getToken() |
|
|
|
|
|
}, |
|
|
|
|
|
method: 'post', |
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
success: (res) => { |
|
|
|
|
|
that.shopList = res.data.result |
|
|
|
|
|
}, |
|
|
|
|
|
fail: (res) => { |
|
|
|
|
|
tui.toast("网络不给力,请稍后再试~") |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
onCellClick(item) { |
|
|
|
|
|
this.modalShow = true |
|
|
|
|
|
this.content = item.receiveAddress |
|
|
|
|
|
}, |
|
|
|
|
|
onDatePackerChange(date) { |
|
|
|
|
|
if (!date) { |
|
|
|
|
|
this.query.saleVO.searchDateVo.startDate = '' |
|
|
|
|
|
this.query.saleVO.searchDateVo.endDate = '' |
|
|
|
|
|
} else { |
|
|
|
|
|
this.query.saleVO.searchDateVo.startDate = date + ' 00:00:00' |
|
|
|
|
|
this.query.saleVO.searchDateVo.endDate = date + " 23:59:59" |
|
|
|
|
|
} |
|
|
|
|
|
this.getShopList() |
|
|
|
|
|
}, |
|
|
|
|
|
formatDate(date, fmt) { |
|
|
formatDate(date, fmt) { |
|
|
var o = { |
|
|
var o = { |
|
|
'M+': date.getMonth() + 1, //月份 |
|
|
'M+': date.getMonth() + 1, //月份 |
|
|
|