manage-client 3.2.19 → 3.2.20

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 (73) hide show
  1. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  2. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/build/dev-server.js +4 -2
  6. package/package.json +1 -1
  7. package/src/App.vue +28 -28
  8. package/src/components/BasisEcharts/BarChart.vue +247 -247
  9. package/src/components/SellReport/BonSummary.vue +178 -178
  10. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  11. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  12. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  13. package/src/components/SellReport/NonResidentGas.vue +203 -203
  14. package/src/components/SellReport/OutletTable.vue +258 -258
  15. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  16. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  17. package/src/components/SellReport/SellingTable.vue +220 -220
  18. package/src/components/SellReport/UserSellingGas.vue +177 -177
  19. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  20. package/src/components/daping/GMap.vue +636 -636
  21. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  22. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  23. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  24. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  25. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  26. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  27. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  28. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  29. package/src/components/sale/report/aode/DayReportList.vue +371 -371
  30. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  31. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  32. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  33. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  34. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  35. package/src/components/webmeter/instruction/NewQueryInstruct.vue +443 -443
  36. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  37. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  38. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  39. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  40. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  41. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  42. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  43. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  44. package/src/components/webmeter/report/ReportList.vue +36 -22
  45. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  46. package/src/filiale/WEINAN/ReportDataQuery.vue +27 -0
  47. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  48. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  49. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  50. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  51. package/src/filiale/WEINAN/config/exportConfig.js +99 -83
  52. package/src/filiale/WEINAN/reportManage.js +12 -12
  53. package/src/filiale/WEINAN/sale.js +36 -36
  54. package/src/filiale/alashan/reportManage.js +10 -10
  55. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  56. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  57. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  58. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  59. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  60. package/src/filiale/meihekou/sale.js +29 -29
  61. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  62. package/src/filiale/rongchuang/reportManage.js +11 -11
  63. package/src/filiale/shaoguan/RecordInfoQuery.vue +1108 -1108
  64. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  65. package/src/filiale/tongchuan/reportManage.js +5 -5
  66. package/src/main.js +66 -66
  67. package/static/wuhai.json +1610 -1610
  68. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  69. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  70. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  71. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  72. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  73. package/build/tmp/jar/MANIFEST.MF +0 -2
