sale-client 4.1.230 → 4.2.1-ronghao

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 (171) hide show
  1. package/build/dev-server.js +29 -46
  2. package/package.json +2 -2
  3. package/src/App.vue +3 -3
  4. package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -4
  5. package/src/components/FilesManageNew/FileUserFiles.vue +2 -4
  6. package/src/components/FilesManageNew/MeterinfoTest.vue +9 -9
  7. package/src/components/FilesManageNew/UserEssentialInfoTest.vue +201 -227
  8. package/src/components/FilesManageNew/UserGeneralInfoTest.vue +0 -2
  9. package/src/components/charge/business/CardMeterCenter.vue +1 -1
  10. package/src/components/charge/business/FilesComplete.vue +3 -3
  11. package/src/components/charge/business/IOTMeterCenter.vue +1 -1
  12. package/src/components/charge/business/OtherChargeNew.vue +68 -48
  13. package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +10 -1
  14. package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +1 -1
  15. package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +1 -1
  16. package/src/components/common/userinfo_detail/ic_detail/GarbageRecordList.vue +69 -0
  17. package/src/components/common/userinfo_detail/ic_detail/InsuranceChargesRecord.vue +384 -0
  18. package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +1 -1
  19. package/src/components/revenue/Common/MeterMessage.vue +1 -1
  20. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  21. package/src/components/revenue/HandManager/WebHand.vue +7 -4
  22. package/src/components/revenue/base/leftview/SafeCheck.vue +41 -3
  23. package/src/components/revenue/base/leftview/UserFeeInfo.vue +76 -0
  24. package/src/components/revenue/base/leftview/otherinfo.vue +1 -0
  25. package/src/components/revenue/base/rightview/CardList.vue +7 -3
  26. package/src/components/revenue/batchDeduction/batchDeductionList.vue +1 -1
  27. package/src/components/revenue/cardHandManage/cardDown.vue +18 -0
  28. package/src/components/revenue/changeInsurance/InsuranceAdd.vue +1 -0
  29. package/src/components/revenue/changeInsurance/InsuranceRecord.vue +2 -1
  30. package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +1 -1
  31. package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/icTable.vue +4 -2
  32. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  33. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  34. package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +2 -2
  35. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  36. package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
  37. package/src/components/revenue/machineHandManage/machineHand.vue +3 -2
  38. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  39. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  40. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  41. package/src/filiale/bayan/StockListmain.vue +543 -543
  42. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  43. package/src/filiale/dexin/MeterinfoTest.vue +1239 -0
  44. package/src/filiale/dexin/UserEssentialInfoTest.vue +602 -0
  45. package/src/filiale/dexin/sale.js +5 -0
  46. package/src/filiale/fugou/MeterinfoTest.vue +1 -1
  47. package/src/filiale/jiaxian/AutomaticPurse.vue +349 -0
  48. package/src/filiale/jiaxian/ChangeMeterQueryUser.vue +303 -0
  49. package/src/filiale/jiaxian/ChangeRecord.vue +44 -2
  50. package/src/filiale/jiaxian/FillCardQueryUser.vue +250 -0
  51. package/src/filiale/jiaxian/FillGasQueryUser.vue +270 -0
  52. package/src/filiale/jiaxian/OtherChargeQueryUser.vue +305 -0
  53. package/src/filiale/jiaxian/PriceAdjustmentQueryUser.vue +368 -0
  54. package/src/filiale/jiaxian/PriceChangeQueryUser.vue +243 -0
  55. package/src/filiale/jiaxian/QueryInstruct.vue +436 -0
  56. package/src/filiale/jiaxian/RecordQueryUser.vue +321 -0
  57. package/src/filiale/jiaxian/Repurchase.vue +181 -0
  58. package/src/filiale/jiaxian/TransferQueryUser.vue +274 -0
  59. package/src/filiale/jiaxian/UserInfoDetailManageNew.vue +11 -11
  60. package/src/filiale/jiaxian/Userinfo.vue +426 -0
  61. package/src/filiale/jiaxian/WatchCollection.vue +54 -1
  62. package/src/filiale/jiaxian/WebAutomaticPurse.vue +348 -0
  63. package/src/filiale/jiaxian/contractSigningList.vue +149 -0
  64. package/src/filiale/jiaxian/sale.js +5 -0
  65. package/src/filiale/jinhong/AutoAccountsDetail.vue +63 -0
  66. package/src/filiale/jinhong/CardList.vue +572 -0
  67. package/src/filiale/jinhong/CardMeterCenter.vue +1 -1
  68. package/src/filiale/jinhong/CardMeterCenterInner.vue +61 -22
  69. package/src/filiale/jinhong/GarbageCharge.vue +1 -1
  70. package/src/filiale/jinhong/HandplanQuery.vue +1430 -0
  71. package/src/filiale/jinhong/IOTMeterCenterInner.vue +42 -14
  72. package/src/filiale/jinhong/InsuranceAdd.vue +27 -5
  73. package/src/filiale/jinhong/InsuranceChargesDetails.vue +11 -5
  74. package/src/filiale/jinhong/InsuranceRecord.vue +4 -5
  75. package/src/filiale/jinhong/InsuranceTemp.vue +33 -5
  76. package/src/filiale/jinhong/MachineChargeService.js +8 -0
  77. package/src/filiale/jinhong/MachineMeterCenter.vue +38 -11
  78. package/src/filiale/jinhong/ShowCardSellGasInner.vue +46 -14
  79. package/src/filiale/jinhong/Userinfo.vue +75 -1
  80. package/src/filiale/jinhong/insuranceGuanL.vue +349 -0
  81. package/src/filiale/jinhong/machineDown.vue +1205 -0
  82. package/src/filiale/jinhong/sale.js +9 -0
  83. package/src/filiale/jinhuang/UserInfoDetailManageNew.vue +259 -0
  84. package/src/filiale/jinhuang/WebHand.vue +1026 -0
  85. package/src/filiale/jinhuang/WebHandQueryUser.vue +413 -0
  86. package/src/filiale/jinhuang/cardsHand.vue +911 -0
  87. package/src/filiale/jinhuang/sale.js +8 -0
  88. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  89. package/src/filiale/lixianV3/InsuranceAdd.vue +1 -0
  90. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  91. package/src/filiale/meihekou/CardMeterCenter.vue +991 -0
  92. package/src/filiale/meihekou/ChargeManage.vue +3 -2
  93. package/src/filiale/meihekou/ChargeOper.vue +279 -169
  94. package/src/filiale/meihekou/HandManager.vue +57 -2
  95. package/src/filiale/meihekou/NoCardMeterCenter.vue +542 -0
  96. package/src/filiale/meihekou/OverUseCharge.vue +1 -1
  97. package/src/filiale/meihekou/PrintBill.vue +48 -41
  98. package/src/filiale/meihekou/ReissueBill.vue +4 -1
  99. package/src/filiale/meihekou/ShowCardSellGas.vue +935 -0
  100. package/src/filiale/meihekou/TransferManage.vue +704 -0
  101. package/src/filiale/meihekou/Userinfo.vue +233 -5
  102. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  103. package/src/filiale/meihekou/icTable.vue +233 -0
  104. package/src/filiale/meihekou/machineHand.vue +2158 -0
  105. package/src/filiale/meihekou/manualChargeCenter.vue +394 -0
  106. package/src/filiale/meihekou/meterTable.vue +220 -0
  107. package/src/filiale/meihekou/sale.js +15 -0
  108. package/src/filiale/qianneng/MeterMessage.vue +1 -1
  109. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  110. package/src/filiale/rizhao/InsuranceAdd.vue +1 -0
  111. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  112. package/src/filiale/ronghao/CardList.vue +19 -17
  113. package/src/filiale/ronghao/CardMeterChargeCancel.vue +5 -0
  114. package/src/filiale/ronghao/CardService.js +2144 -2144
  115. package/src/filiale/ronghao/ChangeMeterService.js +1 -1
  116. package/src/filiale/ronghao/ChargeList.vue +17 -17
  117. package/src/filiale/ronghao/ChargeManage.vue +325 -0
  118. package/src/filiale/ronghao/ChargeOper.vue +330 -0
  119. package/src/filiale/ronghao/FilesManageNew/UserEssentialInfoTest.vue +457 -0
  120. package/src/filiale/ronghao/FilesManageNew/UserGeneralInfoTest.vue +690 -0
  121. package/src/filiale/ronghao/HandplanQuery.vue +13 -14
  122. package/src/filiale/ronghao/IOTMeterCenter.vue +15 -6
  123. package/src/filiale/ronghao/InsuranceAdd.vue +1 -0
  124. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  125. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  126. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  127. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  128. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  129. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  130. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  131. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  132. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  133. package/src/filiale/ronghao/Upload.vue +654 -654
  134. package/src/filiale/ronghao/Userinfo.vue +18 -18
  135. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  136. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  137. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  138. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  139. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  140. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  141. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  142. package/src/filiale/ronghao/machineRefund.vue +3 -1
  143. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  144. package/src/filiale/ronghao/sale.js +11 -0
  145. package/src/filiale/ronghao/specificInformation.vue +537 -537
  146. package/src/filiale/ronghao/uploadFilesHistory.vue +214 -0
  147. package/src/filiale/ruihua/FilesManage/MeterinfoTest.vue +10 -0
  148. package/src/filiale/shanxian/components/revenue/InsuranceAdd.vue +1 -0
  149. package/src/filiale/wuan/MeterMessage.vue +1 -1
  150. package/src/filiale/yangchun/BasicLivingList.vue +281 -0
  151. package/src/filiale/yangchun/BlackList/BlackRecordQuery.vue +1 -0
  152. package/src/filiale/yangchun/CardChangeFill.vue +1 -1
  153. package/src/filiale/yangchun/ChargeList.vue +954 -954
  154. package/src/filiale/yangchun/FilesManage/UserPaperInfoTest.vue +3 -3
  155. package/src/filiale/yangchun/NewMeterList.vue +742 -0
  156. package/src/filiale/yangchun/sale.js +3 -0
  157. package/src/filiale/yuncheng/CardList.vue +1 -1
  158. package/src/filiale/yuncheng/IndustryCommerceHand.vue +1145 -0
  159. package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +794 -0
  160. package/src/filiale/yuncheng/IndustryCommerceHandManager.vue +64 -0
  161. package/src/filiale/yuncheng/InsuranceAdd.vue +1 -0
  162. package/src/filiale/yuncheng/MeterBookUser.vue +781 -0
  163. package/src/filiale/yuncheng/UserDeviceInfoTest.vue +2 -2
  164. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  165. package/src/filiale/yuncheng/industryDown.vue +1118 -0
  166. package/src/filiale/yuncheng/sale.js +11 -0
  167. package/src/filiale/yuncheng/uploadFilesHistory.vue +185 -0
  168. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  169. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  170. package/src/plugins/CardService.js +2217 -2217
  171. package/src/sale.js +3 -1
