manage-client 3.1.35 → 3.1.39

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 (94) hide show
  1. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  2. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  3. package/ManageClient.iml +13 -13
  4. package/build/dev-server.js +29 -22
  5. package/package.json +1 -1
  6. package/src/App.vue +29 -28
  7. package/src/components/BasisEcharts/BarChart.vue +247 -247
  8. package/src/components/BasisEcharts/RingChart.vue +196 -196
  9. package/src/components/SellReport/BusinessClassify.vue +293 -251
  10. package/src/components/SellReport/ChargePrick.vue +284 -279
  11. package/src/components/SellReport/DepartmentPrick.vue +288 -261
  12. package/src/components/SellReport/FinanceSellType.vue +254 -254
  13. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  14. package/src/components/SellReport/GasPrice.vue +244 -244
  15. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  16. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  17. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  18. package/src/components/SellReport/ManageSellType.vue +284 -284
  19. package/src/components/SellReport/ManageUserCount.vue +347 -347
  20. package/src/components/SellReport/MarketMonth.vue +251 -251
  21. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  22. package/src/components/SellReport/SellCollect.vue +183 -0
  23. package/src/components/SellReport/SellingTable.vue +220 -220
  24. package/src/components/SellReport/UserClassify.vue +251 -251
  25. package/src/components/SellReport/UserSellingGas.vue +251 -251
  26. package/src/components/daping/CallCenter.vue +366 -366
  27. package/src/components/daping/DataManagement.vue +537 -537
  28. package/src/components/daping/GMap.vue +636 -636
  29. package/src/components/daping/ManageMain.vue +270 -270
  30. package/src/components/daping/NetWork.vue +238 -238
  31. package/src/components/daping/RedactDaPing.vue +468 -468
  32. package/src/components/daping/Ring.vue +212 -212
  33. package/src/components/daping/SafeCheck.vue +446 -446
  34. package/src/components/daping/SafeCheckRing.vue +166 -166
  35. package/src/components/daping/SafecheckBarChart.vue +233 -233
  36. package/src/components/daping/WuHaiMap.vue +418 -418
  37. package/src/components/qinhua/BarChart.vue +256 -256
  38. package/src/components/qinhua/Pie.vue +132 -132
  39. package/src/components/qinhua/SellEcharts.vue +115 -115
  40. package/src/components/qinhua/qinHuaMap.vue +414 -414
  41. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  42. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  43. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  44. package/src/components/sale/businessquery/NewHandplanQuery.vue +995 -0
  45. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  46. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  47. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  48. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -596
  52. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  53. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  54. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  55. package/src/components/webmeter/instruction/NewQueryInstruct.vue +445 -445
  56. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  57. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  58. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +903 -899
  59. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  60. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  61. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -606
  63. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +218 -252
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -440
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  66. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  67. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  69. package/src/filiale/alashan/SellingTable.vue +234 -234
  70. package/src/filiale/alashan/reportManage.js +10 -10
  71. package/src/filiale/jingwei/ChargeQuery.vue +1235 -0
  72. package/src/filiale/jingwei/sale.js +2 -0
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  76. package/src/filiale/meihekou/sale.js +26 -26
  77. package/src/filiale/rongcheng/exportConfig.js +257 -257
  78. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  79. package/src/filiale/rongchuang/reportManage.js +11 -11
  80. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  81. package/src/filiale/tongchuan/FillGasQuery.vue +508 -0
  82. package/src/filiale/tongchuan/ManageBusSummary.vue +301 -0
  83. package/src/filiale/tongchuan/reportManage.js +5 -0
  84. package/src/filiale/tongchuan/sale.js +2 -1
  85. package/src/main.js +66 -66
  86. package/src/newmanage.js +525 -525
  87. package/src/reportManage.js +462 -462
  88. package/static/wuhai.json +1610 -1610
  89. package/.gradle/5.5/fileChanges/last-build.bin +0 -0
  90. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  91. package/.gradle/5.5/gc.properties +0 -0
  92. package/.npmignore +0 -10
  93. package/build/.npmignore +0 -1
  94. package/package-lock.json +0 -11184
