manage-client 3.2.71 → 3.2.72

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,371 +1,371 @@
1
- <template>
2
- <div v-if="!listpage" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged @sort="sort">
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <res-select-group :style="$parent.$parent.style" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" :style="$parent.$parent.style" v-ref:sel></res-select-group>
8
- <div :class="$parent.$parent.style" >
9
- <label for="startDate" class="font_normal_body">开始日期</label>
10
- <datepicker placeholder="开始日期" style="width:60%"
11
- v-model="model.f_startDate"
12
- :value.sync="model.f_startDate"
13
- :format="'yyyy-MM-dd'"
14
- class="datepicker"
15
- :show-reset-button="true"
16
- class="select"
17
- >
18
- </datepicker>
19
- </div>
20
- <div :class="$parent.$parent.style" >
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker placeholder="结束日期" style="width:60%"
23
- v-model="model.f_endDate"
24
- :value.sync="model.f_endDate"
25
- :format="'yyyy-MM-dd'"
26
- class="datepicker"
27
- :show-reset-button="true"
28
- class="select"
29
- >
30
- </datepicker>
31
- </div>
32
- <div :class="$parent.$parent.style">
33
- <label class="font_normal_body">用气性质</label>
34
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties" multiple
35
- :options='$parent.$parent.gasproperties' placeholder='请选择'
36
- condition="f_gasproperties in {}"
37
- close-on-select></v-select>
38
- </div>
39
- <div :class="$parent.$parent.style">
40
- <label class="font_normal_body">操作类型</label>
41
- <v-select :value.sync="model.f_type" v-model="model.f_type"
42
- :options='$parent.$parent.operates' placeholder='请选择'
43
- close-on-select></v-select>
44
- </div>
45
- <div :class="$parent.$parent.style">
46
- <label class="font_normal_body">收费状态</label>
47
- <v-select :value.sync="model.f_state" v-model="model.f_state" multiple
48
- :options='$parent.$parent.sellstate' placeholder='请选择'
49
- condition="f_state in {}"
50
- close-on-select></v-select>
51
- </div>
52
- <div :class="$parent.$parent.style">
53
- <label class="font_normal_body">包含APP</label>
54
- <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
55
- :options='$parent.$parent.hasapps' placeholder='请选择'
56
- condition="f_operator {} "
57
- close-on-select></v-select>
58
- </div>
59
-
60
- <div class="button-range" style="float:right;margin-top:10px">
61
- <button class="button_search button_spacing" @click="search()">查询</button>
62
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
63
- <export-excel :data="$parent.$parent.getCondition"
64
- :field="$parent.$parent.getfield"
65
- sqlurl="rs/logic/exportfile" sql-name="aode_dayReport" template-name='日清单' :choose-col="true"
66
- class="button_export button_spacing"></export-excel>
67
- <day-report-list-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></day-report-list-print>
68
- <div style="float: right" class="button_spacing" :class="{'button_shrink_left':$parent.$parent.criteriaShow,'button_shrink_right':!$parent.$parent.criteriaShow}" @click="$parent.$parent.show()"></div>
69
- </div>
70
-
71
- </div>
72
- </div>
73
- </criteria>
74
- <data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" v-ref:grid >
75
- <template partial='head'>
76
- <tr>
77
- <th>
78
- <data-order field="f_userinfo_code" name="客户编号"></data-order>
79
- <!--<nobr>客户编号</nobr>-->
80
- </th>
81
- <th><data-order field="f_user_name" name="客户姓名"></data-order>
82
- <!--<nobr>客户姓名</nobr>-->
83
- </th>
84
- <th><nobr>地址</nobr></th>
85
- <th>
86
- <data-order field="f_meter_brand" name="气表厂家"></data-order>
87
- </th>
88
- <th><data-order field="f_operate_date" name="操作时间"></data-order>
89
- <!--<nobr>操作时间</nobr>-->
90
- </th>
91
- <th>
92
- <data-order field="f_stair1price" name="1单价"></data-order>
93
- </th>
94
- <th>
95
- <data-order field="f_stair1amount" name="1气量"></data-order>
96
- </th>
97
- <th>
98
- <data-order field="f_stair2price" name="2单价"></data-order>
99
- </th>
100
- <th>
101
- <data-order field="f_stair2amount" name="2气量"></data-order>
102
- </th>
103
- <th>
104
- <data-order field="f_stair3price" name="3单价"></data-order>
105
- </th>
106
- <th>
107
- <data-order field="f_stair3amount" name="3气量"></data-order>
108
- </th>
109
- <th>
110
- <data-order field="f_pregas" name="气量"></data-order>
111
- </th>
112
- <th>
113
- <data-order field="f_preamount" name="应收金额"></data-order>
114
- </th>
115
- <th>
116
- <data-order field="f_collection" name="实收金额"></data-order>
117
-
118
- </th>
119
- <th><nobr>上期余额</nobr></th>
120
- <th><nobr>本期余额</nobr></th>
121
- <th>
122
- <data-order field="f_payment" name="付款方式"></data-order>
123
- <!--<nobr>付款方式</nobr>-->
124
- </th>
125
- <th>
126
- <data-order field="f_type" name="收费类型"></data-order>
127
- <!--<nobr>收费类型</nobr>-->
128
- </th>
129
- <th><nobr>收费状态</nobr></th>
130
- <th>
131
- <data-order field="f_operator" name="操作员"></data-order>
132
- </th>
133
- <th>
134
- <data-order field="f_user_type" name="客户类型"></data-order>
135
- <!--<nobr>客户类型</nobr>-->
136
- </th>
137
- <th><nobr>备注</nobr></th>
138
-
139
- </tr>
140
- </template>
141
- <template partial='body'>
142
- <td style="text-align: center;"><nobr>
143
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
144
- </nobr> </td>
145
- <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
146
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
147
- <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
148
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
149
- <td style="text-align: center;"><nobr>{{row.f_stair1price}}</nobr></td>
150
- <td style="text-align: center;"><nobr>{{row.f_stair1amount}}</nobr></td>
151
- <td style="text-align: center;"><nobr>{{row.f_stair2price}}</nobr></td>
152
- <td style="text-align: center;"><nobr>{{row.f_stair2amount}}</nobr></td>
153
- <td style="text-align: center;"><nobr>{{row.f_stair3price}}</nobr></td>
154
- <td style="text-align: center;"><nobr>{{row.f_stair3amount}}</nobr></td>
155
- <td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
156
- <td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
157
- <td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
158
- <td style="text-align: center;"><nobr>{{row.f_balance}}</nobr></td>
159
- <td style="text-align: center;"><nobr>{{row.f_curbalance}}</nobr></td>
160
- <td style="text-align: center;"><nobr>{{row.f_payment}}</nobr></td>
161
- <td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
162
- <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
163
- <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
164
- <td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
165
- <td style="text-align: left;"><nobr>{{row.f_comments}}</nobr></td>
166
- </template>
167
- </data-grid>
168
- </criteria-paged>
169
- </div>
170
- <div v-if="listpage">
171
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
172
- </div>
173
- </template>
174
-
175
- <script>
176
-
177
- import { PagedList } from 'vue-client'
178
- import exportConfig from '../../config/exportConfig'
179
- import DayReportSummary from "./DayReportSummary";
180
- import getLodop from '../../../../plugins/LodopFuncs'
181
-
182
- export default {
183
- components: {DayReportSummary},
184
- title: '日报表',
185
- props: {
186
- style: {
187
- type: String,
188
- default: 'col-sm-2 form-group'
189
- },
190
- },
191
- data() {
192
- return {
193
- orderDefault: "'f_operate_date'",
194
- orderFields: {
195
- f_userinfo_code: 'no'
196
- },
197
- initres: {
198
- org:[this.$login.f.orgid],
199
- dep:[this.$login.f.depids],
200
- user:[this.$login.f.id]
201
- },
202
- model: new PagedList('rs/sql/aode_dayReport', 30, {orderitem: "'f_operate_date'"},{
203
- f_pregas: 0,
204
- f_collection: 0,
205
- f_count_open: 0,
206
- f_pregas_open: 0,
207
- f_collection_open: 0,
208
- f_count_zg: 0,
209
- f_pregas_zg: 0,
210
- f_collection_zg: 0,
211
- f_count_bk: 0,
212
- f_pregas_bk: 0,
213
- f_collection_bk: 0,
214
- f_count_bq: 0,
215
- f_pregas_bq: 0,
216
- f_collection_bq: 0,
217
- f_count_hb: 0,
218
- f_pregas_hb: 0,
219
- f_collection_hb: 0,
220
- f_count_cz: 0,
221
- f_pregas_cz: 0,
222
- f_collection_cz: 0,
223
- f_sum_count:0,
224
- f_shouru_gas:0,
225
- f_shouru_fee:0
226
- }),
227
- listpage:false,
228
- rowdata: {},
229
- orgCondtionStr: '',
230
- userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
231
- count: 0,
232
- sumsmodel: {},
233
- printshow: false,
234
- all: false,
235
- orgname: '',
236
- depname: '',
237
- criteriaShow: false,
238
- operates: [{label: '全部', value: ''}, {label: '发卡售气', value: "发卡售气"},{label: '卡表收费', value: "卡表收费"},{label: '补气', value: "补气"},{label: '补卡', value: "补卡"},{label: '换表', value: "换表"},{label: '冲正', value: "冲正"}],
239
- hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
240
- }
241
- },
242
- ready() {
243
- this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
244
- this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
245
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()
246
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()
247
- // this.search()
248
- },
249
- methods: {
250
- showmsg(obj){
251
- this.criteriaShow = false
252
- this.$emit('close')
253
- this.rowdata=obj
254
- this.listpage=true
255
- },
256
- cancel() {
257
- this.listpage = false
258
- },
259
- search() {
260
- this.$refs.paged.$refs.cri.search()
261
- },
262
- async selfSearch(args) {
263
- let f_orgstr = this.orgCondtionStr
264
- if (!this.orgCondtionStr) {
265
- f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
266
- }
267
- args.condition = `${args.condition} ` + f_orgstr
268
-
269
- this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate + ' 00:00:00'
270
- this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate + ' 23:59:59'
271
-
272
- this.model.params.operatorState = this.$refs.paged.$refs.cri.model.f_type + ''
273
-
274
- await this.model.search(args.condition, args.model)
275
-
276
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
277
- console.log('计算合计。', this.sumsmodel)
278
- if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
279
- for (let key in this.sumsmodel) {
280
- this.sumsmodel[key] = 0
281
- }
282
- }
283
- this.$dispatch('getdata', this.sumsmodel)
284
- },
285
- getRes(condition, obj) {
286
- this.orgCondtionStr = condition
287
- this.orgname = obj.orgnames[0]
288
- this.depname = obj.depnames[0]
289
- },
290
- clear() {
291
- //清空部门和人员
292
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
293
- //部门和人员变为全选
294
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
295
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
296
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
297
- this.$refs.paged.$refs.cri.model[key] = []
298
- })
299
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()
300
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()
301
- },
302
- close() {
303
- this.printshow = false
304
- },
305
- getfield() {
306
- return exportConfig.dataReportConfig
307
- },
308
- show() {
309
- this.criteriaShow = !this.criteriaShow
310
- if (this.criteriaShow) {
311
- this.$emit('show')
312
- } else {
313
- this.$emit('close')
314
- }
315
- },
316
- /*sort(field, rule) {
317
- console.log('sort...')
318
-
319
- },*/
320
- sort (field, rule) {
321
- // 将所有排序方式设为不排序,实现相互排斥
322
- for (let key in this.orderFields) {
323
- if (key === field) {
324
- this.orderFields[key] = rule
325
- } else {
326
- this.orderFields[key] = 'no'
327
- }
328
- }
329
- // 如果新规则不排序,还原为默认排序
330
- if (rule === 'no') {
331
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
332
- } else {
333
- this.model.paramSource.orderitem = `'${field} ${rule}'`
334
- }
335
-
336
- this.search()
337
- },
338
- },
339
- computed: {
340
- getCondition() {
341
- return {
342
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
343
- startDate: this.$refs.paged.$refs.cri.model.f_startDate+' 00:00:00',
344
- endDate: this.$refs.paged.$refs.cri.model.f_endDate+' 23:59:59',
345
- orderitem: this.model.paramSource.orderitem.split("'")[1].split("'")[0]
346
- }
347
- },
348
- getfield() {
349
- return exportConfig.dataReportConfig
350
- },
351
- gasproperties() {
352
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
353
- },
354
- sellstate() {
355
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
356
- }
357
- }
358
- }
359
-
360
- </script>
361
-
362
- <style scoped>
363
-
364
- .col {
365
- width: 300px;
366
- overflow: hidden;
367
- text-overflow: ellipsis;
368
- white-space: nowrap;
369
- }
370
-
371
- </style>
1
+ <template>
2
+ <div v-if="!listpage" @keyup.enter="search">
3
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <res-select-group :style="$parent.$parent.style" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" :style="$parent.$parent.style" v-ref:sel></res-select-group>
8
+ <div :class="$parent.$parent.style" >
9
+ <label for="startDate" class="font_normal_body">开始日期</label>
10
+ <datepicker placeholder="开始日期" style="width:60%"
11
+ v-model="model.f_startDate"
12
+ :value.sync="model.f_startDate"
13
+ :format="'yyyy-MM-dd'"
14
+ class="datepicker"
15
+ :show-reset-button="true"
16
+ class="select"
17
+ >
18
+ </datepicker>
19
+ </div>
20
+ <div :class="$parent.$parent.style" >
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker placeholder="结束日期" style="width:60%"
23
+ v-model="model.f_endDate"
24
+ :value.sync="model.f_endDate"
25
+ :format="'yyyy-MM-dd'"
26
+ class="datepicker"
27
+ :show-reset-button="true"
28
+ class="select"
29
+ >
30
+ </datepicker>
31
+ </div>
32
+ <div :class="$parent.$parent.style">
33
+ <label class="font_normal_body">用气性质</label>
34
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties" multiple
35
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
36
+ condition="f_gasproperties in {}"
37
+ close-on-select></v-select>
38
+ </div>
39
+ <div :class="$parent.$parent.style">
40
+ <label class="font_normal_body">操作类型</label>
41
+ <v-select :value.sync="model.f_type" v-model="model.f_type"
42
+ :options='$parent.$parent.operates' placeholder='请选择'
43
+ close-on-select></v-select>
44
+ </div>
45
+ <div :class="$parent.$parent.style">
46
+ <label class="font_normal_body">收费状态</label>
47
+ <v-select :value.sync="model.f_state" v-model="model.f_state" multiple
48
+ :options='$parent.$parent.sellstate' placeholder='请选择'
49
+ condition="f_state in {}"
50
+ close-on-select></v-select>
51
+ </div>
52
+ <div :class="$parent.$parent.style">
53
+ <label class="font_normal_body">包含APP</label>
54
+ <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
55
+ :options='$parent.$parent.hasapps' placeholder='请选择'
56
+ condition="f_operator {} "
57
+ close-on-select></v-select>
58
+ </div>
59
+
60
+ <div class="button-range" style="float:right;margin-top:10px">
61
+ <button class="button_search button_spacing" @click="search()">查询</button>
62
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
63
+ <export-excel :data="$parent.$parent.getCondition"
64
+ :field="$parent.$parent.getfield"
65
+ sqlurl="rs/logic/exportfile" sql-name="aode_dayReport" template-name='日清单' :choose-col="true"
66
+ class="button_export button_spacing"></export-excel>
67
+ <day-report-list-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></day-report-list-print>
68
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_left':$parent.$parent.criteriaShow,'button_shrink_right':!$parent.$parent.criteriaShow}" @click="$parent.$parent.show()"></div>
69
+ </div>
70
+
71
+ </div>
72
+ </div>
73
+ </criteria>
74
+ <data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" v-ref:grid >
75
+ <template partial='head'>
76
+ <tr>
77
+ <th>
78
+ <data-order field="f_userinfo_code" name="客户编号"></data-order>
79
+ <!--<nobr>客户编号</nobr>-->
80
+ </th>
81
+ <th><data-order field="f_user_name" name="客户姓名"></data-order>
82
+ <!--<nobr>客户姓名</nobr>-->
83
+ </th>
84
+ <th><nobr>地址</nobr></th>
85
+ <th>
86
+ <data-order field="f_meter_brand" name="气表厂家"></data-order>
87
+ </th>
88
+ <th><data-order field="f_operate_date" name="操作时间"></data-order>
89
+ <!--<nobr>操作时间</nobr>-->
90
+ </th>
91
+ <th>
92
+ <data-order field="f_stair1price" name="1单价"></data-order>
93
+ </th>
94
+ <th>
95
+ <data-order field="f_stair1amount" name="1气量"></data-order>
96
+ </th>
97
+ <th>
98
+ <data-order field="f_stair2price" name="2单价"></data-order>
99
+ </th>
100
+ <th>
101
+ <data-order field="f_stair2amount" name="2气量"></data-order>
102
+ </th>
103
+ <th>
104
+ <data-order field="f_stair3price" name="3单价"></data-order>
105
+ </th>
106
+ <th>
107
+ <data-order field="f_stair3amount" name="3气量"></data-order>
108
+ </th>
109
+ <th>
110
+ <data-order field="f_pregas" name="气量"></data-order>
111
+ </th>
112
+ <th>
113
+ <data-order field="f_preamount" name="应收金额"></data-order>
114
+ </th>
115
+ <th>
116
+ <data-order field="f_collection" name="实收金额"></data-order>
117
+
118
+ </th>
119
+ <th><nobr>上期余额</nobr></th>
120
+ <th><nobr>本期余额</nobr></th>
121
+ <th>
122
+ <data-order field="f_payment" name="付款方式"></data-order>
123
+ <!--<nobr>付款方式</nobr>-->
124
+ </th>
125
+ <th>
126
+ <data-order field="f_type" name="收费类型"></data-order>
127
+ <!--<nobr>收费类型</nobr>-->
128
+ </th>
129
+ <th><nobr>收费状态</nobr></th>
130
+ <th>
131
+ <data-order field="f_operator" name="操作员"></data-order>
132
+ </th>
133
+ <th>
134
+ <data-order field="f_user_type" name="客户类型"></data-order>
135
+ <!--<nobr>客户类型</nobr>-->
136
+ </th>
137
+ <th><nobr>备注</nobr></th>
138
+
139
+ </tr>
140
+ </template>
141
+ <template partial='body'>
142
+ <td style="text-align: center;"><nobr>
143
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
144
+ </nobr> </td>
145
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
146
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
147
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
148
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
149
+ <td style="text-align: center;"><nobr>{{row.f_stair1price}}</nobr></td>
150
+ <td style="text-align: center;"><nobr>{{row.f_stair1amount}}</nobr></td>
151
+ <td style="text-align: center;"><nobr>{{row.f_stair2price}}</nobr></td>
152
+ <td style="text-align: center;"><nobr>{{row.f_stair2amount}}</nobr></td>
153
+ <td style="text-align: center;"><nobr>{{row.f_stair3price}}</nobr></td>
154
+ <td style="text-align: center;"><nobr>{{row.f_stair3amount}}</nobr></td>
155
+ <td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
156
+ <td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
157
+ <td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
158
+ <td style="text-align: center;"><nobr>{{row.f_balance}}</nobr></td>
159
+ <td style="text-align: center;"><nobr>{{row.f_curbalance}}</nobr></td>
160
+ <td style="text-align: center;"><nobr>{{row.f_payment}}</nobr></td>
161
+ <td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
162
+ <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
163
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
164
+ <td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
165
+ <td style="text-align: left;"><nobr>{{row.f_comments}}</nobr></td>
166
+ </template>
167
+ </data-grid>
168
+ </criteria-paged>
169
+ </div>
170
+ <div v-if="listpage">
171
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
172
+ </div>
173
+ </template>
174
+
175
+ <script>
176
+
177
+ import { PagedList } from 'vue-client'
178
+ import exportConfig from '../../config/exportConfig'
179
+ import DayReportSummary from "./DayReportSummary";
180
+ import getLodop from '../../../../plugins/LodopFuncs'
181
+
182
+ export default {
183
+ components: {DayReportSummary},
184
+ title: '日报表',
185
+ props: {
186
+ style: {
187
+ type: String,
188
+ default: 'col-sm-2 form-group'
189
+ },
190
+ },
191
+ data() {
192
+ return {
193
+ orderDefault: "'f_operate_date'",
194
+ orderFields: {
195
+ f_userinfo_code: 'no'
196
+ },
197
+ initres: {
198
+ org:[this.$login.f.orgid],
199
+ dep:[this.$login.f.depids],
200
+ user:[this.$login.f.id]
201
+ },
202
+ model: new PagedList('rs/sql/aode_dayReport', 30, {orderitem: "'f_operate_date'"},{
203
+ f_pregas: 0,
204
+ f_collection: 0,
205
+ f_count_open: 0,
206
+ f_pregas_open: 0,
207
+ f_collection_open: 0,
208
+ f_count_zg: 0,
209
+ f_pregas_zg: 0,
210
+ f_collection_zg: 0,
211
+ f_count_bk: 0,
212
+ f_pregas_bk: 0,
213
+ f_collection_bk: 0,
214
+ f_count_bq: 0,
215
+ f_pregas_bq: 0,
216
+ f_collection_bq: 0,
217
+ f_count_hb: 0,
218
+ f_pregas_hb: 0,
219
+ f_collection_hb: 0,
220
+ f_count_cz: 0,
221
+ f_pregas_cz: 0,
222
+ f_collection_cz: 0,
223
+ f_sum_count:0,
224
+ f_shouru_gas:0,
225
+ f_shouru_fee:0
226
+ }),
227
+ listpage:false,
228
+ rowdata: {},
229
+ orgCondtionStr: '',
230
+ userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
231
+ count: 0,
232
+ sumsmodel: {},
233
+ printshow: false,
234
+ all: false,
235
+ orgname: '',
236
+ depname: '',
237
+ criteriaShow: false,
238
+ operates: [{label: '全部', value: ''}, {label: '发卡售气', value: "发卡售气"},{label: '卡表收费', value: "卡表收费"},{label: '补气', value: "补气"},{label: '补卡', value: "补卡"},{label: '换表', value: "换表"},{label: '冲正', value: "冲正"}],
239
+ hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
240
+ }
241
+ },
242
+ ready() {
243
+ this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
244
+ this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
245
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()
246
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()
247
+ // this.search()
248
+ },
249
+ methods: {
250
+ showmsg(obj){
251
+ this.criteriaShow = false
252
+ this.$emit('close')
253
+ this.rowdata=obj
254
+ this.listpage=true
255
+ },
256
+ cancel() {
257
+ this.listpage = false
258
+ },
259
+ search() {
260
+ this.$refs.paged.$refs.cri.search()
261
+ },
262
+ async selfSearch(args) {
263
+ let f_orgstr = this.orgCondtionStr
264
+ if (!this.orgCondtionStr) {
265
+ f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
266
+ }
267
+ args.condition = `${args.condition} ` + f_orgstr
268
+
269
+ this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate + ' 00:00:00'
270
+ this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate + ' 23:59:59'
271
+
272
+ this.model.params.operatorState = this.$refs.paged.$refs.cri.model.f_type + ''
273
+
274
+ await this.model.search(args.condition, args.model)
275
+
276
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
277
+ console.log('计算合计。', this.sumsmodel)
278
+ if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
279
+ for (let key in this.sumsmodel) {
280
+ this.sumsmodel[key] = 0
281
+ }
282
+ }
283
+ this.$dispatch('getdata', this.sumsmodel)
284
+ },
285
+ getRes(condition, obj) {
286
+ this.orgCondtionStr = condition
287
+ this.orgname = obj.orgnames[0]
288
+ this.depname = obj.depnames[0]
289
+ },
290
+ clear() {
291
+ //清空部门和人员
292
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
293
+ //部门和人员变为全选
294
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
295
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
296
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
297
+ this.$refs.paged.$refs.cri.model[key] = []
298
+ })
299
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()
300
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()
301
+ },
302
+ close() {
303
+ this.printshow = false
304
+ },
305
+ getfield() {
306
+ return exportConfig.dataReportConfig
307
+ },
308
+ show() {
309
+ this.criteriaShow = !this.criteriaShow
310
+ if (this.criteriaShow) {
311
+ this.$emit('show')
312
+ } else {
313
+ this.$emit('close')
314
+ }
315
+ },
316
+ /*sort(field, rule) {
317
+ console.log('sort...')
318
+
319
+ },*/
320
+ sort (field, rule) {
321
+ // 将所有排序方式设为不排序,实现相互排斥
322
+ for (let key in this.orderFields) {
323
+ if (key === field) {
324
+ this.orderFields[key] = rule
325
+ } else {
326
+ this.orderFields[key] = 'no'
327
+ }
328
+ }
329
+ // 如果新规则不排序,还原为默认排序
330
+ if (rule === 'no') {
331
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
332
+ } else {
333
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
334
+ }
335
+
336
+ this.search()
337
+ },
338
+ },
339
+ computed: {
340
+ getCondition() {
341
+ return {
342
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
343
+ startDate: this.$refs.paged.$refs.cri.model.f_startDate+' 00:00:00',
344
+ endDate: this.$refs.paged.$refs.cri.model.f_endDate+' 23:59:59',
345
+ orderitem: this.model.paramSource.orderitem.split("'")[1].split("'")[0]
346
+ }
347
+ },
348
+ getfield() {
349
+ return exportConfig.dataReportConfig
350
+ },
351
+ gasproperties() {
352
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
353
+ },
354
+ sellstate() {
355
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
356
+ }
357
+ }
358
+ }
359
+
360
+ </script>
361
+
362
+ <style scoped>
363
+
364
+ .col {
365
+ width: 300px;
366
+ overflow: hidden;
367
+ text-overflow: ellipsis;
368
+ white-space: nowrap;
369
+ }
370
+
371
+ </style>