@@ -28,6 +28,12 @@
28
28
 
29
29
  <div style="float: right">
30
30
  <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
31
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
32
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
33
+ sqlurl="api/af-revenue/logic/saleExport"
34
+ :sql-name="'getChangeRecord'"
35
+ template-name='变更查询导出'
36
+ :choose-col="true"></export-excel>
31
37
  <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
32
38
  @print-data="$parent.$parent.print()" print-name="变更查询"></print-data>
33
39
  </div>
@@ -96,11 +102,13 @@
96
102
  rowsdata: [],
97
103
  fields: {'f_userinfo_code': '用户编号',
98
104
  'f_user_name': '姓名',
105
+ 'f_field_name': '修改列',
99
106
  'f_used_content': '旧修改内容',
100
107
  'f_new_content': '新修改内容',
101
108
  'f_state': '操作状态',
102
109
  'f_operator': '操作人',
103
- 'f_operate_date': '操作日期'},
110
+ 'f_operate_date': '操作日期'
111
+ },
104
112
  defaultfield: [
105
113
  'f_userinfo_code',
106
114
  'f_user_name',
@@ -112,7 +120,11 @@
112
120
  ],
113
121
  printModel: {
114
122
  rows: []
115
- }
123
+ },
124
+ other: [],
125
+ footer: [],
126
+ // 合计数据
127
+ sumsmodel: {}
116
128
  }
