manage-client 3.3.94-wn2 → 3.3.95

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.
@@ -1,274 +1,274 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="span" style="float:right;">
9
- <!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
10
- <!-- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>-->
11
- <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
12
- </div>
13
- <!-- <export-excel :data="$parent.$parent.getCondition"-->
14
- <!-- :field="$parent.$parent.getfield"-->
15
- <!-- :header="$parent.$parent.other"-->
16
- <!-- :footer="$parent.$parent.footer"-->
17
- <!-- sqlurl="rs/logic/exportfile"-->
18
- <!-- sql-name="manage_companyGasSummary"-->
19
- <!-- template-name='单位用气售气汇总'-->
20
- <!-- :choose-col="true"></export-excel>-->
21
- <!-- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"-->
22
- <!-- :field="$parent.$parent.getfield"-->
23
- <!-- titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"-->
24
- <!-- :defaultfield="$parent.$parent.defaultfield"-->
25
- <!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
26
- <!-- <div-->
27
- <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
28
- <!-- @click="$parent.$parent.hidden()"-->
29
- <!-- class="button_spacing"-->
30
- <!-- style="float: right"></div>-->
31
- <!-- </div>-->
32
- </div>
33
- </div>
34
- </criteria>
35
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
36
- <template partial='head'>
37
- <tr>
38
- <th>
39
- <nobr>序号</nobr>
40
- </th>
41
- <th>
42
- <nobr>客户编号</nobr>
43
- </th>
44
- <th>
45
- <nobr>客户名称</nobr>
46
- </th>
47
- <th>
48
- <nobr>气表品牌</nobr>
49
- </th>
50
- <th>
51
- <nobr>表号</nobr>
52
- </th>
53
- <th>
54
- <nobr>用气类型</nobr>
55
- </th>
56
- <th>
57
- <nobr>用气机构</nobr>
58
- </th>
59
- <th>
60
- <nobr>使用性质</nobr>
61
- </th>
62
- <th>
63
- <nobr>用气性质</nobr>
64
- </th>
65
- <th>
66
- <nobr>用气量</nobr>
67
- </th>
68
- <th>
69
- <nobr>售气量</nobr>
70
- </th>
71
- <th>
72
- <nobr>联系电话</nobr>
73
- </th>
74
- <th>
75
- <nobr>气表状态</nobr>
76
- </th>
77
- </tr>
78
- </template>
79
- <template partial='body'>
80
- <td style="text-align:center">
81
- <nobr>{{ $index + 1 }}</nobr>
82
- </td>
83
- <td style="text-align:center">
84
- <nobr>{{ row.f_userinfo_code }}</nobr>
85
- </td>
86
- <td style="text-align: center;">
87
- <nobr>{{ row.f_user_name }}</nobr>
88
- </td>
89
- <td style="text-align: center;">
90
- <nobr>{{ row.f_meter_brand }}</nobr>
91
- </td>
92
- <td style="text-align: center;">
93
- <nobr>{{ row.f_meternumber }}</nobr>
94
- </td>
95
- <td style="text-align: center;">
96
- <nobr>{{ row.f_user_usetype }}</nobr>
97
- </td>
98
- <td style="text-align: center;">
99
- <nobr>{{ row.f_use_institution }}</nobr>
100
- </td>
101
- <td style="text-align: center;">
102
- <nobr>{{ row.f_user_usenature }}</nobr>
103
- </td>
104
- <td style="text-align: center;">
105
- <nobr>{{ row.f_gasproperties }}</nobr>
106
- </td>
107
- <td style="text-align: center;">
108
- <nobr>{{ row.f_oughtamount }}</nobr>
109
- </td>
110
- <td style="text-align: center;">
111
- <nobr>{{ row.f_pregas }}</nobr>
112
- </td>
113
- <td style="text-align: center;">
114
- <nobr>{{ row.f_user_phone }}</nobr>
115
- </td>
116
- <td style="text-align: center;">
117
- <nobr>{{ row.f_table_state }}</nobr>
118
- </td>
119
- </template>
120
- <template partial='foot'></template>
121
- </data-grid>
122
- </criteria-paged>
123
- <!-- <table class="table-hover">-->
124
- <!-- <tr style="position: relative" class="table-bordered">-->
125
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
126
- <!-- 汇总信息-->
127
- <!-- </td>-->
128
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
129
- <!-- 用气量:&emsp;{{ sumsmodel.f_oughtamount }}m³-->
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>-->
132
- <!-- </tr>-->
133
- <!-- </table>-->
134
- </div>
135
- </div>
136
- </template>
137
- <script>
138
- import {PagedList} from 'vue-client'
139
- import exportConfig from './config/exportConfig'
140
-
141
- export default {
142
- title: '单位表具详情',
143
- data () {
144
- return {
145
- depresid: [],
146
- userresid: [],
147
- f_orgid: this.$login.f.orgid,
148
- f_depid: this.$login.f.depids,
149
- f_operatorid: this.$login.f.id,
150
- operatorid: [],
151
- depid: [],
152
- orgname: '',
153
- depname: [],
154
- operatorname: '',
155
- condition: '',
156
- orgConditionStr: '',
157
- data: {},
158
- other: [],
159
- footer: [],
160
- model: new PagedList('rs/sql/manage_companyMeterDetail', 20, {
161
- startDate: 'this.model.startDate',
162
- endDate: 'this.model.endDate'
163
- }),
164
- gasproperties: [],
165
- show: false,
166
- rowdata: {},
167
- areaList: [],
168
- modelval: [],
169
- startDate: '',
170
- endDate: '',
171
- inputtouPerson: [],
172
- printshow: false,
173
- all: false,
174
- fields: {},
175
- thead: '',
176
- tfoot: '',
177
- defaultfield: [],
178
- sumsmodel: {},
179
- sumExport: {'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
180
- initres: {
181
- org: [this.$login.f.orgid]
182
- },
183
- criteriaShow: false,
184
- userusetypes: [],
185
- useinstitutions: [],
186
- userusenatures: [],
187
- corporatename: []
188
- }
189
- },
190
- ready () {
191
- this.search()
192
- },
193
- props: ['data'],
194
- methods: {
195
- clear () {
196
- // 清空部门和人员
197
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
198
- // 部门和人员变为全选
199
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
200
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
201
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
202
- this.$refs.paged.$refs.cri.model[key] = []
203
- })
204
- },
205
- getotherfooter () {
206
- this.other = []
207
- this.footer = []
208
- let exportdata = this.getCondition
209
- let otherInData = []
210
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
211
- let footerData = [], exportfield = this.sumExport
212
- footerData.push('合计')
213
- let self = this
214
- for (var field in self.sumsmodel) {
215
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
216
- }
217
- this.footer.push(footerData)
218
- this.other.push(otherInData)
219
- },
220
- search () {
221
- this.$refs.paged.$refs.cri.search()
222
- },
223
- selfSearch (args) {
224
- args.condition = `${args.condition} and f_corporate_name_id = '${this.data.id}'`
225
- this.$refs.paged.$refs.cri.model.startDate = this.data.startDate
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_usenature}')`
237
- }
238
- if (this.data.f_use_institution) {
239
- args.condition = args.condition + ` and f_use_institution in ('${this.data.f_use_institution}')`
240
- }
241
- this.condition = args.condition
242
- console.log('查看条件', this.condition)
243
- this.model.search(args.condition, args.model)
244
- },
245
- getRes (obj) {
246
- this.orgConditionStr = obj
247
- },
248
- cancel () {
249
- this.data = null
250
- this.$dispatch('cancel')
251
- }
252
- },
253
- watch: {
254
- 'data' (val) {
255
- if (val) {
256
- this.search()
257
- }
258
- }
259
- },
260
- computed: {
261
- getCondition () {
262
- return {
263
- condition: this.condition,
264
- startDate: this.$refs.paged.$refs.cri.model.startDate,
265
- endDate: this.$refs.paged.$refs.cri.model.endDate
266
- }
267
- },
268
- getfield () {
269
- return exportConfig.manageCompanyGasSummary
270
- }
271
- }
272
- }
273
- </script>
274
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="span" style="float:right;">
9
+ <!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
10
+ <!-- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>-->
11
+ <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
12
+ </div>
13
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
14
+ <!-- :field="$parent.$parent.getfield"-->
15
+ <!-- :header="$parent.$parent.other"-->
16
+ <!-- :footer="$parent.$parent.footer"-->
17
+ <!-- sqlurl="rs/logic/exportfile"-->
18
+ <!-- sql-name="manage_companyGasSummary"-->
19
+ <!-- template-name='单位用气售气汇总'-->
20
+ <!-- :choose-col="true"></export-excel>-->
21
+ <!-- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"-->
22
+ <!-- :field="$parent.$parent.getfield"-->
23
+ <!-- titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"-->
24
+ <!-- :defaultfield="$parent.$parent.defaultfield"-->
25
+ <!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
26
+ <!-- <div-->
27
+ <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
28
+ <!-- @click="$parent.$parent.hidden()"-->
29
+ <!-- class="button_spacing"-->
30
+ <!-- style="float: right"></div>-->
31
+ <!-- </div>-->
32
+ </div>
33
+ </div>
34
+ </criteria>
35
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
36
+ <template partial='head'>
37
+ <tr>
38
+ <th>
39
+ <nobr>序号</nobr>
40
+ </th>
41
+ <th>
42
+ <nobr>客户编号</nobr>
43
+ </th>
44
+ <th>
45
+ <nobr>客户名称</nobr>
46
+ </th>
47
+ <th>
48
+ <nobr>气表品牌</nobr>
49
+ </th>
50
+ <th>
51
+ <nobr>表号</nobr>
52
+ </th>
53
+ <th>
54
+ <nobr>用气类型</nobr>
55
+ </th>
56
+ <th>
57
+ <nobr>用气机构</nobr>
58
+ </th>
59
+ <th>
60
+ <nobr>使用性质</nobr>
61
+ </th>
62
+ <th>
63
+ <nobr>用气性质</nobr>
64
+ </th>
65
+ <th>
66
+ <nobr>用气量</nobr>
67
+ </th>
68
+ <th>
69
+ <nobr>售气量</nobr>
70
+ </th>
71
+ <th>
72
+ <nobr>联系电话</nobr>
73
+ </th>
74
+ <th>
75
+ <nobr>气表状态</nobr>
76
+ </th>
77
+ </tr>
78
+ </template>
79
+ <template partial='body'>
80
+ <td style="text-align:center">
81
+ <nobr>{{ $index + 1 }}</nobr>
82
+ </td>
83
+ <td style="text-align:center">
84
+ <nobr>{{ row.f_userinfo_code }}</nobr>
85
+ </td>
86
+ <td style="text-align: center;">
87
+ <nobr>{{ row.f_user_name }}</nobr>
88
+ </td>
89
+ <td style="text-align: center;">
90
+ <nobr>{{ row.f_meter_brand }}</nobr>
91
+ </td>
92
+ <td style="text-align: center;">
93
+ <nobr>{{ row.f_meternumber }}</nobr>
94
+ </td>
95
+ <td style="text-align: center;">
96
+ <nobr>{{ row.f_user_usetype }}</nobr>
97
+ </td>
98
+ <td style="text-align: center;">
99
+ <nobr>{{ row.f_use_institution }}</nobr>
100
+ </td>
101
+ <td style="text-align: center;">
102
+ <nobr>{{ row.f_user_usenature }}</nobr>
103
+ </td>
104
+ <td style="text-align: center;">
105
+ <nobr>{{ row.f_gasproperties }}</nobr>
106
+ </td>
107
+ <td style="text-align: center;">
108
+ <nobr>{{ row.f_oughtamount }}</nobr>
109
+ </td>
110
+ <td style="text-align: center;">
111
+ <nobr>{{ row.f_pregas }}</nobr>
112
+ </td>
113
+ <td style="text-align: center;">
114
+ <nobr>{{ row.f_user_phone }}</nobr>
115
+ </td>
116
+ <td style="text-align: center;">
117
+ <nobr>{{ row.f_table_state }}</nobr>
118
+ </td>
119
+ </template>
120
+ <template partial='foot'></template>
121
+ </data-grid>
122
+ </criteria-paged>
123
+ <!-- <table class="table-hover">-->
124
+ <!-- <tr style="position: relative" class="table-bordered">-->
125
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
126
+ <!-- 汇总信息-->
127
+ <!-- </td>-->
128
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
129
+ <!-- 用气量:&emsp;{{ sumsmodel.f_oughtamount }}m³-->
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>-->
132
+ <!-- </tr>-->
133
+ <!-- </table>-->
134
+ </div>
135
+ </div>
136
+ </template>
137
+ <script>
138
+ import {PagedList} from 'vue-client'
139
+ import exportConfig from './config/exportConfig'
140
+
141
+ export default {
142
+ title: '单位表具详情',
143
+ data () {
144
+ return {
145
+ depresid: [],
146
+ userresid: [],
147
+ f_orgid: this.$login.f.orgid,
148
+ f_depid: this.$login.f.depids,
149
+ f_operatorid: this.$login.f.id,
150
+ operatorid: [],
151
+ depid: [],
152
+ orgname: '',
153
+ depname: [],
154
+ operatorname: '',
155
+ condition: '',
156
+ orgConditionStr: '',
157
+ data: {},
158
+ other: [],
159
+ footer: [],
160
+ model: new PagedList('rs/sql/manage_companyMeterDetail', 20, {
161
+ startDate: 'this.model.startDate',
162
+ endDate: 'this.model.endDate'
163
+ }),
164
+ gasproperties: [],
165
+ show: false,
166
+ rowdata: {},
167
+ areaList: [],
168
+ modelval: [],
169
+ startDate: '',
170
+ endDate: '',
171
+ inputtouPerson: [],
172
+ printshow: false,
173
+ all: false,
174
+ fields: {},
175
+ thead: '',
176
+ tfoot: '',
177
+ defaultfield: [],
178
+ sumsmodel: {},
179
+ sumExport: {'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
180
+ initres: {
181
+ org: [this.$login.f.orgid]
182
+ },
183
+ criteriaShow: false,
184
+ userusetypes: [],
185
+ useinstitutions: [],
186
+ userusenatures: [],
187
+ corporatename: []
188
+ }
189
+ },
190
+ ready () {
191
+ this.search()
192
+ },
193
+ props: ['data'],
194
+ methods: {
195
+ clear () {
196
+ // 清空部门和人员
197
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
198
+ // 部门和人员变为全选
199
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
200
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
201
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
202
+ this.$refs.paged.$refs.cri.model[key] = []
203
+ })
204
+ },
205
+ getotherfooter () {
206
+ this.other = []
207
+ this.footer = []
208
+ let exportdata = this.getCondition
209
+ let otherInData = []
210
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
211
+ let footerData = [], exportfield = this.sumExport
212
+ footerData.push('合计')
213
+ let self = this
214
+ for (var field in self.sumsmodel) {
215
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
216
+ }
217
+ this.footer.push(footerData)
218
+ this.other.push(otherInData)
219
+ },
220
+ search () {
221
+ this.$refs.paged.$refs.cri.search()
222
+ },
223
+ selfSearch (args) {
224
+ args.condition = `${args.condition} and f_corporate_name_id = '${this.data.id}'`
225
+ this.$refs.paged.$refs.cri.model.startDate = this.data.startDate
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
+ }
241
+ this.condition = args.condition
242
+ console.log('查看条件', this.condition)
243
+ this.model.search(args.condition, args.model)
244
+ },
245
+ getRes (obj) {
246
+ this.orgConditionStr = obj
247
+ },
248
+ cancel () {
249
+ this.data = null
250
+ this.$dispatch('cancel')
251
+ }
252
+ },
253
+ watch: {
254
+ 'data' (val) {
255
+ if (val) {
256
+ this.search()
257
+ }
258
+ }
259
+ },
260
+ computed: {
261
+ getCondition () {
262
+ return {
263
+ condition: this.condition,
264
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
265
+ endDate: this.$refs.paged.$refs.cri.model.endDate
266
+ }
267
+ },
268
+ getfield () {
269
+ return exportConfig.manageCompanyGasSummary
270
+ }
271
+ }
272
+ }
273
+ </script>
274
+