|
@@ -5,25 +5,25 @@
|
|
|
<el-input
|
|
|
placeholder='搜索设备名称、编号'
|
|
|
size='small'
|
|
|
- @change='getList'
|
|
|
+ @blur='getList'
|
|
|
prefix-icon='el-icon-search'
|
|
|
- v-model='keyword'
|
|
|
+ v-model='sbjc'
|
|
|
style='width:192px;margin-right:12px'
|
|
|
></el-input>
|
|
|
<el-input
|
|
|
placeholder='搜索重要事项记录、描述'
|
|
|
size='small'
|
|
|
- @change='getList'
|
|
|
+ @blur='getList'
|
|
|
prefix-icon='el-icon-search'
|
|
|
- v-model='keyword'
|
|
|
+ v-model='matters'
|
|
|
style='width:192px;margin-right:12px'
|
|
|
></el-input>
|
|
|
<el-input
|
|
|
placeholder='搜索任务编号'
|
|
|
size='small'
|
|
|
- @change='getList'
|
|
|
+ @blur='getList'
|
|
|
prefix-icon='el-icon-search'
|
|
|
- v-model='keyword'
|
|
|
+ v-model='gzglid'
|
|
|
style='width:192px;margin-right:12px'
|
|
|
></el-input>
|
|
|
<el-date-picker
|
|
@@ -69,7 +69,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='brand' label='现场照片'>
|
|
|
- <template slot-scope='{row}'>{{row.brand || '--'}}</template>
|
|
|
+ <template slot-scope='{row}'>{{row.pics || '--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='reportdate' label='填报时间'>
|
|
|
<template slot-scope='{row}'>{{row.reportdate?formatter(row.reportdate):'--'}}</template>
|
|
@@ -77,8 +77,8 @@
|
|
|
<el-table-column prop='sjjssj' label='验收时间'>
|
|
|
<template slot-scope='{row}'>{{row.sjjssj?formatter(row.sjjssj): '--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop='wonum' label='工单编号' show-overflow-tooltip resizable>
|
|
|
- <template slot-scope='{row}'>{{row.wonum || '--'}}</template>
|
|
|
+ <el-table-column prop='wonum' label='任务编号' show-overflow-tooltip resizable>
|
|
|
+ <template slot-scope='{row}'>{{row.wb_gzglid || '--'}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class='foot'>
|
|
@@ -122,7 +122,10 @@ export default {
|
|
|
name: '否'
|
|
|
}
|
|
|
],
|
|
|
- keyword: ''
|
|
|
+ keyword: '',
|
|
|
+ shjc: '',
|
|
|
+ gzglid: '',
|
|
|
+ matters: ''
|
|
|
}
|
|
|
},
|
|
|
props: ['smsxt', 'major'],
|
|
@@ -138,13 +141,33 @@ export default {
|
|
|
let getParams = {
|
|
|
data: {
|
|
|
smsxt: this.smsxt,
|
|
|
- // tab: this.major,
|
|
|
+
|
|
|
// plazaId: this.$store.state.plazaId,
|
|
|
plazaId: '1000287',
|
|
|
page: this.currentPage,
|
|
|
- size: this.size
|
|
|
+ size: this.size,
|
|
|
+ orderBy: `wb_gzglid,0;sbjbm,1;reportdate,0;`
|
|
|
}
|
|
|
}
|
|
|
+ if (this.sjjssj) {
|
|
|
+ getParams.sjjssj = this.sjjssj
|
|
|
+ }
|
|
|
+ if (this.reportdate) {
|
|
|
+ getParams.reportdate = this.reportdate
|
|
|
+ }
|
|
|
+ getParams.data.keyword = ''
|
|
|
+ if (this.sbjx) {
|
|
|
+ getParams.data.keyword += `${this.sbjc}:sbjc,sbjbm;`
|
|
|
+ }
|
|
|
+ if (this.matters) {
|
|
|
+ getParams.data.keyword += `${this.matters}:matters,description`
|
|
|
+ }
|
|
|
+ if (this.gzglid) {
|
|
|
+ getParams.data.keyword += `${this.gzglid}:wb_gzglid`
|
|
|
+ }
|
|
|
+ if (getParams.data.keyword == '') {
|
|
|
+ delete getParams.data.keyword
|
|
|
+ }
|
|
|
queryWbsms(getParams).then(res => {
|
|
|
this.tableData = res.data || []
|
|
|
this.total = res.count
|