manage-client 3.2.80 → 3.2.83-1

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 (60) hide show
  1. package/build/dev-server.js +6 -6
  2. package/package.json +1 -1
  3. package/src/components/SellReport/NonResidentGas.vue +13 -0
  4. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +36 -30
  5. package/src/components/SellReport/SellDepReport.vue +269 -266
  6. package/src/components/sale/businessquery/AreaChargeQuery.vue +22 -22
  7. package/src/components/sale/businessquery/AreaGeneralQuery.vue +35 -40
  8. package/src/components/sale/businessquery/BalanceTable.vue +29 -31
  9. package/src/components/sale/businessquery/BusinesQuery.vue +57 -18
  10. package/src/components/sale/businessquery/BusinessManage.vue +3 -1
  11. package/src/components/sale/businessquery/CancellationQuery.vue +37 -6
  12. package/src/components/sale/businessquery/CardHandplanQuery.vue +34 -6
  13. package/src/components/sale/businessquery/ChangeMeterQuery.vue +38 -7
  14. package/src/components/sale/businessquery/CollectManage.vue +9 -3
  15. package/src/components/sale/businessquery/CommunityPaymen.vue +24 -24
  16. package/src/components/sale/businessquery/DepositDetail.vue +16 -17
  17. package/src/components/sale/businessquery/DisableQuery.vue +40 -9
  18. package/src/components/sale/businessquery/EnableQuery.vue +66 -34
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +26 -26
  20. package/src/components/sale/businessquery/FillCardQuery.vue +38 -6
  21. package/src/components/sale/businessquery/FillGasQuery.vue +45 -7
  22. package/src/components/sale/businessquery/GasLossQuery.vue +1 -1
  23. package/src/components/sale/businessquery/HandBookQuery.vue +37 -38
  24. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +38 -37
  25. package/src/components/sale/businessquery/HandPeopleQuery.vue +22 -22
  26. package/src/components/sale/businessquery/Handgasquery.vue +30 -33
  27. package/src/components/sale/businessquery/HandplanQuery.vue +1372 -1327
  28. package/src/components/sale/businessquery/InfoOperateRecord.vue +13 -1
  29. package/src/components/sale/businessquery/MonthGasQuery.vue +2 -1
  30. package/src/components/sale/businessquery/MoveMeterQuery.vue +43 -9
  31. package/src/components/sale/businessquery/NoBusinessQuery.vue +23 -26
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +37 -6
  33. package/src/components/sale/businessquery/PlotSummaryQuery.vue +22 -21
  34. package/src/components/sale/businessquery/PrickBillQuery.vue +15 -13
  35. package/src/components/sale/businessquery/PrivilegeQuery.vue +37 -7
  36. package/src/components/sale/businessquery/ProceedsOper.vue +4 -10
  37. package/src/components/sale/businessquery/ReceiptQuery.vue +9 -6
  38. package/src/components/sale/businessquery/ResidentialArrearsQuery.vue +23 -24
  39. package/src/components/sale/businessquery/ResidentialQuery.vue +21 -28
  40. package/src/components/sale/businessquery/ReverseQuery.vue +37 -6
  41. package/src/components/sale/businessquery/SellOrgnameQuery.vue +29 -27
  42. package/src/components/sale/businessquery/SellPeopleQuery.vue +29 -30
  43. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +27 -26
  44. package/src/components/sale/businessquery/TransferQuery.vue +55 -23
  45. package/src/components/sale/businessquery/UnhandBusiness.vue +324 -0
  46. package/src/components/sale/businessquery/UserSellHeadDetail.vue +30 -33
  47. package/src/components/sale/businessquery/YingShouMingXi.vue +10 -15
  48. package/src/components/sale/businessquery/YonghuJieyu.vue +4 -2
  49. package/src/components/sale/businessquery/gasPriceQuery.vue +1 -2
  50. package/src/components/sale/businessquery/handplan-info.vue +405 -0
  51. package/src/components/sale/businessquery/overDueQuery.vue +39 -29
  52. package/src/components/sale/businessquery/priceadjustQuery.vue +36 -6
  53. package/src/components/sale/businessquery/sellingChargePrice.vue +667 -0
  54. package/src/components/sale/config/exportConfig.js +20 -1
  55. package/src/filiale/qianneng/ChargeQuery.vue +1289 -0
  56. package/src/filiale/qianneng/HandplanQuery.vue +1352 -0
  57. package/src/filiale/qianneng/OtherChargeQuery.vue +13 -1
  58. package/src/filiale/qianneng/exportConfig.js +69 -35
  59. package/src/filiale/qianneng/sale.js +3 -1
  60. package/src/saleManage.js +10 -2
