| | |
| | | <view class="top-right"> |
| | | <button class="refresh-btn" @click="refresh">刷新</button> |
| | | </view> |
| | | <view> |
| | | <!--<view> |
| | | <h4>一台机台只能选择一条工单(多选默认为最后一条)</h4> |
| | | </view> |
| | | </view>--> |
| | | <view class="section top-section"> |
| | | <view class="form-row"> |
| | | <view> |
| | |
| | | </view> |
| | | |
| | | <view> |
| | | <text style="color: red;"> |
| | | <!--<text style="color: red;"> |
| | | 说明:只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。 |
| | | 如果要重选,点击清空重选功能。 |
| | | </text> |
| | | </text>--> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }); |
| | | }, |
| | | |
| | | 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; |