| | |
| | | <uni-datetime-picker v-model="range" type="daterange" rangeSeparator="至" /> |
| | | </view> |
| | | <view> |
| | | <u-button type="primary" size="small" text="查询" @click="getWorkOrder"></u-button> |
| | | <u-button type="primary" size="small" text="查询" @click="getSearch" throttleTime='500'></u-button> |
| | | </view> |
| | | </view> |
| | | <view :key="index" v-for="(item, index) in workOderList" class="workOrderDetail" |
| | |
| | | <view class="wholeLine"> |
| | | <text class="rowTipContenetLabel">上报单位:</text> |
| | | <text class="rowTipContenetAll"> |
| | | {{ unitList.find( |
| | | (a) => |
| | | item && parseInt(a.unitId) === item.escalationUnitId |
| | | ).unitName |
| | | }} |
| | | {{ item.escalationUnitName}} |
| | | </text> |
| | | </view> |
| | | </view> |
| | |
| | | currentPage: 1, |
| | | pageSize: 10 |
| | | } |
| | | this.workOderList = [] |
| | | this.startTime = '' |
| | | this.endTime = '' |
| | | uni.$u.throttle(this.getWorkOrder, 500) |
| | | }, |
| | | getSearch() { |
| | | this.workOderList = [] |
| | | this.page = { |
| | | currentPage: 1, |
| | | pageSize: 10 |
| | | } |
| | | this.getWorkOrder() |
| | | }, |
| | | // 获取责任单位list |
| | |
| | | this.isLoading = true |
| | | this.status = 'loadmore' |
| | | } |
| | | if (this.page.currentPage === res.data.page.currentPage) { |
| | | this.workOderList = res.data.list |
| | | } else { |
| | | res.data.list.forEach(el => { |
| | | this.workOderList.push(el) |
| | | }) |
| | | } |
| | | res.data.list.forEach(el => { |
| | | this.workOderList.push(el) |
| | | }) |
| | | } else { |
| | | this.status = 'nomore' |
| | | } |
| | | }) |
| | | }, |
| | | handleClick(e, pageState) { |
| | | this.$http.httpGet('/allocation/detail', { |
| | | id: e.allocationId |
| | | }).then(res => { |
| | | let data = res.data |
| | | data.pageState = e.stateName === '待处理' ? pageState : 'view' |
| | | data.stateName = e.stateName |
| | | let myData = JSON.stringify(data) |
| | | uni.navigateTo({ |
| | | url: '/pages/actionChange/workOrderDetails/index?infor=' + myData + '&type=jump', |
| | | }) |
| | | let data = {} |
| | | data.pageState = e.stateName === '待处理' ? pageState : 'view' |
| | | data.stateName = e.stateName |
| | | data.allocationId = e.allocationId |
| | | data.state = e.state |
| | | data.allocationNum = e.allocationNum |
| | | let myData = JSON.stringify(data) |
| | | uni.navigateTo({ |
| | | url: '/pages/actionChange/workOrderDetails/index?infor=' + myData + '&type=jump', |
| | | }) |
| | | }, |
| | | }, |