@@ -1,445 +1,445 @@
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 like '%{}%'"
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
- <div class="col-sm-2 form-group">
42
- <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号</label>
43
- <input
44
- class="input_search" condition="f_meternumber like '%{}%'"
45
- placeholder='表号'
46
- style="width:60%"
47
- type="text"
48
- v-model="model.f_meternumber">
49
- </div>
50
-
51
-
52
- <div style="float:right">
53
- <button @click="search()" class="button_search" v-el:cba>查询</button>
54
- <button @click="$parent.$parent.clearmsg" class="button_clear">清空</button>
55
- <export-excel
56
- :choose-col="true"
57
- :data="{condition: $parent.$parent.condition}"
58
- :field="$parent.$parent.getfield" sql-name="manage_getNewQueryInstruct" sqlurl="rs/logic/exportfile"
59
- template-name='指令查看'></export-excel>
60
- <div
61
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
62
- @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
63
- </div>
64
- </div>
65
- <div class="row" v-show="$parent.$parent.criteriaShow">
66
-
67
- <!-- <div class="col-sm-2">-->
68
- <!-- <label class="font_normal_body">组织机构</label>-->
69
- <!-- <res-select :initresid="$parent.$parent.org"-->
70
- <!-- style="width:60%"-->
71
- <!-- @res-select="$parent.$parent.getorg"-->
72
- <!-- restype='organization'>-->
73
- <!-- </res-select>-->
74
-
75
- <!-- </div>-->
76
-
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_user_type" v-model="model.f_user_type"-->
80
- <!-- placeholder='客户类型'-->
81
- <!-- value-single="true"-->
82
- <!-- :options='$parent.$parent.userType'-->
83
- <!-- close-on-select-->
84
- <!-- condition="f_user_type ='{}'"-->
85
- <!-- ></v-select>-->
86
- <!-- </div>-->
87
- <!-- <div class="col-sm-2 form-group">-->
88
- <!-- <label class="font_normal_body">用气性质</label>-->
89
- <!-- <v-select style="width:60%" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
90
- <!-- placeholder='用气性质'-->
91
- <!-- value-single="true"-->
92
- <!-- :options='$parent.$parent.Gasproperties'-->
93
- <!-- close-on-select-->
94
- <!-- condition="f_gasproperties = '{}'"-->
95
- <!-- ></v-select>-->
96
- <!-- </div>-->
97
-
98
- <div class="col-sm-2 form-group">
99
- <label class="font_normal_body">气表品牌</label>
100
- <v-select
101
- :options='$parent.$parent.meterbrand'
102
-
103
- :value.sync="model.f_gasbrand"
104
- close-on-select
105
- condition="f_meter_brand='{}'"
106
- placeholder='气表品牌'
107
- style="width:60%"
108
- v-model="model.f_gasbrand">
109
- </v-select>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">指令类型</label>
113
- <v-select :options='$parent.$parent.instructtype' :value.sync="model.f_instruct_type" close-on-select
114
- condition="f_instruct_type='{}'"
115
- placeholder='指令类型'
116
- style="width:60%"
117
- v-model="model.f_instruct_type"></v-select>
118
- </div>
119
- <div class="col-sm-2 form-group">
120
- <label class="font_normal_body">执行状态</label>
121
- <v-select :options='$parent.$parent.instructstate' :value.sync="model.f_instruct_state" close-on-select
122
- condition="f_instruct_state='{}'"
123
- placeholder='执行状态'
124
- style="width:60%"
125
- v-model="model.f_instruct_state"
126
- ></v-select>
127
- </div>
128
-
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body">指令时间</label>
131
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
132
- condition="f_instruct_date >= '{}'"
133
- placeholder="起始时间"
134
- style="width:60%"
135
- v-model="model.f_start_date"
136
- ></datepicker>
137
- </div>
138
- <div class="col-sm-2 form-group">
139
- <label class="font_normal_body">&emsp;&emsp;至&emsp;</label>
140
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
141
- condition="f_instruct_date <= '{}'"
142
- placeholder="结束时间"
143
- style="width:60%"
144
- v-model="model.f_end_date"
145
- ></datepicker>
146
- </div>
147
- </div>
148
- </div>
149
- </criteria>
150
- <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' v-ref:grid>
151
- <template partial='head'>
152
- <tr>
153
- <th style="text-align:center">
154
- <nobr>序号</nobr>
155
- </th>
156
- <th style="text-align:center">
157
- <nobr>客户编号</nobr>
158
- </th>
159
- <th style="text-align:center">
160
- <nobr>客户名称</nobr>
161
- </th>
162
- <th style="text-align:center">
163
- <nobr>客户地址</nobr>
164
- </th>
165
- <th style="text-align:center">
166
- <nobr>表号</nobr>
167
- </th>
168
- <th style="text-align:center">
169
- <nobr>气表品牌</nobr>
170
- </th>
171
- <th style="text-align:center">
172
- <nobr>指令类型</nobr>
173
- </th>
174
- <th style="text-align:center">
175
- <nobr>指令标题</nobr>
176
- </th>
177
- <th style="text-align:center">
178
- <nobr>执行状态</nobr>
179
- </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"><nobr>指令发送时间</nobr></th>
184
- <th style="text-align:center"><nobr>上表时间</nobr></th>
185
- <th style="text-align:center">
186
- <nobr>操作内容</nobr>
187
- </th>
188
- <th style="text-align:center">
189
- <nobr>操作人(记录)</nobr>
190
- </th>
191
- <th style="text-align:center">
192
- <nobr>操作时间(记录)</nobr>
193
- </th>
194
- <th style="text-align:center">
195
- <nobr>操作类型</nobr>
196
- </th>
197
- <th style="text-align:center">
198
- <nobr>记录状态</nobr>
199
- </th>
200
- <th style="text-align:center"><nobr>组织机构</nobr></th>
201
- </tr>
202
- </template>
203
- <template partial='body'>
204
- <tr>
205
- <td style="text-align:center">
206
- <nobr>{{$index+1}}</nobr>
207
- </td>
208
- <td style="text-align:center">
209
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
210
- </td>
211
- <td style="text-align:center">
212
- <nobr>{{row.f_user_name}}</nobr>
213
- </td>
214
- <td style="text-align:center">
215
- <nobr>{{row.f_address}}</nobr>
216
- </td>
217
- <td style="text-align:center">
218
- <nobr>{{row.f_meternumber}}</nobr>
219
- </td>
220
- <td style="text-align:center">
221
- <nobr>{{row.f_meter_brand}}</nobr>
222
- </td>
223
-
224
- <td style="text-align:center">
225
- <nobr>{{row.f_instruct_type}}</nobr>
226
- </td>
227
- <td style="text-align:center">
228
- <nobr>{{row.f_instruct_title}}</nobr>
229
- </td>
230
- <td style="text-align:center">
231
- <nobr>{{row.f_instruct_state}}</nobr>
232
- </td>
233
- <td style="text-align:center">
234
- <nobr>{{row.f_receive_state}}</nobr>
235
- </td>
236
- <td style="text-align:center">
237
- <nobr>{{row.f_inputtor}}</nobr>
238
- </td>
239
- <td style="text-align:center">
240
- <nobr>{{row.f_instruct_date}}</nobr>
241
- </td>
242
- <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
243
- <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
244
- <td style="text-align:center">
245
- <nobr>{{row.note}}</nobr>
246
- </td>
247
- <td style="text-align:center">
248
- <nobr>{{row.f_operator}}</nobr>
249
- </td>
250
- <td style="text-align:center">
251
- <nobr>{{row.f_operate_date}}</nobr>
252
- </td>
253
- <td style="text-align:center">
254
- <nobr>{{row.f_operate_type}}</nobr>
255
- </td>
256
- <td style="text-align:center">
257
- <nobr>{{row.f_state}}</nobr>
258
- </td>
259
- <td style="text-align:center">
260
- <nobr>{{row.f_orgname}}</nobr>
261
- </td>
262
- </tr>
263
- </template>
264
- </data-grid>
265
- </criteria-paged>
266
- </div>
267
- </div>
268
- </template>
269
- <script>
270
- import {PagedList} from 'vue-client'
271
- import co from 'co'
272
- import * as Util from '../../../Util'
273
- import getLodop from '../../../plugins/LodopFuncs'
274
- import {HttpResetClass} from 'vue-client'
275
- import plugins from '../../../plugins/GetLoginInfoService'
276
-
277
- let readyGen = async function (self) {
278
- await self.$MagLoadParams.loadParam()
279
- self.initQueryParam()
280
- self.getinstructtype()
281
- self.getinstructstate()
282
- await self.$getConfig(self, 'HandManager')
283
- console.log('指令查看config', self.config)
284
- self.getfield = self.config.excelHeaders
285
- // self.reflash()
286
- }
287
- export default {
288
- title: '指令查看',
289
- data () {
290
- return {
291
- model: new PagedList('rs/sql/manage_getNewQueryInstruct', 50),
292
- row: null,
293
- isLoading: true,
294
- searchshow: true,
295
- criteriaShow:false,
296
- Gasproperties:[],
297
- meterbrand: [],
298
- userType:[],
299
- instructtype:[],
300
- instructstate:[],
301
- org:{
302
- org:[this.$login.f.orgid],
303
- dep:[],
304
- user:[],
305
- },
306
- orgcondition:' and f_filialeid = ' + this.$login.f.orgid,
307
- show: false,
308
- condition:'',
309
- getfield: {},
310
- config: {
311
- excelHeaders: {
312
- 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
313
- 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
314
- 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
315
- 'note':'操作内容','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
316
- 'f_orgname': '组织机构'
317
- }
318
- },
319
- }
320
- },
321
- ready () {
322
- readyGen(this)
323
- this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
324
- this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
325
- //this.$refs.paged.$refs.criteria.search()
326
- },
327
- methods: {
328
- hidden(){
329
- this.criteriaShow = !this.criteriaShow
330
- },
331
- getorg(obj) {
332
- if(obj){
333
- this.orgcondition = obj.replace('f_orgid', 'f_filialeid')
334
- }else{
335
- this.orgcondition = " and f_filialeid = " + this.$login.f.orgid
336
- }
337
- },
338
- initQueryParam () {
339
- let arr = []
340
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
341
- let temp = {}
342
- if(item.value.f_meter_type==='物联网表'){
343
- temp.label = item.label
344
- temp.value = item.value.f_meter_brand
345
- arr.push(temp )
346
- }
347
-
348
- })
349
- this.meterbrand = [{label: '全部', value: ''}, ...arr]
350
- },
351
- getinstructtype(){
352
- this.instructtype=[]
353
- let load = new HttpResetClass()
354
- load.load('POST', 'rs/sql/singleTableParam', {
355
- data: {
356
- items:'f_instruct_type',
357
- tablename:'t_instruct',
358
- condition:'f_instruct_type is not null group by f_instruct_type'
359
- }
360
- },{warnMsg:null,resolveMsg:null}).then((res) => {
361
- this.instructtype.push({label: '全部', value: ''})
362
- res.data.forEach((item) => {
363
- this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
364
- })
365
- })
366
-
367
- },
368
- getinstructstate(){
369
- this.instructstate=[]
370
- let load = new HttpResetClass()
371
- load.load('POST', 'rs/sql/singleTableParam', {
372
- data: {
373
- items:'f_instruct_state',
374
- tablename:'t_instruct',
375
- condition:'f_instruct_state is not null group by f_instruct_state'
376
- }
377
- },{warnMsg:null,resolveMsg:null}).then((res) => {
378
- this.instructstate.push({label: '全部', value: ''})
379
- res.data.forEach((item) => {
380
- this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
381
- })
382
- })
383
-
384
- },
385
- clearmsg () {
386
- this.$refs.paged.$refs.criteria.model = {}
387
- },
388
- clickshow () {
389
- this.searchshow = !this.searchshow
390
- },
391
- dealmsg (val) {
392
- val.model = this.model.model
393
- this.$emit('deal-msg', val)
394
- },
395
- async search (args) {
396
- // this.obj.resids = this.obj.resids.replace(/\./g, ''),
397
- args.condition = `${args.condition}`+this.orgcondition
398
- console.log(args.condition+"args.condition")
399
- this.condition = args.condition
400
- if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
401
- this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
402
- }else{
403
- this.model.params.f_start_date = '';
404
- }
405
- if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
406
- this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
407
- }else{
408
- this.model.params.f_end_date = "";
409
- }
410
- if(this.f_orgid_new == '' || this.f_orgid_new == null){
411
- this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
412
- //await this.$LoadParams.loadParam(this.$login.f.orgid)
413
- }else{
414
- this.model.params.f_orgid = `'${this.f_orgid_new}'`;
415
- //await this.$LoadParams.loadParam(this.f_orgid_new)
416
- }
417
- this.model.search(args.condition, args.model)
418
- this.initQueryParam();
419
- },
420
-
421
- },
422
- computed: {
423
- userType () {
424
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
425
- },
426
- Gasproperties () {
427
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
428
- }
429
-
430
- }
431
- }
432
- </script>
433
- <style>
434
- .form-input-group label {
435
- text-align: right;
436
- width: auto;
437
- }
438
- .datapanel {
439
- color: #333;
440
- background-color: white;
441
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
442
- padding: 10px 30px 10px 30px;
443
- border-radius:15px;
444
- }
445
- </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 like '%{}%'"
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
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号</label>
43
+ <input
44
+ class="input_search" condition="f_meternumber like '%{}%'"
45
+ placeholder='表号'
46
+ style="width:60%"
47
+ type="text"
48
+ v-model="model.f_meternumber">
49
+ </div>
50
+
51
+
52
+ <div style="float:right">
53
+ <button @click="search()" class="button_search" v-el:cba>查询</button>
54
+ <button @click="$parent.$parent.clearmsg" class="button_clear">清空</button>
55
+ <export-excel
56
+ :choose-col="true"
57
+ :data="{condition: $parent.$parent.condition}"
58
+ :field="$parent.$parent.getfield" sql-name="manage_getNewQueryInstruct" sqlurl="rs/logic/exportfile"
59
+ template-name='指令查看'></export-excel>
60
+ <div
61
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
62
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
63
+ </div>
64
+ </div>
65
+ <div class="row" v-show="$parent.$parent.criteriaShow">
66
+
67
+ <!-- <div class="col-sm-2">-->
68
+ <!-- <label class="font_normal_body">组织机构</label>-->
69
+ <!-- <res-select :initresid="$parent.$parent.org"-->
70
+ <!-- style="width:60%"-->
71
+ <!-- @res-select="$parent.$parent.getorg"-->
72
+ <!-- restype='organization'>-->
73
+ <!-- </res-select>-->
74
+
75
+ <!-- </div>-->
76
+
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_user_type" v-model="model.f_user_type"-->
80
+ <!-- placeholder='客户类型'-->
81
+ <!-- value-single="true"-->
82
+ <!-- :options='$parent.$parent.userType'-->
83
+ <!-- close-on-select-->
84
+ <!-- condition="f_user_type ='{}'"-->
85
+ <!-- ></v-select>-->
86
+ <!-- </div>-->
87
+ <!-- <div class="col-sm-2 form-group">-->
88
+ <!-- <label class="font_normal_body">用气性质</label>-->
89
+ <!-- <v-select style="width:60%" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
90
+ <!-- placeholder='用气性质'-->
91
+ <!-- value-single="true"-->
92
+ <!-- :options='$parent.$parent.Gasproperties'-->
93
+ <!-- close-on-select-->
94
+ <!-- condition="f_gasproperties = '{}'"-->
95
+ <!-- ></v-select>-->
96
+ <!-- </div>-->
97
+
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body">气表品牌</label>
100
+ <v-select
101
+ :options='$parent.$parent.meterbrand'
102
+
103
+ :value.sync="model.f_gasbrand"
104
+ close-on-select
105
+ condition="f_meter_brand='{}'"
106
+ placeholder='气表品牌'
107
+ style="width:60%"
108
+ v-model="model.f_gasbrand">
109
+ </v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">指令类型</label>
113
+ <v-select :options='$parent.$parent.instructtype' :value.sync="model.f_instruct_type" close-on-select
114
+ condition="f_instruct_type='{}'"
115
+ placeholder='指令类型'
116
+ style="width:60%"
117
+ v-model="model.f_instruct_type"></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">执行状态</label>
121
+ <v-select :options='$parent.$parent.instructstate' :value.sync="model.f_instruct_state" close-on-select
122
+ condition="f_instruct_state='{}'"
123
+ placeholder='执行状态'
124
+ style="width:60%"
125
+ v-model="model.f_instruct_state"
126
+ ></v-select>
127
+ </div>
128
+
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body">指令时间</label>
131
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
132
+ condition="f_instruct_date >= '{}'"
133
+ placeholder="起始时间"
134
+ style="width:60%"
135
+ v-model="model.f_start_date"
136
+ ></datepicker>
137
+ </div>
138
+ <div class="col-sm-2 form-group">
139
+ <label class="font_normal_body">&emsp;&emsp;至&emsp;</label>
140
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
141
+ condition="f_instruct_date <= '{}'"
142
+ placeholder="结束时间"
143
+ style="width:60%"
144
+ v-model="model.f_end_date"
145
+ ></datepicker>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </criteria>
150
+ <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' v-ref:grid>
151
+ <template partial='head'>
152
+ <tr>
153
+ <th style="text-align:center">
154
+ <nobr>序号</nobr>
155
+ </th>
156
+ <th style="text-align:center">
157
+ <nobr>客户编号</nobr>
158
+ </th>
159
+ <th style="text-align:center">
160
+ <nobr>客户名称</nobr>
161
+ </th>
162
+ <th style="text-align:center">
163
+ <nobr>客户地址</nobr>
164
+ </th>
165
+ <th style="text-align:center">
166
+ <nobr>表号</nobr>
167
+ </th>
168
+ <th style="text-align:center">
169
+ <nobr>气表品牌</nobr>
170
+ </th>
171
+ <th style="text-align:center">
172
+ <nobr>指令类型</nobr>
173
+ </th>
174
+ <th style="text-align:center">
175
+ <nobr>指令标题</nobr>
176
+ </th>
177
+ <th style="text-align:center">
178
+ <nobr>执行状态</nobr>
179
+ </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"><nobr>指令发送时间</nobr></th>
184
+ <th style="text-align:center"><nobr>上表时间</nobr></th>
185
+ <th style="text-align:center">
186
+ <nobr>操作内容</nobr>
187
+ </th>
188
+ <th style="text-align:center">
189
+ <nobr>操作人(记录)</nobr>
190
+ </th>
191
+ <th style="text-align:center">
192
+ <nobr>操作时间(记录)</nobr>
193
+ </th>
194
+ <th style="text-align:center">
195
+ <nobr>操作类型</nobr>
196
+ </th>
197
+ <th style="text-align:center">
198
+ <nobr>记录状态</nobr>
199
+ </th>
200
+ <th style="text-align:center"><nobr>组织机构</nobr></th>
201
+ </tr>
202
+ </template>
203
+ <template partial='body'>
204
+ <tr>
205
+ <td style="text-align:center">
206
+ <nobr>{{$index+1}}</nobr>
207
+ </td>
208
+ <td style="text-align:center">
209
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
210
+ </td>
211
+ <td style="text-align:center">
212
+ <nobr>{{row.f_user_name}}</nobr>
213
+ </td>
214
+ <td style="text-align:center">
215
+ <nobr>{{row.f_address}}</nobr>
216
+ </td>
217
+ <td style="text-align:center">
218
+ <nobr>{{row.f_meternumber}}</nobr>
219
+ </td>
220
+ <td style="text-align:center">
221
+ <nobr>{{row.f_meter_brand}}</nobr>
222
+ </td>
223
+
224
+ <td style="text-align:center">
225
+ <nobr>{{row.f_instruct_type}}</nobr>
226
+ </td>
227
+ <td style="text-align:center">
228
+ <nobr>{{row.f_instruct_title}}</nobr>
229
+ </td>
230
+ <td style="text-align:center">
231
+ <nobr>{{row.f_instruct_state}}</nobr>
232
+ </td>
233
+ <td style="text-align:center">
234
+ <nobr>{{row.f_receive_state}}</nobr>
235
+ </td>
236
+ <td style="text-align:center">
237
+ <nobr>{{row.f_inputtor}}</nobr>
238
+ </td>
239
+ <td style="text-align:center">
240
+ <nobr>{{row.f_instruct_date}}</nobr>
241
+ </td>
242
+ <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
243
+ <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
244
+ <td style="text-align:center">
245
+ <nobr>{{row.note}}</nobr>
246
+ </td>
247
+ <td style="text-align:center">
248
+ <nobr>{{row.f_operator}}</nobr>
249
+ </td>
250
+ <td style="text-align:center">
251
+ <nobr>{{row.f_operate_date}}</nobr>
252
+ </td>
253
+ <td style="text-align:center">
254
+ <nobr>{{row.f_operate_type}}</nobr>
255
+ </td>
256
+ <td style="text-align:center">
257
+ <nobr>{{row.f_state}}</nobr>
258
+ </td>
259
+ <td style="text-align:center">
260
+ <nobr>{{row.f_orgname}}</nobr>
261
+ </td>
262
+ </tr>
263
+ </template>
264
+ </data-grid>
265
+ </criteria-paged>
266
+ </div>
267
+ </div>
268
+ </template>
269
+ <script>
270
+ import {PagedList} from 'vue-client'
271
+ import co from 'co'
272
+ import * as Util from '../../../Util'
273
+ import getLodop from '../../../plugins/LodopFuncs'
274
+ import {HttpResetClass} from 'vue-client'
275
+ import plugins from '../../../plugins/GetLoginInfoService'
276
+
277
+ let readyGen = async function (self) {
278
+ await self.$MagLoadParams.loadParam()
279
+ self.initQueryParam()
280
+ self.getinstructtype()
281
+ self.getinstructstate()
282
+ await self.$getConfig(self, 'HandManager')
283
+ console.log('指令查看config', self.config)
284
+ self.getfield = self.config.excelHeaders
285
+ // self.reflash()
286
+ }
287
+ export default {
288
+ title: '指令查看',
289
+ data () {
290
+ return {
291
+ model: new PagedList('rs/sql/manage_getNewQueryInstruct', 50),
292
+ row: null,
293
+ isLoading: true,
294
+ searchshow: true,
295
+ criteriaShow:false,
296
+ Gasproperties:[],
297
+ meterbrand: [],
298
+ userType:[],
299
+ instructtype:[],
300
+ instructstate:[],
301
+ org:{
302
+ org:[this.$login.f.orgid],
303
+ dep:[],
304
+ user:[],
305
+ },
306
+ orgcondition:' and f_filialeid = ' + this.$login.f.orgid,
307
+ show: false,
308
+ condition:'',
309
+ getfield: {},
310
+ config: {
311
+ excelHeaders: {
312
+ 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
313
+ 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
314
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
315
+ 'note':'操作内容','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
316
+ 'f_orgname': '组织机构'
317
+ }
318
+ },
319
+ }
320
+ },
321
+ ready () {
322
+ readyGen(this)
323
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
324
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
325
+ //this.$refs.paged.$refs.criteria.search()
326
+ },
327
+ methods: {
328
+ hidden(){
329
+ this.criteriaShow = !this.criteriaShow
330
+ },
331
+ getorg(obj) {
332
+ if(obj){
333
+ this.orgcondition = obj.replace('f_orgid', 'f_filialeid')
334
+ }else{
335
+ this.orgcondition = " and f_filialeid = " + this.$login.f.orgid
336
+ }
337
+ },
338
+ initQueryParam () {
339
+ let arr = []
340
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
341
+ let temp = {}
342
+ if(item.value.f_meter_type==='物联网表'){
343
+ temp.label = item.label
344
+ temp.value = item.value.f_meter_brand
345
+ arr.push(temp )
346
+ }
347
+
348
+ })
349
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
350
+ },
351
+ getinstructtype(){
352
+ this.instructtype=[]
353
+ let load = new HttpResetClass()
354
+ load.load('POST', 'rs/sql/singleTableParam', {
355
+ data: {
356
+ items:'f_instruct_type',
357
+ tablename:'t_instruct',
358
+ condition:'f_instruct_type is not null group by f_instruct_type'
359
+ }
360
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
361
+ this.instructtype.push({label: '全部', value: ''})
362
+ res.data.forEach((item) => {
363
+ this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
364
+ })
365
+ })
366
+
367
+ },
368
+ getinstructstate(){
369
+ this.instructstate=[]
370
+ let load = new HttpResetClass()
371
+ load.load('POST', 'rs/sql/singleTableParam', {
372
+ data: {
373
+ items:'f_instruct_state',
374
+ tablename:'t_instruct',
375
+ condition:'f_instruct_state is not null group by f_instruct_state'
376
+ }
377
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
378
+ this.instructstate.push({label: '全部', value: ''})
379
+ res.data.forEach((item) => {
380
+ this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
381
+ })
382
+ })
383
+
384
+ },
385
+ clearmsg () {
386
+ this.$refs.paged.$refs.criteria.model = {}
387
+ },
388
+ clickshow () {
389
+ this.searchshow = !this.searchshow
390
+ },
391
+ dealmsg (val) {
392
+ val.model = this.model.model
393
+ this.$emit('deal-msg', val)
394
+ },
395
+ async search (args) {
396
+ // this.obj.resids = this.obj.resids.replace(/\./g, ''),
397
+ args.condition = `${args.condition}`+this.orgcondition
398
+ console.log(args.condition+"args.condition")
399
+ this.condition = args.condition
400
+ if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
401
+ this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
402
+ }else{
403
+ this.model.params.f_start_date = '';
404
+ }
405
+ if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
406
+ this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
407
+ }else{
408
+ this.model.params.f_end_date = "";
409
+ }
410
+ if(this.f_orgid_new == '' || this.f_orgid_new == null){
411
+ this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
412
+ //await this.$LoadParams.loadParam(this.$login.f.orgid)
413
+ }else{
414
+ this.model.params.f_orgid = `'${this.f_orgid_new}'`;
415
+ //await this.$LoadParams.loadParam(this.f_orgid_new)
416
+ }
417
+ this.model.search(args.condition, args.model)
418
+ this.initQueryParam();
419
+ },
420
+
421
+ },
422
+ computed: {
423
+ userType () {
424
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
425
+ },
426
+ Gasproperties () {
427
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
428
+ }
429
+
430
+ }
431
+ }
432
+ </script>
433
+ <style>
434
+ .form-input-group label {
435
+ text-align: right;
436
+ width: auto;
437
+ }
438
+ .datapanel {
439
+ color: #333;
440
+ background-color: white;
441
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
442
+ padding: 10px 30px 10px 30px;
443
+ border-radius:15px;
444
+ }
445
+ </style>