manage-client 3.3.1 → 3.3.2

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 +180 -180
  2. package/lib/package_2022-12-01-14-30-50.json +109 -0
  3. package/package.json +1 -1
  4. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  5. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  6. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  7. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  8. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  14. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  15. package/src/filiale/shanxian/LostContactAnalysisList.vue +632 -632
  16. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  17. package/src/filiale/shanxian/UserLostContactAnalysis.vue +583 -583
  18. package/src/filiale/shanxian/UserQuery.vue +959 -959
  19. package/src/filiale/shanxian/sale.js +26 -26
  20. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  21. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  22. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  23. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  24. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  25. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  26. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  27. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  28. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  29. package/src/filiale/wenxi/MeterQuery.vue +964 -964
  30. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  31. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  32. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  33. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  34. package/src/filiale/wenxi/sale.js +24 -24
  35. package/src/filiale/wenxi/webmeterManage.js +13 -13
  36. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  37. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  38. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  39. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  40. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  41. package/src/filiale/xinkang/reportManage.js +15 -15
  42. package/src/filiale/xinkang/sale.js +13 -13
  43. package/src/filiale/xinkang/webmeterManage.js +9 -9
  44. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  45. package/src/main.js +72 -66
  46. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  47. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  48. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  49. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  50. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  51. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -1,346 +1,346 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row" >
