|
@@ -3,9 +3,9 @@
|
|
<div class='zw-list'>
|
|
<div class='zw-list'>
|
|
<div class='eq-list-top'>
|
|
<div class='eq-list-top'>
|
|
<el-date-picker size='small' v-model='nd' type='year' placeholder='请选择年度' @change='getList' style='width:180px;margin-right:12px'></el-date-picker>
|
|
<el-date-picker size='small' v-model='nd' type='year' placeholder='请选择年度' @change='getList' style='width:180px;margin-right:12px'></el-date-picker>
|
|
- <Select width='146' tipPlace='top' caption='类别:' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
|
|
- <Select width='120' tipPlace='top' caption='项目 :' :selectdata='floorSelect' style='margin:0 12px' @change='getList'></Select>
|
|
|
|
- <Select width='180' tipPlace='top' caption='当前阶段' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
|
|
|
|
+ <Select width='146' tipPlace='top' v-model='lb' caption='类别:' :selectdata='lbOption' :placeholder='"请选择"' @change='getList'></Select>
|
|
|
|
+ <Select width='120' tipPlace='top' v-model='xm' caption='项目 :' :selectdata='xmOption' style='margin:0 12px' @change='getList'></Select>
|
|
|
|
+ <Select width='180' tipPlace='top' v-model='sxjd' caption='当前阶段' :selectdata='sxjdOption' :placeholder='"请选择"' @change='getList'></Select>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
size='small'
|
|
size='small'
|
|
v-model='lxsjwcsj'
|
|
v-model='lxsjwcsj'
|
|
@@ -19,7 +19,7 @@
|
|
width='180'
|
|
width='180'
|
|
tipPlace='top'
|
|
tipPlace='top'
|
|
caption='验收结果'
|
|
caption='验收结果'
|
|
- :selectdata='dataSelect2'
|
|
|
|
|
|
+ :selectdata='statusOption'
|
|
:placeholder='"请选择"'
|
|
:placeholder='"请选择"'
|
|
style='margin-right:12px'
|
|
style='margin-right:12px'
|
|
>@change='getList'></Select>
|
|
>@change='getList'></Select>
|
|
@@ -33,11 +33,11 @@
|
|
></el-input>
|
|
></el-input>
|
|
</div>
|
|
</div>
|
|
<el-table :data='tableData' :border='true' style='width: 100%'>
|
|
<el-table :data='tableData' :border='true' style='width: 100%'>
|
|
- <el-table-column type='index' label='序号' width='80'></el-table-column>
|
|
|
|
- <el-table-column prop='nd' label='年度' width='160' show-overflow-tooltip resizable>
|
|
|
|
|
|
+ <el-table-column type='index' label='序号'></el-table-column>
|
|
|
|
+ <el-table-column prop='nd' label='年度' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.nd || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.nd || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='qs' label='期数' width='160' show-overflow-tooltip resizable>
|
|
|
|
|
|
+ <el-table-column prop='qs' label='期数' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.qs || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.qs || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop='lb' label='类别' show-overflow-tooltip resizable>
|
|
<el-table-column prop='lb' label='类别' show-overflow-tooltip resizable>
|
|
@@ -49,10 +49,10 @@
|
|
<el-table-column prop='sl' label='数量' show-overflow-tooltip resizable>
|
|
<el-table-column prop='sl' label='数量' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.sl || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.sl || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='ssfasm' label='实施方案说明' show-overflow-tooltip resizable width='200'>
|
|
|
|
|
|
+ <el-table-column prop='ssfasm' label='实施方案说明' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.ssfasm || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.ssfasm || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='sxjd' label='当前阶段' show-overflow-tooltip resizable width='140'>
|
|
|
|
|
|
+ <el-table-column prop='sxjd' label='当前阶段' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.sxjd || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.sxjd || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop='lxsjwcsj' label='立项日期' show-overflow-tooltip resizable>
|
|
<el-table-column prop='lxsjwcsj' label='立项日期' show-overflow-tooltip resizable>
|
|
@@ -67,7 +67,7 @@
|
|
<el-table-column prop='zfje' label='结算金额' show-overflow-tooltip resizable>
|
|
<el-table-column prop='zfje' label='结算金额' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.zfje || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.zfje || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='xlcfwz' label='资料存放位置' width='180' show-overflow-tooltip resizable>
|
|
|
|
|
|
+ <el-table-column prop='xlcfwz' label='资料存放位置' show-overflow-tooltip resizable>
|
|
<template slot-scope='{row}'>{{row.xlcfwz || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.xlcfwz || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -93,12 +93,6 @@ export default {
|
|
components: { Select },
|
|
components: { Select },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- dataSelect2: [
|
|
|
|
- { id: 'test1', name: '选择项' },
|
|
|
|
- { id: 'test2', name: '单平米' },
|
|
|
|
- { id: 'test3', name: '下级分项' },
|
|
|
|
- { id: 'test4', name: '滑动平均滑动平均' }
|
|
|
|
- ],
|
|
|
|
tableData: [],
|
|
tableData: [],
|
|
total: 0,
|
|
total: 0,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
@@ -106,7 +100,14 @@ export default {
|
|
lxsjwcsj: '',
|
|
lxsjwcsj: '',
|
|
size: 10,
|
|
size: 10,
|
|
keyword: '',
|
|
keyword: '',
|
|
- nd: ''
|
|
|
|
|
|
+ nd: '',
|
|
|
|
+ lb: '',
|
|
|
|
+ sxjd: '',
|
|
|
|
+ xm: '',
|
|
|
|
+ statusOption: [],
|
|
|
|
+ sxjdOption: [],
|
|
|
|
+ xmOption: [],
|
|
|
|
+ lbOption: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -122,11 +123,8 @@ export default {
|
|
tabFind() {
|
|
tabFind() {
|
|
let postParams = [
|
|
let postParams = [
|
|
{
|
|
{
|
|
- columnName: { nd: 'nd', lb: 'lb', xm: 'xm', sxjd: 'sxjd' },
|
|
|
|
- params: {
|
|
|
|
- // tab_code: this.param
|
|
|
|
- },
|
|
|
|
- tableName: 'glsms_asset' //视图名称
|
|
|
|
|
|
+ columnName: { lb: 'lb', xm: 'xm', sxjd: 'sxjd', status: 'status' },
|
|
|
|
+ tableName: 'v_glsms_zw' //视图名称
|
|
}
|
|
}
|
|
]
|
|
]
|
|
let major
|
|
let major
|
|
@@ -140,40 +138,60 @@ export default {
|
|
major = '电梯'
|
|
major = '电梯'
|
|
} else if (this.major.slice(0, 2) == 'RQ') {
|
|
} else if (this.major.slice(0, 2) == 'RQ') {
|
|
major = '燃气'
|
|
major = '燃气'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'RD') {
|
|
|
|
+ major = '弱电'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'NT') {
|
|
|
|
+ major = '暖通'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'TJ') {
|
|
|
|
+ major = '土建'
|
|
} else {
|
|
} else {
|
|
major = this.major
|
|
major = this.major
|
|
}
|
|
}
|
|
let data = {
|
|
let data = {
|
|
major: major,
|
|
major: major,
|
|
- plazaId: this.$store.state.plazaId
|
|
|
|
|
|
+ plazaId: '1000287'
|
|
|
|
+ // plazaId: this.$store.state.plazaId
|
|
}
|
|
}
|
|
querySelect({ data, postParams }).then(res => {
|
|
querySelect({ data, postParams }).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
- if (Object.key(res.data.data).length > 0) {
|
|
|
|
- let sb_status = res.data.data.glsms_asset.sb_status
|
|
|
|
- let sbglgs = res.data.data.glsms_asset.sbglgs
|
|
|
|
- this.sbglgsOption = []
|
|
|
|
- this.statusOption = []
|
|
|
|
- sb_status.forEach(el => {
|
|
|
|
- this.statusOption.push({
|
|
|
|
- name: el.value,
|
|
|
|
- id: el.key
|
|
|
|
- })
|
|
|
|
|
|
+ let lb = res.data.data.v_glsms_zw.lb
|
|
|
|
+ let xm = res.data.data.v_glsms_zw.xm
|
|
|
|
+ let sxjd = res.data.data.v_glsms_zw.sxjd
|
|
|
|
+ let status = res.data.data.v_glsms_zw.status
|
|
|
|
+ this.lbOption = []
|
|
|
|
+ this.xmOption = []
|
|
|
|
+ this.sxjdOption = []
|
|
|
|
+ this.statusOption = []
|
|
|
|
+ sxjd.forEach(el => {
|
|
|
|
+ this.sxjdOption.push({
|
|
|
|
+ name: el.value,
|
|
|
|
+ id: el.key
|
|
})
|
|
})
|
|
- sbglgs.forEach(el => {
|
|
|
|
- this.sbglgsOption.push({
|
|
|
|
- name: el.value,
|
|
|
|
- id: el.key
|
|
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ xm.forEach(el => {
|
|
|
|
+ this.xmOption.push({
|
|
|
|
+ name: el.value,
|
|
|
|
+ id: el.key
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ })
|
|
|
|
+ lb.forEach(el => {
|
|
|
|
+ this.lbOption.push({
|
|
|
|
+ name: el.value,
|
|
|
|
+ id: el.key
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ status.forEach(el => {
|
|
|
|
+ this.statusOption.push({
|
|
|
|
+ name: el.value,
|
|
|
|
+ id: el.key
|
|
|
|
+ })
|
|
|
|
+ })
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
let getParams = {
|
|
let getParams = {
|
|
data: {
|
|
data: {
|
|
smsxt: this.smsxt,
|
|
smsxt: this.smsxt,
|
|
- // tab: this.major,
|
|
|
|
// plazaId: this.$store.state.plazaId,
|
|
// plazaId: this.$store.state.plazaId,
|
|
plazaId: '1000287',
|
|
plazaId: '1000287',
|
|
page: this.currentPage,
|
|
page: this.currentPage,
|
|
@@ -189,13 +207,13 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
smsxt(newV, oldV) {
|
|
smsxt(newV, oldV) {
|
|
if (newV !== oldV) {
|
|
if (newV !== oldV) {
|
|
- // this.tabFind()
|
|
|
|
|
|
+ this.tabFind()
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- // this.tabFind()
|
|
|
|
|
|
+ this.tabFind()
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
}
|
|
}
|