manage-client 3.1.14 → 3.1.17

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