manage-client 3.3.91 → 3.3.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/4.4/fileChanges/last-build.bin +0 -0
- package/.gradle/4.4/fileContent/fileContent.lock +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/build/libs/ManageClient-3.1.0-17.jar +0 -0
- package/build/libs/ManageClient-3.1.0-18.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +2 -0
- package/package.json +111 -111
- package/src/components/handReport/HandGaspropertiesReport.vue +190 -190
- package/src/components/handReport/HandPriceReport.vue +190 -190
- package/src/components/handReport/WebGastypeReport.vue +190 -190
- package/src/filiale/WEINAN/ManageCompanyGasDetail.vue +16 -4
- package/src/filiale/WEINAN/ManageCompanyGasManage.vue +6 -1
- package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +22 -10
- package/src/filiale/WEINAN/ManageSummaryReport.vue +20 -9
- package/src/filiale/yuansheng/DayReportList.vue +463 -470
- package/src/reportManage.js +723 -723
|
@@ -1,190 +1,190 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="basic-main" style="height: 100%">
|
|
3
|
-
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
-
<div class="row">
|
|
7
|
-
<div class="col-sm-2 form-group" >
|
|
8
|
-
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
9
|
-
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
10
|
-
v-model="model.startDate"
|
|
11
|
-
:value.sync="model.startDate"
|
|
12
|
-
:disabled-days-of-Week="[]"
|
|
13
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
14
|
-
:show-reset-button="reset">
|
|
15
|
-
</datepicker>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-2 form-group" >
|
|
18
|
-
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
19
|
-
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
20
|
-
v-model="model.endDate"
|
|
21
|
-
:value.sync="model.endDate"
|
|
22
|
-
:disabled-days-of-Week="[]"
|
|
23
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
24
|
-
:show-reset-button="reset">
|
|
25
|
-
</datepicker>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-2 form-group">
|
|
28
|
-
<label class="font_normal_body"> 公司 </label>
|
|
29
|
-
<right-tree @re-res="$parent.$parent.getRes"></right-tree>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="col-sm-2 form-group">
|
|
32
|
-
<label class="font_normal_body"> 部门 </label>
|
|
33
|
-
<res-select restype='department'
|
|
34
|
-
@res-select="$parent.$parent.getdep"
|
|
35
|
-
:parentresid ="$parent.$parent.depresid"
|
|
36
|
-
:initresid='$parent.$parent.depid'>
|
|
37
|
-
</res-select>
|
|
38
|
-
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<div style = "float:right;">
|
|
43
|
-
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
44
|
-
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
45
|
-
<report-excel id='gasprice'></report-excel>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</criteria>
|
|
50
|
-
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
51
|
-
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
|
|
52
|
-
<thead>
|
|
53
|
-
<tr>
|
|
54
|
-
<th colspan='5' style="font-weight: bold; text-align: left;">
|
|
55
|
-
<h3 style="text-align: center">抄表性质统计报表</h3>
|
|
56
|
-
</th>
|
|
57
|
-
</tr>
|
|
58
|
-
<tr>
|
|
59
|
-
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
60
|
-
开始时间:{{model.model.startDate}}
|
|
61
|
-
结束时间:{{ model.model.endDate }}
|
|
62
|
-
</th>
|
|
63
|
-
</tr>
|
|
64
|
-
<tr>
|
|
65
|
-
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
66
|
-
打印时间:{{{$parent.printTime}}}
|
|
67
|
-
</th>
|
|
68
|
-
</tr>
|
|
69
|
-
<tr>
|
|
70
|
-
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
71
|
-
<div>
|
|
72
|
-
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
73
|
-
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
74
|
-
</div>
|
|
75
|
-
</th>
|
|
76
|
-
</tr>
|
|
77
|
-
</thead>
|
|
78
|
-
<tr>
|
|
79
|
-
<td colspan='5' style="font-weight: normal;" id="test">
|
|
80
|
-
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
81
|
-
</td>
|
|
82
|
-
</tr>
|
|
83
|
-
</table>
|
|
84
|
-
{{{ $parent.reportStr}}}
|
|
85
|
-
</div>
|
|
86
|
-
</criteria-paged>
|
|
87
|
-
</div>
|
|
88
|
-
</template>
|
|
89
|
-
|
|
90
|
-
<script>
|
|
91
|
-
import { DataModel } from 'vue-client'
|
|
92
|
-
import co from 'co'
|
|
93
|
-
export default {
|
|
94
|
-
title: '抄表性质统计报表',
|
|
95
|
-
props: ['data'],
|
|
96
|
-
data () {
|
|
97
|
-
return {
|
|
98
|
-
printTime: this.$login.toStandardTimeString(),
|
|
99
|
-
depresid: [],
|
|
100
|
-
userresid: [],
|
|
101
|
-
initres: {
|
|
102
|
-
org:[this.$login.f.orgid],
|
|
103
|
-
dep:[],
|
|
104
|
-
user:[]
|
|
105
|
-
},
|
|
106
|
-
f_public_group1: '',
|
|
107
|
-
f_orgid: this.$login.f.orgid,
|
|
108
|
-
f_depid: this.$login.f.depids,
|
|
109
|
-
f_operatorid: this.$login.f.id,
|
|
110
|
-
operatorid: [],
|
|
111
|
-
depid: [],
|
|
112
|
-
orgname: '',
|
|
113
|
-
depname: '',
|
|
114
|
-
operatorname: '',
|
|
115
|
-
orgCondtionStr: '1=1',
|
|
116
|
-
model: new DataModel('rs/report/WebGasType_hd',
|
|
117
|
-
{startDate: 'this.model.startDate',
|
|
118
|
-
endDate: 'this.model.endDate',
|
|
119
|
-
f_orgid: 'this.model.f_orgid'
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
reportStr: null,
|
|
123
|
-
show: false,
|
|
124
|
-
spans: ''
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
ready () {
|
|
128
|
-
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
129
|
-
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
130
|
-
// this.$refs.paged.$refs.criteria.search()
|
|
131
|
-
},
|
|
132
|
-
methods: {
|
|
133
|
-
searchData () {
|
|
134
|
-
this.$refs.paged.$refs.criteria.search()
|
|
135
|
-
},
|
|
136
|
-
selfSearch (args) {
|
|
137
|
-
this.printTime = this.$login.toStandardTimeString()
|
|
138
|
-
let orgcondition = '1 = 1'
|
|
139
|
-
if (this.f_orgid[0]) {
|
|
140
|
-
orgcondition += ` and f_orgid in ('${this.f_orgid}')`
|
|
141
|
-
}
|
|
142
|
-
if (this.f_depid[0]) {
|
|
143
|
-
orgcondition += ` and f_depid in ('${this.f_depid}')`
|
|
144
|
-
}
|
|
145
|
-
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
146
|
-
this.$refs.paged.search(args)
|
|
147
|
-
},
|
|
148
|
-
getRes (obj) {
|
|
149
|
-
this.orgname = obj.res[0]
|
|
150
|
-
this.depresid = obj.resids
|
|
151
|
-
this.f_orgid = obj.resids
|
|
152
|
-
},
|
|
153
|
-
getdep (obj, val) {
|
|
154
|
-
this.depname = val[0]
|
|
155
|
-
this.userresid = obj
|
|
156
|
-
this.f_depid = obj
|
|
157
|
-
},
|
|
158
|
-
getuser ( obj, val) {
|
|
159
|
-
this.operatorname = val[0]
|
|
160
|
-
this.f_operatorid = obj
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
watch: {
|
|
164
|
-
'data' (val) {
|
|
165
|
-
if (val.f_files_path) {
|
|
166
|
-
this.getFileContent(val.f_files_path)
|
|
167
|
-
} else {
|
|
168
|
-
this.reportStr = null
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
'model.data' (val) {
|
|
172
|
-
let tab = document.getElementById('test').children[0]
|
|
173
|
-
var tds = tab.getElementsByTagName('td')
|
|
174
|
-
var num = 0
|
|
175
|
-
for (let td of tds) {
|
|
176
|
-
let span = td.getAttribute('colspan')
|
|
177
|
-
num = num + ((span ? span : 1) - 0)
|
|
178
|
-
}
|
|
179
|
-
this.spans = num
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
computed: {
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
</script>
|
|
186
|
-
<style scoped>
|
|
187
|
-
.noborder{
|
|
188
|
-
border: none;
|
|
189
|
-
}
|
|
190
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 100%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-2 form-group" >
|
|
8
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:disabled-days-of-Week="[]"
|
|
13
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
14
|
+
:show-reset-button="reset">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-2 form-group" >
|
|
18
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:disabled-days-of-Week="[]"
|
|
23
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
24
|
+
:show-reset-button="reset">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body"> 公司 </label>
|
|
29
|
+
<right-tree @re-res="$parent.$parent.getRes"></right-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-2 form-group">
|
|
32
|
+
<label class="font_normal_body"> 部门 </label>
|
|
33
|
+
<res-select restype='department'
|
|
34
|
+
@res-select="$parent.$parent.getdep"
|
|
35
|
+
:parentresid ="$parent.$parent.depresid"
|
|
36
|
+
:initresid='$parent.$parent.depid'>
|
|
37
|
+
</res-select>
|
|
38
|
+
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div style = "float:right;">
|
|
43
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
44
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
45
|
+
<report-excel id='gasprice'></report-excel>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</criteria>
|
|
50
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
51
|
+
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
|
|
52
|
+
<thead>
|
|
53
|
+
<tr>
|
|
54
|
+
<th colspan='5' style="font-weight: bold; text-align: left;">
|
|
55
|
+
<h3 style="text-align: center">抄表性质统计报表</h3>
|
|
56
|
+
</th>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
60
|
+
开始时间:{{model.model.startDate}}
|
|
61
|
+
结束时间:{{ model.model.endDate }}
|
|
62
|
+
</th>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
66
|
+
打印时间:{{{$parent.printTime}}}
|
|
67
|
+
</th>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
71
|
+
<div>
|
|
72
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
73
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
74
|
+
</div>
|
|
75
|
+
</th>
|
|
76
|
+
</tr>
|
|
77
|
+
</thead>
|
|
78
|
+
<tr>
|
|
79
|
+
<td colspan='5' style="font-weight: normal;" id="test">
|
|
80
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
81
|
+
</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
{{{ $parent.reportStr}}}
|
|
85
|
+
</div>
|
|
86
|
+
</criteria-paged>
|
|
87
|
+
</div>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<script>
|
|
91
|
+
import { DataModel } from 'vue-client'
|
|
92
|
+
import co from 'co'
|
|
93
|
+
export default {
|
|
94
|
+
title: '抄表性质统计报表',
|
|
95
|
+
props: ['data'],
|
|
96
|
+
data () {
|
|
97
|
+
return {
|
|
98
|
+
printTime: this.$login.toStandardTimeString(),
|
|
99
|
+
depresid: [],
|
|
100
|
+
userresid: [],
|
|
101
|
+
initres: {
|
|
102
|
+
org:[this.$login.f.orgid],
|
|
103
|
+
dep:[],
|
|
104
|
+
user:[]
|
|
105
|
+
},
|
|
106
|
+
f_public_group1: '',
|
|
107
|
+
f_orgid: this.$login.f.orgid,
|
|
108
|
+
f_depid: this.$login.f.depids,
|
|
109
|
+
f_operatorid: this.$login.f.id,
|
|
110
|
+
operatorid: [],
|
|
111
|
+
depid: [],
|
|
112
|
+
orgname: '',
|
|
113
|
+
depname: '',
|
|
114
|
+
operatorname: '',
|
|
115
|
+
orgCondtionStr: '1=1',
|
|
116
|
+
model: new DataModel('rs/report/WebGasType_hd',
|
|
117
|
+
{startDate: 'this.model.startDate',
|
|
118
|
+
endDate: 'this.model.endDate',
|
|
119
|
+
f_orgid: 'this.model.f_orgid'
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
reportStr: null,
|
|
123
|
+
show: false,
|
|
124
|
+
spans: ''
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
ready () {
|
|
128
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
129
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
130
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
131
|
+
},
|
|
132
|
+
methods: {
|
|
133
|
+
searchData () {
|
|
134
|
+
this.$refs.paged.$refs.criteria.search()
|
|
135
|
+
},
|
|
136
|
+
selfSearch (args) {
|
|
137
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
138
|
+
let orgcondition = '1 = 1'
|
|
139
|
+
if (this.f_orgid[0]) {
|
|
140
|
+
orgcondition += ` and f_orgid in ('${this.f_orgid}')`
|
|
141
|
+
}
|
|
142
|
+
if (this.f_depid[0]) {
|
|
143
|
+
orgcondition += ` and f_depid in ('${this.f_depid}')`
|
|
144
|
+
}
|
|
145
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
146
|
+
this.$refs.paged.search(args)
|
|
147
|
+
},
|
|
148
|
+
getRes (obj) {
|
|
149
|
+
this.orgname = obj.res[0]
|
|
150
|
+
this.depresid = obj.resids
|
|
151
|
+
this.f_orgid = obj.resids
|
|
152
|
+
},
|
|
153
|
+
getdep (obj, val) {
|
|
154
|
+
this.depname = val[0]
|
|
155
|
+
this.userresid = obj
|
|
156
|
+
this.f_depid = obj
|
|
157
|
+
},
|
|
158
|
+
getuser ( obj, val) {
|
|
159
|
+
this.operatorname = val[0]
|
|
160
|
+
this.f_operatorid = obj
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
watch: {
|
|
164
|
+
'data' (val) {
|
|
165
|
+
if (val.f_files_path) {
|
|
166
|
+
this.getFileContent(val.f_files_path)
|
|
167
|
+
} else {
|
|
168
|
+
this.reportStr = null
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
'model.data' (val) {
|
|
172
|
+
let tab = document.getElementById('test').children[0]
|
|
173
|
+
var tds = tab.getElementsByTagName('td')
|
|
174
|
+
var num = 0
|
|
175
|
+
for (let td of tds) {
|
|
176
|
+
let span = td.getAttribute('colspan')
|
|
177
|
+
num = num + ((span ? span : 1) - 0)
|
|
178
|
+
}
|
|
179
|
+
this.spans = num
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
computed: {
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</script>
|
|
186
|
+
<style scoped>
|
|
187
|
+
.noborder{
|
|
188
|
+
border: none;
|
|
189
|
+
}
|
|
190
|
+
</style>
|
|
@@ -127,10 +127,8 @@
|
|
|
127
127
|
<!-- </td>-->
|
|
128
128
|
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
129
129
|
<!-- 用气量: {{ sumsmodel.f_oughtamount }}m³-->
|
|
130
|
-
<!--
|
|
131
|
-
<!--
|
|
132
|
-
<!-- 售气量: {{ sumsmodel.f_pregas }}m³-->
|
|
133
|
-
<!-- </td>-->
|
|
130
|
+
<!-- <' and f_user_usetype in (\'居民用气\')'d style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
131
|
+
<!-- ' and f_user_usetype in (\'公福用气\',\'商业用户\',\'工业用户\')' <!-- </td>-->
|
|
134
132
|
<!-- </tr>-->
|
|
135
133
|
<!-- </table>-->
|
|
136
134
|
</div>
|
|
@@ -226,6 +224,20 @@ export default {
|
|
|
226
224
|
args.condition = `${args.condition} and f_corporate_name_id = '${this.data.id}'`
|
|
227
225
|
this.$refs.paged.$refs.cri.model.startDate = this.data.startDate
|
|
228
226
|
this.$refs.paged.$refs.cri.model.endDate = this.data.endDate
|
|
227
|
+
if (this.data.f_user_type == '民用' && !this.data.f_user_usetype) {
|
|
228
|
+
args.condition = args.condition + " and f_user_usetype in ('居民用气')"
|
|
229
|
+
} else if (this.data.f_user_type == '非民用' && !this.data.f_user_usetype) {
|
|
230
|
+
args.condition = args.condition + " and f_user_usetype in ('公福用气','商业用户','工业用户')"
|
|
231
|
+
}
|
|
232
|
+
if (this.data.f_user_usetype) {
|
|
233
|
+
args.condition = args.condition + ` and f_user_usetype in (${this.data.f_user_usetype})`
|
|
234
|
+
}
|
|
235
|
+
if (this.data.f_user_usenature) {
|
|
236
|
+
args.condition = args.condition + ` and f_user_usenature in ('${this.data.f_user_usetype}')`
|
|
237
|
+
}
|
|
238
|
+
if (this.data.f_use_institution) {
|
|
239
|
+
args.condition = args.condition + ` and f_use_institution in ('${this.data.f_user_usetype}')`
|
|
240
|
+
}
|
|
229
241
|
this.condition = args.condition
|
|
230
242
|
console.log('查看条件', this.condition)
|
|
231
243
|
this.model.search(args.condition, args.model)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:style="style">
|
|
7
7
|
</manage-company-gas-summary>
|
|
8
8
|
</div>
|
|
9
|
-
<div v-
|
|
9
|
+
<div v-if="showDetail" class="binary-right">
|
|
10
10
|
<div class="flex">
|
|
11
11
|
<manage-company-gas-detail v-if="showDetail" :data="row">
|
|
12
12
|
</manage-company-gas-detail>
|
|
@@ -36,6 +36,10 @@ export default {
|
|
|
36
36
|
this.row = obj.val
|
|
37
37
|
this.row.startDate = this.$refs.gas.$refs.paged.$refs.cri.model.startDate
|
|
38
38
|
this.row.endDate = this.$refs.gas.$refs.paged.$refs.cri.model.endDate
|
|
39
|
+
this.row.f_user_type = this.$refs.gas.$refs.paged.$refs.cri.model.f_user_type
|
|
40
|
+
this.row.f_user_usetype = this.$refs.gas.$refs.paged.$refs.cri.model.f_user_usetype
|
|
41
|
+
this.row.f_user_usenature = this.$refs.gas.$refs.paged.$refs.cri.model.f_user_usenature
|
|
42
|
+
this.row.f_use_institution = this.$refs.gas.$refs.paged.$refs.cri.model.f_use_institution
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
refresh () {
|
|
@@ -45,6 +49,7 @@ export default {
|
|
|
45
49
|
'cancel' () {
|
|
46
50
|
this.style = 'col-sm-2 form-group'
|
|
47
51
|
this.row = null
|
|
52
|
+
this.$refs.gas.$refs.paged.$refs.grid.cleanSelected()
|
|
48
53
|
this.showDetail = false
|
|
49
54
|
}
|
|
50
55
|
}
|
|
@@ -100,13 +100,12 @@
|
|
|
100
100
|
</div>
|
|
101
101
|
<div class="col-sm-2 form-group">
|
|
102
102
|
<label for="f_user_usetype" class="font_normal_body ">用气类型</label>
|
|
103
|
-
<v-select :value.sync="model.
|
|
103
|
+
<v-select :value.sync="model.f_userusetype" :search="false"
|
|
104
104
|
@change="$parent.$parent.userUseTypeChange()"
|
|
105
|
-
v-model="model.
|
|
106
|
-
:
|
|
105
|
+
v-model="model.f_userusetype"
|
|
106
|
+
:multiple="true"
|
|
107
107
|
:options='$parent.$parent.userusetypes'
|
|
108
|
-
placeholder='用气类型'
|
|
109
|
-
close-on-select>
|
|
108
|
+
placeholder='用气类型'>
|
|
110
109
|
</v-select>
|
|
111
110
|
</div>
|
|
112
111
|
<div class="col-sm-2 form-group">
|
|
@@ -369,11 +368,11 @@ export default {
|
|
|
369
368
|
this.userusetypes = []
|
|
370
369
|
this.userusenatures = []
|
|
371
370
|
this.useinstitutions = []
|
|
372
|
-
this.$refs.paged.$refs.cri.model.
|
|
371
|
+
this.$refs.paged.$refs.cri.model.f_userusetype = []
|
|
373
372
|
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
374
373
|
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
375
374
|
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
376
|
-
|
|
375
|
+
let str = this.$refs.paged.$refs.cri.model.f_user_type + '用气类型'
|
|
377
376
|
this.userusetypes = this.$appdata.getParam(str)
|
|
378
377
|
}
|
|
379
378
|
},
|
|
@@ -382,10 +381,18 @@ export default {
|
|
|
382
381
|
this.userusenatures = []
|
|
383
382
|
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
384
383
|
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
385
|
-
if (this.$refs.paged.$refs.cri.model.
|
|
386
|
-
|
|
387
|
-
|
|
384
|
+
if (this.$refs.paged.$refs.cri.model.f_userusetype.length > 0) {
|
|
385
|
+
for (var i = 0; i < this.$refs.paged.$refs.cri.model.f_userusetype.length; i++) {
|
|
386
|
+
let str = this.$refs.paged.$refs.cri.model.f_userusetype[i] + '机构'
|
|
387
|
+
let getParam = this.$appdata.getParam(str)
|
|
388
|
+
Array.prototype.push.apply(this.useinstitutions, getParam);
|
|
389
|
+
}
|
|
388
390
|
}
|
|
391
|
+
let temp = {}
|
|
392
|
+
this.useinstitutions = this.useinstitutions.filter(function(item) {
|
|
393
|
+
var key = JSON.stringify(item);
|
|
394
|
+
return temp.hasOwnProperty(key) ? false : (temp[key] = true);
|
|
395
|
+
});
|
|
389
396
|
},
|
|
390
397
|
userUseInstitutionChange () {
|
|
391
398
|
this.userusenatures = []
|
|
@@ -432,6 +439,11 @@ export default {
|
|
|
432
439
|
},
|
|
433
440
|
async selfSearch (args) {
|
|
434
441
|
let companyCondition2 = '1=1'
|
|
442
|
+
if (this.$refs.paged.$refs.cri.model.f_userusetype.length > 0) {
|
|
443
|
+
this.$refs.paged.$refs.cri.model.f_user_usetype = this.appendCondition(this.$refs.paged.$refs.cri.model.f_userusetype)
|
|
444
|
+
} else {
|
|
445
|
+
this.$refs.paged.$refs.cri.model.f_user_usetype = ''
|
|
446
|
+
}
|
|
435
447
|
if (!this.orgConditionStr) {
|
|
436
448
|
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
437
449
|
} else {
|
|
@@ -79,7 +79,6 @@
|
|
|
79
79
|
<v-select :value.sync="model.f_user_type"
|
|
80
80
|
:options='$parent.$parent.usertypes'
|
|
81
81
|
placeholder='请选择' v-model="model.f_user_type"
|
|
82
|
-
condition="f_user_type = '{}'"
|
|
83
82
|
:value-single="true"
|
|
84
83
|
@change="$parent.$parent.userTypeChange()"
|
|
85
84
|
close-on-select></v-select>
|
|
@@ -89,11 +88,10 @@
|
|
|
89
88
|
<v-select :value.sync="model.f_user_usetype" :search="false"
|
|
90
89
|
@change="$parent.$parent.userUseTypeChange()"
|
|
91
90
|
v-model="model.f_user_usetype"
|
|
92
|
-
:
|
|
91
|
+
:multiple="true"
|
|
93
92
|
:options='$parent.$parent.userusetypes'
|
|
94
|
-
condition="f_user_usetype
|
|
95
|
-
placeholder='用气类型'
|
|
96
|
-
close-on-select>
|
|
93
|
+
condition="f_user_usetype in {}"
|
|
94
|
+
placeholder='用气类型'>
|
|
97
95
|
</v-select>
|
|
98
96
|
</div>
|
|
99
97
|
<div class="col-sm-2 form-group">
|
|
@@ -441,7 +439,7 @@ export default {
|
|
|
441
439
|
this.userusetypes = []
|
|
442
440
|
this.userusenatures = []
|
|
443
441
|
this.useinstitutions = []
|
|
444
|
-
this.$refs.paged.$refs.cri.model.f_user_usetype =
|
|
442
|
+
this.$refs.paged.$refs.cri.model.f_user_usetype = []
|
|
445
443
|
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
446
444
|
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
447
445
|
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
@@ -454,10 +452,18 @@ export default {
|
|
|
454
452
|
this.userusenatures = []
|
|
455
453
|
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
456
454
|
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
457
|
-
if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
|
|
458
|
-
|
|
459
|
-
|
|
455
|
+
if (this.$refs.paged.$refs.cri.model.f_user_usetype.length > 0) {
|
|
456
|
+
for (var i = 0; i < this.$refs.paged.$refs.cri.model.f_user_usetype.length; i++) {
|
|
457
|
+
let str = this.$refs.paged.$refs.cri.model.f_user_usetype[i] + '机构'
|
|
458
|
+
let getParam = this.$appdata.getParam(str)
|
|
459
|
+
Array.prototype.push.apply(this.useinstitutions, getParam);
|
|
460
|
+
}
|
|
460
461
|
}
|
|
462
|
+
let temp = {}
|
|
463
|
+
this.useinstitutions = this.useinstitutions.filter(function(item) {
|
|
464
|
+
var key = JSON.stringify(item);
|
|
465
|
+
return temp.hasOwnProperty(key) ? false : (temp[key] = true);
|
|
466
|
+
});
|
|
461
467
|
},
|
|
462
468
|
userUseInstitutionChange () {
|
|
463
469
|
this.userusenatures = []
|
|
@@ -519,6 +525,11 @@ export default {
|
|
|
519
525
|
companyCondition2 = companyCondition2 + ' and id in (' + await this.appendCondition(args.model.f_residential_area_id) + ')'
|
|
520
526
|
}
|
|
521
527
|
}
|
|
528
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type == '民用' && !this.$refs.paged.$refs.cri.model.f_user_usetype[0]) {
|
|
529
|
+
args.condition = args.condition + " and f_user_usetype in ('居民用气')"
|
|
530
|
+
} else if (this.$refs.paged.$refs.cri.model.f_user_type == '非民用' && !this.$refs.paged.$refs.cri.model.f_user_usetype[0]) {
|
|
531
|
+
args.condition = args.condition + " and f_user_usetype in ('公福用气','商业用户','工业用户')"
|
|
532
|
+
}
|
|
522
533
|
args.model.condition2 = companyCondition2
|
|
523
534
|
this.condition = args.condition
|
|
524
535
|
console.log("查看条件",this.condition)
|