manage-client 3.2.93-aode → 3.2.94-aode

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,370 +1,370 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
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">
10
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&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 ">
15
- <label for="f_gasproperties"class="font_normal_body">&nbsp;&nbsp;&nbsp;用气性质</label>
16
- <v-select id="f_gasproperties"
17
- style="width:60%"
18
- v-model="model.f_gasproperties"
19
- placeholder='用气性质'
20
- :value.sync="model.f_gasproperties"
21
- :options='$parent.$parent.gasproperties'
22
- condition="f_gasproperties = '{}'"
23
- close-on-select >
24
- </v-select>
25
- </div>
26
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
27
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;未购天数&nbsp;</label>
28
- <div class="row">
29
- <input type="text" style="width:30%" class="input_search" v-model="model.diffdaymin"
30
- condition="diffday >= {} " placeholder="">
31
- <label class="font_normal_body"> ≤ x ≤ </label>
32
- <input type="text" style="width:30%" class="input_search" v-model="model.diffdaymax"
33
- condition="diffday <= {} " placeholder="">
34
- </div>
35
-
36
- </div>
37
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
38
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;未抄天数&nbsp;</label>
39
- <div class="row">
40
- <input type="text" style="width:30%" class="input_search" v-model="model.handdiffdaymin"
41
- condition="diffday >= {} " placeholder="">
42
- <label class="font_normal_body"> ≤ x ≤ </label>
43
- <input type="text" style="width:30%" class="input_search" v-model="model.handdiffdaymax"
44
- condition="diffday <= {} " placeholder="">
45
- </div>
46
-
47
- </div>
48
- <div class="col-sm-2 ">
49
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;截止时间</label>
50
- <datepicker id="endDate" placeholder="截止时间"
51
- v-model="model.endDate"
52
- style="width:60%"
53
- :value.sync="model.endDate"
54
- :disabled-days-of-Week="[]"
55
- :format="'yyyy-MM-dd'"
56
- :show-reset-button="reset">
57
- </datepicker>
58
- </div>
59
- <div class="span" style="float:right;">
60
- <button class="btn button_search" @click="search()">查询</button>
61
- <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
62
- <export-excel-plus :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
63
- :field="$parent.$parent.getfield"
64
- :exportprogress="true"
65
- sqlurl="rs/logic/exportfileplus" :sql-name="$parent.$parent.sqlName" template-name='用户稽查导出' :choose-col="true"></export-excel-plus>
66
- <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
67
- <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>
68
-
69
- </div>
70
- </div>
71
- <div class="row" v-show="$parent.$parent.criteriaShow">
72
- <div class="col-sm-2 ">
73
- <label for="f_meter_classify"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表类型</label>
74
- <v-select id="f_meter_classify"
75
- v-model="$parent.$parent.meter_classify"
76
- placeholder='表类型'
77
- style="width:70%"
78
- :value.sync="$parent.$parent.meter_classify"
79
- :options='$parent.$parent.f_meter_classify'
80
- condition="f_meter_type like '%{}'"
81
- :value-single="true"
82
- close-on-select >
83
- </v-select>
84
- </div>
85
-
86
- <div class="col-sm-2 ">
87
- <label for="f_table_state"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表状态</label>
88
- <v-select id="f_table_state"
89
- style="width:60%"
90
- v-model="model.f_table_state"
91
- placeholder='表状态'
92
- :value.sync="model.f_table_state"
93
- :options='$parent.$parent.tablestate'
94
- condition="f_table_state = '{}'"
95
- close-on-select >
96
- </v-select>
97
- </div>
98
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
99
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;总购次数&nbsp;</label>
100
- <div class="row">
101
- <input type="text" style="width:30%" class="input_search" v-model="model.cishumin"
102
- condition="cishu >= {} " placeholder="">
103
- <label class="font_normal_body"> ≤ x ≤ </label>
104
- <input type="text" style="width:30%" class="input_search" v-model="model.cishumax"
105
- condition="cishu <= {} " placeholder="">
106
- </div>
107
- </div>
108
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
109
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表次数&nbsp;</label>
110
-
111
- <div class="row">
112
- <input type="text" style="width:30%" class="input_search" v-model="model.handmin"
113
- condition="cishu >= {} " placeholder="">
114
- <label class="font_normal_body"> ≤ x ≤ </label>
115
- <input type="text" style="width:30%" class="input_search" v-model="model.handmax"
116
- condition="cishu <= {} " placeholder="">
117
- </div>
118
-
119
- </div>
120
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
121
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;总购气量&nbsp;</label>
122
-
123
- <div class="row">
124
- <input type="text" style="width:30%" class="input_search" v-model="model.pregasmin"
125
- condition="pregas >= {} " placeholder="">
126
- <label class="font_normal_body"> ≤ x ≤ </label>
127
- <input type="text" style="width:30%" class="input_search" v-model="model.pregasmax"
128
- condition="pregas <= {} " placeholder="">
129
- </div>
130
-
131
-
132
- </div>
133
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
134
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;总用气量&nbsp;</label>
135
- <div class="row">
136
- <input type="text" style="width:30%" class="input_search" v-model="model.pregasusemin"
137
- condition="pregas >= {} " placeholder="">
138
- <label class="font_normal_body"> ≤ x ≤ </label>
139
- <input type="text" style="width:30%" class="input_search" v-model="model.pregasusemax"
140
- condition="pregas <= {} " placeholder="">
141
- </div>
142
- </div>
143
-
144
-
145
- </div>
146
-
147
- </div>
148
- </criteria>
149
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
150
- <template partial='head'>
151
- <tr>
152
- <th><nobr>序号</nobr></th>
153
- <th><nobr>客户编号</nobr></th>
154
- <th><nobr>用户电话</nobr></th>
155
- <th><nobr>表号</nobr></th>
156
- <th><nobr>客户名称</nobr></th>
157
- <th><nobr>地址</nobr></th>
158
- <th><nobr>用户类型</nobr></th>
159
- <th><nobr>用气性质</nobr></th>
160
- <th><nobr>表具状态</nobr></th>
161
- <th><nobr>气表品牌</nobr></th>
162
- <th><nobr>气价名称</nobr></th>
163
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>最后购气日期</nobr></th>
164
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>最后抄表日期</nobr></th>
165
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>最后购气气量</nobr></th>
166
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>最后抄表气量</nobr></th>
167
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>
168
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>
169
-
170
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>
171
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总用气量</nobr></th>
172
-
173
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>
174
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>
175
- <th><nobr>组织机构</nobr></th>
176
- </tr>
177
- </template>
178
- <template partial='body'>
179
- <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
180
- <td style="text-align: center;"><nobr>
181
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
182
- </nobr> </td>
183
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
184
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
185
- <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
186
- <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
187
- <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
188
- <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
189
- <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
190
- <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
191
- <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
192
- <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
193
- <th style="text-align: center;"><nobr>{{row.f_last_pregas}}</nobr></th>
194
-
195
- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>
196
- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>
197
- <!-- <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>-->
198
- <!-- <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>-->
199
- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>
200
- <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
201
- </template>
202
- </data-grid>
203
- </criteria-paged>
204
- <table class="table-hover">
205
- <tr style="position: relative" class="table-bordered">
206
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
207
- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
208
- <!-- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">阶段购气量合计:&emsp;&emsp;{{sumsmodel.sellpregas}}</td>-->
209
- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
210
- <!-- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">阶段抄表气量合计:&emsp;{{sumsmodel.sellpregas}}</td>-->
211
- </tr>
212
- </table>
213
- </div>
214
- <div v-if="show">
215
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
216
- </div>
217
- </div></div>
218
- </template>
219
- <script>
220
- /**
221
- *用户档案查询列表以及添加操作组件
222
- */
223
- import { PagedList } from 'vue-client'
224
- import Vue from 'vue'
225
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
226
-
227
- let readySomething = async function (self) {
228
- self.$refs.paged.$refs.cri.model.f_table_state = ['正常']
229
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
230
-
231
- // await self.$refs.paged.$refs.cri.search()
232
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
233
- }
234
- export default {
235
- title: '用户稽查',
236
- data () {
237
- return {
238
- org:[this.$login.f.orgid],
239
- criteriaShow: false,
240
- meter_classify:'卡表',
241
- filialeNameStr: null,
242
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
243
- userid: this.$login.f.id,
244
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
245
- getfield:{"f_userinfo_code":"客户编号","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
246
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
247
- "delivery_date":"最后购气日期","f_last_pregas":"最后购气气量","cishu":"总购气次数","pregas":"总购气量",
248
- "diffday":"未购气总天数","f_orgname":"组织"},
249
- model: new PagedList('rs/sql/inspectList', 50,{endDate:'this.model.endDate'},{pregas: 0}),
250
- rows: null,
251
- //orgid:'',
252
- show:false,
253
- sqlName:'inspectList',
254
- rowdata:{},
255
- sumsmodel: {},
256
- config: {
257
- defaultPrint: ['f_userinfo_code','f_user_id']
258
- },
259
- defaultfield: [],
260
- selectfields:[],
261
- searchCondition:[],
262
- selectorgid:[],
263
- gasproperties:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
264
- tablestate:[{label: '全部', value: ''},...this.$appdata.getParam('气表状态')]
265
- }
266
- },
267
- watch:{
268
- meter_classify(val){
269
- if(val == '卡表') {
270
- this.url = 'rs/sql/inspectList'
271
- this.sqlName = 'inspectList'
272
- this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
273
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
274
- "delivery_date":"最后购气日期","f_last_pregas":"最后购气气量","cishu":"总购气次数","pregas":"总购气量",
275
- "diffday":"累计未购气天数","f_orgname":"组织"}
276
- }else{
277
- this.url = 'rs/sql/handinspectList'
278
- this.sqlName = 'handinspectList'
279
- this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
280
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
281
- "delivery_date":"最后抄表日期","f_last_pregas":"最后抄表气量","cishu":"总抄表次数","pregas":"抄表气量",
282
- "diffday":"累计未抄表天数","f_orgname":"组织"}
283
- }
284
- this.clear()
285
- }
286
- },
287
- ready () {
288
-
289
- readySomething(this).then(() => {
290
- this.$emit('ready')
291
- }).catch((error) => {
292
- this.$emit('error', error)
293
- })
294
-
295
- },
296
- methods: {
297
- getorg (obj) {
298
- if(obj.resids.length>0){
299
- this.selectorgid = obj.resids
300
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
301
- }
302
- else{
303
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
304
- }
305
- },
306
-
307
- cancel() {
308
- this.show = false
309
- let self = this;
310
- setTimeout(function(){
311
- self.$refs.paged.$refs.cri.model = self.searchCondition;
312
- if (this.selectorgid instanceof Array) {
313
- self.org = self.selectorgid
314
- }
315
- },800);
316
- },
317
- showmsg(obj){
318
- this.searchCondition = this.$refs.paged.$refs.cri.model
319
- this.rowdata=obj
320
- this.show=true
321
- },
322
- search () {
323
- this.$refs.paged.$refs.cri.search()
324
- },
325
- selfSearch (args) {
326
- this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList': 'rs/sql/handinspectList'
327
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
328
- // console.log("拼接的condition", args.condition, this.model)
329
- this.model.search(args.condition, args.model)
330
- },
331
- hidden(){
332
- this.criteriaShow = !this.criteriaShow
333
- },
334
- clear(){
335
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
336
- if(key != 'startDate' && key != 'endDate')
337
- this.$refs.paged.$refs.cri.model[key] = []
338
- })
339
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
340
- }
341
- },
342
- computed: {
343
-
344
- f_meter_classify(){
345
- return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'}, ]
346
- // return [{label: '卡表', value: '卡表'}]
347
- },
348
-
349
- getCondition () {
350
- let result = {
351
- condition: '',
352
- diffDay:' 1=1 ',
353
- endDate: this.$refs.paged.$refs.cri.model.endDate,
354
- }
355
- result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
356
-
357
- return result
358
- }
359
- }
360
- }
361
- </script>
362
- <style media="screen">
363
- .divtext {
364
- min-width: 50px;
365
- max-width: 200px;
366
- border: 1px solid green;
367
- display: inline-block;
368
- }
369
- </style>
370
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
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">
10
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&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 ">
15
+ <label for="f_gasproperties"class="font_normal_body">&nbsp;&nbsp;&nbsp;用气性质</label>
16
+ <v-select id="f_gasproperties"
17
+ style="width:60%"
18
+ v-model="model.f_gasproperties"
19
+ placeholder='用气性质'
20
+ :value.sync="model.f_gasproperties"
21
+ :options='$parent.$parent.gasproperties'
22
+ condition="f_gasproperties = '{}'"
23
+ close-on-select >
24
+ </v-select>
25
+ </div>
26
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
27
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;未购天数&nbsp;</label>
28
+ <div class="row">
29
+ <input type="text" style="width:30%" class="input_search" v-model="model.diffdaymin"
30
+ condition="diffday >= {} " placeholder="">
31
+ <label class="font_normal_body"> ≤ x ≤ </label>
32
+ <input type="text" style="width:30%" class="input_search" v-model="model.diffdaymax"
33
+ condition="diffday <= {} " placeholder="">
34
+ </div>
35
+
36
+ </div>
37
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
38
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;未抄天数&nbsp;</label>
39
+ <div class="row">
40
+ <input type="text" style="width:30%" class="input_search" v-model="model.handdiffdaymin"
41
+ condition="diffday >= {} " placeholder="">
42
+ <label class="font_normal_body"> ≤ x ≤ </label>
43
+ <input type="text" style="width:30%" class="input_search" v-model="model.handdiffdaymax"
44
+ condition="diffday <= {} " placeholder="">
45
+ </div>
46
+
47
+ </div>
48
+ <div class="col-sm-2 ">
49
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;截止时间</label>
50
+ <datepicker id="endDate" placeholder="截止时间"
51
+ v-model="model.endDate"
52
+ style="width:60%"
53
+ :value.sync="model.endDate"
54
+ :disabled-days-of-Week="[]"
55
+ :format="'yyyy-MM-dd'"
56
+ :show-reset-button="reset">
57
+ </datepicker>
58
+ </div>
59
+ <div class="span" style="float:right;">
60
+ <button class="btn button_search" @click="search()">查询</button>
61
+ <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
62
+ <export-excel-plus :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
63
+ :field="$parent.$parent.getfield"
64
+ :exportprogress="true"
65
+ sqlurl="rs/logic/exportfileplus" :sql-name="$parent.$parent.sqlName" template-name='用户稽查导出' :choose-col="true"></export-excel-plus>
66
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
67
+ <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>
68
+
69
+ </div>
70
+ </div>
71
+ <div class="row" v-show="$parent.$parent.criteriaShow">
72
+ <div class="col-sm-2 ">
73
+ <label for="f_meter_classify"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表类型</label>
74
+ <v-select id="f_meter_classify"
75
+ v-model="$parent.$parent.meter_classify"
76
+ placeholder='表类型'
77
+ style="width:70%"
78
+ :value.sync="$parent.$parent.meter_classify"
79
+ :options='$parent.$parent.f_meter_classify'
80
+ condition="f_meter_type like '%{}'"
81
+ :value-single="true"
82
+ close-on-select >
83
+ </v-select>
84
+ </div>
85
+
86
+ <div class="col-sm-2 ">
87
+ <label for="f_table_state"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表状态</label>
88
+ <v-select id="f_table_state"
89
+ style="width:60%"
90
+ v-model="model.f_table_state"
91
+ placeholder='表状态'
92
+ :value.sync="model.f_table_state"
93
+ :options='$parent.$parent.tablestate'
94
+ condition="f_table_state = '{}'"
95
+ close-on-select >
96
+ </v-select>
97
+ </div>
98
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
99
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;总购次数&nbsp;</label>
100
+ <div class="row">
101
+ <input type="text" style="width:30%" class="input_search" v-model="model.cishumin"
102
+ condition="cishu >= {} " placeholder="">
103
+ <label class="font_normal_body"> ≤ x ≤ </label>
104
+ <input type="text" style="width:30%" class="input_search" v-model="model.cishumax"
105
+ condition="cishu <= {} " placeholder="">
106
+ </div>
107
+ </div>
108
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
109
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表次数&nbsp;</label>
110
+
111
+ <div class="row">
112
+ <input type="text" style="width:30%" class="input_search" v-model="model.handmin"
113
+ condition="cishu >= {} " placeholder="">
114
+ <label class="font_normal_body"> ≤ x ≤ </label>
115
+ <input type="text" style="width:30%" class="input_search" v-model="model.handmax"
116
+ condition="cishu <= {} " placeholder="">
117
+ </div>
118
+
119
+ </div>
120
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
121
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;总购气量&nbsp;</label>
122
+
123
+ <div class="row">
124
+ <input type="text" style="width:30%" class="input_search" v-model="model.pregasmin"
125
+ condition="pregas >= {} " placeholder="">
126
+ <label class="font_normal_body"> ≤ x ≤ </label>
127
+ <input type="text" style="width:30%" class="input_search" v-model="model.pregasmax"
128
+ condition="pregas <= {} " placeholder="">
129
+ </div>
130
+
131
+
132
+ </div>
133
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
134
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;总用气量&nbsp;</label>
135
+ <div class="row">
136
+ <input type="text" style="width:30%" class="input_search" v-model="model.pregasusemin"
137
+ condition="pregas >= {} " placeholder="">
138
+ <label class="font_normal_body"> ≤ x ≤ </label>
139
+ <input type="text" style="width:30%" class="input_search" v-model="model.pregasusemax"
140
+ condition="pregas <= {} " placeholder="">
141
+ </div>
142
+ </div>
143
+
144
+
145
+ </div>
146
+
147
+ </div>
148
+ </criteria>
149
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
150
+ <template partial='head'>
151
+ <tr>
152
+ <th><nobr>序号</nobr></th>
153
+ <th><nobr>客户编号</nobr></th>
154
+ <th><nobr>用户电话</nobr></th>
155
+ <th><nobr>表号</nobr></th>
156
+ <th><nobr>客户名称</nobr></th>
157
+ <th><nobr>地址</nobr></th>
158
+ <th><nobr>用户类型</nobr></th>
159
+ <th><nobr>用气性质</nobr></th>
160
+ <th><nobr>表具状态</nobr></th>
161
+ <th><nobr>气表品牌</nobr></th>
162
+ <th><nobr>气价名称</nobr></th>
163
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>最后购气日期</nobr></th>
164
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>最后抄表日期</nobr></th>
165
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>最后购气气量</nobr></th>
166
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>最后抄表气量</nobr></th>
167
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>
168
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>
169
+
170
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>
171
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总用气量</nobr></th>
172
+
173
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>
174
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>
175
+ <th><nobr>组织机构</nobr></th>
176
+ </tr>
177
+ </template>
178
+ <template partial='body'>
179
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
180
+ <td style="text-align: center;"><nobr>
181
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
182
+ </nobr> </td>
183
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
184
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
185
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
186
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
187
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
188
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
189
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
190
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
191
+ <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
192
+ <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
193
+ <th style="text-align: center;"><nobr>{{row.f_last_pregas}}</nobr></th>
194
+
195
+ <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>
196
+ <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>
197
+ <!-- <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>-->
198
+ <!-- <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>-->
199
+ <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>
200
+ <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
201
+ </template>
202
+ </data-grid>
203
+ </criteria-paged>
204
+ <table class="table-hover">
205
+ <tr style="position: relative" class="table-bordered">
206
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
207
+ <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
208
+ <!-- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">阶段购气量合计:&emsp;&emsp;{{sumsmodel.sellpregas}}</td>-->
209
+ <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
210
+ <!-- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">阶段抄表气量合计:&emsp;{{sumsmodel.sellpregas}}</td>-->
211
+ </tr>
212
+ </table>
213
+ </div>
214
+ <div v-if="show">
215
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
216
+ </div>
217
+ </div></div>
218
+ </template>
219
+ <script>
220
+ /**
221
+ *用户档案查询列表以及添加操作组件
222
+ */
223
+ import { PagedList } from 'vue-client'
224
+ import Vue from 'vue'
225
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
226
+
227
+ let readySomething = async function (self) {
228
+ self.$refs.paged.$refs.cri.model.f_table_state = ['正常']
229
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
230
+
231
+ // await self.$refs.paged.$refs.cri.search()
232
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
233
+ }
234
+ export default {
235
+ title: '用户稽查',
236
+ data () {
237
+ return {
238
+ org:[this.$login.f.orgid],
239
+ criteriaShow: false,
240
+ meter_classify:'卡表',
241
+ filialeNameStr: null,
242
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
243
+ userid: this.$login.f.id,
244
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
245
+ getfield:{"f_userinfo_code":"客户编号","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
246
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
247
+ "delivery_date":"最后购气日期","f_last_pregas":"最后购气气量","cishu":"总购气次数","pregas":"总购气量",
248
+ "diffday":"未购气总天数","f_orgname":"组织"},
249
+ model: new PagedList('rs/sql/inspectList', 50,{endDate:'this.model.endDate'},{pregas: 0}),
250
+ rows: null,
251
+ //orgid:'',
252
+ show:false,
253
+ sqlName:'inspectList',
254
+ rowdata:{},
255
+ sumsmodel: {},
256
+ config: {
257
+ defaultPrint: ['f_userinfo_code','f_user_id']
258
+ },
259
+ defaultfield: [],
260
+ selectfields:[],
261
+ searchCondition:[],
262
+ selectorgid:[],
263
+ gasproperties:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
264
+ tablestate:[{label: '全部', value: ''},...this.$appdata.getParam('气表状态')]
265
+ }
266
+ },
267
+ watch:{
268
+ meter_classify(val){
269
+ if(val == '卡表') {
270
+ this.url = 'rs/sql/inspectList'
271
+ this.sqlName = 'inspectList'
272
+ this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
273
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
274
+ "delivery_date":"最后购气日期","f_last_pregas":"最后购气气量","cishu":"总购气次数","pregas":"总购气量",
275
+ "diffday":"累计未购气天数","f_orgname":"组织"}
276
+ }else{
277
+ this.url = 'rs/sql/handinspectList'
278
+ this.sqlName = 'handinspectList'
279
+ this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
280
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
281
+ "delivery_date":"最后抄表日期","f_last_pregas":"最后抄表气量","cishu":"总抄表次数","pregas":"抄表气量",
282
+ "diffday":"累计未抄表天数","f_orgname":"组织"}
283
+ }
284
+ this.clear()
285
+ }
286
+ },
287
+ ready () {
288
+
289
+ readySomething(this).then(() => {
290
+ this.$emit('ready')
291
+ }).catch((error) => {
292
+ this.$emit('error', error)
293
+ })
294
+
295
+ },
296
+ methods: {
297
+ getorg (obj) {
298
+ if(obj.resids.length>0){
299
+ this.selectorgid = obj.resids
300
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
301
+ }
302
+ else{
303
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
304
+ }
305
+ },
306
+
307
+ cancel() {
308
+ this.show = false
309
+ let self = this;
310
+ setTimeout(function(){
311
+ self.$refs.paged.$refs.cri.model = self.searchCondition;
312
+ if (this.selectorgid instanceof Array) {
313
+ self.org = self.selectorgid
314
+ }
315
+ },800);
316
+ },
317
+ showmsg(obj){
318
+ this.searchCondition = this.$refs.paged.$refs.cri.model
319
+ this.rowdata=obj
320
+ this.show=true
321
+ },
322
+ search () {
323
+ this.$refs.paged.$refs.cri.search()
324
+ },
325
+ selfSearch (args) {
326
+ this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList': 'rs/sql/handinspectList'
327
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
328
+ // console.log("拼接的condition", args.condition, this.model)
329
+ this.model.search(args.condition, args.model)
330
+ },
331
+ hidden(){
332
+ this.criteriaShow = !this.criteriaShow
333
+ },
334
+ clear(){
335
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
336
+ if(key != 'startDate' && key != 'endDate')
337
+ this.$refs.paged.$refs.cri.model[key] = []
338
+ })
339
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
340
+ }
341
+ },
342
+ computed: {
343
+
344
+ f_meter_classify(){
345
+ return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'}, ]
346
+ // return [{label: '卡表', value: '卡表'}]
347
+ },
348
+
349
+ getCondition () {
350
+ let result = {
351
+ condition: '',
352
+ diffDay:' 1=1 ',
353
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
354
+ }
355
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
356
+
357
+ return result
358
+ }
359
+ }
360
+ }
361
+ </script>
362
+ <style media="screen">
363
+ .divtext {
364
+ min-width: 50px;
365
+ max-width: 200px;
366
+ border: 1px solid green;
367
+ display: inline-block;
368
+ }
369
+ </style>
370
+