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
@@ -0,0 +1,321 @@
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
+
7
+ <div class="form-horizontal select-overspread container-fluid auto " novalidate partial>
8
+ <div class="row">
9
+
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">开始时间</label>
12
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
13
+ class="datepicker"
14
+ condition="f_operate_date >= '{} 00:00:00' "
15
+ placeholder="起始时间"
16
+ style="width:60%"
17
+ v-model="model.f_start_date"
18
+ ></datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group" >
21
+ <label class="font_normal_body" >结束时间</label>
22
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
23
+ class="datepicker"
24
+ condition="f_operate_date <= '{} 23:59:59' "
25
+ placeholder="结束时间"
26
+ style="width:60%"
27
+ v-model="model.f_end_date"
28
+ ></datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">是否有效</label>
32
+ <v-select :value.sync="model.f_state" v-model='model.f_state'
33
+ style="width:60%"
34
+ :options='$parent.$parent.isstates' placeholder='是否有效'
35
+ close-on-select
36
+ condition="f_state = '{}'"></v-select>
37
+ </div>
38
+ <div class="col-sm-2 form-group">
39
+ <label class="font_normal_body">表具状态</label>
40
+ <v-select :value.sync="model.f_table_state" v-model='model.f_table_state'
41
+ style="width:60%"
42
+ :options='$parent.$parent.istablestates' placeholder='表具状态'
43
+ close-on-select
44
+ condition="f_table_state = '{}'"></v-select>
45
+ </div>
46
+
47
+
48
+ <div style="float: right">
49
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
50
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
51
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
52
+ sqlurl="api/af-revenue/logic/saleExport"
53
+ :sql-name="'sale_RecordQuery'"
54
+ template-name='流水查询导出'
55
+ :choose-col="true"></export-excel>
56
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :printview="true" :is-selected="true" :model="$parent.$parent.model"
57
+ @print-close="$parent.$parent.print()" @print-data="$parent.$parent.print()" print-name="购气流水"></print-data>
58
+ </div>
59
+ </div>
60
+
61
+ </div>
62
+ </criteria>
63
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
64
+ <template partial='head'>
65
+ <tr>
66
+ <th><nobr>用户编号</nobr></th>
67
+ <th><nobr>姓名</nobr></th>
68
+ <th><nobr>住址</nobr></th>
69
+ <th><nobr>卡号</nobr></th>
70
+ <th><nobr>气量</nobr></th>
71
+ <th><nobr>单价</nobr></th>
72
+ <th><nobr>应交</nobr></th>
73
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>上期结余</nobr></th>
74
+ <th><nobr>收款</nobr></th>
75
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>本期结余</nobr></th>
76
+ <th><nobr>操作类型</nobr></th>
77
+ <th><nobr>操作员 </nobr></th>
78
+ <th><nobr>操作时间 </nobr></th>
79
+ <th><nobr>状态 </nobr></th>
80
+ <th><nobr>备注</nobr></th>
81
+ </tr>
82
+ </template>
83
+ <template partial='body' partial='list' v-ref:grid>
84
+ <tr >
85
+ <td style="text-align:center">{{row.f_userinfo_code}}</td>
86
+ <td style="text-align:center">{{row.f_user_name}}</td>
87
+ <td style="text-align:center">{{row.f_address}}</td>
88
+ <td style="text-align:center">{{row.f_card_id}}</td>
89
+ <td style="text-align:center">{{row.gas}}</td>
90
+ <td style="text-align:center">{{row.price}}</td>
91
+ <td style="text-align:center">{{row.fee}}</td>
92
+ <td style="text-align:center;white-space:nowrap;" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_balance}}</td>
93
+ <td style="text-align:center">{{row.f_collection}}</td>
94
+ <td style="text-align:center;white-space:nowrap;" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_curbalance}}</td>
95
+ <td style="text-align:center">{{row.type}}</td>
96
+ <td style="text-align:center">{{row.f_operator}}</td>
97
+ <td style="text-align:center">{{row.f_operate_date}}</td>
98
+ <td style="text-align:center">{{row.f_state}}</td>
99
+ <td style="text-align:center">{{row.note}}</td>
100
+ </tr>
101
+ </template>
102
+ <template partial='foot'></template>
103
+ </data-grid>
104
+ </criteria-paged>
105
+ </div>
106
+ <table class="table-hover">
107
+ <tr class="table-bordered" style="position: relative">
108
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
109
+ 汇总信息
110
+ </td>
111
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
112
+ 气量合计:&emsp;{{model.sums.gas}}
113
+ </td>
114
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
115
+ 金额合计:&emsp;{{model.sums.fee}}
116
+ </td>
117
+ </tr>
118
+ </table>
119
+ </div>
120
+ </template>
121
+
122
+ <script>
123
+ import {HttpResetClass, PagedList} from 'vue-client'
124
+
125
+ export default {
126
+ title: '操作查询',
127
+ data () {
128
+ return {
129
+ condition: '1=1',
130
+ model: new PagedList('api/af-revenue/sql/sale_RecordQuery', 20, {}, {
131
+ fee: 0,
132
+ gas: 0
133
+ }),
134
+ f_calculation: '',
135
+ isstates: this.$appdata.getParam('是否有效') ? [{
136
+ label: '全部',
137
+ value: ''
138
+ }, ...this.$appdata.getParam('是否有效')] : [],
139
+ istablestates: this.$appdata.getParam('表具状态') ? [{
140
+ label: '全部',
141
+ value: ''
142
+ }, ...this.$appdata.getParam('表具状态')] : [],
143
+ // 控制单选
144
+ radio: [],
145
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
146
+ // 选中的页
147
+ all: [],
148
+ // row数据
149
+ rowsdata: [],
150
+ fields: {
151
+ 'f_userinfo_code': '客户编号',
152
+ 'f_user_name': '客户姓名',
153
+ 'f_address': '地址',
154
+ 'f_card_id': '卡号',
155
+ 'fee': '金额',
156
+ 'gas': '气量',
157
+ 'price': '单价',
158
+ 'f_collection': '收款',
159
+ 'type': '类型',
160
+ 'f_operator': '操作员',
161
+ 'f_operate_date': '操作时间',
162
+ 'f_state': '状态',
163
+ 'note': '备注'
164
+ },
165
+ defaultfield: [
166
+ 'f_userinfo_code', 'f_user_name', 'fee', 'gas', 'type', 'f_operate_date'
167
+ ],
168
+ printModel: {
169
+ rows: []
170
+ },
171
+ other: [],
172
+ footer: [],
173
+ // 合计数据
174
+ sumsmodel: {}
175
+ }
176
+ },
177
+ props: ['row'],
178
+ ready () {
179
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
180
+ this.f_calculation = this.row.f_calculation
181
+ this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
182
+ console.log('########f_calculation', this.f_calculation)
183
+ this.$refs.paged.$refs.criteria.search()
184
+ },
185
+ methods: {
186
+ getotherfooter () {
187
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
188
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
189
+ this.other = []
190
+ this.footer = []
191
+ // let exportdata = this.getCondition;
192
+ let otherInData = []
193
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
194
+ let footerData = [], exportfield = this.fields
195
+ footerData.push('合计')
196
+ let self = this
197
+ for (var field in self.sumsmodel) {
198
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
199
+ }
200
+ this.footer.push(footerData)
201
+ this.other.push(otherInData)
202
+ },
203
+ async search () {
204
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
205
+ this.model.search(this.condition, this.model)
206
+ let http = new HttpResetClass()
207
+ let res = await http.load('POST', 'api/af-revenue/sql/sale_RecordQuery', {
208
+ data: {
209
+ condition: this.condition
210
+ }
211
+ }, {resolveMsg: null, rejectMsg: null})
212
+ this.printModel.rows = res.data
213
+ },
214
+ // 多选框初始化
215
+ selectInit () {
216
+ this.rowsdata = []
217
+ this.all = []
218
+ this.radio = []
219
+ },
220
+ print () {
221
+ this.selectInit()
222
+ },
223
+ select () {
224
+ let index = this.model.pageIndex - 1
225
+ if (!this.radio[index]) {
226
+ this.radio.$set(index, [])
227
+ }
228
+ if (this.all[index]) {
229
+ // 数据
230
+ this.rowsdata[index] = Object.assign([], this.model.rows)
231
+ // 勾选
232
+ for (var i = 0; i < this.model.rows.length; i++) {
233
+ this.radio[index].$set(i, true)
234
+ }
235
+ } else {
236
+ // 数据
237
+ this.rowsdata[index] = []
238
+ // 不勾选
239
+ for (var i = 0; i < this.model.rows.length; i++) {
240
+ this.radio[index].$set(i, false)
241
+ }
242
+ }
243
+ let z = 0
244
+ this.printModel.rows = []
245
+ for (let i = 0; i < this.all.length; i++) {
246
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
247
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
248
+ this.printModel.rows[z++] = this.rowsdata[i][j]
249
+ }
250
+ }
251
+ }
252
+ },
253
+ selectOne (event, row, i) {
254
+ let index = this.model.pageIndex - 1
255
+ if (!this.rowsdata[index]) {
256
+ this.rowsdata[index] = []
257
+ }
258
+ if (!this.radio[index]) {
259
+ this.radio.$set(index, [])
260
+ }
261
+ if (event.target.checked) {
262
+ // 数据
263
+ this.rowsdata[index][i] = row
264
+ // 勾选
265
+ this.radio[index].$set(i, true)
266
+ // 判断是否全部选中
267
+ var allState = true
268
+ if (this.model.rows.length != this.radio[index].length) {
269
+ allState = false
270
+ }
271
+ for (var state of this.radio[index]) {
272
+ if (!state) {
273
+ allState = false
274
+ }
275
+ }
276
+ this.all.$set(index, allState)
277
+ } else {
278
+ // 数据
279
+ this.rowsdata[index][i] = []
280
+ // 不勾选
281
+ this.radio[index].$set(i, false)
282
+ // 任意取消一个则全选状态设为false
283
+ this.all.$set(index, false)
284
+ }
285
+ let z = 0
286
+ this.printModel.rows = []
287
+ for (let i = 0; i < this.all.length; i++) {
288
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
289
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
290
+ this.printModel.rows[z++] = this.rowsdata[i][j]
291
+ }
292
+ }
293
+ }
294
+ }
295
+ },
296
+ computed: {
297
+ ischecked () {
298
+ return function (index, i) {
299
+ if (!this.radio[index]) {
300
+ return false
301
+ }
302
+ return this.radio[index][i]
303
+ }
304
+ },
305
+ getCondition () {
306
+ return {
307
+ condition: this.condition
308
+ }
309
+ }
310
+ },
311
+ watch: {
312
+ sumsmodel: {
313
+ handler: function (val) {
314
+ this.getotherfooter()
315
+ },
316
+ deep: true
317
+ }
318
+ }
319
+ }
320
+ </script>
321
+
@@ -0,0 +1,181 @@
1
+ <template >
2
+ <div class="flex" style="justify-content: space-between;">
3
+ <div @keyup.enter="search">
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" width="100%">
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
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">缴费状态</label>
30
+ <v-select :value.sync="model.f_state" v-model='model.f_state'
31
+ style="width:60%"
32
+ :options='$parent.$parent.jiaofeistates' placeholder='缴费状态'
33
+ close-on-select
34
+ condition="f_state = '{}'"></v-select>
35
+ </div>
36
+
37
+ <div style="float: right">
38
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
39
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
40
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
41
+ sqlurl="api/af-revenue/logic/saleExport"
42
+ :sql-name="'sale_Repurchase'"
43
+ template-name='累购查询导出'
44
+ :choose-col="true"></export-excel>
45
+ <!-- <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"-->
46
+ <!-- @print-data="$parent.$parent.print()" print-name="购气流水"></print-data>-->
47
+ </div>
48
+ </div>
49
+ </div>
50
+
51
+
52
+ </criteria>
53
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
54
+ <template partial='head'>
55
+ <tr>
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
+ <th><nobr>网点</nobr></th>
62
+ <th><nobr>操作人</nobr></th>
63
+ </tr>
64
+ </template>
65
+ <template partial='body' partial='list' v-ref:grid>
66
+ <tr >
67
+ <td style="text-align:center">{{row.f_type}}</td>
68
+ <td style="text-align:center">{{row.f_pregas}}</td>
69
+ <td style="text-align:center">{{row.f_preamount}}</td>
70
+ <td style="text-align:center">{{row.f_state}}</td>
71
+ <td style="text-align:center">{{row.f_operate_date}}</td>
72
+ <td style="text-align:center">{{row.f_depname}}</td>
73
+ <td style="text-align:center">{{row.f_operator}}</td>
74
+ </tr>
75
+ </template>
76
+ <template partial='foot'></template>
77
+ </data-grid>
78
+ </criteria-paged>
79
+ </div>
80
+ <table class="table-hover">
81
+ <tr class="table-bordered" style="position: relative">
82
+ <td
83
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
84
+ 汇总信息
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_pregas}}
88
+ </td>
89
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
90
+ 金额合计:&emsp;{{model.sums.f_preamount}}
91
+ </td>
92
+ </tr>
93
+ </table>
94
+
95
+ </div>
96
+ </template>
97
+
98
+ <script>
99
+ import {HttpResetClass, PagedList} from 'vue-client'
100
+ import co from 'co'
101
+
102
+ export default {
103
+ title: '累购查询',
104
+ data () {
105
+ return {
106
+ condition: '1=1',
107
+ model: new PagedList('api/af-revenue/sql/sale_Repurchase', 20, {}, {
108
+ f_preamount: 0,
109
+ f_pregas: 0
110
+ }),
111
+ jiaofeistates: this.$appdata.getParam('缴费状态') ? [{
112
+ label: '全部',
113
+ value: ''
114
+ }, ...this.$appdata.getParam('缴费状态')] : [],
115
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
116
+ fields: {
117
+ 'f_type': '操作类型',
118
+ 'f_pregas': '气量',
119
+ 'f_preamount': '金额',
120
+ 'f_state': '状态',
121
+ 'f_operate_date,': '时间',
122
+ 'f_depname': '网点',
123
+ 'f_operator': '操作人'
124
+ },
125
+ defaultfield: [
126
+ 'f_type', 'f_pregas', 'f_preamount', 'f_state', 'f_operate_date', 'f_depname', 'f_operator'
127
+ ],
128
+ other: [],
129
+ footer: [],
130
+ // 合计数据
131
+ sumsmodel: {}
132
+ }
133
+ },
134
+ props: ['row'],
135
+ ready () {
136
+ this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
137
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
138
+ this.$refs.paged.$refs.criteria.search()
139
+ },
140
+ methods: {
141
+ getotherfooter () {
142
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
143
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
144
+ this.other = []
145
+ this.footer = []
146
+ // let exportdata = this.getCondition;
147
+ let otherInData = []
148
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
149
+ let footerData = [], exportfield = this.fields
150
+ footerData.push('合计')
151
+ let self = this
152
+ for (var field in self.sumsmodel) {
153
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
154
+ }
155
+ this.footer.push(footerData)
156
+ this.other.push(otherInData)
157
+ },
158
+ async search () {
159
+ console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
160
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
161
+ this.model.search(this.condition, this.model)
162
+ }
163
+ },
164
+ computed: {
165
+ getCondition () {
166
+ return {
167
+ condition: this.condition
168
+ }
169
+ }
170
+ },
171
+ watch: {
172
+ sumsmodel: {
173
+ handler: function (val) {
174
+ this.getotherfooter()
175
+ },
176
+ deep: true
177
+ }
178
+ }
179
+ }
180
+ </script>
181
+