9
- <div class="col-sm-2">
10
- <label class="font_normal_body">组织机构</label>
11
- <res-select :initresid="$parent.$parent.org"
12
- style="width:60%"
13
- @res-select="$parent.$parent.getorg"
14
- :is-mul=false
15
- restype='organization'>
16
- </res-select>
17
- </div>
18
- <div class="col-sm-2">
19
- <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
20
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
21
- condition="s.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
22
- >
23
- </div>
24
- <!-- <div class="col-sm-2">-->
25
- <!-- <label class="font_normal_body">组织机构</label>-->
26
- <!-- <res-select :initresid="$parent.$parent.orgid"-->
27
- <!-- style="width:60%"-->
28
- <!-- @res-select="$parent.$parent.getRes"-->
29
- <!-- restype='organization'>-->
30
- <!-- </res-select>-->
31
- <!-- </div>-->
32
- <div class="col-sm-2">
33
- <label class="font_normal_body">客户编号</label>
34
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
35
- condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
36
- >
37
- </div>
38
- <div class="col-sm-2">
39
- <label class="font_normal_body">客户名称</label>
40
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
41
- condition="s.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
42
- </div>
43
-
44
- <div class="span" style="float:right;margin-top:10px">
45
- <button class="button_search button_spacing" @click="search()">查询</button>
46
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
47
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
48
- :field="$parent.$parent.getfield"
49
- sqlurl="rs/logic/exportfile" sql-name="rechargeInstruct" template-name='充值指令查询'
50
- :choose-col="true"></export-excel>
51
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
52
- </div>
53
- </div>
54
- <div class="row" v-show="$parent.$parent.criteriaShow">
55
- <div class="col-sm-2">
56
- <label class="font_normal_body">客户地址</label>
57
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
58
- condition="s.f_address like '%{}%'" v-next-el='userid' v-el:username>
59
- </div>
60
- <div class="col-sm-2 form-group">
61
- <label class="font_normal_body">客户类型</label>
62
- <v-select :value.sync="model.f_user_type"
63
- @change="$parent.$parent.userTypeChange()"
64
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
65
- condition="s.f_user_type = '{}'"
66
- close-on-select></v-select>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">用气性质</label>
70
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
71
- :options='$parent.$parent.gasproperties' placeholder='请选择'
72
- condition="s.f_gasproperties = '{}'"
73
- closfe-on-select></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">气表品牌</label>
77
- <v-select :value.sync="model.f_meter_brand"
78
- v-model="model.f_meter_brand"
79
- :options="$parent.$parent.meterbrands"
80
- condition="s.f_meter_brand = '{}'"
81
- close-on-select></v-select>
82
- </div>
83
- <div class="col-sm-2 form-group" >
84
- <label class="font_normal_body" >生成指令时间</label>
85
- <datepicker style="width: 60%" placeholder="生成指令时间"
86
- :value.sync="model.f_start1_date"
87
- v-model="model.f_start1_date"
88
- :format="'yyyy-MM-dd HH:mm:ss'"
89
- condition="i.f_instruct_date >= '{}'"
90
- ></datepicker>
91
- </div>
92
- <div class="col-sm-2 form-group" >
93
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
94
- <datepicker style="width: 60%" placeholder="生成指令时间"
95
- :value.sync="model.f_end1_date"
96
- v-model="model.f_end1_date"
97
- :format="'yyyy-MM-dd HH:mm:ss'"
98
- condition="i.f_instruct_date <= '{}'"
99
- ></datepicker>
100
- </div>
101
- <div class="col-sm-2 form-group" >
102
- <label class="font_normal_body" >充值时间</label>
103
- <datepicker style="width: 60%" placeholder="充值时间"
104
- :value.sync="model.f_start_date"
105
- v-model="model.f_start_date"
106
- :format="'yyyy-MM-dd HH:mm:ss'"
107
- condition="s.f_operate_date >= '{}'"
108
- ></datepicker>
109
- </div>
110
- <div class="col-sm-2 form-group" >
111
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
112
- <datepicker style="width: 60%" placeholder="充值时间"
113
- :value.sync="model.f_end_date"
114
- v-model="model.f_end_date"
115
- :format="'yyyy-MM-dd HH:mm:ss'"
116
- condition="s.f_operate_date <= '{}'"
117
- ></datepicker>
118
- </div>
119
- </div>
120
- </div>
121
- </criteria>
122
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
123
- <template partial='head'>
124
- <tr>
125
- <th><nobr>客户编号</nobr></th>
126
- <th><nobr>表号</nobr></th>
127
- <th><nobr>客户姓名</nobr></th>
128
- <th><nobr>客户电话</nobr></th>
129
- <th><nobr>客户地址</nobr></th>
130
-
131
- <th><nobr>收费类型</nobr></th>
132
- <th><nobr>收费状态</nobr></th>
133
- <th><nobr>实收金额</nobr></th>
134
-
135
- <th><nobr>指令状态</nobr></th>
136
- <th><nobr>表返回状态</nobr></th>
137
- <th><nobr>生成指令时间</nobr></th>
138
-
139
- </tr>
140
- </template>
141
- <template partial='body' partial='list'>
142
- <tr >
143
- <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
144
- <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
145
- <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
146
- <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
147
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
148
-
149
- <td style="text-align:center"><nobr>{{row.f_type}}</nobr></td>
150
- <td style="text-align:center"><nobr>{{row.f_state}}</nobr></td>
151
- <th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
152
- <th style="text-align:center"><nobr>{{row.f_instruct_state}}</nobr></th>
153
- <th style="text-align:center"><nobr>{{row.f_receive_state}}</nobr></th>
154
- <th style="text-align:center"><nobr>{{row.f_instruct_date}}</nobr></th>
155
-
156
- <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
157
- <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
158
- <!-- <th style="text-align:center">-->
159
- <!-- <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>-->
160
- <!-- </th>-->
161
- </tr>
162
- </template>
163
- <template partial='foot'></template>
164
- </data-grid>
165
- </criteria-paged>
166
- </div>
167
- </div>
168
- <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
169
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
170
- </div>
171
- </div>
172
- </template>
173
-
174
- <script>
175
- import {HttpResetClass, PagedList} from 'vue-client'
176
- import exportConfig from '../../sale/config/exportConfig'
177
- import plugins from '../../../plugins/GetLoginInfoService'
178
- import defaultPrint from "../../sale/config/DefaultPrint";
179
- import * as Util from '../../../Util'
180
-
181
- let readySomething = async function (self) {
182
- await self.$MagLoadParams.loadParam()
183
- self.initParams()
184
- // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
185
- }
186
- export default {
187
- title: '充值指令查询',
188
- data () {
189
- return {
190
- show:false,
191
- detail24: false,
192
- org:[this.$login.f.orgid],
193
- orgcondition: ' and s.f_orgid = ' + this.$login.f.orgid,
194
- //f_filialeid: this.$login.f.f_orgid,
195
- detaillist: [],
196
- meterbrands: [],
197
- prices: [],
198
- gasproperties:[],
199
- condition:'',
200
- rowdata:{},
201
- sumsmodel: {},
202
- orgid:[this.$login.f.orgid],
203
- criteriaShow:false,
204
- orgCondtionStr: '',
205
- model: new PagedList('rs/sql/rechargeInstruct', 50,{})
206
- }
207
- },
208
- ready () {
209
- readySomething(this).then(() => {
210
- this.$emit('ready')
211
- }).catch((error) => {
212
- this.$emit('error', error)
213
- })
214
- this.$refs.paged.$refs.criteria.model.f_start_date = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
215
- this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
216
- this.$refs.paged.$refs.criteria.search()
217
- },
218
- methods: {
219
- initParams() {
220
- // 初始化气表品牌
221
- let brandArr = []
222
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
223
- let temp = {}
224
- temp.label = item.label
225
- temp.value = item.value.f_meter_brand
226
- brandArr.push(temp)
227
- })
228
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
229
- //初始化气表价格
230
- this.prices = this.$MagGetSaleParam.getPrices();
231
- },
232
- async updateParams() {
233
- await this.$MagLoadParams.loadParam(this.f_filialeid)
234
- this.initParams()
235
- },
236
- getorg(obj) {
237
- if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
238
- this.orgcondition = " and s.f_orgid in " + plugins.convertToIn(obj)
239
- }else{
240
- this.orgcondition = " and s.f_orgid = " + this.$login.f.orgid
241
- }
242
- },
243
- userTypeChange () {
244
- this.gasproperties=[]
245
- if(this.$refs.paged.$refs.criteria.model !==null) {
246
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
247
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
248
- }
249
- else{
250
- this.gasproperties =[{label: '全部', value: ''}]
251
- }
252
- },
253
- showdetail(val) {
254
- console.log('24detail==', val)
255
- if(val){
256
- let detail = eval("("+val+")")
257
- this.detaillist = detail
258
- this.detail24 = true
259
- }else{
260
- console.log('无数据')
261
- }
262
- },
263
- close() {
264
- this.detail24 = false
265
- },
266
- hidden(){
267
- this.criteriaShow = !this.criteriaShow
268
- },
269
- cancel() {
270
- this.show = false
271
- },
272
- clearmsg () {
273
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
274
- this.$refs.paged.$refs.criteria.model[key] = []
275
- })
276
- },
277
- getRes (obj) {
278
- this.orgCondtionStr = condition
279
- this.orgname = obj.orgnames[0]
280
- this.depname = obj.depnames[0]
281
- },
282
- showmsg(obj){
283
- this.rowdata=obj
284
- this.show=true
285
- },
286
-
287
- search (args) {
288
- args.condition = `${args.condition}`+this.orgcondition
289
- console.log(args.condition+"args.condition")
290
- this.condition = args.condition
291
- this.model.search(args.condition, args.model)
292
- // console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
293
- // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
294
- // args.condition = `${args.condition}`
295
- // if (this.orgcondition)
296
- // args.condition = `${args.condition}` + this.orgcondition
297
- // else
298
- // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
299
- // this.model.search(args.condition, args.model)
300
- }
301
- },
302
- watch: {
303
- 'orgCondtionStr'(val) {
304
- let res = val.match(/'(.*?)'/)
305
- console.log('正则提取:',res && res[1])
306
- if (res) {
307
- this.f_filialeid = res[1]
308
- // this.updateParams()
309
- }
310
- }
311
- },
312
- computed: {
313
- getfield () {
314
- return exportConfig.RechargeInstruct
315
- },
316
- usertypes() {
317
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
318
- },
319
- getCondition () {
320
- var con = ""
321
- if (this.orgCondtionStr) {
322
- con = `${this.$refs.paged.$refs.criteria.condition} and s.f_orgid in (${this.orgCondtionStr})`
323
- }
324
- else {
325
- con = `${this.$refs.paged.$refs.criteria.condition}and s.f_orgid in ('${this.$login.f.orgid}' )`
326
- }
327
- return {
328
- condition: con
329
- }
330
- }
331
- }
332
- }
333
- </script>
334
-
335
- <style>
336
- .mystyle{
337
- margin-left:80px;
338
- }
339
- .datapanel {
340
- color: #333;
341
- background-color: white;
342
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
343
- padding: 10px 10px 10px 10px;
344
- border-radius:15px;
345
- }
346
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row" >
9
+ <div class="col-sm-2">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select :initresid="$parent.$parent.org"
12
+ style="width:60%"
13
+ @res-select="$parent.$parent.getorg"
14
+ :is-mul=false
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2">
19
+ <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
20
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
21
+ condition="s.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
22
+ >
23
+ </div>
24
+ <!-- <div class="col-sm-2">-->
25
+ <!-- <label class="font_normal_body">组织机构</label>-->
26
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
27
+ <!-- style="width:60%"-->
28
+ <!-- @res-select="$parent.$parent.getRes"-->
29
+ <!-- restype='organization'>-->
30
+ <!-- </res-select>-->
31
+ <!-- </div>-->
32
+ <div class="col-sm-2">
33
+ <label class="font_normal_body">客户编号</label>
34
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
35
+ condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
36
+ >
37
+ </div>
38
+ <div class="col-sm-2">
39
+ <label class="font_normal_body">客户名称</label>
40
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
41
+ condition="s.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
42
+ </div>
43
+
44
+ <div class="span" style="float:right;margin-top:10px">
45
+ <button class="button_search button_spacing" @click="search()">查询</button>
46
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
47
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
48
+ :field="$parent.$parent.getfield"
49
+ sqlurl="rs/logic/exportfile" sql-name="rechargeInstruct" template-name='充值指令查询'
50
+ :choose-col="true"></export-excel>
51
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2">
56
+ <label class="font_normal_body">客户地址</label>
57
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
58
+ condition="s.f_address like '%{}%'" v-next-el='userid' v-el:username>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户类型</label>
62
+ <v-select :value.sync="model.f_user_type"
63
+ @change="$parent.$parent.userTypeChange()"
64
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
65
+ condition="s.f_user_type = '{}'"
66
+ close-on-select></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">用气性质</label>
70
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
71
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
72
+ condition="s.f_gasproperties = '{}'"
73
+ closfe-on-select></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">气表品牌</label>
77
+ <v-select :value.sync="model.f_meter_brand"
78
+ v-model="model.f_meter_brand"
79
+ :options="$parent.$parent.meterbrands"
80
+ condition="s.f_meter_brand = '{}'"
81
+ close-on-select></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group" >
84
+ <label class="font_normal_body" >生成指令时间</label>
85
+ <datepicker style="width: 60%" placeholder="生成指令时间"
86
+ :value.sync="model.f_start1_date"
87
+ v-model="model.f_start1_date"
88
+ :format="'yyyy-MM-dd HH:mm:ss'"
89
+ condition="i.f_instruct_date >= '{}'"
90
+ ></datepicker>
91
+ </div>
92
+ <div class="col-sm-2 form-group" >
93
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
94
+ <datepicker style="width: 60%" placeholder="生成指令时间"
95
+ :value.sync="model.f_end1_date"
96
+ v-model="model.f_end1_date"
97
+ :format="'yyyy-MM-dd HH:mm:ss'"
98
+ condition="i.f_instruct_date <= '{}'"
99
+ ></datepicker>
100
+ </div>
101
+ <div class="col-sm-2 form-group" >
102
+ <label class="font_normal_body" >充值时间</label>
103
+ <datepicker style="width: 60%" placeholder="充值时间"
104
+ :value.sync="model.f_start_date"
105
+ v-model="model.f_start_date"
106
+ :format="'yyyy-MM-dd HH:mm:ss'"
107
+ condition="s.f_operate_date >= '{}'"
108
+ ></datepicker>
109
+ </div>
110
+ <div class="col-sm-2 form-group" >
111
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
112
+ <datepicker style="width: 60%" placeholder="充值时间"
113
+ :value.sync="model.f_end_date"
114
+ v-model="model.f_end_date"
115
+ :format="'yyyy-MM-dd HH:mm:ss'"
116
+ condition="s.f_operate_date <= '{}'"
117
+ ></datepicker>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </criteria>
122
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
123
+ <template partial='head'>
124
+ <tr>
125
+ <th><nobr>客户编号</nobr></th>
126
+ <th><nobr>表号</nobr></th>
127
+ <th><nobr>客户姓名</nobr></th>
128
+ <th><nobr>客户电话</nobr></th>
129
+ <th><nobr>客户地址</nobr></th>
130
+
131
+ <th><nobr>收费类型</nobr></th>
132
+ <th><nobr>收费状态</nobr></th>
133
+ <th><nobr>实收金额</nobr></th>
134
+
135
+ <th><nobr>指令状态</nobr></th>
136
+ <th><nobr>表返回状态</nobr></th>
137
+ <th><nobr>生成指令时间</nobr></th>
138
+
139
+ </tr>
140
+ </template>
141
+ <template partial='body' partial='list'>
142
+ <tr >
143
+ <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
144
+ <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
145
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
146
+ <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
147
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
148
+
149
+ <td style="text-align:center"><nobr>{{row.f_type}}</nobr></td>
150
+ <td style="text-align:center"><nobr>{{row.f_state}}</nobr></td>
151
+ <th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
152
+ <th style="text-align:center"><nobr>{{row.f_instruct_state}}</nobr></th>
153
+ <th style="text-align:center"><nobr>{{row.f_receive_state}}</nobr></th>
154
+ <th style="text-align:center"><nobr>{{row.f_instruct_date}}</nobr></th>
155
+
156
+ <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
157
+ <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
158
+ <!-- <th style="text-align:center">-->
159
+ <!-- <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>-->
160
+ <!-- </th>-->
161
+ </tr>
162
+ </template>
163
+ <template partial='foot'></template>
164
+ </data-grid>
165
+ </criteria-paged>
166
+ </div>
167
+ </div>
168
+ <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
169
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
170
+ </div>
171
+ </div>
172
+ </template>
173
+
174
+ <script>
175
+ import {HttpResetClass, PagedList} from 'vue-client'
176
+ import exportConfig from '../../sale/config/exportConfig'
177
+ import plugins from '../../../plugins/GetLoginInfoService'
178
+ import defaultPrint from "../../sale/config/DefaultPrint";
179
+ import * as Util from '../../../Util'
180
+
181
+ let readySomething = async function (self) {
182
+ await self.$MagLoadParams.loadParam()
183
+ self.initParams()
184
+ // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
185
+ }
186
+ export default {
187
+ title: '充值指令查询',
188
+ data () {
189
+ return {
190
+ show:false,
191
+ detail24: false,
192
+ org:[this.$login.f.orgid],
193
+ orgcondition: ' and s.f_orgid = ' + this.$login.f.orgid,
194
+ //f_filialeid: this.$login.f.f_orgid,
195
+ detaillist: [],
196
+ meterbrands: [],
197
+ prices: [],
198
+ gasproperties:[],
199
+ condition:'',
200
+ rowdata:{},
201
+ sumsmodel: {},
202
+ orgid:[this.$login.f.orgid],
203
+ criteriaShow:false,
204
+ orgCondtionStr: '',
205
+ model: new PagedList('rs/sql/rechargeInstruct', 50,{})
206
+ }
207
+ },
208
+ ready () {
209
+ readySomething(this).then(() => {
210
+ this.$emit('ready')
211
+ }).catch((error) => {
212
+ this.$emit('error', error)
213
+ })
214
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
215
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
216
+ this.$refs.paged.$refs.criteria.search()
217
+ },
218
+ methods: {
219
+ initParams() {
220
+ // 初始化气表品牌
221
+ let brandArr = []
222
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
223
+ let temp = {}
224
+ temp.label = item.label
225
+ temp.value = item.value.f_meter_brand
226
+ brandArr.push(temp)
227
+ })
228
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
229
+ //初始化气表价格
230
+ this.prices = this.$MagGetSaleParam.getPrices();
231
+ },
232
+ async updateParams() {
233
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
234
+ this.initParams()
235
+ },
236
+ getorg(obj) {
237
+ if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
238
+ this.orgcondition = " and s.f_orgid in " + plugins.convertToIn(obj)
239
+ }else{
240
+ this.orgcondition = " and s.f_orgid = " + this.$login.f.orgid
241
+ }
242
+ },
243
+ userTypeChange () {
244
+ this.gasproperties=[]
245
+ if(this.$refs.paged.$refs.criteria.model !==null) {
246
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
247
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
248
+ }
249
+ else{
250
+ this.gasproperties =[{label: '全部', value: ''}]
251
+ }
252
+ },
253
+ showdetail(val) {
254
+ console.log('24detail==', val)
255
+ if(val){
256
+ let detail = eval("("+val+")")
257
+ this.detaillist = detail
258
+ this.detail24 = true
259
+ }else{
260
+ console.log('无数据')
261
+ }
262
+ },
263
+ close() {
264
+ this.detail24 = false
265
+ },
266
+ hidden(){
267
+ this.criteriaShow = !this.criteriaShow
268
+ },
269
+ cancel() {
270
+ this.show = false
271
+ },
272
+ clearmsg () {
273
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
274
+ this.$refs.paged.$refs.criteria.model[key] = []
275
+ })
276
+ },
277
+ getRes (obj) {
278
+ this.orgCondtionStr = condition
279
+ this.orgname = obj.orgnames[0]
280
+ this.depname = obj.depnames[0]
281
+ },
282
+ showmsg(obj){
283
+ this.rowdata=obj
284
+ this.show=true
285
+ },
286
+
287
+ search (args) {
288
+ args.condition = `${args.condition}`+this.orgcondition
289
+ console.log(args.condition+"args.condition")
290
+ this.condition = args.condition
291
+ this.model.search(args.condition, args.model)
292
+ // console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
293
+ // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
294
+ // args.condition = `${args.condition}`
295
+ // if (this.orgcondition)
296
+ // args.condition = `${args.condition}` + this.orgcondition
297
+ // else
298
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
299
+ // this.model.search(args.condition, args.model)
300
+ }
301
+ },
302
+ watch: {
303
+ 'orgCondtionStr'(val) {
304
+ let res = val.match(/'(.*?)'/)
305
+ console.log('正则提取:',res && res[1])
306
+ if (res) {
307
+ this.f_filialeid = res[1]
308
+ // this.updateParams()
309
+ }
310
+ }
311
+ },
312
+ computed: {
313
+ getfield () {
314
+ return exportConfig.RechargeInstruct
315
+ },
316
+ usertypes() {
317
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
318
+ },
319
+ getCondition () {
320
+ var con = ""
321
+ if (this.orgCondtionStr) {
322
+ con = `${this.$refs.paged.$refs.criteria.condition} and s.f_orgid in (${this.orgCondtionStr})`
323
+ }
324
+ else {
325
+ con = `${this.$refs.paged.$refs.criteria.condition}and s.f_orgid in ('${this.$login.f.orgid}' )`
326
+ }
327
+ return {
328
+ condition: con
329
+ }
330
+ }
331
+ }
332
+ }
333
+ </script>
334
+
335
+ <style>
336
+ .mystyle{
337
+ margin-left:80px;
338
+ }
339
+ .datapanel {
340
+ color: #333;
341
+ background-color: white;
342
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
343
+ padding: 10px 10px 10px 10px;
344
+ border-radius:15px;
345
+ }
346
+ </style>