manage-client 3.3.210 → 3.3.211

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.
Files changed (33) hide show
  1. package/package.json +1 -1
  2. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -0
  3. package/src/components/sale/businessquery/ChargeQuery.vue +8 -8
  4. package/src/components/sale/businessquery/HandplanQuery.vue +33 -33
  5. package/src/components/sale/businessquery/WebHandplanQuery.vue +24 -4
  6. package/src/components/sale/common/PrintTableManage.vue +242 -0
  7. package/src/components/sale/config/exportConfig.js +0 -1
  8. package/src/components/sale/config/tableConfig.js +2 -1
  9. package/src/components/sale/filesquery/FireQuery.vue +20 -1
  10. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +25 -1
  11. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +59 -94
  12. package/src/components/webmeter/report/ReportList.vue +2 -2
  13. package/src/filiale/bayan/config/DefaultPrint.js +6 -0
  14. package/src/filiale/bayan/config/exportConfig.js +2642 -0
  15. package/src/filiale/bayan/config/tableConfig.js +59 -0
  16. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -0
  17. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -0
  18. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -0
  19. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -0
  20. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -0
  21. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -0
  22. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -0
  23. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -0
  24. package/src/filiale/bayan/webmeter/ReportList.vue +555 -0
  25. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -0
  26. package/src/filiale/bayan/webmeterManage.js +26 -0
  27. package/src/filiale/kelai/feimin_style_kl.vue +1 -1
  28. package/src/filiale/yuncheng/ChangeMeterQuery.vue +17 -0
  29. package/src/filiale/yuncheng/MeterQuery.vue +995 -0
  30. package/src/filiale/yuncheng/config/exportConfig.js +4 -0
  31. package/src/filiale/yuncheng/sale.js +4 -0
  32. package/src/reportManage.js +5 -0
  33. package/src/saleManage.js +2 -0
