|
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
|
<u-tabs v-if="subsectionCurrent == '0'" :list="tabList" :is-scroll="true" :current="current" |
|
|
|
|
@change="changeTab"></u-tabs> |
|
|
|
|
<u-tabs v-if="subsectionCurrent == '1'" :list="tasktabList" :is-scroll="true" :current="current" |
|
|
|
|
@change="changeTab"></u-tabs> |
|
|
|
|
@change="subsectionChangeTab"></u-tabs> |
|
|
|
|
</view> |
|
|
|
|
<view class="order-box"> |
|
|
|
|
<view class="order-item" v-for="(item, index) in orderData" :key="index"> |
|
|
|
|
@ -124,6 +124,7 @@ export default { |
|
|
|
|
requirementCode: "", |
|
|
|
|
type: '',//状态 |
|
|
|
|
reportUnit: '',//提报单位 |
|
|
|
|
statusSearch:'',//巡检任务状态 |
|
|
|
|
}, |
|
|
|
|
userInfo: {},//用户信息 |
|
|
|
|
rowInfo: {},//选中行数据 |
|
|
|
|
@ -229,8 +230,10 @@ export default { |
|
|
|
|
} |
|
|
|
|
let res = {} |
|
|
|
|
if (this.subsectionCurrent == '0') { |
|
|
|
|
query.statusSearch = this.searchInfo.statusSearch |
|
|
|
|
res = await this.$u.api.getTaskPage(query) |
|
|
|
|
} else { |
|
|
|
|
query.statusSearch = this.searchInfo.statusSearch |
|
|
|
|
res = await this.$u.api.getRepairPage(query) |
|
|
|
|
} |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
@ -265,10 +268,18 @@ export default { |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.getRecordsList() |
|
|
|
|
}, |
|
|
|
|
// tab切换 |
|
|
|
|
// 巡检任务 tab切换 |
|
|
|
|
changeTab(index) { |
|
|
|
|
this.current = index; |
|
|
|
|
this.searchInfo.type = this.tabList[index].key == '9999' ? '' : this.tabList[index].key |
|
|
|
|
this.searchInfo.statusSearch = this.tabList[index].key == '9999' ? '' : this.tabList[index].key |
|
|
|
|
this.isNomore = false |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.getRecordsList() |
|
|
|
|
}, |
|
|
|
|
// 巡检维修 tab切换 |
|
|
|
|
subsectionChangeTab(index){ |
|
|
|
|
this.current = index; |
|
|
|
|
this.searchInfo.statusSearch = this.tasktabList[index].key == '9999' ? '' : this.tasktabList[index].key |
|
|
|
|
this.isNomore = false |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.getRecordsList() |
|
|
|
|
@ -296,6 +307,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
subsectionChange(e) { |
|
|
|
|
this.subsectionCurrent = e; |
|
|
|
|
this.searchInfo.statusSearch='' |
|
|
|
|
this.getRecordsList() |
|
|
|
|
}, |
|
|
|
|
// 指派 |
|
|
|
|
|