| | |
| | | }); |
| | | }, |
| | | |
| | | 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; |