@@ -1,443 +1,443 @@
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"><nobr>组织机构</nobr></th>
199
- </tr>
200
- </template>
201
- <template partial='body'>
202
- <tr>
203
- <td style="text-align:center">
204
- <nobr>{{$index+1}}</nobr>
205
- </td>
206
- <td style="text-align:center">
207
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
208
- </td>
209
- <td style="text-align:center">
210
- <nobr>{{row.f_user_name}}</nobr>
211
- </td>
212
- <td style="text-align:center">
213
- <nobr>{{row.f_address}}</nobr>
214
- </td>
215
- <td style="text-align:center">
216
- <nobr>{{row.f_meternumber}}</nobr>
217
- </td>
218
- <td style="text-align:center">
219
- <nobr>{{row.f_meter_brand}}</nobr>
220
- </td>
221
-
222
- <td style="text-align:center">
223
- <nobr>{{row.f_instruct_type}}</nobr>
224
- </td>
225
- <td style="text-align:center">
226
- <nobr>{{row.f_instruct_title}}</nobr>
227
- </td>
228
- <td style="text-align:center">
229
- <nobr>{{row.f_instruct_state}}</nobr>
230
- </td>
231
- <td style="text-align:center">
232
- <nobr>{{row.f_receive_state}}</nobr>
233
- </td>
234
- <td style="text-align:center">
235
- <nobr>{{row.f_inputtor}}</nobr>
236
- </td>
237
- <td style="text-align:center">
238
- <nobr>{{row.f_instruct_date}}</nobr>
239
- </td>
240
- <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
241
- <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
242
- <td style="text-align:center">
243
- <nobr>{{row.note}}</nobr>
244
- </td>
245
- <td style="text-align:center">
246
- <nobr>{{row.f_operator}}</nobr>
247
- </td>
248
- <td style="text-align:center">
249
- <nobr>{{row.f_operate_date}}</nobr>
250
- </td>
251
- <td style="text-align:center">
252
- <nobr>{{row.f_operate_type}}</nobr>
253
- </td>
254
- <td style="text-align:center">
255
- <nobr>{{row.f_state}}</nobr>
256
- </td>
257
- <td style="text-align:center">
258
- <nobr>{{row.f_orgname}}</nobr>
259
- </td>
260
- </tr>
261
- </template>
262
- </data-grid>
263
- </criteria-paged>
264
- </div>
265
- </div>
266
- </template>
267
- <script>
268
- import {PagedList} from 'vue-client'
269
- import co from 'co'
270
- import * as Util from '../../../Util'
271
- import getLodop from '../../../plugins/LodopFuncs'
272
- import {HttpResetClass} from 'vue-client'
273
- import plugins from '../../../plugins/GetLoginInfoService'
274
-
275
- let readyGen = async function (self) {
276
- await self.$MagLoadParams.loadParam()
277
- self.initQueryParam()
278
- self.getinstructtype()
279
- self.getinstructstate()
280
- await self.$getConfig(self, 'HandManager')
281
- console.log('指令查看config', self.config)
282
- self.getfield = self.config.excelHeaders
283
- // self.reflash()
284
- }
285
- export default {
286
- title: '指令查看',
287
- data () {
288
- return {
289
- model: new PagedList('rs/sql/manage_getNewQueryInstruct', 50),
290
- row: null,
291
- isLoading: true,
292
- searchshow: true,
293
- criteriaShow:false,
294
- Gasproperties:[],
295
- meterbrand: [],
296
- userType:[],
297
- instructtype:[],
298
- instructstate:[],
299
- org:{
300
- org:[this.$login.f.orgid],
301
- dep:[],
302
- user:[],
303
- },
304
- orgcondition:' and f_filialeid = ' + this.$login.f.orgid,
305
- show: false,
306
- condition:'',
307
- getfield: {},
308
- config: {
309
- excelHeaders: {
310
- 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
311
- 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
312
- 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
313
- 'note':'操作内容','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
314
- 'f_orgname': '组织机构'
315
- }
316
- },
317
- }
318
- },
319
- ready () {
320
- readyGen(this)
321
- this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
322
- this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
323
- //this.$refs.paged.$refs.criteria.search()
324
- },
325
- methods: {
326
- hidden(){
327
- this.criteriaShow = !this.criteriaShow
328
- },
329
- getorg(obj) {
330
- if(obj){
331
- this.orgcondition = obj.replace('f_orgid', 'f_filialeid')
332
- }else{
333
- this.orgcondition = " and f_filialeid = " + this.$login.f.orgid
334
- }
335
- },
336
- initQueryParam () {
337
- let arr = []
338
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
339
- let temp = {}
340
- if(item.value.f_meter_type==='物联网表'){
341
- temp.label = item.label
342
- temp.value = item.value.f_meter_brand
343
- arr.push(temp )
344
- }
345
-
346
- })
347
- this.meterbrand = [{label: '全部', value: ''}, ...arr]
348
- },
349
- getinstructtype(){
350
- this.instructtype=[]
351
- let load = new HttpResetClass()
352
- load.load('POST', 'rs/sql/singleTableParam', {
353
- data: {
354
- items:'f_instruct_type',
355
- tablename:'t_instruct',
356
- condition:'f_instruct_type is not null group by f_instruct_type'
357
- }
358
- },{warnMsg:null,resolveMsg:null}).then((res) => {
359
- this.instructtype.push({label: '全部', value: ''})
360
- res.data.forEach((item) => {
361
- this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
362
- })
363
- })
364
-
365
- },
366
- getinstructstate(){
367
- this.instructstate=[]
368
- let load = new HttpResetClass()
369
- load.load('POST', 'rs/sql/singleTableParam', {
370
- data: {
371
- items:'f_instruct_state',
372
- tablename:'t_instruct',
373
- condition:'f_instruct_state is not null group by f_instruct_state'
374
- }
375
- },{warnMsg:null,resolveMsg:null}).then((res) => {
376
- this.instructstate.push({label: '全部', value: ''})
377
- res.data.forEach((item) => {
378
- this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
379
- })
380
- })
381
-
382
- },
383
- clearmsg () {
384
- this.$refs.paged.$refs.criteria.model = {}
385
- },
386
- clickshow () {
387
- this.searchshow = !this.searchshow
388
- },
389
- dealmsg (val) {
390
- val.model = this.model.model
391
- this.$emit('deal-msg', val)
392
- },
393
- async search (args) {
394
- // this.obj.resids = this.obj.resids.replace(/\./g, ''),
395
- args.condition = `${args.condition}`+this.orgcondition
396
- console.log(args.condition+"args.condition")
397
- this.condition = args.condition
398
- if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
399
- this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
400
- }else{
401
- this.model.params.f_start_date = '';
402
- }
403
- if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
404
- this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
405
- }else{
406
- this.model.params.f_end_date = "";
407
- }
408
- if(this.f_orgid_new == '' || this.f_orgid_new == null){
409
- this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
410
- //await this.$LoadParams.loadParam(this.$login.f.orgid)
411
- }else{
412
- this.model.params.f_orgid = `'${this.f_orgid_new}'`;
413
- //await this.$LoadParams.loadParam(this.f_orgid_new)
414
- }
415
- this.model.search(args.condition, args.model)
416
- this.initQueryParam();
417
- },
418
-
419
- },
420
- computed: {
421
- userType () {
422
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
423
- },
424
- Gasproperties () {
425
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
426
- }
427
-
428
- }
429
- }
430
- </script>
431
- <style>
432
- .form-input-group label {
433
- text-align: right;
434
- width: auto;
435
- }
436
- .datapanel {
437
- color: #333;
438
- background-color: white;
439
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
440
- padding: 10px 30px 10px 30px;
441
- border-radius:15px;
442
- }
443
- </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"><nobr>组织机构</nobr></th>
199
+ </tr>
200
+ </template>
201
+ <template partial='body'>
202
+ <tr>
203
+ <td style="text-align:center">
204
+ <nobr>{{$index+1}}</nobr>
205
+ </td>
206
+ <td style="text-align:center">
207
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
208
+ </td>
209
+ <td style="text-align:center">
210
+ <nobr>{{row.f_user_name}}</nobr>
211
+ </td>
212
+ <td style="text-align:center">
213
+ <nobr>{{row.f_address}}</nobr>
214
+ </td>
215
+ <td style="text-align:center">
216
+ <nobr>{{row.f_meternumber}}</nobr>
217
+ </td>
218
+ <td style="text-align:center">
219
+ <nobr>{{row.f_meter_brand}}</nobr>
220
+ </td>
221
+
222
+ <td style="text-align:center">
223
+ <nobr>{{row.f_instruct_type}}</nobr>
224
+ </td>
225
+ <td style="text-align:center">
226
+ <nobr>{{row.f_instruct_title}}</nobr>
227
+ </td>
228
+ <td style="text-align:center">
229
+ <nobr>{{row.f_instruct_state}}</nobr>
230
+ </td>
231
+ <td style="text-align:center">
232
+ <nobr>{{row.f_receive_state}}</nobr>
233
+ </td>
234
+ <td style="text-align:center">
235
+ <nobr>{{row.f_inputtor}}</nobr>
236
+ </td>
237
+ <td style="text-align:center">
238
+ <nobr>{{row.f_instruct_date}}</nobr>
239
+ </td>
240
+ <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
241
+ <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
242
+ <td style="text-align:center">
243
+ <nobr>{{row.note}}</nobr>
244
+ </td>
245
+ <td style="text-align:center">
246
+ <nobr>{{row.f_operator}}</nobr>
247
+ </td>
248
+ <td style="text-align:center">
249
+ <nobr>{{row.f_operate_date}}</nobr>
250
+ </td>
251
+ <td style="text-align:center">
252
+ <nobr>{{row.f_operate_type}}</nobr>
253
+ </td>
254
+ <td style="text-align:center">
255
+ <nobr>{{row.f_state}}</nobr>
256
+ </td>
257
+ <td style="text-align:center">
258
+ <nobr>{{row.f_orgname}}</nobr>
259
+ </td>
260
+ </tr>
261
+ </template>
262
+ </data-grid>
263
+ </criteria-paged>
264
+ </div>
265
+ </div>
266
+ </template>
267
+ <script>
268
+ import {PagedList} from 'vue-client'
269
+ import co from 'co'
270
+ import * as Util from '../../../Util'
271
+ import getLodop from '../../../plugins/LodopFuncs'
272
+ import {HttpResetClass} from 'vue-client'
273
+ import plugins from '../../../plugins/GetLoginInfoService'
274
+
275
+ let readyGen = async function (self) {
276
+ await self.$MagLoadParams.loadParam()
277
+ self.initQueryParam()
278
+ self.getinstructtype()
279
+ self.getinstructstate()
280
+ await self.$getConfig(self, 'HandManager')
281
+ console.log('指令查看config', self.config)
282
+ self.getfield = self.config.excelHeaders
283
+ // self.reflash()
284
+ }
285
+ export default {
286
+ title: '指令查看',
287
+ data () {
288
+ return {
289
+ model: new PagedList('rs/sql/manage_getNewQueryInstruct', 50),
290
+ row: null,
291
+ isLoading: true,
292
+ searchshow: true,
293
+ criteriaShow:false,
294
+ Gasproperties:[],
295
+ meterbrand: [],
296
+ userType:[],
297
+ instructtype:[],
298
+ instructstate:[],
299
+ org:{
300
+ org:[this.$login.f.orgid],
301
+ dep:[],
302
+ user:[],
303
+ },
304
+ orgcondition:' and f_filialeid = ' + this.$login.f.orgid,
305
+ show: false,
306
+ condition:'',
307
+ getfield: {},
308
+ config: {
309
+ excelHeaders: {
310
+ 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
311
+ 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
312
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
313
+ 'note':'操作内容','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
314
+ 'f_orgname': '组织机构'
315
+ }
316
+ },
317
+ }
318
+ },
319
+ ready () {
320
+ readyGen(this)
321
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
322
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
323
+ //this.$refs.paged.$refs.criteria.search()
324
+ },
325
+ methods: {
326
+ hidden(){
327
+ this.criteriaShow = !this.criteriaShow
328
+ },
329
+ getorg(obj) {
330
+ if(obj){
331
+ this.orgcondition = obj.replace('f_orgid', 'f_filialeid')
332
+ }else{
333
+ this.orgcondition = " and f_filialeid = " + this.$login.f.orgid
334
+ }
335
+ },
336
+ initQueryParam () {
337
+ let arr = []
338
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
339
+ let temp = {}
340
+ if(item.value.f_meter_type==='物联网表'){
341
+ temp.label = item.label
342
+ temp.value = item.value.f_meter_brand
343
+ arr.push(temp )
344
+ }
345
+
346
+ })
347
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
348
+ },
349
+ getinstructtype(){
350
+ this.instructtype=[]
351
+ let load = new HttpResetClass()
352
+ load.load('POST', 'rs/sql/singleTableParam', {
353
+ data: {
354
+ items:'f_instruct_type',
355
+ tablename:'t_instruct',
356
+ condition:'f_instruct_type is not null group by f_instruct_type'
357
+ }
358
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
359
+ this.instructtype.push({label: '全部', value: ''})
360
+ res.data.forEach((item) => {
361
+ this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
362
+ })
363
+ })
364
+
365
+ },
366
+ getinstructstate(){
367
+ this.instructstate=[]
368
+ let load = new HttpResetClass()
369
+ load.load('POST', 'rs/sql/singleTableParam', {
370
+ data: {
371
+ items:'f_instruct_state',
372
+ tablename:'t_instruct',
373
+ condition:'f_instruct_state is not null group by f_instruct_state'
374
+ }
375
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
376
+ this.instructstate.push({label: '全部', value: ''})
377
+ res.data.forEach((item) => {
378
+ this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
379
+ })
380
+ })
381
+
382
+ },
383
+ clearmsg () {
384
+ this.$refs.paged.$refs.criteria.model = {}
385
+ },
386
+ clickshow () {
387
+ this.searchshow = !this.searchshow
388
+ },
389
+ dealmsg (val) {
390
+ val.model = this.model.model
391
+ this.$emit('deal-msg', val)
392
+ },
393
+ async search (args) {
394
+ // this.obj.resids = this.obj.resids.replace(/\./g, ''),
395
+ args.condition = `${args.condition}`+this.orgcondition
396
+ console.log(args.condition+"args.condition")
397
+ this.condition = args.condition
398
+ if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
399
+ this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
400
+ }else{
401
+ this.model.params.f_start_date = '';
402
+ }
403
+ if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
404
+ this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
405
+ }else{
406
+ this.model.params.f_end_date = "";
407
+ }
408
+ if(this.f_orgid_new == '' || this.f_orgid_new == null){
409
+ this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
410
+ //await this.$LoadParams.loadParam(this.$login.f.orgid)
411
+ }else{
412
+ this.model.params.f_orgid = `'${this.f_orgid_new}'`;
413
+ //await this.$LoadParams.loadParam(this.f_orgid_new)
414
+ }
415
+ this.model.search(args.condition, args.model)
416
+ this.initQueryParam();
417
+ },
418
+
419
+ },
420
+ computed: {
421
+ userType () {
422
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
423
+ },
424
+ Gasproperties () {
425
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
426
+ }
427
+
428
+ }
429
+ }
430
+ </script>
431
+ <style>
432
+ .form-input-group label {
433
+ text-align: right;
434
+ width: auto;
435
+ }
436
+ .datapanel {
437
+ color: #333;
438
+ background-color: white;
439
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
440
+ padding: 10px 30px 10px 30px;
441
+ border-radius:15px;
442
+ }
443
+ </style>