|
|
|
@ -23,13 +23,16 @@ |
|
|
|
<view class="ulList" v-if="bList.length > 0"> |
|
|
|
<ul> |
|
|
|
<li v-for="(item,index ) in bList" :key="index"> |
|
|
|
<uni-card :title="'店铺名称:'+item.shopName" :sub-title="item.getOrderAddress+'('+item.mobile+')'"> |
|
|
|
<uni-card :title="item.shopName" :sub-title="item.getOrderAddress+'('+item.mobile+')'"> |
|
|
|
<view v-if="this.current != 3 && item.workerMobile" @tap="daCall(item.workerMobile)" style="width: 150rpx;font-size: 26rpx;text-decoration-line: underline;color: blue;position: absolute;top: 20rpx;right: 10rpx;"> |
|
|
|
联系拉包工 |
|
|
|
</view> |
|
|
|
<view v-if="this.current == 3 && item.createByPhone" @tap="daCall(item.createByPhone)" style="width: 125rpx;font-size: 26rpx;text-decoration-line: underline;color: blue;position: absolute;top: 20rpx;right: 0;"> |
|
|
|
联系店铺 |
|
|
|
</view> |
|
|
|
<view @tap="toggle('zhuan',item.orderId)" style="width: 110rpx;font-size: 26rpx;text-decoration-line: underline;color: blue;position: absolute;top: 20rpx;right: 160rpx;"> |
|
|
|
转单 |
|
|
|
</view> |
|
|
|
<view class="uni-body"> |
|
|
|
<text class="cardText">{{item.orderAddress}}</text> |
|
|
|
</view> |
|
|
|
@ -121,6 +124,32 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uni-popup> |
|
|
|
<!-- 转单弹窗 --> |
|
|
|
<uni-popup ref="zhuanPopup" background-color="#fff" :is-mask-click="true"> |
|
|
|
<view class="type-popup" style="margin-bottom: 0;border-radius: 0;"> |
|
|
|
<view style="height: 80rpx;font-size: 36rpx;font-weight: bold;line-height: 80rpx;text-align: center;"> |
|
|
|
请选择要转单的公司 |
|
|
|
</view> |
|
|
|
<view class="title-box"> |
|
|
|
<uni-search-bar class="uni-mt-10" radius="5" placeholder="请输入物流名称" cancelButton="none" |
|
|
|
@confirm="search" @clear="clearSearch" /> |
|
|
|
</view> |
|
|
|
<u-subsection :list="logistics" :current="logisticsCurrent" @change="logisticsChange"></u-subsection> |
|
|
|
<view class="ulList"> |
|
|
|
<ul> |
|
|
|
<li v-for="(item,index) in logisticsList" :key="index" style="height: 120rpx;display: flex;flex-direction: column;line-height: 60rpx;padding-left: 20rpx;border-bottom: 1px solid #eee;position: relative;"> |
|
|
|
<view> |
|
|
|
公司名称:{{item.companyName}} |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
公司电话:{{item.mobile}} |
|
|
|
</view> |
|
|
|
<view @tap="zhuandan(item)" style="position: absolute;top: 30rpx;right: 10px;height: 30px;font-size: 15px;width: 40px;background: #5fd9ee;color: #fff;text-align: center;border-radius: 5px;">转单</view> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uni-popup> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
@ -131,17 +160,20 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
list: ['待接单', '待取货', '待送达','店铺自送'], |
|
|
|
list: ['待接单', '待取货', '待送达','店铺自送'], |
|
|
|
logistics:['长途物流','短途物流'], |
|
|
|
modalShow: false, |
|
|
|
content:'地址', |
|
|
|
orderStatus:0, |
|
|
|
status: 'loadmore', |
|
|
|
endDate: '', |
|
|
|
endDate: '', |
|
|
|
saleId:'', |
|
|
|
startDate: '', |
|
|
|
transCompany: '', |
|
|
|
totalPages:0, |
|
|
|
pages:1, |
|
|
|
bList: [], |
|
|
|
bList: [], |
|
|
|
logisticsList:[], |
|
|
|
horizontal: 'right', |
|
|
|
content: [{ |
|
|
|
iconPath: '/static/images/tabbar/home.png', |
|
|
|
@ -168,10 +200,12 @@ |
|
|
|
type:'', |
|
|
|
companyName:'', |
|
|
|
current:0, |
|
|
|
logisticsCurrent:0, |
|
|
|
waitUpDoorNum:0, |
|
|
|
upDoorList:[], |
|
|
|
copyType:'', |
|
|
|
copyItem:[] |
|
|
|
copyItem:[], |
|
|
|
searchName:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -235,8 +269,14 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toggle(){ |
|
|
|
this.$refs.popup.open() |
|
|
|
toggle(type,saleId){ |
|
|
|
if(type=='zhuan'){ |
|
|
|
this.logisticsChange(0) |
|
|
|
this.saleId = saleId |
|
|
|
this.$refs.zhuanPopup.open() |
|
|
|
}else{ |
|
|
|
this.$refs.popup.open() |
|
|
|
} |
|
|
|
}, |
|
|
|
getSale(item){ |
|
|
|
uni.request({ |
|
|
|
@ -346,6 +386,46 @@ |
|
|
|
uni.makePhoneCall({ |
|
|
|
phoneNumber: phone |
|
|
|
}); |
|
|
|
}, |
|
|
|
logisticsChange(index){ |
|
|
|
let that = this |
|
|
|
this.logisticsCurrent = index |
|
|
|
this.logisticsList = [] |
|
|
|
this.pages = 1 |
|
|
|
let data = {} |
|
|
|
if(index == 0){ |
|
|
|
data = { |
|
|
|
pageNumber: 1, |
|
|
|
pageSize: 100, |
|
|
|
signCompany: 0, |
|
|
|
companyName: this.searchName |
|
|
|
} |
|
|
|
}else if(index == 1){ |
|
|
|
data = { |
|
|
|
pageNumber: 1, |
|
|
|
pageSize: 100, |
|
|
|
signCompany: 4, |
|
|
|
companyName: this.searchName |
|
|
|
} |
|
|
|
} |
|
|
|
uni.request({ |
|
|
|
url: that.tui.interfaceUrl() + '/app/logitics/getByCondition', |
|
|
|
data: data, |
|
|
|
header: { |
|
|
|
'content-type': 'application/x-www-form-urlencoded', |
|
|
|
'appWLToken': that.tui.getToken() |
|
|
|
}, |
|
|
|
method: 'GET', //'GET','POST' |
|
|
|
dataType: 'json', |
|
|
|
success: (res) => { |
|
|
|
if (res.data.code == 200){ |
|
|
|
that.logisticsList = res.data.result.content |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
that.tui.toast("网络不给力,请稍后再试~") |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
sectionChange(index) { |
|
|
|
this.current = index |
|
|
|
@ -360,6 +440,44 @@ |
|
|
|
this.orderStatus = index |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
}, |
|
|
|
zhuandan(item){ |
|
|
|
let that = this; |
|
|
|
uni.request({ |
|
|
|
url: that.tui.interfaceUrl() + '/app/sale/changeCompany', |
|
|
|
data: { |
|
|
|
saleId:that.saleId, |
|
|
|
companyId:item.id |
|
|
|
}, |
|
|
|
header: { |
|
|
|
'content-type': 'application/x-www-form-urlencoded', |
|
|
|
'appWLToken': that.tui.getToken() |
|
|
|
}, |
|
|
|
method: 'POST', //'GET','POST' |
|
|
|
dataType: 'json', |
|
|
|
success: (res) => { |
|
|
|
if (res.data.code == 200){ |
|
|
|
that.$refs.zhuanPopup.close() |
|
|
|
that.getList() |
|
|
|
setTimeout(res=>{ |
|
|
|
that.tui.toast("转单成功") |
|
|
|
},500) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
that.tui.toast("网络不给力,请稍后再试~") |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//顶部搜索框 |
|
|
|
search(res) { |
|
|
|
this.searchName = res.value |
|
|
|
this.logisticsChange(this.logisticsCurrent) |
|
|
|
}, |
|
|
|
clearSearch(){ |
|
|
|
this.searchName = '' |
|
|
|
this.logisticsChange(this.logisticsCurrent) |
|
|
|
}, |
|
|
|
trigger(e) { |
|
|
|
let that = this; |
|
|
|
@ -367,7 +485,6 @@ |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/package1/other/logisticsAddress` |
|
|
|
}) |
|
|
|
// that.tui.toast("线路配置暂不可用") |
|
|
|
}else if(e.index == 1){ |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/package1/other/companyLog` |
|
|
|
|