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,305 @@
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
+
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">开始时间</label>
11
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
12
+ class="datepicker"
13
+ condition="f_operate_date >= '{} 00:00:00' "
14
+ placeholder="起始时间"
15
+ style="width:60%"
16
+ v-model="model.f_start_date"
17
+ ></datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group" >
20
+ <label class="font_normal_body" >结束时间</label>
21
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
22
+ class="datepicker"
23
+ condition="f_operate_date <= '{} 23:59:59' "
24
+ placeholder="结束时间"
25
+ style="width:60%"
26
+ v-model="model.f_end_date"
27
+ ></datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">是否有效</label>
31
+ <v-select :value.sync="model.f_state" v-model='model.f_state'
32
+ style="width:60%"
33
+ :options='$parent.$parent.isstates' placeholder='是否有效'
34
+ close-on-select
35
+ condition="f_state = '{}'"></v-select>
36
+ </div>
37
+
38
+ <div style="float: right">
39
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
40
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
41
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
42
+ sqlurl="api/af-revenue/logic/saleExport"
43
+ :sql-name="'sale_OtherChargeQuery'"
44
+ template-name='其他收费查询导出'
45
+ :choose-col="true"></export-excel>
46
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
47
+ @print-data="$parent.$parent.print()" print-name="其他收费流水"></print-data>
48
+ </div>
49
+ </div>
50
+
51
+ </div>
52
+ </criteria>
53
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
54
+ <template partial='head'>
55
+ <tr>
56
+
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
+ <th><nobr>操作员</nobr></th>
64
+ <th><nobr>操作日期</nobr></th>
65
+ <th><nobr>状态</nobr></th>
66
+ <th><nobr>备注</nobr></th>
67
+ </tr>
68
+ </template>
69
+ <template partial='body' partial='list' v-ref:grid>
70
+ <tr >
71
+ <th style="text-align:center">{{row.f_brand_spec}}</th>
72
+ <th style="text-align:center">{{row.f_typename}}</th>
73
+ <th style="text-align:center">{{row.f_typenumber}}</th>
74
+ <th style="text-align:center">{{row.f_number}}</th>
75
+ <th style="text-align:center">{{row.f_unitprice}}</th>
76
+ <th style="text-align:center">{{row.f_unitprice*row.f_number}}</th>
77
+ <th style="text-align:center">{{row.f_operator}}</th>
78
+ <th style="text-align:center">{{row.f_operate_date}}</th>
79
+ <td style="text-align: center;">{{row.f_state}}</td>
80
+ <th style="text-align:center">{{row.f_comments}}</th>
81
+ </tr>
82
+ </template>
83
+ <template partial='foot'></template>
84
+ </data-grid>
85
+ </criteria-paged>
86
+
87
+ </div>
88
+ <table class="table-hover">
89
+ <tr class="table-bordered" style="position: relative">
90
+ <td
91
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
92
+ 汇总信息
93
+ </td>
94
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
95
+ 金额合计:&emsp;{{model.sums.f_collection}}
96
+ </td>
97
+ </tr>
98
+ </table>
99
+ </div>
100
+ <other-charge-query-user-detail v-if="showdetail" :otherchargeid="otherchargeid" :showdetail.sync="showdetail"></other-charge-query-user-detail>
101
+ </template>
102
+
103
+ <script>
104
+ import {HttpResetClass, PagedList} from 'vue-client'
105
+ import OtherChargeQueryUserDetail from './../../components/common/userinfo_detail/ic_detail/OtherChargeQueryUserDetail'
106
+
107
+ export default {
108
+ title: '其他收费查询',
109
+ components: {
110
+ OtherChargeQueryUserDetail
111
+ },
112
+ data () {
113
+ return {
114
+ condition: '1=1',
115
+ model: new PagedList('api/af-revenue/sql/sale_OtherChargeQuery', 20, {}, {
116
+ f_collection: 0
117
+ }),
118
+ isstates: this.$appdata.getParam('是否有效') ? [{
119
+ label: '全部',
120
+ value: ''
121
+ }, ...this.$appdata.getParam('是否有效')] : [],
122
+ // 控制单选
123
+ radio: [],
124
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
125
+ showdetail: false,
126
+ otherchargeid: '',
127
+ // 选中的页
128
+ all: [],
129
+ // row数据
130
+ rowsdata: [],
131
+ // fields:{'f_brand_spec': '品牌','f_number': '数量','f_unitprice': '单价','f_collection':'收款','f_operator':'操作员', 'f_operate_date':'操作日期'},
132
+ fields: {
133
+ 'f_userinfo_code': '客户编号',
134
+ 'f_user_name': '客户姓名',
135
+ 'f_brand_spec': '品牌',
136
+ 'f_collection': '收款',
137
+ 'f_operator': '操作员',
138
+ 'f_operate_date': '操作日期',
139
+ 'f_typename': '品名规格',
140
+ 'f_typenumber': '型号',
141
+ 'f_number': '数量',
142
+ 'f_unitprice': '单价',
143
+ 'f_state': '状态',
144
+ 'f_comments': '备注',
145
+ },
146
+ defaultfield: [
147
+ // "f_brand_spec","f_number","f_unitprice",'f_collection','f_operator',"f_operate_date"
148
+ 'f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_collection', 'f_operator', 'f_operate_date'
149
+ ],
150
+ printModel: {
151
+ rows: []
152
+ },
153
+ other: [],
154
+ footer: [],
155
+ // 合计数据
156
+ sumsmodel: {}
157
+ }
158
+ },
159
+ props: ['row'],
160
+ ready () {
161
+ this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
162
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
163
+ this.$refs.paged.$refs.criteria.search()
164
+ },
165
+ methods: {
166
+ getotherfooter () {
167
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
168
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
169
+ this.other = []
170
+ this.footer = []
171
+ // let exportdata = this.getCondition;
172
+ let otherInData = []
173
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
174
+ let footerData = [], exportfield = this.fields
175
+ footerData.push('合计')
176
+ let self = this
177
+ for (var field in self.sumsmodel) {
178
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
179
+ }
180
+ this.footer.push(footerData)
181
+ this.other.push(otherInData)
182
+ },
183
+ async search () {
184
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
185
+ this.model.search(this.condition, this.model)
186
+ let http = new HttpResetClass()
187
+ let res = await http.load('POST', 'api/af-revenue/sql/sale_OtherChargeQuery', {
188
+ data: {
189
+ condition: this.condition
190
+ }
191
+ }, {resolveMsg: null, rejectMsg: null})
192
+ this.printModel.rows = res.data
193
+ },
194
+ // 多选框初始化
195
+ selectInit () {
196
+ this.rowsdata = []
197
+ this.all = []
198
+ this.radio = []
199
+ },
200
+ print () {
201
+ this.selectInit()
202
+ },
203
+ select () {
204
+ let index = this.model.pageIndex - 1
205
+ if (!this.radio[index]) {
206
+ this.radio.$set(index, [])
207
+ }
208
+ if (this.all[index]) {
209
+ // 数据
210
+ this.rowsdata[index] = Object.assign([], this.model.rows)
211
+ // 勾选
212
+ for (var i = 0; i < this.model.rows.length; i++) {
213
+ this.radio[index].$set(i, true)
214
+ }
215
+ } else {
216
+ // 数据
217
+ this.rowsdata[index] = []
218
+ // 不勾选
219
+ for (var i = 0; i < this.model.rows.length; i++) {
220
+ this.radio[index].$set(i, false)
221
+ }
222
+ }
223
+ let z = 0
224
+ for (let i = 0; i < this.all.length; i++) {
225
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
226
+ this.printModel.rows[z++] = this.rowsdata[i][j]
227
+ }
228
+ }
229
+ },
230
+ selectOne (event, row, i) {
231
+ let index = this.model.pageIndex - 1
232
+ if (!this.rowsdata[index]) {
233
+ this.rowsdata[index] = []
234
+ }
235
+ if (!this.radio[index]) {
236
+ this.radio.$set(index, [])
237
+ }
238
+ if (event.target.checked) {
239
+ // 数据
240
+ this.rowsdata[index][i] = row
241
+ // 勾选
242
+ this.radio[index].$set(i, true)
243
+ // 判断是否全部选中
244
+ var allState = true
245
+ if (this.model.rows.length != this.radio[index].length) {
246
+ allState = false
247
+ }
248
+ for (var state of this.radio[index]) {
249
+ if (!state) {
250
+ allState = false
251
+ }
252
+ }
253
+ if (allState) {
254
+ this.all.$set(index, true)
255
+ } else {
256
+ this.all.$set(index, false)
257
+ }
258
+ } else {
259
+ // 数据
260
+ this.rowsdata[index][i] = []
261
+ // 不勾选
262
+ this.radio[index].$set(i, false)
263
+ // 任意取消一个则全选状态设为false
264
+ this.all.$set(index, false)
265
+ }
266
+ let z = 0
267
+ this.printModel.rows = []
268
+ for (let i = 0; i < this.all.length; i++) {
269
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
270
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
271
+ this.printModel.rows[z++] = this.rowsdata[i][j]
272
+ }
273
+ }
274
+ }
275
+ },
276
+ showchargedetail (row) {
277
+ this.showdetail = true
278
+ this.otherchargeid = row.id
279
+ }
280
+ },
281
+ computed: {
282
+ ischecked () {
283
+ return function (index, i) {
284
+ if (!this.radio[index]) {
285
+ return false
286
+ }
287
+ return this.radio[index][i]
288
+ }
289
+ },
290
+ getCondition () {
291
+ return {
292
+ condition: this.condition
293
+ }
294
+ }
295
+ },
296
+ watch: {
297
+ sumsmodel: {
298
+ handler: function (val) {
299
+ this.getotherfooter()
300
+ },
301
+ deep: true
302
+ }
303
+ }
304
+ }
305
+ </script>
@@ -0,0 +1,368 @@
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 for="startDate" class="font_normal_body">开始日期</label>
10
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
11
+ v-model="model.startDate"
12
+ :value.sync="model.startDate"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="true"
15
+ condition="f_operate_date >= '{}'">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="true"
25
+ condition="f_operate_date <= '{}'">
26
+ </datepicker>
27
+ </div>
28
+ <div class="span" style="float: right;">
29
+ <button class="button_search button_spacing" @click="search()">查询</button>
30
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
31
+ :field="$parent.$parent.fields" :header="$parent.$parent.other"
32
+ sqlurl="api/af-revenue/logic/saleExport"
33
+ :sql-name="'sale_surplusQueryUser'"
34
+ template-name='调价补差导出'
35
+ :choose-col="true"></export-excel>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </criteria>
41
+
42
+
43
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
44
+ <template partial='head'>
45
+ <tr>
46
+ <th>
47
+ <nobr>补差编号</nobr>
48
+ </th>
49
+ <th>
50
+ <nobr>气表品牌</nobr>
51
+ </th>
52
+
53
+ <th>
54
+ <nobr>原单价</nobr>
55
+ </th>
56
+ <th>
57
+ <nobr>现单价</nobr>
58
+ </th>
59
+ <th>
60
+ <nobr>单价调整量</nobr>
61
+ </th>
62
+ <th>
63
+ <nobr>补差气量</nobr>
64
+ </th>
65
+ <th>
66
+ <nobr>补差金额</nobr>
67
+ </th>
68
+ <th>
69
+ <nobr>调价区间</nobr>
70
+ </th>
71
+ <th>
72
+ <nobr>是否缴费</nobr>
73
+ </th>
74
+ <th>
75
+ <nobr>上次抄表日期</nobr>
76
+ </th>
77
+ <th>
78
+ <nobr>本次抄表日期</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>补差开始时间</nobr>
82
+ </th>
83
+ <th>
84
+ <nobr>补差结束日期</nobr>
85
+ </th>
86
+ <th>
87
+ <nobr>上期底数</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>本期底数</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>剩余量</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>状态</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>操作日期</nobr>
100
+ </th>
101
+ <th>
102
+ <nobr>
103
+ 收费记录时间
104
+ </nobr>
105
+ </th>
106
+ <th>
107
+ <nobr>人员</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>部门</nobr>
111
+ </th>
112
+ <th>
113
+ <nobr>公司</nobr>
114
+ </th>
115
+ </tr>
116
+ </template>
117
+ <template partial='body'>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.id}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_meter_brand}}</nobr>
123
+ </td>
124
+
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_old_price}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_new_price}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_change_price}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_real_amount}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_surplus_fee}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_qujian}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_whether_pay}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.last_hand_date}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_hand_date}}</nobr>
151
+ </td>
152
+
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_start_date}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_end_date}}</nobr>
158
+ </td>
159
+
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_last_tablebase}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_tablebase}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_surplus_gas}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_state}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_operate_date}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>
177
+ {{row.f_sfjl===null?"00:00:00.000":row.f_sfjl}}
178
+ </nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr>{{row.f_operator}}</nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr>{{row.f_depname}}</nobr>
185
+ </td>
186
+ <td style="text-align: center;">
187
+ <nobr>{{row.f_orgname}}</nobr>
188
+ </td>
189
+ </template>
190
+ <template partial='foot'></template>
191
+ </data-grid>
192
+ </criteria-paged>
193
+ </div>
194
+ </div>
195
+ </template>
196
+
197
+ <script>
198
+ import {PagedList} from 'vue-client'
199
+ import co from 'co'
200
+ export default {
201
+ title: '调价补差查询',
202
+ data () {
203
+ return {
204
+ condition: '1=1',
205
+ model: new PagedList('api/af-revenue/sql/sale_surplusQueryUser', 10, {}),
206
+ // 控制单选
207
+ radio: [],
208
+ // 选中的页
209
+ all: [],
210
+ // row数据
211
+ rowsdata: [],
212
+ other: [],
213
+ footer: [],
214
+ // 合计数据
215
+ sumsmodel: {},
216
+ fields: {
217
+ 'f_meter_brand': '气表品牌',
218
+ 'f_old_price': '原单价',
219
+ 'f_new_price': '现单价',
220
+ 'f_change_price': '单价调整量',
221
+ 'f_real_amount': '补差气量',
222
+ 'f_surplus_fee': '补差金额 ',
223
+ 'f_qujian': '调价区间',
224
+ 'f_whether_pay': '是否缴费',
225
+ 'last_hand_date': '上次抄表日期',
226
+ 'f_hand_date': '本次抄表日期',
227
+ 'f_start_date': '补差开始时间',
228
+ 'f_end_date': '补差结束日期',
229
+ 'f_last_tablebase': '上期底数',
230
+ 'f_tablebase': '本期底数',
231
+ 'f_surplus_gas': '剩余量',
232
+ 'f_state': '状态',
233
+ 'f_operate_date': '操作日期',
234
+ 'f_sfjl': '收费记录时间',
235
+ 'f_operator': '人员',
236
+ 'f_depname': '部门',
237
+ 'f_orgname': '公司'
238
+ }
239
+ }
240
+ },
241
+ props: ['row'],
242
+ ready () {
243
+ this.$refs.paged.$refs.criteria.search()
244
+ },
245
+ methods: {
246
+ getotherfooter () {
247
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
248
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
249
+ this.other = []
250
+ this.footer = []
251
+ // let exportdata = this.getCondition;
252
+ let otherInData = []
253
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
254
+ let footerData = [], exportfield = this.fields
255
+ footerData.push('合计')
256
+ let self = this
257
+ for (var field in self.sumsmodel) {
258
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
259
+ }
260
+ this.footer.push(footerData)
261
+ this.other.push(otherInData)
262
+ },
263
+ clear () {
264
+ this.model.endDate = ''
265
+ this.model.startDate = ''
266
+ },
267
+ search () {
268
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userinfo_id = '${this.row.f_userinfo_id}'`
269
+ this.model.search(this.condition, this.model)
270
+ },
271
+ // 多选框初始化
272
+ // selectInit () {
273
+ // this.rowsdata = []
274
+ // this.all = []
275
+ // this.radio = []
276
+ // },
277
+ // select () {
278
+ // let index = this.model.pageIndex - 1
279
+ // if (!this.radio[index]) {
280
+ // this.radio.$set(index, [])
281
+ // }
282
+ // if (this.all[index]) {
283
+ // // 数据
284
+ // this.rowsdata[index] = Object.assign([], this.model.rows)
285
+ // // 勾选
286
+ // for (var i = 0; i < this.model.rows.length; i++) {
287
+ // this.radio[index].$set(i, true)
288
+ // }
289
+ // } else {
290
+ // // 数据
291
+ // this.rowsdata[index] = []
292
+ // // 不勾选
293
+ // for (var i = 0; i < this.model.rows.length; i++) {
294
+ // this.radio[index].$set(i, false)
295
+ // }
296
+ // }
297
+ // let z = 0
298
+ // for (let i = 0; i < this.all.length; i++) {
299
+ // for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
300
+ // this.printModel.rows[z++] = this.rowsdata[i][j]
301
+ // }
302
+ // }
303
+ // },
304
+ // selectOne (event, row, i) {
305
+ // let index = this.model.pageIndex - 1
306
+ // if (!this.rowsdata[index]) {
307
+ // this.rowsdata[index] = []
308
+ // }
309
+ // if (!this.radio[index]) {
310
+ // this.radio.$set(index, [])
311
+ // }
312
+ // if (event.target.checked) {
313
+ // // 数据
314
+ // this.rowsdata[index][i] = row
315
+ // // 勾选
316
+ // this.radio[index].$set(i, true)
317
+ // // 判断是否全部选中
318
+ // var allState = true
319
+ // if (this.model.rows.length != this.radio[index].length) {
320
+ // allState = false
321
+ // }
322
+ // for (var state of this.radio[index]) {
323
+ // if (!state) {
324
+ // allState = false
325
+ // }
326
+ // }
327
+ // if (allState) {
328
+ // this.all.$set(index, true)
329
+ // } else {
330
+ // this.all.$set(index, false)
331
+ // }
332
+ // } else {
333
+ // // 数据
334
+ // this.rowsdata[index][i] = []
335
+ // // 不勾选
336
+ // this.radio[index].$set(i, false)
337
+ // // 任意取消一个则全选状态设为false
338
+ // this.all.$set(index, false)
339
+ // }
340
+ // let z = 0
341
+ // this.printModel.rows = []
342
+ // for (let i = 0; i < this.all.length; i++) {
343
+ // for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
344
+ // if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
345
+ // this.printModel.rows[z++] = this.rowsdata[i][j]
346
+ // }
347
+ // }
348
+ // }
349
+ // }
350
+ },
351
+ computed: {
352
+ getCondition () {
353
+ return {
354
+ condition: this.condition
355
+ }
356
+ }
357
+ },
358
+ watch: {
359
+ sumsmodel: {
360
+ handler: function (val) {
361
+ this.getotherfooter()
362
+ },
363
+ deep: true
364
+ }
365
+ }
366
+ }
367
+ </script>
368
+