客户列表显示时间应该是最后一次更新时间
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
class="tab-item"
|
||||
:class="{ active: activeTab === 'status' }"
|
||||
@click="switchTab('status')">
|
||||
<text>服务状态</text>
|
||||
<text>服务中</text>
|
||||
</view>
|
||||
<view
|
||||
class="tab-item"
|
||||
@@ -263,6 +263,12 @@ import CommonBeginReception from "./common_begin_reception.vue";
|
||||
import ServiceListFurniture from "./serviceListFurniture.vue";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
incomingTab: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
// #ifdef APP
|
||||
components: {
|
||||
statusBar,
|
||||
@@ -330,6 +336,14 @@ import ServiceListFurniture from "./serviceListFurniture.vue";
|
||||
showTagActionMenu: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
incomingTab: {
|
||||
immediate: true,
|
||||
handler(tab) {
|
||||
this.applyIncomingTab(tab);
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 计算导航栏和内容区域的位置(使用计算属性确保响应式)
|
||||
computedNavbarTop() {
|
||||
@@ -453,6 +467,21 @@ import ServiceListFurniture from "./serviceListFurniture.vue";
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
applyIncomingTab(tab) {
|
||||
const allowed = ['status', 'reception', 'tag'];
|
||||
if (!allowed.includes(tab)) return;
|
||||
|
||||
// 切tab并执行必要初始化(开始接待需要重置表单)
|
||||
if (this.activeTab !== tab) {
|
||||
this.activeTab = tab;
|
||||
}
|
||||
if (tab === 'reception') {
|
||||
this.resetReceptionForm();
|
||||
} else if (tab === 'tag') {
|
||||
this.tagViewMode = 'list';
|
||||
this.fetchTagList({ force: true });
|
||||
}
|
||||
},
|
||||
// 计算并更新导航栏和内容区域的位置
|
||||
updateNavbarPosition() {
|
||||
console.log('[FurnitureReception][updateNavbarPosition] 开始更新导航栏位置');
|
||||
|
||||
Reference in New Issue
Block a user