更新订单管理模块

This commit is contained in:
2024-09-28 15:08:21 +08:00
parent 5a7aaad0a4
commit 90eb77d891
9 changed files with 409 additions and 125 deletions

View File

@@ -96,7 +96,8 @@
}
}
goodsMapInit()
watch(() => props.data.detailList, (newval) => {
watch(() => props.data.detailList.length, (newval) => {
goodsNumber.value=0
goodsMapInit()
})
@@ -111,8 +112,10 @@
}
function sendTypeFilter(t) {
console.log(t);
if (t) {
return orderEnum.sendType.find(item => item.key == t).label;
const item=orderEnum.sendType.find(item => item.key == t)
return item?item.label:'';
} else {
return t;
}

View File

@@ -1,7 +1,7 @@
<template>
<view class="list">
<view v-for="(item,index) in list" :key="index">
<order-item @printOrder="print" :data="item" :index="index"></order-item>
<order-item @printOrder="print" :key="index" :data="item" :index="index"></order-item>
</view>
<view v-if="hasAjax&&!list.length">
<my-img-empty tips="亲,你还没有订单哦~"></my-img-empty>