manage-client 3.2.24 → 3.2.28

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