manage-client 3.2.75 → 3.2.78

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 (71) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  5. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  6. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  8. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  9. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  10. package/.project +18 -18
  11. package/README.md +38 -38
  12. package/build/dev-server.js +2 -2
  13. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  14. package/build/tmp/jar/MANIFEST.MF +2 -0
  15. package/config/dev.env.js +6 -6
  16. package/config/prod.env.js +3 -3
  17. package/config/test.env.js +6 -6
  18. package/package.json +2 -2
  19. package/release.bat +5 -5
  20. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  21. package/src/components/MeterManage/HandQuery.vue +72 -72
  22. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  23. package/src/components/SellReport/GaspriceHas.vue +141 -141
  24. package/src/components/SellReport/ManageBusSummary.vue +224 -224
  25. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  26. package/src/components/WebReport/Communication.vue +131 -131
  27. package/src/components/WebReport/CompanyUser.vue +79 -79
  28. package/src/components/WebReport/GaspriceHas.vue +141 -141
  29. package/src/components/WebReport/ReportWorklist.vue +220 -220
  30. package/src/components/WebReport/SellType.vue +89 -89
  31. package/src/components/WebReport/Telemanlist.vue +221 -221
  32. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  33. package/src/components/WebReport/ValueEcharts.vue +99 -99
  34. package/src/components/sale/businessquery/ChargeQuery.vue +1277 -1276
  35. package/src/components/sale/businessquery/overDueQuery.vue +12 -0
  36. package/src/components/sale/config/DefaultPrint.js +6 -6
  37. package/src/components/sale/config/exportConfig.js +925 -925
  38. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  39. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  40. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  41. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  42. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  43. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  44. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  45. package/src/filiale/macheng/FxGasTable.vue +236 -0
  46. package/src/filiale/macheng/ManageBusSummary.vue +224 -0
  47. package/src/filiale/macheng/ManageDayGas.vue +248 -0
  48. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -0
  49. package/src/filiale/macheng/ManageMonthGas.vue +250 -0
  50. package/src/filiale/macheng/ManageOtherCharge.vue +251 -0
  51. package/src/filiale/macheng/ManageSellType.vue +287 -0
  52. package/src/filiale/macheng/RecordInfoQuery.vue +2 -2
  53. package/src/filiale/macheng/SellingTable.vue +219 -0
  54. package/src/filiale/macheng/UserBalanceReport.vue +178 -0
  55. package/src/filiale/macheng/config/exportConfig.js +67 -67
  56. package/src/filiale/macheng/reportManage.js +19 -0
  57. package/src/filiale/macheng/sale.js +11 -11
  58. package/src/main.js +2 -2
  59. package/src/plugins/LodopFuncs.js +124 -124
  60. package/src/stores/GetParames.js +15 -15
  61. package/src/stores/Util.js +132 -132
  62. package/test/unit/.eslintrc +5 -5
  63. package/test/unit/TestUtil.js +35 -35
  64. package/test/unit/context.html +20 -20
  65. package/test/unit/index.js +13 -13
  66. package/test/unit/init.js +11 -11
  67. package/test/unit/karma.conf.js +45 -45
  68. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  69. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  70. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  71. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
