| | |
| | | |
| | | <view class="form-row"> |
| | | <view> |
| | | <label |
| | | style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px;">第一步选择工单:</label> |
| | | <label style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px;">第一步选择工单:</label> |
| | | <button class="print-btn" @click="isShowTab">选择工单</button> |
| | | </view> |
| | | </view> |
| | |
| | | </scroll-view> |
| | | |
| | | |
| | | <!-- 弹窗下拉框只显示工单状态 --> |
| | | <view v-if="isShow" class="overlay"> |
| | | <view class="popup"> |
| | | <!--筛选工单状态--> |
| | | <view class="form-row"> |
| | | <view> |
| | | <label style="float: left;margin-top: 18px;">选择工单状态:</label> |
| | |
| | | |
| | | this.engineeringNo = null; |
| | | this.tableData = []; |
| | | // 筛选工单状态 |
| | | this.GetWomdaasByEngineeringNo(); |
| | | // 下拉框只显示工单状态 |
| | | this.engineeringNoMapList = ['待开工', '未开工', '完工', '暂停']; |
| | | // 默认显示全部工单 |
| | | this.getWomdaa(); |
| | | }, |
| | | |
| | | // 下拉框选中后,按状态筛选工单 |
| | | onEngineeringNoChange(status) { |
| | | this.engineeringNo = status; |
| | | this.getWomdaaByStatus(); |
| | | }, |
| | | getWomdaa() { |
| | | |
| | | let editDate = this.formatDate(new Date()); |
| | |
| | | url: "/Womdaa/GetWomdaasByMachine", |
| | | data: { |
| | | machineNo: this.machineNo, |
| | | //engineeringNo: this.engineeringNo, |
| | | editDate: editDate |
| | | } |
| | | }).then(res => { |
| | | this.tableData = res.data.tbBillList; |
| | | }) |
| | | }, |
| | | // 筛选工单状态 |
| | | GetWomdaasByEngineeringNo() { |
| | | |
| | | // 按工单状态筛选工单 |
| | | getWomdaaByStatus() { |
| | | let editDate = this.formatDate(new Date()); |
| | | this.$post({ |
| | | url: "/Womdaa/GetWomdaasByEngineeringNo", |
| | | data: { |
| | | machineNo: this.machineNo, |
| | | orderStatus: ['待开工', '未开工', '完工', '暂停'] // 新增状态筛选条件 |
| | | orderStatus: [this.engineeringNo], // 只传选中的状态 |
| | | editDate: editDate |
| | | } |
| | | }).then(res => { |
| | | this.engineeringNoList = res.data.tbBillList; |
| | | // 直接映射,不分组 |
| | | this.engineeringNoMapList = this.engineeringNoList.map(s => s.moldId + ":" + s.moldName + ":" + s.moldModel); |
| | | this.tableData = res.data.tbBillList; |
| | | }); |
| | | }, |
| | | }, |
| | | toDetail(item) { |
| | | this.orderId = item.id; |
| | | this.selectedOrder = item.daa001; |