manage-client 3.2.54 → 3.2.59

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.
@@ -0,0 +1,370 @@
1
+ <template>
2
+ <div class="flex-row" v-show="!showdetail">
3
+ <div id='app1' class="basic-main" >
4
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
11
+ v-model="model.f_userinfo_code" placeholder='客户编号'
12
+ condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
13
+ >
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
18
+ v-model="model.f_user_name" placeholder='客户名称'
19
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
20
+ >
21
+ </div>
22
+ <div class="col-sm-2 form-group">
23
+ <label class="font_normal_body">客户地址</label>
24
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
25
+ placeholder='地址'
26
+ condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
27
+ >
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
31
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
32
+ v-model="model.f_meternumber" placeholder='表号'
33
+ condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
34
+ >
35
+ </div>
36
+ <div style="float:right">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="clear">清空</button>
39
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
+ :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
41
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getNoMetereadData" template-name='未上报查询'
42
+ :choose-col="true"></export-excel>
43
+
44
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
50
+ <right-tree @re-res="$parent.$parent.getorg" width="60%"
51
+ :initresid='$parent.$parent.org'></right-tree>
52
+ </div>
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">客户类型</label>
55
+ <v-select style="width:60%" id="f_user_type"
56
+ v-model="model.f_user_type"
57
+ placeholder='客户类型'
58
+ :value.sync="model.f_user_type"
59
+ @change="$parent.$parent.userTypeChange()"
60
+ :options='$parent.$parent.usertypes'
61
+ condition="f_user_type = '{}'"
62
+ close-on-select>
63
+ </v-select>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">用气性质</label>
67
+ <v-select style="width:60%" id="f_gasproperties"
68
+ v-model="model.f_gasproperties"
69
+ placeholder='用气性质'
70
+ :value.sync="model.f_gasproperties"
71
+ :options='$parent.$parent.gasproperties'
72
+ condition="f_gasproperties = '{}'"
73
+ close-on-select>
74
+ </v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">气表品牌</label>
78
+ <v-select
79
+ placeholder='气表品牌'
80
+ :value.sync="model.f_meter_brand"
81
+ v-model="model.f_meter_brand"
82
+ :options='$parent.$parent.meterbrands'
83
+ close-on-select
84
+ condition="f_meter_brand='{}'">
85
+ </v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group" >
88
+ <label class="font_normal_body">气表型号</label>
89
+ <v-select
90
+ placeholder='气表型号'
91
+ :value.sync="model.f_meter_style"
92
+ v-model="model.f_meter_style"
93
+ :options='$parent.$parent.meterstyle[model.f_meter_brand]'
94
+ close-on-select
95
+ condition="f_meter_style='{}'">
96
+ </v-select>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body">用户状态</label>
100
+ <v-select
101
+ placeholder='用户状态'
102
+ value-single="true"
103
+ style="width:60%"
104
+ :value.sync="model.f_user_state"
105
+ v-model="model.f_user_state"
106
+ :options='$parent.$parent.userstate'
107
+ close-on-select condition="f_user_state ='{}'">
108
+ </v-select>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">开始时间</label>
112
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
113
+ v-model="model.startDate"
114
+ :value.sync="model.startDate"
115
+ :disabled-days-of-Week="[]"
116
+ :format="'yyyy-MM-dd 00:00:00'"
117
+ :show-reset-button="reset">
118
+ </datepicker>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">结束时间</label>
122
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
123
+ v-model="model.endDate"
124
+ :value.sync="model.endDate"
125
+ :disabled-days-of-Week="[]"
126
+ :format="'yyyy-MM-dd 23:59:59'"
127
+ :show-reset-button="reset">
128
+ </datepicker>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </criteria>
133
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
134
+ <template partial='head'>
135
+ <tr>
136
+ <th style="text-align:center">
137
+ <nobr>序号</nobr>
138
+ </th>
139
+ <th style="text-align:center">
140
+ <nobr>未上报日期</nobr>
141
+ </th>
142
+ <th style="text-align:center">
143
+ <nobr>客户编号</nobr>
144
+ </th>
145
+ <th style="text-align:center">
146
+ <nobr>客户名称</nobr>
147
+ </th>
148
+ <th style="text-align:center">
149
+ <nobr>客户地址</nobr>
150
+ </th>
151
+ <th style="text-align:center">
152
+ <nobr>客户类型</nobr>
153
+ </th>
154
+ <th style="text-align:center">
155
+ <nobr>用气性质</nobr>
156
+ </th>
157
+ <th style="text-align:center">
158
+ <nobr>表号</nobr>
159
+ </th>
160
+ <th style="text-align:center">
161
+ <nobr>气表厂家</nobr>
162
+ </th>
163
+ <th style="text-align:center" >
164
+ <nobr>气表型号</nobr>
165
+ </th>
166
+ <th style="text-align:center" >
167
+ <nobr>用户状态</nobr>
168
+ </th>
169
+ <th style="text-align:center" >
170
+ <nobr>组织机构</nobr>
171
+ </th>
172
+ </tr>
173
+ </template>
174
+ <template partial='body'>
175
+ <td style="text-align:center">{{$index+1}}</td>
176
+ <td style="text-align:center">{{row.f_date}}</td>
177
+ <td style="text-align: center;"><nobr>
178
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
179
+ </nobr> </td>
180
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
181
+ <td><nobr>{{row.f_address}}</nobr></td>
182
+ <td style="text-align:center">{{row.f_user_type}}</td>
183
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
184
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
185
+ <td style="text-align:center">
186
+ <nobr>{{row.f_meter_brand}}</nobr>
187
+ </td>
188
+ <td style="text-align:center">
189
+ <nobr>{{row.f_meter_style}}</nobr>
190
+ </td>
191
+ <td style="text-align:center">
192
+ <nobr>{{row.f_user_state}}</nobr>
193
+ </td>
194
+ <td style="text-align:center">
195
+ <nobr>{{row.f_orgname}}</nobr>
196
+ </td>
197
+
198
+ </template>
199
+ </data-grid>
200
+ </criteria-paged>
201
+ </div>
202
+ </div>
203
+ <div class="flex-row" v-if="showdetail">
204
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
205
+ </div>
206
+ </template>
207
+
208
+ <script>
209
+ import {PagedList} from 'vue-client'
210
+ import * as Util from '../../../Util'
211
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
212
+ let readySomething = async function (self) {
213
+
214
+ await self.$MagLoadParams.loadParam()
215
+ self.initParams()
216
+ self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() +' 00:00:00'
217
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
218
+ self.$refs.paged.$refs.cri.search()
219
+ }
220
+ export default {
221
+ title: '未上报查询',
222
+ props: ['data'],
223
+ data() {
224
+ return {
225
+ model: new PagedList('rs/sql/webmeter_getNoMetereadData', 20, {
226
+ startDate: 'this.model.startDate',
227
+ endDate: 'this.model.endDate'
228
+ }),
229
+ getfield:{
230
+ 'f_userinfo_code':'客户编号','f_user_name':'客户名称', 'f_date': '未上报日期',
231
+ 'f_address':'客户地址','f_user_type':'客户类型','f_gasproperties':'用气性质',
232
+ 'f_meternumber':'表号',
233
+ 'f_meter_brand':'气表厂家','f_orgname':'组织机构'},
234
+ showdetail:false,
235
+ rowdata:{},
236
+ startDate: '',
237
+ endDate: '',
238
+ criteriaShow:false,
239
+ outlets: [],
240
+ gasproperties:[{label: '全部', value: ''}],
241
+ operator: [],
242
+ meterbrands: [],
243
+ meterstyle:{},
244
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
245
+ orgid:[this.$login.f.orgid],
246
+ condition: '1=1',
247
+ org:[this.$login.f.orgid]
248
+
249
+ }
250
+ },
251
+ ready() {
252
+ readySomething(this)
253
+ },
254
+ methods: {
255
+
256
+ userTypeChange () {
257
+ this.gasproperties=[{label: '全部', value: ''}]
258
+ if(this.$refs.paged.$refs.cri.model && this.$refs.paged.$refs.cri.model.f_user_type) {
259
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
260
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
261
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
262
+ }
263
+ else{
264
+ this.gasproperties =[{label: '全部', value: ''}]
265
+ }
266
+ },
267
+ hidden(){
268
+ this.criteriaShow = !this.criteriaShow
269
+ },
270
+ showmsg(obj){
271
+ this.rowdata = obj
272
+ this.showdetail = true
273
+ },
274
+ cancel() {
275
+ this.showdetail = false
276
+ },
277
+ initParams () {
278
+ // 初始化气表品牌
279
+ let brandArr = []
280
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
281
+ if(item.value.f_meter_type==='物联网表'){
282
+ let temp = {}
283
+ temp.label = item.label
284
+ temp.value = item.value.f_meter_brand
285
+ brandArr.push(temp)
286
+
287
+ let styleArr = [{label: '全部', value: ''}]
288
+ for (let row of item.value.gasmodel) {
289
+ styleArr.push({label: row.label,value: row.value.f_meter_style})
290
+ }
291
+ this.meterstyle[temp.value] = styleArr
292
+ }
293
+
294
+ })
295
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
296
+ },
297
+ search(args) {
298
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
299
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
300
+ if (this.endDate == '' || this.startDate == '') {
301
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
302
+ }
303
+ this.condition = args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
304
+ this.model.search(args.condition, args.model)
305
+ },
306
+ getorg(obj) {
307
+ if (obj.resids.length>0) {
308
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
309
+ }else
310
+ {
311
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
312
+ }
313
+ },
314
+ clearmsg() {
315
+ this.$refs.paged.$refs.cri.model = {}
316
+ }
317
+ },
318
+ watch: {
319
+ },
320
+ computed: {
321
+ getCondition() {
322
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
323
+ return {
324
+ condition: condition ,
325
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
326
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
327
+ }
328
+
329
+ },
330
+ usertypes() {
331
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
332
+ },
333
+ userstate() {
334
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
335
+ }
336
+ }
337
+ }
338
+ </script>
339
+ <style>
340
+ .form-input-group label {
341
+ text-align: right;
342
+ width: auto;
343
+ }
344
+
345
+ .mystyle {
346
+ float: right;
347
+ padding-right: 10%;
348
+ }
349
+
350
+ .mystyle1 {
351
+ padding-top: 10px;
352
+
353
+ }
354
+
355
+ .mystyle2 {
356
+ width: 100%;
357
+ height: 35px;
358
+ /*background: #00A3F0;*/
359
+ padding-left: 15px;
360
+ float: left;
361
+ }
362
+
363
+ .datapanel {
364
+ color: #333;
365
+ background-color: white;
366
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
367
+ padding: 10px 30px 10px 30px;
368
+ border-radius: 15px;
369
+ }
370
+ </style>