manage-client 3.2.28 → 3.2.32

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