manage-client 3.3.136-rz → 3.3.136

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,398 +1,398 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
11
- <right-tree @re-res="$parent.$parent.getorg"
12
- :initresid='$parent.$parent.org'></right-tree>
13
- </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户编号</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
17
- placeholder="客户编号">
18
- </div>
19
-
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">客户名称</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
23
- placeholder="客户名称">
24
- </div>
25
- <div class="col-sm-2 form-group">
26
- <label class="font_normal_body">增值服务类型</label>
27
- <v-select :value.sync="model.f_field_name"
28
- v-model="model.f_field_name"
29
- :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
30
- condition="itemname = '{}'"
31
- close-on-select></v-select>
32
- </div>
33
-
34
- <div class="span" style="float:right;">
35
- <button class="button_search button_spacing" @click="search()">查询</button>
36
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
-
38
- <export-excel-plus :data="$parent.$parent.getCondition"
39
- :defaultselect="$parent.$parent.selectfields"
40
- :field="$parent.$parent.getfield"
41
- :exportprogress="true"
42
- sqlurl="rs/logic/exportfile"
43
- sql-name='getValueaddInfo'
44
- template-name="用户增值业务信息" :choose-col="true"></export-excel-plus>
45
- <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>
46
-
47
- </div>
48
- </div>
49
- <div class="row" v-show="$parent.$parent.criteriaShow">
50
- <div class="col-sm-4 form-group">
51
- <label class="font_normal_body">客户地址</label>
52
- <input type="text" style="width:80%" class="input_search" v-model="model.f_address"
53
- placeholder="客户地址">
54
- </div>
55
- <div class="col-sm-2 form-group">
56
- <label class="font_normal_body">客户类型</label>
57
- <v-select :value.sync="model.f_user_type"
58
- @change="$parent.$parent.userTypeChange()"
59
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
- close-on-select></v-select>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">用气性质</label>
64
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
65
- :options='$parent.$parent.gasproperties' placeholder='请选择'
66
- close-on-select></v-select>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">有无增值业务</label>
70
- <v-select :value.sync="model.f_open_state"
71
- v-model="model.f_open_state"
72
- :options='$parent.$parent.backstates' placeholder='请选择'
73
- condition="ishas = '{}'"
74
- close-on-select></v-select>
75
- </div>
76
-
77
- </div>
78
- </div>
79
- </criteria>
80
-
81
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
82
- <template partial='head'>
83
- <tr>
84
- <th>
85
- <nobr>客户编号</nobr>
86
- </th>
87
- <th>
88
- <nobr>客户名称</nobr>
89
- </th>
90
- <th>
91
- <nobr>客户地址</nobr>
92
- </th>
93
- <th>
94
- <nobr>用户类型</nobr>
95
- </th>
96
- <th>
97
- <nobr>用气性质</nobr>
98
- </th>
99
- <th>
100
- <nobr>气表类型</nobr>
101
- </th>
102
- <th>
103
- <nobr>表号</nobr>
104
- </th>
105
- <th>
106
- <nobr>增值服务类型</nobr>
107
- </th>
108
- <th>
109
- <nobr>有无增值业务</nobr>
110
- </th>
111
- <th>
112
- <nobr>购买时间</nobr>
113
- </th>
114
- <th>
115
- <nobr>最后操作时间</nobr>
116
- </th>
117
- <th>
118
- <nobr>所属公司</nobr>
119
- </th>
120
- <th>
121
- <nobr>备注</nobr>
122
- </th>
123
- </tr>
124
- </template>
125
- <template partial='body'>
126
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
127
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
128
- </td>
129
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
130
- <nobr>{{row.f_user_name}}</nobr>
131
- </td>
132
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
133
- <nobr>{{row.f_address}}</nobr>
134
- </td>
135
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
136
- <nobr>{{row.f_user_type}}</nobr>
137
- </td>
138
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
139
- <nobr>{{row.f_gasproperties}}</nobr>
140
- </td>
141
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
142
- <nobr>{{row.f_meter_classify}}</nobr>
143
- </td>
144
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
145
- <nobr>{{row.f_meternumber}}</nobr>
146
- </td>
147
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
148
- <nobr>{{row.itemname}}</nobr>
149
- </td>
150
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
151
- <nobr>{{row.ishas}}</nobr>
152
- </td>
153
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
154
- <nobr>{{row.startdate}}</nobr>
155
- </td>
156
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
157
- <nobr>{{row.f_operate_date}}</nobr>
158
- </td>
159
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
160
- <nobr>{{row.f_orgname}}</nobr>
161
- </td>
162
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
163
- <nobr>{{row.f_remark}}</nobr>
164
- </td>
165
- </template>
166
- <template partial='foot'></template>
167
- </data-grid>
168
-
169
- </criteria-paged>
170
-
171
-
172
- </div>
173
- <div v-if="show">
174
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
175
- </div>
176
- </div>
177
- </div>
178
- </template>
179
-
180
- <script>
181
- import {PagedList} from 'vue-client'
182
- import exportConfig from '../sale/config/exportConfig'
183
- import defaultPrint from "../sale/config/DefaultPrint";
184
- import plugin from "system-clients/src/plugins/GetLoginInfoService";
185
-
186
- let readySomething = async function (self) {
187
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
188
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
189
- // self.$refs.paged.$refs.cri.search()
190
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
191
- await self.$MagLoadParams.loadParam()
192
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
193
- }
194
- export default {
195
- title: '增值业务查询',
196
-
197
- data() {
198
- return {
199
- org:[this.$login.f.orgid],
200
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
201
- config: {
202
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
203
- },
204
- //f_price_name:[],
205
- gasproperties:[],
206
- showinfo: false,
207
- data: {},
208
- show:false,
209
- rowdata:{},
210
- initres: {
211
- org:[this.$login.f.orgid],
212
- dep:[],
213
- user:[],
214
- },
215
- model: new PagedList('rs/sql/getValueaddInfo', 20, {}, ),
216
- criteriaShow: true,
217
- orgCondtionStr: '',
218
- // 下拉框
219
- meterbrands: [],
220
- pricenames: [],
221
- prices: [],
222
- //合计数据
223
- defaultfield: [],
224
- sumsmodel: {},
225
- f_filialeid: this.$login.f.f_orgid,
226
- selectfields:[],
227
- istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
228
- backstates:[{label: '全部', value: ''},{label: '有', value: '有'},{label: '无', value: '无'}],
229
- }
230
- },
231
- props:['selectorg'],
232
- ready() {
233
- if(this.selectorg != null && this.selectorg != null != ''){
234
- this.initres.org=[]
235
- this.initres.org.push(this.selectorg);
236
- }
237
- readySomething(this).then(() => {
238
- this.$emit('ready')
239
- }).catch((error) => {
240
- this.$emit('error', error)
241
- })
242
- for(var item in exportConfig.valueuserinfoConfig){
243
- this.selectfields.push(item)
244
- }
245
- },
246
- methods: {
247
- getorg (obj) {
248
- if(obj.resids.length>0){
249
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
250
- }
251
- else{
252
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
253
- }
254
- },
255
- search(){
256
- this.$refs.paged.$refs.cri.search()
257
- },
258
- cancel() {
259
- this.show = false
260
- },
261
- showmsg(obj){
262
- this.rowdata=obj
263
- this.show=true
264
- },
265
- userTypeChange () {
266
- this.gasproperties=[]
267
- if(this.$refs.paged.model.model !==null) {
268
- this.$refs.paged.model.model.f_gasproperties=''
269
-
270
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
271
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
272
- // this.gasproperties.push({label: '全部', value: ''})
273
- }
274
- else{
275
- this.gasproperties =[{label: '全部', value: ''}]
276
- }
277
- },
278
-
279
- selfSearch(args) {
280
- //args.condition = args.condition+ ` ${this.filialeCodeStr}`
281
- this.model.params.f_userinfo_code = this.$refs.paged.$refs.cri.model.f_userinfo_code ==null|| this.$refs.paged.$refs.cri.model.f_userinfo_code==''?'':` and tui.f_userinfo_code = '${this.$refs.paged.$refs.cri.model.f_userinfo_code}'`
282
- this.model.params.f_user_name = this.$refs.paged.$refs.cri.model.f_user_name ==null|| this.$refs.paged.$refs.cri.model.f_user_name==''?'':` and tui.f_user_name = '${this.$refs.paged.$refs.cri.model.f_user_name}'`
283
- this.model.params.f_address = this.$refs.paged.$refs.cri.model.f_address ==null|| this.$refs.paged.$refs.cri.model.f_address==''?'':` and tua.f_address = '${this.$refs.paged.$refs.cri.model.f_address}'`
284
- this.model.params.f_user_type = this.$refs.paged.$refs.cri.model.f_user_type ==null|| this.$refs.paged.$refs.cri.model.f_user_type==''?'':` and tuf.f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'`
285
- this.model.params.f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties ==null|| this.$refs.paged.$refs.cri.model.f_gasproperties==''?'':` and tuf.f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'`
286
- this.model.params.f_meter_classify = this.$refs.paged.$refs.cri.model.f_meter_classify ==null|| this.$refs.paged.$refs.cri.model.f_meter_classify==''?'':` and tuf.f_meter_classify = '${this.$refs.paged.$refs.cri.model.f_meter_classify}'`
287
- this.model.params.f_meternumber = this.$refs.paged.$refs.cri.model.f_meternumber ==null|| this.$refs.paged.$refs.cri.model.f_meternumber==''?'':` and tuf.f_meternumber = '${this.$refs.paged.$refs.cri.model.f_meternumber}'`
288
- this.model.params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid
289
- this.model.search(args.condition, args.model)
290
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
291
- },
292
- clear() {
293
- // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
294
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
295
- this.$refs.paged.$refs.cri.model[key] = []
296
- });
297
- this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
298
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
299
-
300
- },
301
- dealmsg(val) {
302
- val.model = this.model.model
303
- this.$dispatch('deal-msg', val)
304
- },
305
- show() {
306
- this.criteriaShow = true
307
- },
308
- hidden() {
309
- this.criteriaShow = !this.criteriaShow
310
- },
311
- getRes(condition,obj) {
312
- this.orgCondtionStr = condition
313
- this.f_orgid = obj.resids
314
- },
315
- stamp() {
316
- this.all = false
317
- //默认选择要打印的列
318
- this.modelval = defaultPrint.config
319
- this.fields = this.getfield
320
- console.log('所有打印字段', this.fields)
321
- this.printshow = true
322
- this.put()
323
- },
324
- put() {
325
- // 对Modelval进行排序
326
- this.sortModelval()
327
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
328
- for (let key of this.modelval) {
329
- this.thead += '<th>' + this.fields[key] + '</th>'
330
- }
331
- this.thead += '</tr>'
332
- },
333
- print() {
334
- this.$refs.print.PrintAsFile()
335
- this.printshow = false
336
- },
337
- close() {
338
- this.printshow = false
339
- this.all = false
340
- },
341
- // 对选择的列进行排序
342
- sortModelval() {
343
- let sortModel = []
344
- Object.keys(this.fields).forEach((key) => {
345
- if (this.modelval.includes(key)) {
346
- sortModel.push(key)
347
- }
348
- })
349
- this.modelval = sortModel
350
- console.log('选择的打印的字段', this.modelval)
351
- },
352
-
353
- },
354
- watch: {
355
- 'model'(val) {
356
- console.log(val, "12222222222222222222")
357
- },
358
- 'filialeCodeStr'(val) {
359
- let res = val.match(/'(.*?)'/)
360
- console.log('正则提取:',res && res[1])
361
- if (res) {
362
- this.f_filialeid = res[1]
363
- }
364
- }
365
- },
366
- computed: {
367
- getCondition() {
368
- let params={}
369
- params.f_userinfo_code = this.$refs.paged.$refs.cri.model.f_userinfo_code ==null|| this.$refs.paged.$refs.cri.model.f_userinfo_code==''?'':` and tui.f_userinfo_code = '${this.$refs.paged.$refs.cri.model.f_userinfo_code}'`
370
- params.f_user_name = this.$refs.paged.$refs.cri.model.f_user_name ==null|| this.$refs.paged.$refs.cri.model.f_user_name==''?'':` and tui.f_user_name = '${this.$refs.paged.$refs.cri.model.f_user_name}'`
371
- params.f_address = this.$refs.paged.$refs.cri.model.f_address ==null|| this.$refs.paged.$refs.cri.model.f_address==''?'':` and tua.f_address = '${this.$refs.paged.$refs.cri.model.f_address}'`
372
- params.f_user_type = this.$refs.paged.$refs.cri.model.f_user_type ==null|| this.$refs.paged.$refs.cri.model.f_user_type==''?'':` and tuf.f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'`
373
- params.f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties ==null|| this.$refs.paged.$refs.cri.model.f_gasproperties==''?'':` and tuf.f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'`
374
- params.f_meter_classify = this.$refs.paged.$refs.cri.model.f_meter_classify ==null|| this.$refs.paged.$refs.cri.model.f_meter_classify==''?'':` and tuf.f_meter_classify = '${this.$refs.paged.$refs.cri.model.f_meter_classify}'`
375
- params.f_meternumber = this.$refs.paged.$refs.cri.model.f_meternumber ==null|| this.$refs.paged.$refs.cri.model.f_meternumber==''?'':` and tuf.f_meternumber = '${this.$refs.paged.$refs.cri.model.f_meternumber}'`
376
- params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid;
377
- params.condition = `${this.$refs.paged.$refs.cri.condition}`;
378
- return params;
379
- },
380
- valuetypeoptions(){
381
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
382
- },
383
- stateoptions(){
384
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
385
- },
386
- usertypes() {
387
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
388
- },
389
- pricetypeoptions(){
390
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
391
- },
392
- getfield() {
393
- return exportConfig.valueuserinfoConfig
394
- },
395
-
396
- }
397
- }
398
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
11
+ <right-tree @re-res="$parent.$parent.getorg"
12
+ :initresid='$parent.$parent.org'></right-tree>
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
17
+ placeholder="客户编号">
18
+ </div>
19
+
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">客户名称</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
23
+ placeholder="客户名称">
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body">增值服务类型</label>
27
+ <v-select :value.sync="model.f_field_name"
28
+ v-model="model.f_field_name"
29
+ :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
30
+ condition="itemname = '{}'"
31
+ close-on-select></v-select>
32
+ </div>
33
+
34
+ <div class="span" style="float:right;">
35
+ <button class="button_search button_spacing" @click="search()">查询</button>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
+
38
+ <export-excel-plus :data="$parent.$parent.getCondition"
39
+ :defaultselect="$parent.$parent.selectfields"
40
+ :field="$parent.$parent.getfield"
41
+ :exportprogress="true"
42
+ sqlurl="rs/logic/exportfile"
43
+ sql-name='getValueaddInfo'
44
+ template-name="用户增值业务信息" :choose-col="true"></export-excel-plus>
45
+ <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>
46
+
47
+ </div>
48
+ </div>
49
+ <div class="row" v-show="$parent.$parent.criteriaShow">
50
+ <div class="col-sm-4 form-group">
51
+ <label class="font_normal_body">客户地址</label>
52
+ <input type="text" style="width:80%" class="input_search" v-model="model.f_address"
53
+ placeholder="客户地址">
54
+ </div>
55
+ <div class="col-sm-2 form-group">
56
+ <label class="font_normal_body">客户类型</label>
57
+ <v-select :value.sync="model.f_user_type"
58
+ @change="$parent.$parent.userTypeChange()"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ close-on-select></v-select>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">用气性质</label>
64
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
65
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
66
+ close-on-select></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">有无增值业务</label>
70
+ <v-select :value.sync="model.f_open_state"
71
+ v-model="model.f_open_state"
72
+ :options='$parent.$parent.backstates' placeholder='请选择'
73
+ condition="ishas = '{}'"
74
+ close-on-select></v-select>
75
+ </div>
76
+
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+
81
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
82
+ <template partial='head'>
83
+ <tr>
84
+ <th>
85
+ <nobr>客户编号</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>客户名称</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>客户地址</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>用户类型</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>用气性质</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>气表类型</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>表号</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>增值服务类型</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>有无增值业务</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>购买时间</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>最后操作时间</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>所属公司</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>备注</nobr>
122
+ </th>
123
+ </tr>
124
+ </template>
125
+ <template partial='body'>
126
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
127
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
128
+ </td>
129
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
130
+ <nobr>{{row.f_user_name}}</nobr>
131
+ </td>
132
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
133
+ <nobr>{{row.f_address}}</nobr>
134
+ </td>
135
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
136
+ <nobr>{{row.f_user_type}}</nobr>
137
+ </td>
138
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
139
+ <nobr>{{row.f_gasproperties}}</nobr>
140
+ </td>
141
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
142
+ <nobr>{{row.f_meter_classify}}</nobr>
143
+ </td>
144
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
145
+ <nobr>{{row.f_meternumber}}</nobr>
146
+ </td>
147
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
148
+ <nobr>{{row.itemname}}</nobr>
149
+ </td>
150
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
151
+ <nobr>{{row.ishas}}</nobr>
152
+ </td>
153
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
154
+ <nobr>{{row.startdate}}</nobr>
155
+ </td>
156
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
157
+ <nobr>{{row.f_operate_date}}</nobr>
158
+ </td>
159
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
160
+ <nobr>{{row.f_orgname}}</nobr>
161
+ </td>
162
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
163
+ <nobr>{{row.f_orgname}}</nobr>
164
+ </td>
165
+ </template>
166
+ <template partial='foot'></template>
167
+ </data-grid>
168
+
169
+ </criteria-paged>
170
+
171
+
172
+ </div>
173
+ <div v-if="show">
174
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ </template>
179
+
180
+ <script>
181
+ import {PagedList} from 'vue-client'
182
+ import exportConfig from '../sale/config/exportConfig'
183
+ import defaultPrint from "../sale/config/DefaultPrint";
184
+ import plugin from "system-clients/src/plugins/GetLoginInfoService";
185
+
186
+ let readySomething = async function (self) {
187
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
188
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
189
+ // self.$refs.paged.$refs.cri.search()
190
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
191
+ await self.$MagLoadParams.loadParam()
192
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
193
+ }
194
+ export default {
195
+ title: '增值业务查询',
196
+
197
+ data() {
198
+ return {
199
+ org:[this.$login.f.orgid],
200
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
201
+ config: {
202
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
203
+ },
204
+ //f_price_name:[],
205
+ gasproperties:[],
206
+ showinfo: false,
207
+ data: {},
208
+ show:false,
209
+ rowdata:{},
210
+ initres: {
211
+ org:[this.$login.f.orgid],
212
+ dep:[],
213
+ user:[],
214
+ },
215
+ model: new PagedList('rs/sql/getValueaddInfo', 20, {}, ),
216
+ criteriaShow: true,
217
+ orgCondtionStr: '',
218
+ // 下拉框
219
+ meterbrands: [],
220
+ pricenames: [],
221
+ prices: [],
222
+ //合计数据
223
+ defaultfield: [],
224
+ sumsmodel: {},
225
+ f_filialeid: this.$login.f.f_orgid,
226
+ selectfields:[],
227
+ istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
228
+ backstates:[{label: '全部', value: ''},{label: '有', value: '有'},{label: '无', value: '无'}],
229
+ }
230
+ },
231
+ props:['selectorg'],
232
+ ready() {
233
+ if(this.selectorg != null && this.selectorg != null != ''){
234
+ this.initres.org=[]
235
+ this.initres.org.push(this.selectorg);
236
+ }
237
+ readySomething(this).then(() => {
238
+ this.$emit('ready')
239
+ }).catch((error) => {
240
+ this.$emit('error', error)
241
+ })
242
+ for(var item in exportConfig.valueuserinfoConfig){
243
+ this.selectfields.push(item)
244
+ }
245
+ },
246
+ methods: {
247
+ getorg (obj) {
248
+ if(obj.resids.length>0){
249
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
250
+ }
251
+ else{
252
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
253
+ }
254
+ },
255
+ search(){
256
+ this.$refs.paged.$refs.cri.search()
257
+ },
258
+ cancel() {
259
+ this.show = false
260
+ },
261
+ showmsg(obj){
262
+ this.rowdata=obj
263
+ this.show=true
264
+ },
265
+ userTypeChange () {
266
+ this.gasproperties=[]
267
+ if(this.$refs.paged.model.model !==null) {
268
+ this.$refs.paged.model.model.f_gasproperties=''
269
+
270
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
271
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
272
+ // this.gasproperties.push({label: '全部', value: ''})
273
+ }
274
+ else{
275
+ this.gasproperties =[{label: '全部', value: ''}]
276
+ }
277
+ },
278
+
279
+ selfSearch(args) {
280
+ //args.condition = args.condition+ ` ${this.filialeCodeStr}`
281
+ this.model.params.f_userinfo_code = this.$refs.paged.$refs.cri.model.f_userinfo_code ==null|| this.$refs.paged.$refs.cri.model.f_userinfo_code==''?'':` and tui.f_userinfo_code = '${this.$refs.paged.$refs.cri.model.f_userinfo_code}'`
282
+ this.model.params.f_user_name = this.$refs.paged.$refs.cri.model.f_user_name ==null|| this.$refs.paged.$refs.cri.model.f_user_name==''?'':` and tui.f_user_name = '${this.$refs.paged.$refs.cri.model.f_user_name}'`
283
+ this.model.params.f_address = this.$refs.paged.$refs.cri.model.f_address ==null|| this.$refs.paged.$refs.cri.model.f_address==''?'':` and tua.f_address = '${this.$refs.paged.$refs.cri.model.f_address}'`
284
+ this.model.params.f_user_type = this.$refs.paged.$refs.cri.model.f_user_type ==null|| this.$refs.paged.$refs.cri.model.f_user_type==''?'':` and tuf.f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'`
285
+ this.model.params.f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties ==null|| this.$refs.paged.$refs.cri.model.f_gasproperties==''?'':` and tuf.f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'`
286
+ this.model.params.f_meter_classify = this.$refs.paged.$refs.cri.model.f_meter_classify ==null|| this.$refs.paged.$refs.cri.model.f_meter_classify==''?'':` and tuf.f_meter_classify = '${this.$refs.paged.$refs.cri.model.f_meter_classify}'`
287
+ this.model.params.f_meternumber = this.$refs.paged.$refs.cri.model.f_meternumber ==null|| this.$refs.paged.$refs.cri.model.f_meternumber==''?'':` and tuf.f_meternumber = '${this.$refs.paged.$refs.cri.model.f_meternumber}'`
288
+ this.model.params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid
289
+ this.model.search(args.condition, args.model)
290
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
291
+ },
292
+ clear() {
293
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
294
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
295
+ this.$refs.paged.$refs.cri.model[key] = []
296
+ });
297
+ this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
298
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
299
+
300
+ },
301
+ dealmsg(val) {
302
+ val.model = this.model.model
303
+ this.$dispatch('deal-msg', val)
304
+ },
305
+ show() {
306
+ this.criteriaShow = true
307
+ },
308
+ hidden() {
309
+ this.criteriaShow = !this.criteriaShow
310
+ },
311
+ getRes(condition,obj) {
312
+ this.orgCondtionStr = condition
313
+ this.f_orgid = obj.resids
314
+ },
315
+ stamp() {
316
+ this.all = false
317
+ //默认选择要打印的列
318
+ this.modelval = defaultPrint.config
319
+ this.fields = this.getfield
320
+ console.log('所有打印字段', this.fields)
321
+ this.printshow = true
322
+ this.put()
323
+ },
324
+ put() {
325
+ // 对Modelval进行排序
326
+ this.sortModelval()
327
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
328
+ for (let key of this.modelval) {
329
+ this.thead += '<th>' + this.fields[key] + '</th>'
330
+ }
331
+ this.thead += '</tr>'
332
+ },
333
+ print() {
334
+ this.$refs.print.PrintAsFile()
335
+ this.printshow = false
336
+ },
337
+ close() {
338
+ this.printshow = false
339
+ this.all = false
340
+ },
341
+ // 对选择的列进行排序
342
+ sortModelval() {
343
+ let sortModel = []
344
+ Object.keys(this.fields).forEach((key) => {
345
+ if (this.modelval.includes(key)) {
346
+ sortModel.push(key)
347
+ }
348
+ })
349
+ this.modelval = sortModel
350
+ console.log('选择的打印的字段', this.modelval)
351
+ },
352
+
353
+ },
354
+ watch: {
355
+ 'model'(val) {
356
+ console.log(val, "12222222222222222222")
357
+ },
358
+ 'filialeCodeStr'(val) {
359
+ let res = val.match(/'(.*?)'/)
360
+ console.log('正则提取:',res && res[1])
361
+ if (res) {
362
+ this.f_filialeid = res[1]
363
+ }
364
+ }
365
+ },
366
+ computed: {
367
+ getCondition() {
368
+ let params={}
369
+ params.f_userinfo_code = this.$refs.paged.$refs.cri.model.f_userinfo_code ==null|| this.$refs.paged.$refs.cri.model.f_userinfo_code==''?'':` and tui.f_userinfo_code = '${this.$refs.paged.$refs.cri.model.f_userinfo_code}'`
370
+ params.f_user_name = this.$refs.paged.$refs.cri.model.f_user_name ==null|| this.$refs.paged.$refs.cri.model.f_user_name==''?'':` and tui.f_user_name = '${this.$refs.paged.$refs.cri.model.f_user_name}'`
371
+ params.f_address = this.$refs.paged.$refs.cri.model.f_address ==null|| this.$refs.paged.$refs.cri.model.f_address==''?'':` and tua.f_address = '${this.$refs.paged.$refs.cri.model.f_address}'`
372
+ params.f_user_type = this.$refs.paged.$refs.cri.model.f_user_type ==null|| this.$refs.paged.$refs.cri.model.f_user_type==''?'':` and tuf.f_user_type = '${this.$refs.paged.$refs.cri.model.f_user_type}'`
373
+ params.f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties ==null|| this.$refs.paged.$refs.cri.model.f_gasproperties==''?'':` and tuf.f_gasproperties = '${this.$refs.paged.$refs.cri.model.f_gasproperties}'`
374
+ params.f_meter_classify = this.$refs.paged.$refs.cri.model.f_meter_classify ==null|| this.$refs.paged.$refs.cri.model.f_meter_classify==''?'':` and tuf.f_meter_classify = '${this.$refs.paged.$refs.cri.model.f_meter_classify}'`
375
+ params.f_meternumber = this.$refs.paged.$refs.cri.model.f_meternumber ==null|| this.$refs.paged.$refs.cri.model.f_meternumber==''?'':` and tuf.f_meternumber = '${this.$refs.paged.$refs.cri.model.f_meternumber}'`
376
+ params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid;
377
+ params.condition = `${this.$refs.paged.$refs.cri.condition}`;
378
+ return params;
379
+ },
380
+ valuetypeoptions(){
381
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
382
+ },
383
+ stateoptions(){
384
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
385
+ },
386
+ usertypes() {
387
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
388
+ },
389
+ pricetypeoptions(){
390
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
391
+ },
392
+ getfield() {
393
+ return exportConfig.valueuserinfoConfig
394
+ },
395
+
396
+ }
397
+ }
398
+ </script>