117
129
  },
118
130
  props: ['row'],
@@ -125,6 +137,23 @@
125
137
  // }
126
138
  },
127
139
  methods: {
140
+ getotherfooter () {
141
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
142
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
143
+ this.other = []
144
+ this.footer = []
145
+ // let exportdata = this.getCondition;
146
+ let otherInData = []
147
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
148
+ let footerData = [], exportfield = this.fields
149
+ footerData.push('合计')
150
+ let self = this
151
+ for (var field in self.sumsmodel) {
152
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
153
+ }
154
+ this.footer.push(footerData)
155
+ this.other.push(otherInData)
156
+ },
128
157
  async search () {
129
158
  this.condition = `f_userinfo_id = '${this.row.f_userinfo_id}' and f_orgid = '${this.$login.f.orgid}' and ${this.$refs.paged.$refs.criteria.condition}`
130
159
  this.model.search(this.condition, this.model)
@@ -228,6 +257,19 @@
228
257
  }
229
258
  return this.radio[index][i]
230
259
  }
260
+ },
261
+ getCondition () {
262
+ return {
263
+ condition: this.condition
264
+ }
265
+ }
266
+ },
267
+ watch: {
268
+ sumsmodel: {
269
+ handler: function (val) {
270
+ this.getotherfooter()
271
+ },
272
+ deep: true
231
273
  }
232
274
  }