@@ -0,0 +1,667 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="a.f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="a.f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="span" style="float:right;">
35
+ <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
36
+ <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+
40
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
41
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
42
+ :defaultselect="$parent.$parent.defaultexport"
43
+ sqlurl="rs/logic/exportfile" sql-name="findS" template-name='气费阶梯明细导出'
44
+ :choose-col="true">
45
+ </export-excel>
46
+
47
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
48
+ :defaultfield="$parent.$parent.defaultfield"
49
+ titletable="气费阶梯明细" :starthead="$parent.$parent.getstart"
50
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
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
+
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户名称</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
60
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户电话</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">身份证号</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
70
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">客户地址</label>
74
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
75
+ condition="f_address like '%{}%'" placeholder='客户地址'>
76
+ </div>
77
+
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">气价类型</label>
80
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
81
+ @change="$parent.$parent.pricetypechanged"
82
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
83
+ close-on-select v-ref:type>
84
+ </v-select>
85
+ </div>
86
+
87
+
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">气价名称</label>
90
+ <v-select :value.sync="model.f_price_name"
91
+ v-model="model.f_price_name"
92
+ multiple
93
+ :options="$parent.$parent.getPricenames"
94
+ condition="f_price_name in {}"
95
+ ></v-select>
96
+ </div>
97
+
98
+
99
+
100
+ </div>
101
+ </div>
102
+ </criteria>
103
+
104
+ <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
105
+ <template partial='head'>
106
+ <tr>
107
+ <th>
108
+ <data-order field="f_userinfo_code" name="客户编号"
109
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
110
+ </th>
111
+ <th>
112
+ <nobr>客户名称</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>客户类型</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>气价名称</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>单价</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>气量</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>气费</nobr>
128
+ </th>
129
+ </tr>
130
+ </template>
131
+ <template partial='body'>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.f_userinfo_id}}</nobr>
134
+ </td>
135
+ <td style="text-align: center;"><nobr>
136
+ <nobr>{{row.f_user_name}}</nobr>
137
+ </nobr> </td>
138
+ <td style="text-align: center;">
139
+ <nobr>{{row.f_user_type}}</nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.f_price_name}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.f_price}}</nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.f_gas}}</nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.f_money}}</nobr>
152
+ </td>
153
+
154
+ </template>
155
+ <template partial='foot'></template>
156
+ </data-grid>
157
+ </criteria-paged>
158
+ <table class="table-hover">
159
+ <!-- <tr style="position: relative" class="table-bordered">-->
160
+ <!-- <td-->
161
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
162
+ <!-- 汇总信息-->
163
+ <!-- </td>-->
164
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
165
+ <!-- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}-->
166
+ <!-- </td>-->
167
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
168
+ <!-- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}-->
169
+ <!-- </td>-->
170
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
171
+ <!-- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}-->
172
+ <!-- </td>-->
173
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
174
+ <!-- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}-->
175
+ <!-- </td>-->
176
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
177
+ <!-- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}-->
178
+ <!-- </td>-->
179
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
180
+ <!-- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}-->
181
+ <!-- </td>-->
182
+ <!-- </tr>-->
183
+ </table>
184
+ </div>
185
+ </div>
186
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
187
+ <article slot="modal-body">
188
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
189
+ </article>
190
+ <footer slot="modal-footer" class="modal-footer">
191
+ </footer>
192
+ </modal>
193
+ </div>
194
+ <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
195
+ </template>
196
+
197
+ <script>
198
+ import {HttpResetClass, PagedList} from 'vue-client'
199
+ import exportConfig from '../config/exportConfig'
200
+ let cardBtnGen = async function (self, val) {
201
+ self.cardInfo = val.data
202
+
203
+ // 判断读卡是否需要卡密码
204
+ console.log('读卡上的信息', self.cardInfo)
205
+
206
+ if (self.cardInfo.NewParam) {
207
+ if (self.cardInfo.NewParam.error) {
208
+ if (self.cardInfo.NewParam.error === '0001') {
209
+ // 需要重新读卡并传卡密码
210
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
211
+ self.readCardParam = self.model.rows[0].f_card_password
212
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
213
+ } else {
214
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
215
+ return
216
+ }
217
+ }
218
+ }
219
+ }
220
+ self.card=self.cardInfo.CardID
221
+ self.search()
222
+ }
223
+ let readySomething = async function (self) {
224
+ //加载抄表册
225
+ self.initmeterbook();
226
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
227
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
228
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
229
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
230
+ // self.$refs.paged.$refs.cri.model.f_state=['有效'];
231
+ // self.$refs.paged.$refs.cri.search()
232
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
233
+ await self.$MagLoadParams.loadParam()
234
+ self.initParams()
235
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
236
+ }
237
+ export default {
238
+ props:['data'],
239
+ title: '气阶查询',
240
+ data() {
241
+ return {
242
+ IdCardInfo:'',
243
+ card:'',
244
+ isSingleUser: null,
245
+ startDate1:'',
246
+ endDate1:'',
247
+ resshow:['company','department','operator','slicearea'],
248
+ other:[],
249
+
250
+ footer:[],
251
+ config: {
252
+ defaultPrint: ['f_userinfo_code', 'f_user_name','f_stairamount1', 'f_stair2amount', 'f_stair3amount','f_operate_date']
253
+ },
254
+ //排序
255
+ orderitem:'f_operate_date desc',
256
+ orderFields: {
257
+ f_operate_date: 'no'
258
+ },
259
+ //f_price_name:[],
260
+ gasproperties:[],
261
+ showinfo: false,
262
+ data: {},
263
+ getstart:'',
264
+ show:false,
265
+ rowdata:{},
266
+ initres: {
267
+ org:[this.$login.f.orgid],
268
+ dep:[],
269
+ user:[]
270
+ },
271
+ model: new PagedList('rs/sql/findS', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},),
272
+ criteriaShow: false,
273
+ orgCondtionStr: '',
274
+ // 下拉框
275
+ meterbrands: [],
276
+ pricenames: [],
277
+ prices: [],
278
+ area: [],
279
+ //默认打印列
280
+ defaultfield: [],
281
+ //小区
282
+ residentialArea: [],
283
+ sumsmodel: {},
284
+ f_filialeid: this.$login.f.orgid,
285
+ wxstate:[
286
+ {label: '全部', value: ''},
287
+ {label: '已退款', value: `= '3'`},
288
+ {label: '未退款', value: `!= '3'`}
289
+ ],
290
+ privilege_money:[
291
+ {label: '全部', value: ''},
292
+ {label: '已优惠', value: '> 0'},
293
+ {label: '未优惠', value: '= 0'}
294
+ ],
295
+ showupload:false,
296
+ selected:{},
297
+ meterbooks:[{label: '全部',value: ''}], //抄表册
298
+ inputtores:[{label: '全部',value: ''}],
299
+ writecard:[{label: '全部',value: ''},{label: '已写卡',value: '已写卡'},{label: '未写卡',value: '未写卡'}],
300
+ bluetoothpackage:[{label: '全部',value: ''},{label: '发送成功',value: '发送成功'},{label: '执行成功',value: '执行成功'}],
301
+ allorgid:[],
302
+ tempfalg :false,
303
+ lastorgstr:'',
304
+ // pos设备列表
305
+ posEquipment: [{label: '全部',value: ''}],
306
+ showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
307
+ }
308
+ },
309
+ ready() {
310
+ this.$refs.paged.$refs.cri.model.f_state=['有效']
311
+ this.getaddress()
312
+ this.getEquipment()
313
+ //加载抄表册
314
+ this.$MagGetSaleParam.initinputtor();
315
+ this.getinputtores();
316
+ // this.initres.dep.push(this.$login.f.depids)
317
+ readySomething(this).then(() => {
318
+ this.$emit('ready')
319
+ }).catch((error) => {
320
+ this.$emit('error', error)
321
+ })
322
+ },
323
+ methods: {
324
+ pricetypechanged(){
325
+ this.$refs.paged.$refs.cri.model.f_price_name = []
326
+ },
327
+ // 获取设备下拉选
328
+ // async getEquipment () {
329
+ // let HttpReset = new HttpResetClass()
330
+ // let param = {
331
+ // items: 'f_terminal_name',
332
+ // tablename: 't_equipment',
333
+ // condition: `f_equipment_type = 'POS' and f_state = '正常' and f_orgid = '${this.$login.f.orgid}'`,
334
+ // orderitem: 'id'
335
+ // }
336
+ // var data = await HttpReset.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
337
+ // for (let row of data.data) {
338
+ // this.posEquipment.push({label: row.f_terminal_name, value: row.f_terminal_name})
339
+ // }
340
+ // },
341
+ ReadIDCard(){
342
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
343
+ console.log('======',msg)
344
+ if(msg.err !== 0){ return}
345
+ this.IdCardInfo=msg.strID
346
+ })
347
+ if(this.IdCardInfo) {
348
+ this.search()
349
+ }else{
350
+ alert("读取失败,找不到用户信息")
351
+ }
352
+ },
353
+ cardBtn (val) {
354
+ // this.clear()
355
+ cardBtnGen(this, val)
356
+ },
357
+ async initmeterbook(orgstr){
358
+ if(orgstr == null ){
359
+ orgstr = this.f_filialeid;
360
+ }
361
+ //获取新的抄表册,先去清理所有的抄表册
362
+ this.$GetSaleParam.meterbooks = [];
363
+ //开始加载新的抄表册
364
+ await this.$LoadParams.loadMeterBook(orgstr)
365
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
366
+ },
367
+ async getinputtores () {
368
+ // 获取抄表员
369
+ let rs = []
370
+ if (this.$login.f.f_gasman.length > 0) {
371
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
372
+ let temp = {
373
+ label: this.$login.f.f_gasman[i].name,
374
+ value: this.$login.f.f_gasman[i].name
375
+ }
376
+ rs.push(temp)
377
+ }
378
+ }
379
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
380
+ },
381
+ //显示附件
382
+ view(row){
383
+ this.showupload = true
384
+ this.selected= row
385
+ },
386
+ getotherfooter () {
387
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
388
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
389
+ this.other = [];
390
+ this.footer = [];
391
+ let exportdata = this.getCondition;
392
+ let otherInData = [];
393
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
394
+ let footerData = [], exportfield = this.getfield;
395
+ footerData.push("合计");
396
+ let self = this;
397
+ for (var field in self.sumsmodel) {
398
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
399
+ }
400
+ this.footer.push(footerData);
401
+ this.other.push(otherInData);
402
+ },
403
+ // async getaddress(){
404
+ // let HttpReset = new HttpResetClass()
405
+ // var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
406
+ // data: {
407
+ // condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
408
+ // }
409
+ // }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
410
+ // console.log('小区',data)
411
+ // let house = [{label: '全部', value: ''}]
412
+ // for (let row of data.data){
413
+ // house.push({label: row.f_residential_area, value: row.f_residential_area})
414
+ // }
415
+ // this.residentialArea = house
416
+ // },
417
+ //把数据库查询数据转换为下拉数据
418
+ calculate(rows){
419
+ let data = []
420
+ rows.forEach((row, n) => {
421
+ data[n] = {label: row.f_residential_area, value: row.id}
422
+ })
423
+ return data
424
+ },
425
+
426
+ search(){
427
+
428
+ this.$refs.paged.$refs.cri.search()
429
+ },
430
+ cancel() {
431
+ this.show = false
432
+ },
433
+ showmsg(obj){
434
+ this.rowdata=obj
435
+ this.show=true
436
+ },
437
+ userTypeChange () {
438
+ this.gasproperties=[]
439
+ if(this.$refs.paged.$refs.cri.model !==null) {
440
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
441
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
442
+ }
443
+ else{
444
+ this.gasproperties =[{label: '全部', value: ''}]
445
+ }
446
+ },
447
+ initParams() {
448
+ // 初始化气表品牌
449
+ let brandArr = []
450
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
451
+ let temp = {}
452
+ temp.label = item.label
453
+ temp.value = item.value.f_meter_brand
454
+ brandArr.push(temp)
455
+ })
456
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
457
+ //初始化气表价格
458
+ this.prices = this.$MagGetSaleParam.getPrices();
459
+ },
460
+ selfSearch(args) {
461
+ if (this.data) {
462
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
463
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
464
+ }
465
+
466
+ let f_orgstr = this.orgCondtionStr
467
+ args.condition = `${args.condition} ` + f_orgstr
468
+ if(this.card!=''){
469
+ args.condition+=` and f_card_id='${this.card}'`
470
+ }
471
+ if(this.IdCardInfo!=''){
472
+ args.condition +=` and f_idnumber='${this.IdCardInfo}'`
473
+ }
474
+ this.model.search(args.condition, args.model)
475
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
476
+ this.card=''
477
+ this.IdCardInfo=''
478
+ },
479
+ clear() {
480
+ //清空部门和人员
481
+ this.$refs.paged.$refs.cri.$refs.sel.$children[0].selectres = []
482
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
483
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
484
+ this.$refs.paged.$refs.cri.$refs.sel.$children[3].selectres = []
485
+ //部门和人员变为全选
486
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
487
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
488
+ this.$refs.paged.$refs.cri.$refs.sel.$children[3].$children[0].isSelectAll = false
489
+
490
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
491
+ this.$refs.paged.$refs.cri.model[key] = []
492
+ })
493
+ },
494
+ dealmsg(val,startDate,endDate) {
495
+ val.model = this.model.model
496
+ startDate=this.startDate1
497
+ endDate=this.endDate1
498
+ this.$dispatch('deal-msg', val,startDate,endDate)
499
+ },
500
+ show() {
501
+ this.criteriaShow = true
502
+ },
503
+ hidden() {
504
+ this.criteriaShow = !this.criteriaShow
505
+ },
506
+ async getRes(condition,obj) {
507
+ this.orgCondtionStr = condition
508
+ this.orgname = obj.orgnames[0]
509
+ this.depname = obj.depnames[0]
510
+
511
+
512
+ },
513
+ async updateParams() {
514
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
515
+ this.inputtores = [];
516
+ this.inputtores.push({label: "全部", value: ""})
517
+ if(this.allorgid!=null){
518
+ this.allorgid.forEach((res)=>{
519
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
520
+ })
521
+ }
522
+ this.initParams()
523
+ },
524
+ sort (field, rule) {
525
+ // 将所有排序方式设为不排序,实现相互排斥
526
+ for (let key in this.orderFields) {
527
+ if (key === field) {
528
+ this.orderFields[key] = rule
529
+ } else {
530
+ this.orderFields[key] = 'no'
531
+ }
532
+ }
533
+ // 如果新规则不排序,还原为默认排序
534
+ if (rule === 'no') {
535
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
536
+ } else {
537
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
538
+ }
539
+
540
+ this.search()
541
+ }
542
+
543
+ },
544
+ events:{
545
+ 'getidcard'(IdCard){
546
+ // console.log(param)
547
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
548
+ }
549
+ },
550
+ watch: {
551
+ 'model.rows'(val) {
552
+ //如果有合计 这里为true, 其他为false ,反正相反
553
+ this.showbottomsum=true;
554
+ if(val.length === 0){
555
+ this.sumsmodel = {}
556
+ this.showbottomsum=false;
557
+ }
558
+ },
559
+ 'model.rows.length' () {
560
+ this.isSingleUser = this.model.rows
561
+ },
562
+ async 'orgCondtionStr'(val) {
563
+ //更新抄表册
564
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
565
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
566
+ this.meterbooks = [{label: '全部',value: ''}];
567
+ if(this.lastorgstr != val){
568
+ this.tempfalg = true;
569
+ this.lastorgstr = val;
570
+ }
571
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
572
+ this.tempfalg = false;
573
+ let a = val.substring(val.indexOf("(")+2)
574
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
575
+ }
576
+ let res = val.match(/'(.*?)'/)
577
+ console.log('正则提取:',res && res[1])
578
+ if (res) {
579
+ this.f_filialeid = res[1]
580
+ if(res.input !=null){
581
+ let resorgid = res.input.substring(res.input.indexOf("'"));
582
+ if(resorgid!= null && resorgid!=''){
583
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
584
+ // resorgid = resorgid.replaceAll("'","");
585
+ resorgid = resorgid.replace(/'/g,"");
586
+ this.allorgid = resorgid.split(",")
587
+ }
588
+ }
589
+ this.updateParams()
590
+ }
591
+ },
592
+ sumsmodel:{
593
+ handler: function(val) {
594
+ this.getotherfooter();
595
+ },
596
+ deep: true
597
+ }
598
+ },
599
+ computed: {
600
+ getstart(){
601
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
602
+ },
603
+ chooserow(){
604
+ let aaa= true
605
+ if(this.$login.r && this.$login.r.includes('打印项选择')){
606
+ aaa = false
607
+ }
608
+ return aaa
609
+ },
610
+ getPricenames() {
611
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
612
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
613
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
614
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
615
+ if(this.$refs.paged.$refs.cri.model !==null) {
616
+ let rs = []
617
+ let priceArr = []
618
+ if ( pricetype.length >0) {
619
+ let params = {
620
+ f_price_type: pricetype[0],
621
+ filter: this.f_filialeid,
622
+ prices: this.prices
623
+ }
624
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
625
+ let temp = {}
626
+ temp.label = item.label
627
+ temp.value = item.value.f_price_name
628
+ priceArr.push(temp)
629
+ })
630
+ if(priceArr.length == 0 ){
631
+ rs= [{label: '全部', value: ''}]
632
+ }else{
633
+ rs = [ ...priceArr]
634
+ }
635
+ }
636
+ if (rs.length === 0) {
637
+ console.log('rs读出来是空')
638
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
639
+ }
640
+ return rs
641
+ }
642
+ },
643
+ getCondition() {
644
+ return {
645
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
646
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
647
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
648
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
649
+ }
650
+ },
651
+ getfield() {
652
+ return exportConfig.sellingChargePriceConfig
653
+ },
654
+ defaultexport() {
655
+ return exportConfig.chargeexportConfig
656
+ },
657
+ pricetypes() {
658
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
659
+ }
660
+ }
661
+ }
662
+ </script>
663
+ <style scoped>
664
+ .showbottom{
665
+ height:95%
666
+ }
667
+ </style>