为订单增加修改服务时间功能

This commit is contained in:
TOP糯米 2023-04-01 18:19:08 +08:00
parent 81419d58e7
commit 3f0780d10d
3 changed files with 24 additions and 4 deletions

View File

@ -32,7 +32,7 @@
<view class="order-desc-row">
<text class="title">服务时间</text>
<text class="text">{{ order.serviceTime }}</text>
<block v-if="order.listType == 't2'">
<block v-if="order.state == 0 || order.state == 1 || order.state == 2">
<view class="btn" @click.stop="changeTime">
<text class="iconfont icon-bianji"></text>
<text class="btn-desc">修改时间</text>

View File

@ -287,7 +287,9 @@ export default {
},
changeServiceTime: {
t1: {
url: "",
url: "/a",
showLoading: true,
auth: true,
},
t2: {
url: "/wxapp/orderb/saveordrbyid",
@ -295,7 +297,9 @@ export default {
auth: true,
},
t3: {
url: ""
url: "/b",
showLoading: true,
auth: true,
}
},
chooseWorker: {

View File

@ -79,7 +79,7 @@
<view class="info-row">
<text class="title">服务时间</text>
<text class="text">{{ order.serviceTime }}</text>
<block v-if="order.listType == 't2'">
<block v-if="order.state == 0 || order.state == 1 || order.state == 2">
<view class="btn" @click.stop="changeTime(order)">
<text class="iconfont icon-bianji"></text>
<text class="btn-desc">修改时间</text>
@ -137,6 +137,14 @@
<view class="address-box" @click="openLocation(order.pickupAddress.lng, order.pickupAddress.lat)">
<text class="iconfont icon-dingwei"></text>
<view>
<view class="contact limit-line clamp-1">
<text class="name">
{{ order.pickupAddress.name }}({{
order.pickupAddress.gender == 1 ? "先生" : "女士"
}})
</text>
<text class="mobile">{{ order.pickupAddress.mobile }}</text>
</view>
<view class="detail">
<text>{{ order.pickupAddress.address }}{{ order.pickupAddress.detail }}</text>
</view>
@ -148,6 +156,14 @@
<view class="address-box" @click="openLocation(order.unloadAddress.lng, order.unloadAddress.lat)">
<text class="iconfont icon-dingwei"></text>
<view>
<view class="contact limit-line clamp-1">
<text class="name">
{{ order.unloadAddress.name }}({{
order.unloadAddress.gender == 1 ? "先生" : "女士"
}})
</text>
<text class="mobile">{{ order.unloadAddress.mobile }}</text>
</view>
<view class="detail">
<text>{{ order.unloadAddress.address }}{{ order.unloadAddress.detail }}</text>
</view>