233
275
  }
@@ -0,0 +1,250 @@
1
+ <template >
2
+ <div class="flex" style="justify-content: space-between;">
3
+ <div @keyup.enter="search" style="">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">开始时间</label>
10
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
11
+ class="datepicker"
12
+ condition="f_operate_date >= '{} 00:00:00' "
13
+ placeholder="起始时间"
14
+ style="width:60%"
15
+ v-model="model.f_start_date"
16
+ ></datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group" >
19
+ <label class="font_normal_body" >结束时间</label>
20
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
21
+ class="datepicker"
22
+ condition="f_operate_date <= '{} 23:59:59' "
23
+ placeholder="结束时间"
24
+ style="width:60%"
25
+ v-model="model.f_end_date"
26
+ ></datepicker>
27
+ </div>
28
+
29
+ <div style="float: right">
30
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
31
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
32
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
33
+ sqlurl="api/af-revenue/logic/saleExport"
34
+ :sql-name="'sale_FillCardQuery'"
35
+ template-name='补卡查询导出'
36
+ :choose-col="true"></export-excel>
37
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
38
+ @print-data="$parent.$parent.print()" print-name="补卡流水"></print-data>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </criteria>
43
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
44
+ <template partial='head'>
45
+ <tr>
46
+ <th><nobr>卡号</nobr></th>
47
+ <th><nobr>气表品牌</nobr></th>
48
+ <th><nobr>是否过表</nobr></th>
49
+ <th><nobr>补卡原因</nobr></th>
50
+ <th><nobr>卡费</nobr></th>
51
+ <th><nobr>操作人</nobr></th>
52
+ <th><nobr>补卡日期</nobr></th>
53
+ </tr>
54
+ </template>
55
+ <template partial='body' partial='list' v-ref:grid>
56
+ <tr >
57
+ <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
58
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
59
+ <td style="text-align: center;"><nobr>{{row.f_ispick_table}}</nobr></td>
60
+ <td style="text-align: center;"><nobr>{{row.f_reason}}</nobr></td>
61
+ <td style="text-align: center;"><nobr>{{row.f_cardfees}}</nobr></td>
62
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
63
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
64
+ </tr>
65
+ </template>
66
+ <template partial='foot'></template>
67
+ </data-grid>
68
+ </criteria-paged>
69
+ </div>
70
+ </div>
71
+ </template>
72
+
73
+ <script>
74
+ import {HttpResetClass, PagedList} from 'vue-client'
75
+
76
+ export default {
77
+ title: '收费',
78
+ data () {
79
+ return {
80
+ condition: '1=1',
81
+ model: new PagedList('api/af-revenue/sql/sale_FillCardQuery', 20),
82
+ // 控制单选
83
+ radio: [],
84
+ // 选中的页
85
+ all: [],
86
+ // row数据
87
+ rowsdata: [],
88
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
89
+ fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_card_id': '卡号', 'f_meter_brand': '气表品牌', 'f_reason': '补卡原因', 'f_cardfees': '卡费', 'f_operate_date': '补卡日期'},
90
+ defaultfield: [
91
+ 'f_userinfo_code', 'f_user_name', 'f_card_id', 'f_meter_brand', 'f_reason', 'f_cardfees', 'f_operate_date'
92
+ ],
93
+ printModel: {
94
+ rows: []
95
+ },
96
+ other: [],
97
+ footer: [],
98
+ // 合计数据
99
+ sumsmodel: {}
100
+ }
101
+ },
102
+ props: ['row'],
103
+ ready () {
104
+ this.search()
105
+ },
106
+ methods: {
107
+ getotherfooter () {
108
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
109
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
110
+ this.other = []
111
+ this.footer = []
112
+ // let exportdata = this.getCondition;
113
+ let otherInData = []
114
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
115
+ let footerData = [], exportfield = this.fields
116
+ footerData.push('合计')
117
+ let self = this
118
+ for (var field in self.sumsmodel) {
119
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
120
+ }
121
+ this.footer.push(footerData)
122
+ this.other.push(otherInData)
123
+ },
124
+ async search () {
125
+ if (this.row.f_meter_type.includes('卡表')) {
126
+ this.condition = `${this.searchValue} = '${this.row[this.searchValue]}' `
127
+ if (this.$refs.paged.$refs.criteria.condition) {
128
+ this.condition += `and ${this.$refs.paged.$refs.criteria.condition}`
129
+ }
130
+ this.model.search(this.condition, this.model)
131
+ let http = new HttpResetClass()
132
+ let res = await http.load('POST', 'api/af-revenue/sql/sale_FillCardQuery', {
133
+ data: {
134
+ condition: this.condition
135
+ }
136
+ }, {resolveMsg: null, rejectMsg: null})
137
+ this.printModel.rows = res.data
138
+ }
139
+ },
140
+ // 多选框初始化
141
+ selectInit () {
142
+ this.rowsdata = []
143
+ this.all = []
144
+ this.radio = []
145
+ },
146
+ print () {
147
+ this.selectInit()
148
+ },
149
+ select () {
150
+ let index = this.model.pageIndex - 1
151
+ if (!this.radio[index]) {
152
+ this.radio.$set(index, [])
153
+ }
154
+ if (this.all[index]) {
155
+ // 数据
156
+ this.rowsdata[index] = Object.assign([], this.model.rows)
157
+ // 勾选
158
+ for (var i = 0; i < this.model.rows.length; i++) {
159
+ this.radio[index].$set(i, true)
160
+ }
161
+ } else {
162
+ // 数据
163
+ this.rowsdata[index] = []
164
+ // 不勾选
165
+ for (var i = 0; i < this.model.rows.length; i++) {
166
+ this.radio[index].$set(i, false)
167
+ }
168
+ }
169
+ let z = 0
170
+ for (let i = 0; i < this.all.length; i++) {
171
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
172
+ this.printModel.rows[z++] = this.rowsdata[i][j]
173
+ }
174
+ }
175
+ },
176
+ selectOne (event, row, i) {
177
+ let index = this.model.pageIndex - 1
178
+ if (!this.rowsdata[index]) {
179
+ this.rowsdata[index] = []
180
+ }
181
+ if (!this.radio[index]) {
182
+ this.radio.$set(index, [])
183
+ }
184
+ if (event.target.checked) {
185
+ // 数据
186
+ this.rowsdata[index][i] = row
187
+ // 勾选
188
+ this.radio[index].$set(i, true)
189
+ // 判断是否全部选中
190
+ var allState = true
191
+ if (this.model.rows.length != this.radio[index].length) {
192
+ allState = false
193
+ }
194
+ for (var state of this.radio[index]) {
195
+ if (!state) {
196
+ allState = false
197
+ }
198
+ }
199
+ if (allState) {
200
+ this.all.$set(index, true)
201
+ } else {
202
+ this.all.$set(index, false)
203
+ }
204
+ } else {
205
+ // 数据
206
+ this.rowsdata[index][i] = []
207
+ // 不勾选
208
+ this.radio[index].$set(i, false)
209
+ // 任意取消一个则全选状态设为false
210
+ this.all.$set(index, false)
211
+ }
212
+ let z = 0
213
+ this.printModel.rows = []
214
+ for (let i = 0; i < this.all.length; i++) {
215
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
216
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
217
+ this.printModel.rows[z++] = this.rowsdata[i][j]
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ computed: {
224
+ ischecked () {
225
+ return function (index, i) {
226
+ if (!this.radio[index]) {
227
+ return false
228
+ }
229
+ return this.radio[index][i]
230
+ }
231
+ },
232
+ fillcardType () {
233
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡类型')]
234
+ },
235
+ getCondition () {
236
+ return {
237
+ condition: this.condition
238
+ }
239
+ }
240
+ },
241
+ watch: {
242
+ sumsmodel: {
243
+ handler: function (val) {
244
+ this.getotherfooter()
245
+ },
246
+ deep: true
247
+ }
248
+ }
249
+ }
250
+ </script>
@@ -0,0 +1,270 @@
1
+ <template >
2
+ <div class="flex" style="justify-content: space-between;">
3
+ <div @keyup.enter="search" style="">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">开始时间</label>
10
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
11
+ class="datepicker"
12
+ condition="f.f_operate_date >= '{} 00:00:00' "
13
+ placeholder="起始时间"
14
+ style="width:60%"
15
+ v-model="model.f_start_date"
16
+ ></datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group" >
19
+ <label class="font_normal_body" >结束时间</label>
20
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
21
+ class="datepicker"
22
+ condition="f.f_type <= '{} 23:59:59' "
23
+ placeholder="结束时间"
24
+ style="width:60%"
25
+ v-model="model.f_end_date"
26
+ ></datepicker>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">补气类型</label>
30
+ <v-select :options='$parent.$parent.fillgasType' :value.sync="model.f_type "
31
+ close-on-select
32
+ condition="f.f_type ='{}'"
33
+ placeholder='补气类型'
34
+ v-model="model.f_type "></v-select>
35
+ </div>
36
+ <div style="float: right">
37
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
38
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
39
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
40
+ sqlurl="api/af-revenue/logic/saleExport"
41
+ :sql-name="'sale_FillGasQuery'"
42
+ template-name='补气查询导出'
43
+ :choose-col="true"></export-excel>
44
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
45
+ @print-data="$parent.$parent.print()" print-name="补气流水"></print-data>
46
+ </div>
47
+
48
+
49
+ </div>
50
+ </div>
51
+ </criteria>
52
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
53
+ <template partial='head'>
54
+ <tr>
55
+ <th><nobr>补气量</nobr></th>
56
+ <th><nobr>补气金额</nobr></th>
57
+ <th><nobr>补气类型</nobr></th>
58
+ <th><nobr>补气原因</nobr></th>
59
+ <th><nobr>操作人</nobr></th>
60
+ <th><nobr>补气日期</nobr></th>
61
+ </tr>
62
+ </template>
63
+ <template partial='body' partial='list' v-ref:grid>
64
+ <tr >
65
+ <td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
66
+ <td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
67
+ <td style="text-align: center;"><nobr>{{row.f_type }}</nobr></td>
68
+ <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
69
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
70
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
71
+ </tr>
72
+ </template>
73
+ <template partial='foot'></template>
74
+ </data-grid>
75
+ </criteria-paged>
76
+ </div>
77
+ <table class="table-hover">
78
+ <tr class="table-bordered" style="position: relative">
79
+ <td
80
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
81
+ 汇总信息
82
+ </td>
83
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
84
+ 气量合计:&emsp;{{model.sums.f_pregas}}
85
+ </td>
86
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
87
+ 金额合计:&emsp;{{model.sums.f_preamount}}
88
+ </td>
89
+ </tr>
90
+ </table>
91
+ </div>
92
+ </template>
93
+
94
+ <script>
95
+ import {HttpResetClass, PagedList} from 'vue-client'
96
+
97
+ export default {
98
+ title: '收费',
99
+ data () {
100
+ return {
101
+ condition: '1=1',
102
+ model: new PagedList('api/af-revenue/sql/sale_FillGasQuery', 20, {}, {
103
+ f_pregas: 0,
104
+ f_preamount: 0
105
+ }),
106
+ // 控制单选
107
+ radio: [],
108
+ // 选中的页
109
+ all: [],
110
+ // row数据
111
+ rowsdata: [],
112
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
113
+ fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_pregas': '补气量', 'f_preamount': '补气金额', 'f_type ': '补气类型', 'f_operate_date': '补气日期'},
114
+ defaultfield: [
115
+ 'f_userinfo_code', 'f_user_name', 'f_pregas', 'f_preamount', 'f_type ', 'f_operate_date'
116
+ ],
117
+ printModel: {
118
+ rows: []
119
+ },
120
+ other: [],
121
+ footer: [],
122
+ // 合计数据
123
+ sumsmodel: {}
124
+ }
125
+ },
126
+ props: ['row'],
127
+ ready () {
128
+ this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
129
+ this.$refs.paged.$refs.criteria.search()
130
+ },
131
+ methods: {
132
+ getotherfooter () {
133
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
134
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
135
+ this.other = []
136
+ this.footer = []
137
+ // let exportdata = this.getCondition;
138
+ let otherInData = []
139
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
140
+ let footerData = [], exportfield = this.fields
141
+ footerData.push('合计')
142
+ let self = this
143
+ for (var field in self.sumsmodel) {
144
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
145
+ }
146
+ this.footer.push(footerData)
147
+ this.other.push(otherInData)
148
+ },
149
+ async search () {
150
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f.${this.searchValue} = '${this.row[this.searchValue]}'`
151
+ this.model.search(this.condition, this.model)
152
+ let http = new HttpResetClass()
153
+ let res = await http.load('POST', 'api/af-revenue/sql/sale_FillGasQuery', {
154
+ data: {
155
+ condition: this.condition
156
+ }
157
+ }, {resolveMsg: null, rejectMsg: null})
158
+ this.printModel.rows = res.data
159
+ },
160
+ // 多选框初始化
161
+ selectInit () {
162
+ this.rowsdata = []
163
+ this.all = []
164
+ this.radio = []
165
+ },
166
+ print () {
167
+ this.selectInit()
168
+ },
169
+ select () {
170
+ let index = this.model.pageIndex - 1
171
+ if (!this.radio[index]) {
172
+ this.radio.$set(index, [])
173
+ }
174
+ if (this.all[index]) {
175
+ // 数据
176
+ this.rowsdata[index] = Object.assign([], this.model.rows)
177
+ // 勾选
178
+ for (var i = 0; i < this.model.rows.length; i++) {
179
+ this.radio[index].$set(i, true)
180
+ }
181
+ } else {
182
+ // 数据
183
+ this.rowsdata[index] = []
184
+ // 不勾选
185
+ for (var i = 0; i < this.model.rows.length; i++) {
186
+ this.radio[index].$set(i, false)
187
+ }
188
+ }
189
+ let z = 0
190
+ for (let i = 0; i < this.all.length; i++) {
191
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
192
+ this.printModel.rows[z++] = this.rowsdata[i][j]
193
+ }
194
+ }
195
+ },
196
+ selectOne (event, row, i) {
197
+ let index = this.model.pageIndex - 1
198
+ if (!this.rowsdata[index]) {
199
+ this.rowsdata[index] = []
200
+ }
201
+ if (!this.radio[index]) {
202
+ this.radio.$set(index, [])
203
+ }
204
+ if (event.target.checked) {
205
+ // 数据
206
+ this.rowsdata[index][i] = row
207
+ // 勾选
208
+ this.radio[index].$set(i, true)
209
+ // 判断是否全部选中
210
+ var allState = true
211
+ if (this.model.rows.length != this.radio[index].length) {
212
+ allState = false
213
+ }
214
+ for (var state of this.radio[index]) {
215
+ if (!state) {
216
+ allState = false
217
+ }
218
+ }
219
+ if (allState) {
220
+ this.all.$set(index, true)
221
+ } else {
222
+ this.all.$set(index, false)
223
+ }
224
+ } else {
225
+ // 数据
226
+ this.rowsdata[index][i] = []
227
+ // 不勾选
228
+ this.radio[index].$set(i, false)
229
+ // 任意取消一个则全选状态设为false
230
+ this.all.$set(index, false)
231
+ }
232
+ let z = 0
233
+ this.printModel.rows = []
234
+ for (let i = 0; i < this.all.length; i++) {
235
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
236
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
237
+ this.printModel.rows[z++] = this.rowsdata[i][j]
238
+ }
239
+ }
240
+ }
241
+ }
242
+ },
243
+ computed: {
244
+ ischecked () {
245
+ return function (index, i) {
246
+ if (!this.radio[index]) {
247
+ return false
248
+ }
249
+ return this.radio[index][i]
250
+ }
251
+ },
252
+ fillgasType () {
253
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
254
+ },
255
+ getCondition () {
256
+ return {
257
+ condition: this.condition
258
+ }
259
+ }
260
+ },
261
+ watch: {
262
+ sumsmodel: {
263
+ handler: function (val) {
264
+ this.getotherfooter()
265
+ },
266
+ deep: true
267
+ }
268
+ }
269
+ }
270
+ </script>