快乐的昕的电脑
2025-10-20 7a83506197e501402a1ca9b38b67a7c9a8195438
默认显示“待开工”工单
已修改1个文件
38 ■■■■■ 文件已修改
pages/index.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index.vue
@@ -635,29 +635,25 @@
                });
            },
            isShowTab() {
            isShowTab() {
                if (this.isShowTableData.length > 0) {
                    uni.showToast({
                        title: '已有正在操作的工单,不能再次选择',
                        icon: 'error',
                        duration: 2000
                    });
                    return;
                }
                if (this.isShowTableData.length > 0) {
                    uni.showToast({
                        title: '已有正在操作的工单,不能再次选择',
                        //将值设置为 success 或者直接不用写icon这个参数
                        icon: 'error',
                        //显示持续时间为 2秒
                        duration: 2000
                    });
                    return;
                }
                this.isShow = true;
                this.engineeringNo = null;
                this.tableData = [];
                this.isShow = true;
                // 默认选中“待开工”
                this.engineeringNo = '待开工';
                this.tableData = [];
                // 下拉框只显示工单状态
                this.engineeringNoMapList = ['待开工', '未开工', '开工', '暂停','完工'];
                // 默认显示全部工单
                this.getWomdaa();
            },
                this.engineeringNoMapList = ['待开工', '未开工', '开工', '暂停', '完工'];
                // 默认显示“待开工”工单
                this.getWomdaaByStatus();
            },
            // 下拉框选中后,按状态筛选工单
            onEngineeringNoChange(status) {
                this.engineeringNo = status;