|
@@ -76,14 +76,14 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="pos-order-goods">
|
|
<view class="pos-order-goods">
|
|
- <view class="goods acea-row" @click="toDetail(item)">
|
|
|
|
|
|
+ <view class="goods acea-row">
|
|
<!-- <scroll-view class="picTxt scroll-view" scroll-x="true"
|
|
<!-- <scroll-view class="picTxt scroll-view" scroll-x="true"
|
|
v-if="item.infoResponseList.length > 1">
|
|
v-if="item.infoResponseList.length > 1">
|
|
<view class="pictrue" v-for="(val, key) in item.infoResponseList" :key="key">
|
|
<view class="pictrue" v-for="(val, key) in item.infoResponseList" :key="key">
|
|
<image :src="val.image" />
|
|
<image :src="val.image" />
|
|
</view>
|
|
</view>
|
|
</scroll-view> -->
|
|
</scroll-view> -->
|
|
- <view class="picTxt">
|
|
|
|
|
|
+ <view class="picTxt" @click="toDetail(item)">
|
|
<view class="acea-row" >
|
|
<view class="acea-row" >
|
|
<view class="order-content">
|
|
<view class="order-content">
|
|
<view class="bold-size flex-y-center" style="padding: 10rpx 0;">
|
|
<view class="bold-size flex-y-center" style="padding: 10rpx 0;">
|
|
@@ -127,13 +127,13 @@
|
|
</view>
|
|
</view>
|
|
<view class="acea-row row-middle">
|
|
<view class="acea-row row-middle">
|
|
<view v-if="item.status==1 || item.status==2" @click="cancel(item)" class="bnt on acea-row row-center-wrapper">取消订单</view>
|
|
<view v-if="item.status==1 || item.status==2" @click="cancel(item)" class="bnt on acea-row row-center-wrapper">取消订单</view>
|
|
- <view v-if="item.status==1" class="bnt on acea-row row-center-wrapper">联系商家</view>
|
|
|
|
- <view v-if="item.status==2" class="bnt on acea-row row-center-wrapper">联系客户</view>
|
|
|
|
|
|
+ <view v-if="item.status==1 && item.merPhone !=null" @click="makePhoneCall(item.merPhone )" class="bnt on acea-row row-center-wrapper">联系驿站</view>
|
|
|
|
+ <view v-if="item.status==2 && item.userPhone!=null" @click="makePhoneCall(item.userPhone )" class="bnt on acea-row row-center-wrapper">联系客户</view>
|
|
<view class="bnt primary" v-if="item.status==0"
|
|
<view class="bnt primary" v-if="item.status==0"
|
|
@click="receiving(item)">接单
|
|
@click="receiving(item)">接单
|
|
</view>
|
|
</view>
|
|
<view class="bnt primary" v-if="item.status==1"
|
|
<view class="bnt primary" v-if="item.status==1"
|
|
- @click="pickUp(item)">取货配送
|
|
|
|
|
|
+ @click="pickUp(item)">取件配送
|
|
</view>
|
|
</view>
|
|
<view class="bnt primary" v-if="item.status==2"
|
|
<view class="bnt primary" v-if="item.status==2"
|
|
@click="complete(item)">送达完成
|
|
@click="complete(item)">送达完成
|
|
@@ -336,6 +336,19 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 拨打电话
|
|
|
|
+ makePhoneCall(phone) {
|
|
|
|
+ const phoneNumber = phone; // 替换为的电话号码
|
|
|
|
+ uni.makePhoneCall({
|
|
|
|
+ phoneNumber: phoneNumber,
|
|
|
|
+ success() {
|
|
|
|
+ console.log('拨打电话成功');
|
|
|
|
+ },
|
|
|
|
+ fail() {
|
|
|
|
+ console.log('拨打电话失败');
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//订单表头数量
|
|
//订单表头数量
|
|
statusHeader() {
|
|
statusHeader() {
|
|
orderStatusNum(this.searchListData).then(res => {
|
|
orderStatusNum(this.searchListData).then(res => {
|
|
@@ -370,7 +383,7 @@
|
|
},
|
|
},
|
|
toDetail(item) {
|
|
toDetail(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: this.searchListData.type==1?`/pages/rider_index/express/detail?orderInfo=${JSON.stringify(item)}`:`/pages/rider_index/order/detail?orderInfo=${JSON.stringify(item)}`
|
|
|
|
|
|
+ url: (this.searchListData.type==1 || item.orderType==1)?`/pages/rider_index/express/detail?orderInfo=${JSON.stringify(item)}`:`/pages/rider_index/order/detail?orderInfo=${JSON.stringify(item)}`
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
@@ -471,7 +484,7 @@
|
|
this.getInitList();
|
|
this.getInitList();
|
|
}, 50)
|
|
}, 50)
|
|
return this.$util.Tips({
|
|
return this.$util.Tips({
|
|
- title: '取货完成,请尽快安排配送'
|
|
|
|
|
|
+ title: '取件完成,请尽快安排配送'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
self.$util.Tips({
|
|
self.$util.Tips({
|