@@ -0,0 +1,430 @@
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' v-ref:criteria @condition-changed='$parent.search'>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <res-select-group :show-component="['company','department']"
10
+ :initres="$parent.$parent.org"
11
+ @re-res="$parent.$parent.getorg">
12
+ </res-select-group>
13
+ <div class="col-sm-2">
14
+ <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
15
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
16
+ v-model="model.f_meternumber" placeholder='表钢号'
17
+ condition="s.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
18
+ >
19
+ </div>
20
+ <!-- <div class="col-sm-2">-->
21
+ <!-- <label class="font_normal_body">组织机构</label>-->
22
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
23
+ <!-- style="width:60%"-->
24
+ <!-- @res-select="$parent.$parent.getRes"-->
25
+ <!-- restype='organization'>-->
26
+ <!-- </res-select>-->
27
+ <!-- </div>-->
28
+ <div class="col-sm-2">
29
+ <label class="font_normal_body">客户编号</label>
30
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
31
+ v-model="model.f_userinfo_code" placeholder='客户编号'
32
+ condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
33
+ >
34
+ </div>
35
+
36
+ <div class="span" style="float:right;margin-top:10px">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
39
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
+ :field="$parent.$parent.getfield"
41
+ :header="$parent.$parent.other"
42
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="rechargeInstruct"
43
+ template-name='充值指令查询'
44
+ :choose-col="true"></export-excel>
45
+ <div style="float: right" class="button_spacing"
46
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
47
+ @click="$parent.$parent.hidden()"></div>
48
+ </div>
49
+ </div>
50
+ <div class="row" v-show="$parent.$parent.criteriaShow">
51
+ <div class="col-sm-2">
52
+ <label class="font_normal_body">客户名称</label>
53
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
54
+ v-model="model.f_username" placeholder='客户名称'
55
+ condition="s.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
56
+ </div>
57
+ <div class="col-sm-2">
58
+ <label class="font_normal_body">客户地址</label>
59
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
60
+ v-model="model.f_address" placeholder='客户地址'
61
+ condition="s.f_address like '%{}%'" v-next-el='userid' v-el:username>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">客户类型</label>
65
+ <v-select :value.sync="model.f_user_type"
66
+ @change="$parent.$parent.userTypeChange()"
67
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
68
+ condition="s.f_user_type = '{}'"
69
+ close-on-select></v-select>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">用气性质</label>
73
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
74
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
75
+ condition="s.f_gasproperties = '{}'"
76
+ closfe-on-select></v-select>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">气表品牌</label>
80
+ <v-select :value.sync="model.f_meter_brand"
81
+ v-model="model.f_meter_brand"
82
+ :options="$parent.$parent.meterbrands"
83
+ condition="s.f_meter_brand = '{}'"
84
+ close-on-select></v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">生成指令时间</label>
88
+ <datepicker style="width: 60%" placeholder="生成指令时间"
89
+ :value.sync="model.f_start1_date"
90
+ v-model="model.f_start1_date"
91
+ :format="'yyyy-MM-dd HH:mm:ss'"
92
+ condition="i.f_instruct_date >= '{}'"
93
+ ></datepicker>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
97
+ <datepicker style="width: 60%" placeholder="生成指令时间"
98
+ :value.sync="model.f_end1_date"
99
+ v-model="model.f_end1_date"
100
+ :format="'yyyy-MM-dd HH:mm:ss'"
101
+ condition="i.f_instruct_date <= '{}'"
102
+ ></datepicker>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">充值时间</label>
106
+ <datepicker style="width: 60%" placeholder="充值时间"
107
+ :value.sync="model.f_start_date"
108
+ v-model="model.f_start_date"
109
+ :format="'yyyy-MM-dd HH:mm:ss'"
110
+ condition="s.f_operate_date >= '{}'"
111
+ ></datepicker>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
115
+ <datepicker style="width: 60%" placeholder="充值时间"
116
+ :value.sync="model.f_end_date"
117
+ v-model="model.f_end_date"
118
+ :format="'yyyy-MM-dd HH:mm:ss'"
119
+ condition="s.f_operate_date <= '{}'"
120
+ ></datepicker>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </criteria>
125
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
126
+ <template partial='head'>
127
+ <tr>
128
+ <th>
129
+ <nobr>客户编号</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>表号</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>客户姓名</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>客户电话</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>客户地址</nobr>
142
+ </th>
143
+
144
+ <th>
145
+ <nobr>收费类型</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>收费状态</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>实收金额</nobr>
152
+ </th>
153
+
154
+ <th>
155
+ <nobr>指令状态</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>表返回状态</nobr>
159
+ </th>
160
+ <th>
161
+ <nobr>生成指令时间</nobr>
162
+ </th>
163
+ <th>
164
+ <nobr>部门</nobr>
165
+ </th>
166
+
167
+ </tr>
168
+ </template>
169
+ <template partial='body' partial='list'>
170
+ <tr>
171
+ <td style="text-align: left;">
172
+ <nobr><span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
173
+ </nobr>
174
+ </td>
175
+ <td style="text-align: left;">
176
+ <nobr>{{ row.f_meternumber }}</nobr>
177
+ </td>
178
+ <td style="text-align: left;">
179
+ <nobr>{{ row.f_user_name }}</nobr>
180
+ </td>
181
+ <td style="text-align: left;">
182
+ <nobr>{{ row.f_user_phone }}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{ row.f_address }}</nobr>
186
+ </td>
187
+
188
+ <td style="text-align:center">
189
+ <nobr>{{ row.f_type }}</nobr>
190
+ </td>
191
+ <td style="text-align:center">
192
+ <nobr>{{ row.f_state }}</nobr>
193
+ </td>
194
+ <th style="text-align:center">
195
+ <nobr>{{ row.f_collection }}</nobr>
196
+ </th>
197
+ <th style="text-align:center">
198
+ <nobr>{{ row.f_instruct_state }}</nobr>
199
+ </th>
200
+ <th style="text-align:center">
201
+ <nobr>{{ row.f_receive_state }}</nobr>
202
+ </th>
203
+ <th style="text-align:center">
204
+ <nobr>{{ row.f_instruct_date }}</nobr>
205
+ </th>
206
+ <th style="text-align:center">
207
+ <nobr>{{ row.f_depname }}</nobr>
208
+ </th>
209
+
210
+ <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
211
+ <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
212
+ <!-- <th style="text-align:center">-->
213
+ <!-- <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>-->
214
+ <!-- </th>-->
215
+ </tr>
216
+ </template>
217
+ <template partial='foot'></template>
218
+ </data-grid>
219
+ </criteria-paged>
220
+ </div>
221
+ </div>
222
+ <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
223
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
224
+ @cancel-main="cancel"></user-info-detail-manage-new>
225
+ </div>
226
+ </div>
227
+ </template>
228
+
229
+ <script>
230
+ import {HttpResetClass, PagedList} from 'vue-client'
231
+ import exportConfig from '../config/exportConfig'
232
+ import plugins from '../../../plugins/GetLoginInfoService'
233
+ import defaultPrint from "../config/DefaultPrint";
234
+ import * as Util from '../../../Util'
235
+
236
+ let readySomething = async function (self) {
237
+ await self.$MagLoadParams.loadParam()
238
+ self.initParams()
239
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
240
+ }
241
+ export default {
242
+ title: '充值指令查询',
243
+ data() {
244
+ return {
245
+ show: false,
246
+ detail24: false,
247
+ org: {
248
+ org: [this.$login.f.orgid],
249
+ dep: [],
250
+ user: [],
251
+ },
252
+ orgcondition: '',
253
+ //f_filialeid: this.$login.f.f_orgid,
254
+ detaillist: [],
255
+ meterbrands: [],
256
+ prices: [],
257
+ gasproperties: [],
258
+ condition: '',
259
+ rowdata: {},
260
+ other: [],
261
+ sumsmodel: {},
262
+ orgid: [this.$login.f.orgid],
263
+ criteriaShow: false,
264
+ orgCondtionStr: '',
265
+ model: new PagedList('api/af-revenue/sql/rechargeInstruct', 50, {})
266
+ }
267
+ },
268
+ ready() {
269
+ readySomething(this).then(() => {
270
+ this.$emit('ready')
271
+ }).catch((error) => {
272
+ this.$emit('error', error)
273
+ })
274
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.addDate(new Date(), -1).substring(0, 10) + ' 00:00:00'
275
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(), -1).substring(0, 10) + ' 23:59:59'
276
+ },
277
+ methods: {
278
+ getotherfooter() {
279
+ this.other = [];
280
+
281
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
282
+
283
+
284
+ let secondLine = [
285
+ `开始时间(充值): ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
286
+ `结束时间(充值): ${this.$refs.paged.$refs.criteria.model.f_end_date}`
287
+ ];
288
+
289
+ this.other.push(firstLine);
290
+ this.other.push(secondLine);
291
+
292
+ console.log('Header Data:', this.other);
293
+ },
294
+ initParams() {
295
+ // 初始化气表品牌
296
+ let brandArr = []
297
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
298
+ let temp = {}
299
+ if (item.value.f_meter_type === '物联网表') {
300
+ temp.label = item.label
301
+ temp.value = item.value.f_meter_brand
302
+ brandArr.push(temp)
303
+ }
304
+ })
305
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
306
+ //初始化气表价格
307
+ this.prices = this.$MagGetSaleParam.getPrices();
308
+ },
309
+ async updateParams() {
310
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
311
+ this.initParams()
312
+ },
313
+ getorg(condition, obj) {
314
+ this.orgcondition = condition.replace('f_orgid', 'u.f_orgid')
315
+ this.orgcondition = this.orgcondition.replace('f_depid', 'u.f_depid')
316
+ this.orgname = obj.orgnames[0]
317
+ },
318
+ userTypeChange() {
319
+ this.gasproperties = []
320
+ if (this.$refs.paged.$refs.criteria.model !== null) {
321
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
322
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
323
+ } else {
324
+ this.gasproperties = [{label: '全部', value: ''}]
325
+ }
326
+ },
327
+ showdetail(val) {
328
+ console.log('24detail==', val)
329
+ if (val) {
330
+ let detail = eval("(" + val + ")")
331
+ this.detaillist = detail
332
+ this.detail24 = true
333
+ } else {
334
+ console.log('无数据')
335
+ }
336
+ },
337
+ close() {
338
+ this.detail24 = false
339
+ },
340
+ hidden() {
341
+ this.criteriaShow = !this.criteriaShow
342
+ },
343
+ cancel() {
344
+ this.show = false
345
+ },
346
+ clearmsg() {
347
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
348
+ this.$refs.paged.$refs.criteria.model[key] = []
349
+ })
350
+ },
351
+ getRes(obj) {
352
+ this.orgCondtionStr = condition
353
+ this.orgname = obj.orgnames[0]
354
+ this.depname = obj.depnames[0]
355
+ },
356
+ showmsg(obj) {
357
+ this.rowdata = obj
358
+ this.show = true
359
+ },
360
+
361
+ search(args) {
362
+ if (this.orgcondition) {
363
+ args.condition = `${args.condition}` + this.orgcondition
364
+ } else {
365
+ args.condition = `${args.condition} and u.f_orgid = '${this.$login.f.orgid}'`
366
+ }
367
+ console.log(args.condition + "args.condition")
368
+ this.condition = args.condition
369
+ this.model.search(args.condition, args.model)
370
+ // console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
371
+ // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
372
+ // args.condition = `${args.condition}`
373
+ // if (this.orgcondition)
374
+ // args.condition = `${args.condition}` + this.orgcondition
375
+ // else
376
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
377
+ // this.model.search(args.condition, args.model)
378
+ }
379
+ },
380
+ watch: {
381
+ 'orgCondtionStr'(val) {
382
+ let res = val.match(/'(.*?)'/)
383
+ console.log('正则提取:', res && res[1])
384
+ if (res) {
385
+ this.f_filialeid = res[1]
386
+ // this.updateParams()
387
+ }
388
+ },
389
+ sumsmodel: {
390
+ handler: function (val) {
391
+ this.getotherfooter();
392
+ },
393
+ deep: true
394
+ },
395
+ },
396
+ computed: {
397
+ getfield() {
398
+ return exportConfig.RechargeInstruct
399
+ },
400
+ usertypes() {
401
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
402
+ },
403
+ getCondition() {
404
+ var con = ""
405
+ if (this.orgCondtionStr) {
406
+ con = `${this.$refs.paged.$refs.criteria.condition} and s.f_orgid in (${this.orgCondtionStr})`
407
+ } else {
408
+ con = `${this.$refs.paged.$refs.criteria.condition}and s.f_orgid in ('${this.$login.f.orgid}' )`
409
+ }
410
+ return {
411
+ condition: con
412
+ }
413
+ }
414
+ }
415
+ }
416
+ </script>
417
+
418
+ <style>
419
+ .mystyle {
420
+ margin-left: 80px;
421
+ }
422
+
423
+ .datapanel {
424
+ color: #333;
425
+ background-color: white;
426
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
427
+ padding: 10px 10px 10px 10px;
428
+ border-radius: 15px;
429
+ }
430
+ </style>