@@ -1,446 +1,446 @@
1
- <template >
2
- <div class="flex-row">
3
- <div @keyup.enter="search1" class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
- <div class="row">
8
- <div class="col-sm-2">
9
- <res-select-group :show-component="['company']" :initres="$parent.$parent.org" @re-res="$parent.$parent.getorg" style="width:60%"></res-select-group>
10
- </div>
11
- <div class="col-sm-2 form-group ">
12
- <label class="font_normal_body">客户编号</label>
13
- <input
14
- class="input_search" condition="f_userinfo_code = '{}'"
15
- placeholder='客户编号'
16
- style="width:60%"
17
- type="text"
18
- v-model="model.f_userinfo_code">
19
- </div>
20
-
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">客户名称</label>
23
- <input
24
- class="input_search" condition="f_user_name like '%{}%'"
25
- placeholder='客户名称'
26
- style="width:60%"
27
- type="text"
28
- v-model="model.f_user_name"
29
- >
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label class="font_normal_body">客户地址</label>
33
- <input class="input_search"
34
- condition="f_address like '%{}%'"
35
- placeholder='客户地址'
36
- style="width:60%"
37
- type="text"
38
- v-model="model.f_address"
39
- >
40
- </div>
41
-
42
- <div style="float:right">
43
- <button @click="search()" class="button_search" v-el:cba>查询</button>
44
- <button @click="$parent.$parent.clearmsg" class="button_clear">清空</button>
45
- <export-excel
46
- :choose-col="true"
47
- :data="{condition: $parent.$parent.condition}"
48
- :field="$parent.$parent.getfield" sql-name="manage_getNewQueryInstruct" sqlurl="rs/logic/exportfile"
49
- template-name='指令查看'></export-excel>
50
- <div
51
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
52
- @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
53
- </div>
54
- </div>
55
- <div class="row" v-show="$parent.$parent.criteriaShow">
56
-
57
- <!-- <div class="col-sm-2">-->
58
- <!-- <label class="font_normal_body">组织机构</label>-->
59
- <!-- <res-select :initresid="$parent.$parent.org"-->
60
- <!-- style="width:60%"-->
61
- <!-- @res-select="$parent.$parent.getorg"-->
62
- <!-- restype='organization'>-->
63
- <!-- </res-select>-->
64
-
65
- <!-- </div>-->
66
-
67
- <!-- <div class="col-sm-2 form-group">-->
68
- <!-- <label class="font_normal_body">客户类型</label>-->
69
- <!-- <v-select style="width:60%" :value.sync="model.f_user_type" v-model="model.f_user_type"-->
70
- <!-- placeholder='客户类型'-->
71
- <!-- value-single="true"-->
72
- <!-- :options='$parent.$parent.userType'-->
73
- <!-- close-on-select-->
74
- <!-- condition="f_user_type ='{}'"-->
75
- <!-- ></v-select>-->
76
- <!-- </div>-->
77
- <!-- <div class="col-sm-2 form-group">-->
78
- <!-- <label class="font_normal_body">用气性质</label>-->
79
- <!-- <v-select style="width:60%" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
80
- <!-- placeholder='用气性质'-->
81
- <!-- value-single="true"-->
82
- <!-- :options='$parent.$parent.Gasproperties'-->
83
- <!-- close-on-select-->
84
- <!-- condition="f_gasproperties = '{}'"-->
85
- <!-- ></v-select>-->
86
- <!-- </div>-->
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号</label>
89
- <input
90
- class="input_search" condition="f_meternumber = '{}'"
91
- placeholder='表号'
92
- style="width:60%"
93
- type="text"
94
- v-model="model.f_meternumber">
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">气表品牌</label>
98
- <v-select
99
- :options='$parent.$parent.meterbrand'
100
-
101
- :value.sync="model.f_gasbrand"
102
- close-on-select
103
- condition="f_meter_brand='{}'"
104
- placeholder='气表品牌'
105
- style="width:60%"
106
- v-model="model.f_gasbrand">
107
- </v-select>
108
- </div>
109
- <div class="col-sm-2 form-group">
110
- <label class="font_normal_body">指令类型</label>
111
- <v-select :options='$parent.$parent.instructtype' :value.sync="model.f_instruct_type" close-on-select
112
- condition="f_instruct_type='{}'"
113
- placeholder='指令类型'
114
- style="width:60%"
115
- v-model="model.f_instruct_type"></v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">执行状态</label>
119
- <v-select :options='$parent.$parent.instructstate' :value.sync="model.f_instruct_state" close-on-select
120
- condition="f_instruct_state='{}'"
121
- placeholder='执行状态'
122
- style="width:60%"
123
- v-model="model.f_instruct_state"
124
- ></v-select>
125
- </div>
126
-
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">指令时间</label>
129
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
130
- condition="f_instruct_date >= '{}'"
131
- placeholder="起始时间"
132
- style="width:60%"
133
- v-model="model.f_start_date"
134
- ></datepicker>
135
- </div>
136
- <div class="col-sm-2 form-group">
137
- <label class="font_normal_body">&emsp;&emsp;至&emsp;</label>
138
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
139
- condition="f_instruct_date <= '{}'"
140
- placeholder="结束时间"
141
- style="width:60%"
142
- v-model="model.f_end_date"
143
- ></datepicker>
144
- </div>
145
- </div>
146
- </div>
147
- </criteria>
148
- <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' v-ref:grid>
149
- <template partial='head'>
150
- <tr>
151
- <th style="text-align:center">
152
- <nobr>序号</nobr>
153
- </th>
154
- <th style="text-align:center">
155
- <nobr>客户编号</nobr>
156
- </th>
157
- <th style="text-align:center">
158
- <nobr>客户名称</nobr>
159
- </th>
160
- <th style="text-align:center">
161
- <nobr>客户地址</nobr>
162
- </th>
163
- <th style="text-align:center">
164
- <nobr>表号</nobr>
165
- </th>
166
- <th style="text-align:center">
167
- <nobr>气表品牌</nobr>
168
- </th>
169
- <th style="text-align:center">
170
- <nobr>指令类型</nobr>
171
- </th>
172
- <th style="text-align:center">
173
- <nobr>指令标题</nobr>
174
- </th>
175
- <th style="text-align:center">
176
- <nobr>执行状态</nobr>
177
- </th>
178
- <th style="text-align:center"><nobr>执行结果</nobr></th>
179
- <th style="text-align:center"><nobr>指令生成人</nobr></th>
180
- <th style="text-align:center"><nobr>指令生成时间</nobr></th>
181
- <th style="text-align:center"><nobr>指令发送时间</nobr></th>
182
- <th style="text-align:center"><nobr>上表时间</nobr></th>
183
- <th style="text-align:center">
184
- <nobr>充值金额</nobr>
185
- </th>
186
- <th style="text-align:center">
187
- <nobr>操作内容</nobr>
188
- </th>
189
- <th style="text-align:center">
190
- <nobr>操作人(记录)</nobr>
191
- </th>
192
- <th style="text-align:center">
193
- <nobr>操作时间(记录)</nobr>
194
- </th>
195
- <th style="text-align:center">
196
- <nobr>操作类型</nobr>
197
- </th>
198
- <th style="text-align:center">
199
- <nobr>记录状态</nobr>
200
- </th>
201
- <th style="text-align:center"><nobr>组织机构</nobr></th>
202
- </tr>
203
- </template>
204
- <template partial='body'>
205
- <tr>
206
- <td style="text-align:center">
207
- <nobr>{{$index+1}}</nobr>
208
- </td>
209
- <td style="text-align:center">
210
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
211
- </td>
212
- <td style="text-align:center">
213
- <nobr>{{row.f_user_name}}</nobr>
214
- </td>
215
- <td style="text-align:center">
216
- <nobr>{{row.f_address}}</nobr>
217
- </td>
218
- <td style="text-align:center">
219
- <nobr>{{row.f_meternumber}}</nobr>
220
- </td>
221
- <td style="text-align:center">
222
- <nobr>{{row.f_meter_brand}}</nobr>
223
- </td>
224
-
225
- <td style="text-align:center">
226
- <nobr>{{row.f_instruct_type}}</nobr>
227
- </td>
228
- <td style="text-align:center">
229
- <nobr>{{row.f_instruct_title}}</nobr>
230
- </td>
231
- <td style="text-align:center">
232
- <nobr>{{row.f_instruct_state}}</nobr>
233
- </td>
234
- <td style="text-align:center">
235
- <nobr>{{row.f_receive_state}}</nobr>
236
- </td>
237
- <td style="text-align:center">
238
- <nobr>{{row.f_inputtor}}</nobr>
239
- </td>
240
- <td style="text-align:center">
241
- <nobr>{{row.f_instruct_date}}</nobr>
242
- </td>
243
- <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
244
- <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
245
- <th style="text-align:center">
246
- <nobr>{{row.f_collection}}</nobr>
247
- </th>
248
- <td style="text-align:center">
249
- <nobr>{{row.note}}</nobr>
250
- </td>
251
- <td style="text-align:center">
252
- <nobr>{{row.f_operator}}</nobr>
253
- </td>
254
- <td style="text-align:center">
255
- <nobr>{{row.f_operate_date}}</nobr>
256
- </td>
257
- <td style="text-align:center">
258
- <nobr>{{row.f_operate_type}}</nobr>
259
- </td>
260
- <td style="text-align:center">
261
- <nobr>{{row.f_state}}</nobr>
262
- </td>
263
- <td style="text-align:center">
264
- <nobr>{{row.f_orgname}}</nobr>
265
- </td>
266
- </tr>
267
- </template>
268
- </data-grid>
269
- </criteria-paged>
270
- </div>
271
- </div>
272
- </template>
273
- <script>
274
- import {PagedList} from 'vue-client'
275
- import co from 'co'
276
- import * as Util from '../../../Util'
277
- import getLodop from '../../../plugins/LodopFuncs'
278
- import {HttpResetClass} from 'vue-client'
279
- import plugins from '../../../plugins/GetLoginInfoService'
280
-
281
- let readyGen = async function (self) {
282
- await self.$MagLoadParams.loadParam()
283
- self.initQueryParam()
284
- self.getinstructtype()
285
- self.getinstructstate()
286
- await self.$getConfig(self, 'HandManager')
287
- console.log('指令查看config', self.config)
288
- self.getfield = self.config.excelHeaders
289
- // self.reflash()
290
- }
291
- export default {
292
- title: '指令查看',
293
- data () {
294
- return {
295
- model: new PagedList('rs/sql/manage_getNewQueryInstruct', 50),
296
- row: null,
297
- isLoading: true,
298
- searchshow: true,
299
- criteriaShow:false,
300
- Gasproperties:[],
301
- meterbrand: [],
302
- userType:[],
303
- instructtype:[],
304
- instructstate:[],
305
- org:{
306
- org:[this.$login.f.orgid],
307
- dep:[],
308
- user:[],
309
- },
310
- orgcondition:'',
311
- show: false,
312
- condition:'',
313
- getfield: {},
314
- config: {
315
- excelHeaders: {
316
- 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
317
- 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
318
- 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
319
- 'note':'操作内容','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
320
- 'f_orgname': '组织机构'
321
- }
322
- },
323
- }
324
- },
325
- ready () {
326
- readyGen(this)
327
- this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
328
- this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
329
- //this.$refs.paged.$refs.criteria.search()
330
- },
331
- methods: {
332
- hidden(){
333
- this.criteriaShow = !this.criteriaShow
334
- },
335
- getorg(condition,obj) {
336
- this.orgcondition = condition
337
- this.orgname = obj.orgnames[0]
338
- },
339
- initQueryParam () {
340
- let arr = []
341
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
342
- let temp = {}
343
- if(item.value.f_meter_type==='物联网表'){
344
- temp.label = item.label
345
- temp.value = item.value.f_meter_brand
346
- arr.push(temp )
347
- }
348
-
349
- })
350
- this.meterbrand = [{label: '全部', value: ''}, ...arr]
351
- },
352
- getinstructtype(){
353
- this.instructtype=[]
354
- let load = new HttpResetClass()
355
- load.load('POST', 'rs/sql/singleTableParam', {
356
- data: {
357
- items:'f_instruct_type',
358
- tablename:'t_instruct',
359
- condition:'f_instruct_type is not null group by f_instruct_type'
360
- }
361
- },{warnMsg:null,resolveMsg:null}).then((res) => {
362
- this.instructtype.push({label: '全部', value: ''})
363
- res.data.forEach((item) => {
364
- this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
365
- })
366
- })
367
-
368
- },
369
- getinstructstate(){
370
- this.instructstate=[]
371
- let load = new HttpResetClass()
372
- load.load('POST', 'rs/sql/singleTableParam', {
373
- data: {
374
- items:'f_instruct_state',
375
- tablename:'t_instruct',
376
- condition:'f_instruct_state is not null group by f_instruct_state'
377
- }
378
- },{warnMsg:null,resolveMsg:null}).then((res) => {
379
- this.instructstate.push({label: '全部', value: ''})
380
- res.data.forEach((item) => {
381
- this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
382
- })
383
- })
384
-
385
- },
386
- clearmsg () {
387
- this.$refs.paged.$refs.criteria.model = {}
388
- },
389
- clickshow () {
390
- this.searchshow = !this.searchshow
391
- },
392
- dealmsg (val) {
393
- val.model = this.model.model
394
- this.$emit('deal-msg', val)
395
- },
396
- async search (args) {
397
- // this.obj.resids = this.obj.resids.replace(/\./g, ''),
398
- args.condition = `${args.condition}`+this.orgcondition
399
- console.log(args.condition+"args.condition")
400
- this.condition = args.condition
401
- if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
402
- this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
403
- }else{
404
- this.model.params.f_start_date = '';
405
- }
406
- if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
407
- this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
408
- }else{
409
- this.model.params.f_end_date = "";
410
- }
411
- if(this.f_orgid_new == '' || this.f_orgid_new == null){
412
- this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
413
- //await this.$LoadParams.loadParam(this.$login.f.orgid)
414
- }else{
415
- this.model.params.f_orgid = `'${this.f_orgid_new}'`;
416
- //await this.$LoadParams.loadParam(this.f_orgid_new)
417
- }
418
- this.model.search(args.condition, args.model)
419
- this.initQueryParam();
420
- },
421
-
422
- },
423
- computed: {
424
- userType () {
425
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
426
- },
427
- Gasproperties () {
428
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
429
- }
430
-
431
- }
432
- }
433
- </script>
434
- <style>
435
- .form-input-group label {
436
- text-align: right;
437
- width: auto;
438
- }
439
- .datapanel {
440
- color: #333;
441
- background-color: white;
442
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
443
- padding: 10px 30px 10px 30px;
444
- border-radius:15px;
445
- }
446
- </style>
1
+ <template >
2
+ <div class="flex-row">
3
+ <div @keyup.enter="search1" class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2">
9
+ <res-select-group :show-component="['company']" :initres="$parent.$parent.org" @re-res="$parent.$parent.getorg" style="width:60%"></res-select-group>
10
+ </div>
11
+ <div class="col-sm-2 form-group ">
12
+ <label class="font_normal_body">客户编号</label>
13
+ <input
14
+ class="input_search" condition="f_userinfo_code = '{}'"
15
+ placeholder='客户编号'
16
+ style="width:60%"
17
+ type="text"
18
+ v-model="model.f_userinfo_code">
19
+ </div>
20
+
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input
24
+ class="input_search" condition="f_user_name like '%{}%'"
25
+ placeholder='客户名称'
26
+ style="width:60%"
27
+ type="text"
28
+ v-model="model.f_user_name"
29
+ >
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">客户地址</label>
33
+ <input class="input_search"
34
+ condition="f_address like '%{}%'"
35
+ placeholder='客户地址'
36
+ style="width:60%"
37
+ type="text"
38
+ v-model="model.f_address"
39
+ >
40
+ </div>
41
+
42
+ <div style="float:right">
43
+ <button @click="search()" class="button_search" v-el:cba>查询</button>
44
+ <button @click="$parent.$parent.clearmsg" class="button_clear">清空</button>
45
+ <export-excel
46
+ :choose-col="true"
47
+ :data="{condition: $parent.$parent.condition}"
48
+ :field="$parent.$parent.getfield" sql-name="manage_getNewQueryInstruct" sqlurl="rs/logic/exportfile"
49
+ template-name='指令查看'></export-excel>
50
+ <div
51
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
52
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+
57
+ <!-- <div class="col-sm-2">-->
58
+ <!-- <label class="font_normal_body">组织机构</label>-->
59
+ <!-- <res-select :initresid="$parent.$parent.org"-->
60
+ <!-- style="width:60%"-->
61
+ <!-- @res-select="$parent.$parent.getorg"-->
62
+ <!-- restype='organization'>-->
63
+ <!-- </res-select>-->
64
+
65
+ <!-- </div>-->
66
+
67
+ <!-- <div class="col-sm-2 form-group">-->
68
+ <!-- <label class="font_normal_body">客户类型</label>-->
69
+ <!-- <v-select style="width:60%" :value.sync="model.f_user_type" v-model="model.f_user_type"-->
70
+ <!-- placeholder='客户类型'-->
71
+ <!-- value-single="true"-->
72
+ <!-- :options='$parent.$parent.userType'-->
73
+ <!-- close-on-select-->
74
+ <!-- condition="f_user_type ='{}'"-->
75
+ <!-- ></v-select>-->
76
+ <!-- </div>-->
77
+ <!-- <div class="col-sm-2 form-group">-->
78
+ <!-- <label class="font_normal_body">用气性质</label>-->
79
+ <!-- <v-select style="width:60%" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
80
+ <!-- placeholder='用气性质'-->
81
+ <!-- value-single="true"-->
82
+ <!-- :options='$parent.$parent.Gasproperties'-->
83
+ <!-- close-on-select-->
84
+ <!-- condition="f_gasproperties = '{}'"-->
85
+ <!-- ></v-select>-->
86
+ <!-- </div>-->
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号</label>
89
+ <input
90
+ class="input_search" condition="f_meternumber = '{}'"
91
+ placeholder='表号'
92
+ style="width:60%"
93
+ type="text"
94
+ v-model="model.f_meternumber">
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">气表品牌</label>
98
+ <v-select
99
+ :options='$parent.$parent.meterbrand'
100
+
101
+ :value.sync="model.f_gasbrand"
102
+ close-on-select
103
+ condition="f_meter_brand='{}'"
104
+ placeholder='气表品牌'
105
+ style="width:60%"
106
+ v-model="model.f_gasbrand">
107
+ </v-select>
108
+ </div>
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">指令类型</label>
111
+ <v-select :options='$parent.$parent.instructtype' :value.sync="model.f_instruct_type" close-on-select
112
+ condition="f_instruct_type='{}'"
113
+ placeholder='指令类型'
114
+ style="width:60%"
115
+ v-model="model.f_instruct_type"></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">执行状态</label>
119
+ <v-select :options='$parent.$parent.instructstate' :value.sync="model.f_instruct_state" close-on-select
120
+ condition="f_instruct_state='{}'"
121
+ placeholder='执行状态'
122
+ style="width:60%"
123
+ v-model="model.f_instruct_state"
124
+ ></v-select>
125
+ </div>
126
+
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">指令时间</label>
129
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
130
+ condition="f_instruct_date >= '{}'"
131
+ placeholder="起始时间"
132
+ style="width:60%"
133
+ v-model="model.f_start_date"
134
+ ></datepicker>
135
+ </div>
136
+ <div class="col-sm-2 form-group">
137
+ <label class="font_normal_body">&emsp;&emsp;至&emsp;</label>
138
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
139
+ condition="f_instruct_date <= '{}'"
140
+ placeholder="结束时间"
141
+ style="width:60%"
142
+ v-model="model.f_end_date"
143
+ ></datepicker>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </criteria>
148
+ <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' v-ref:grid>
149
+ <template partial='head'>
150
+ <tr>
151
+ <th style="text-align:center">
152
+ <nobr>序号</nobr>
153
+ </th>
154
+ <th style="text-align:center">
155
+ <nobr>客户编号</nobr>
156
+ </th>
157
+ <th style="text-align:center">
158
+ <nobr>客户名称</nobr>
159
+ </th>
160
+ <th style="text-align:center">
161
+ <nobr>客户地址</nobr>
162
+ </th>
163
+ <th style="text-align:center">
164
+ <nobr>表号</nobr>
165
+ </th>
166
+ <th style="text-align:center">
167
+ <nobr>气表品牌</nobr>
168
+ </th>
169
+ <th style="text-align:center">
170
+ <nobr>指令类型</nobr>
171
+ </th>
172
+ <th style="text-align:center">
173
+ <nobr>指令标题</nobr>
174
+ </th>
175
+ <th style="text-align:center">
176
+ <nobr>执行状态</nobr>
177
+ </th>
178
+ <th style="text-align:center"><nobr>执行结果</nobr></th>
179
+ <th style="text-align:center"><nobr>指令生成人</nobr></th>
180
+ <th style="text-align:center"><nobr>指令生成时间</nobr></th>
181
+ <th style="text-align:center"><nobr>指令发送时间</nobr></th>
182
+ <th style="text-align:center"><nobr>上表时间</nobr></th>
183
+ <th style="text-align:center">
184
+ <nobr>充值金额</nobr>
185
+ </th>
186
+ <th style="text-align:center">
187
+ <nobr>操作内容</nobr>
188
+ </th>
189
+ <th style="text-align:center">
190
+ <nobr>操作人(记录)</nobr>
191
+ </th>
192
+ <th style="text-align:center">
193
+ <nobr>操作时间(记录)</nobr>
194
+ </th>
195
+ <th style="text-align:center">
196
+ <nobr>操作类型</nobr>
197
+ </th>
198
+ <th style="text-align:center">
199
+ <nobr>记录状态</nobr>
200
+ </th>
201
+ <th style="text-align:center"><nobr>组织机构</nobr></th>
202
+ </tr>
203
+ </template>
204
+ <template partial='body'>
205
+ <tr>
206
+ <td style="text-align:center">
207
+ <nobr>{{$index+1}}</nobr>
208
+ </td>
209
+ <td style="text-align:center">
210
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
211
+ </td>
212
+ <td style="text-align:center">
213
+ <nobr>{{row.f_user_name}}</nobr>
214
+ </td>
215
+ <td style="text-align:center">
216
+ <nobr>{{row.f_address}}</nobr>
217
+ </td>
218
+ <td style="text-align:center">
219
+ <nobr>{{row.f_meternumber}}</nobr>
220
+ </td>
221
+ <td style="text-align:center">
222
+ <nobr>{{row.f_meter_brand}}</nobr>
223
+ </td>
224
+
225
+ <td style="text-align:center">
226
+ <nobr>{{row.f_instruct_type}}</nobr>
227
+ </td>
228
+ <td style="text-align:center">
229
+ <nobr>{{row.f_instruct_title}}</nobr>
230
+ </td>
231
+ <td style="text-align:center">
232
+ <nobr>{{row.f_instruct_state}}</nobr>
233
+ </td>
234
+ <td style="text-align:center">
235
+ <nobr>{{row.f_receive_state}}</nobr>
236
+ </td>
237
+ <td style="text-align:center">
238
+ <nobr>{{row.f_inputtor}}</nobr>
239
+ </td>
240
+ <td style="text-align:center">
241
+ <nobr>{{row.f_instruct_date}}</nobr>
242
+ </td>
243
+ <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
244
+ <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
245
+ <th style="text-align:center">
246
+ <nobr>{{row.f_collection}}</nobr>
247
+ </th>
248
+ <td style="text-align:center">
249
+ <nobr>{{row.note}}</nobr>
250
+ </td>
251
+ <td style="text-align:center">
252
+ <nobr>{{row.f_operator}}</nobr>
253
+ </td>
254
+ <td style="text-align:center">
255
+ <nobr>{{row.f_operate_date}}</nobr>
256
+ </td>
257
+ <td style="text-align:center">
258
+ <nobr>{{row.f_operate_type}}</nobr>
259
+ </td>
260
+ <td style="text-align:center">
261
+ <nobr>{{row.f_state}}</nobr>
262
+ </td>
263
+ <td style="text-align:center">
264
+ <nobr>{{row.f_orgname}}</nobr>
265
+ </td>
266
+ </tr>
267
+ </template>
268
+ </data-grid>
269
+ </criteria-paged>
270
+ </div>
271
+ </div>
272
+ </template>
273
+ <script>
274
+ import {PagedList} from 'vue-client'
275
+ import co from 'co'
276
+ import * as Util from '../../../Util'
277
+ import getLodop from '../../../plugins/LodopFuncs'
278
+ import {HttpResetClass} from 'vue-client'
279
+ import plugins from '../../../plugins/GetLoginInfoService'
280
+
281
+ let readyGen = async function (self) {
282
+ await self.$MagLoadParams.loadParam()
283
+ self.initQueryParam()
284
+ self.getinstructtype()
285
+ self.getinstructstate()
286
+ await self.$getConfig(self, 'HandManager')
287
+ console.log('指令查看config', self.config)
288
+ self.getfield = self.config.excelHeaders
289
+ // self.reflash()
290
+ }
291
+ export default {
292
+ title: '指令查看',
293
+ data () {
294
+ return {
295
+ model: new PagedList('rs/sql/manage_getNewQueryInstruct', 50),
296
+ row: null,
297
+ isLoading: true,
298
+ searchshow: true,
299
+ criteriaShow:false,
300
+ Gasproperties:[],
301
+ meterbrand: [],
302
+ userType:[],
303
+ instructtype:[],
304
+ instructstate:[],
305
+ org:{
306
+ org:[this.$login.f.orgid],
307
+ dep:[],
308
+ user:[],
309
+ },
310
+ orgcondition:'',
311
+ show: false,
312
+ condition:'',
313
+ getfield: {},
314
+ config: {
315
+ excelHeaders: {
316
+ 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
317
+ 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
318
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
319
+ 'note':'操作内容','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
320
+ 'f_orgname': '组织机构'
321
+ }
322
+ },
323
+ }
324
+ },
325
+ ready () {
326
+ readyGen(this)
327
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
328
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
329
+ //this.$refs.paged.$refs.criteria.search()
330
+ },
331
+ methods: {
332
+ hidden(){
333
+ this.criteriaShow = !this.criteriaShow
334
+ },
335
+ getorg(condition,obj) {
336
+ this.orgcondition = condition
337
+ this.orgname = obj.orgnames[0]
338
+ },
339
+ initQueryParam () {
340
+ let arr = []
341
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
342
+ let temp = {}
343
+ if(item.value.f_meter_type==='物联网表'){
344
+ temp.label = item.label
345
+ temp.value = item.value.f_meter_brand
346
+ arr.push(temp )
347
+ }
348
+
349
+ })
350
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
351
+ },
352
+ getinstructtype(){
353
+ this.instructtype=[]
354
+ let load = new HttpResetClass()
355
+ load.load('POST', 'rs/sql/singleTableParam', {
356
+ data: {
357
+ items:'f_instruct_type',
358
+ tablename:'t_instruct',
359
+ condition:'f_instruct_type is not null group by f_instruct_type'
360
+ }
361
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
362
+ this.instructtype.push({label: '全部', value: ''})
363
+ res.data.forEach((item) => {
364
+ this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
365
+ })
366
+ })
367
+
368
+ },
369
+ getinstructstate(){
370
+ this.instructstate=[]
371
+ let load = new HttpResetClass()
372
+ load.load('POST', 'rs/sql/singleTableParam', {
373
+ data: {
374
+ items:'f_instruct_state',
375
+ tablename:'t_instruct',
376
+ condition:'f_instruct_state is not null group by f_instruct_state'
377
+ }
378
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
379
+ this.instructstate.push({label: '全部', value: ''})
380
+ res.data.forEach((item) => {
381
+ this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
382
+ })
383
+ })
384
+
385
+ },
386
+ clearmsg () {
387
+ this.$refs.paged.$refs.criteria.model = {}
388
+ },
389
+ clickshow () {
390
+ this.searchshow = !this.searchshow
391
+ },
392
+ dealmsg (val) {
393
+ val.model = this.model.model
394
+ this.$emit('deal-msg', val)
395
+ },
396
+ async search (args) {
397
+ // this.obj.resids = this.obj.resids.replace(/\./g, ''),
398
+ args.condition = `${args.condition}`+this.orgcondition
399
+ console.log(args.condition+"args.condition")
400
+ this.condition = args.condition
401
+ if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
402
+ this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
403
+ }else{
404
+ this.model.params.f_start_date = '';
405
+ }
406
+ if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
407
+ this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
408
+ }else{
409
+ this.model.params.f_end_date = "";
410
+ }
411
+ if(this.f_orgid_new == '' || this.f_orgid_new == null){
412
+ this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
413
+ //await this.$LoadParams.loadParam(this.$login.f.orgid)
414
+ }else{
415
+ this.model.params.f_orgid = `'${this.f_orgid_new}'`;
416
+ //await this.$LoadParams.loadParam(this.f_orgid_new)
417
+ }
418
+ this.model.search(args.condition, args.model)
419
+ this.initQueryParam();
420
+ },
421
+
422
+ },
423
+ computed: {
424
+ userType () {
425
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
426
+ },
427
+ Gasproperties () {
428
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
429
+ }
430
+
431
+ }
432
+ }
433
+ </script>
434
+ <style>
435
+ .form-input-group label {
436
+ text-align: right;
437
+ width: auto;
438
+ }
439
+ .datapanel {
440
+ color: #333;
441
+ background-color: white;
442
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
443
+ padding: 10px 30px 10px 30px;
444
+ border-radius:15px;
445
+ }
446
+ </style>