This commit is contained in:
parent
fef405ed9c
commit
c38a156943
|
@ -86,9 +86,12 @@ const loadOrderList = (pramas) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const titleText = ref('')
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// loadOrderList();
|
// loadOrderList();
|
||||||
mitt.on('showBusinesses2', (e) => {
|
mitt.on('showBusinesses2', (e) => {
|
||||||
|
titleText.value = e.name;
|
||||||
pages.value.type = e.type;
|
pages.value.type = e.type;
|
||||||
isShow.value = !isShow.value;
|
isShow.value = !isShow.value;
|
||||||
})
|
})
|
||||||
|
@ -100,7 +103,7 @@ onMounted(() => {
|
||||||
<div class="bus" v-if="isShow">
|
<div class="bus" v-if="isShow">
|
||||||
<div class="c-list-box">
|
<div class="c-list-box">
|
||||||
<div class="c-l-top">
|
<div class="c-l-top">
|
||||||
<div class="title">订单列表</div>
|
<div class="title">{{ titleText }} - 订单列表</div>
|
||||||
<div class="close" @click="isShow = false">关闭</div>
|
<div class="close" @click="isShow = false">关闭</div>
|
||||||
</div>
|
</div>
|
||||||
<dv-scroll-board
|
<dv-scroll-board
|
||||||
|
|
|
@ -27,8 +27,8 @@ const initInfo = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const clickItem = (type) => {
|
const clickItem = (type, name) => {
|
||||||
mitt.emit('showBusinesses2', { type: type })
|
mitt.emit('showBusinesses2', { type: type, name: name })
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -44,17 +44,17 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
<div class="border"></div>
|
<div class="border"></div>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<div class="c-b" @click.stop="clickItem(1)">
|
<div class="c-b" @click.stop="clickItem(1, '待取货')">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
待取货({{ appStore.delivery.pending_order_count }})单
|
待取货({{ appStore.delivery.pending_order_count }})单
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="c-b" @click.stop="clickItem(2)">
|
<div class="c-b" @click.stop="clickItem(2, '配送中')">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
配送中({{ appStore.delivery.delivering_order_count }})单
|
配送中({{ appStore.delivery.delivering_order_count }})单
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="c-b" @click.stop="clickItem(3)">
|
<div class="c-b" @click.stop="clickItem(3, '已完成')">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
已完成({{ appStore.delivery.finished_order_count }})单
|
已完成({{ appStore.delivery.finished_order_count }})单
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue