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,348 @@
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" 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="s.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="$parent.$parent.sqlname"
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>使用方量</th>
62
+ <th><nobr>扣费单价</nobr></th>
63
+ <th><nobr>扣费金额</nobr></th>
64
+ <th><nobr>表内余额</nobr></th>
65
+ </tr>
66
+ </template>
67
+ <template partial='body' partial='list' v-ref:grid>
68
+ <tr >
69
+ <td style="text-align:center">{{row.f_operate_date.substring(0,10)}}</td>
70
+ <td style="text-align:center">{{row.f_operate_date.substring(11,19)}}</td>
71
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
72
+ <td style="text-align:center">{{row.f_tablebase}}</td>
73
+ <td style="text-align:center">{{row.f_pregas}}</td>
74
+ <td style="text-align:center">{{row.f_price}}</td>
75
+ <td style="text-align:center">{{row.f_preamount}}</td>
76
+ <td style="text-align:center">{{row.f_meterBalanceAmt}}</td>
77
+ </tr>
78
+ </template>
79
+ <template partial='foot'></template>
80
+ </data-grid>
81
+ </criteria-paged>
82
+ </div>
83
+ <table class="table-hover">
84
+ <tr class="table-bordered" style="position: relative">
85
+ <td
86
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
87
+ 汇总信息
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_pregas}}
91
+ </td>
92
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
93
+ 金额合计:&emsp;{{model.sums.f_preamount}}
94
+ </td>
95
+ </tr>
96
+ </table>
97
+ <reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
98
+
99
+ </div>
100
+ </template>
101
+
102
+ <script>
103
+ import {HttpResetClass, PagedList} from 'vue-client'
104
+ import co from 'co'
105
+ let reprintGen = function *(self, row) {
106
+ try {
107
+ let reissueData = {}
108
+ reissueData = Object.assign({}, reissueData, row)
109
+
110
+ reissueData.f_bill_type = row.type
111
+ reissueData.f_bill_style = '普通收据'
112
+ reissueData.f_operator = self.$login.f.name
113
+ reissueData.f_operatorid = self.$login.f.id
114
+ reissueData.f_orgid = self.$login.f.orgid
115
+ reissueData.f_orgname = self.$login.f.orgs
116
+ reissueData.f_depid = self.$login.f.depids
117
+ reissueData.f_depname = self.$login.f.deps
118
+ reissueData.billUrl = self.getBillUrl(row.type)
119
+
120
+ self.reissue_data = reissueData
121
+ self.reissue_show = true
122
+ } catch (error) {
123
+ if (error.status) {
124
+ self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
125
+ }
126
+ throw error
127
+ }
128
+ }
129
+ export default {
130
+ title: '自动下账',
131
+ data () {
132
+ return {
133
+ reissue_show: false,
134
+ reissue_data: null,
135
+ condition: '1=1',
136
+ model: new PagedList(`${this.row.f_meter_type === '物联网表'?'api/af-revenue/sql/sale_WebAutomaticPurse':'api/af-revenue/sql/sale_AutomaticPurse'}`, 20, {}, {
137
+ f_preamount: 0,
138
+ f_pregas: 0
139
+ }),
140
+ sqlname: `${this.row.f_meter_type === '物联网表'?'api/af-revenue/sql/sale_WebAutomaticPurse':'api/af-revenue/sql/sale_AutomaticPurse'}`,
141
+ show: false,
142
+ list: [],
143
+ jiaofeistates: this.$appdata.getParam('缴费状态') ? [{
144
+ label: '全部',
145
+ value: ''
146
+ }, ...this.$appdata.getParam('缴费状态')] : [],
147
+ // 控制单选
148
+ radio: [],
149
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
150
+ // 选中的页
151
+ all: [],
152
+ // row数据
153
+ rowsdata: [],
154
+ fields: {
155
+ 'f_operate_date': '缴费日期',
156
+ 'f_last_tablebase': '上期指数',
157
+ 'f_tablebase': '本期指数',
158
+ 'f_pregas,': '使用方量',
159
+ 'f_price': '扣费单价',
160
+ 'f_preamount': '扣费金额',
161
+ 'f_meterBalanceAmt': '表内余额'
162
+ },
163
+ defaultfield: [
164
+ 'f_operate_date', 'f_last_tablebase', 'f_tablebase', 'f_pregas', 'f_price', 'f_preamount', 'f_meterBalanceAmt'
165
+ ],
166
+ printModel: {
167
+ rows: []
168
+ },
169
+ other: [],
170
+ footer: [],
171
+ // 合计数据
172
+ sumsmodel: {}
173
+ }
174
+ },
175
+ props: ['row'],
176
+ ready () {
177
+ this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
178
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
179
+ },
180
+ methods: {
181
+ getotherfooter () {
182
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
183
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
184
+ this.other = []
185
+ this.footer = []
186
+ // let exportdata = this.getCondition;
187
+ let otherInData = []
188
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
189
+ let footerData = [], exportfield = this.fields
190
+ footerData.push('合计')
191
+ let self = this
192
+ for (var field in self.sumsmodel) {
193
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
194
+ }
195
+ this.footer.push(footerData)
196
+ this.other.push(otherInData)
197
+ },
198
+ async search () {
199
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
200
+ this.model.search(this.condition, this.model)
201
+ let http = new HttpResetClass()
202
+ let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'api/af-revenue/sql/sale_WebAutomaticPurse':'api/af-revenue/sql/sale_AutomaticPurse'}`, {
203
+ data: {
204
+ f_user_id: this.row.f_user_id,
205
+ condition: this.condition
206
+ }
207
+ }, {resolveMsg: null, rejectMsg: null})
208
+ this.printModel.rows = res.data
209
+ },
210
+ // 多选框初始化
211
+ selectInit () {
212
+ this.rowsdata = []
213
+ this.all = []
214
+ this.radio = []
215
+ },
216
+ reissueSucc () {
217
+ this.reissue_show = false
218
+ this.$dispatch('refresh')
219
+ },
220
+ reissueOper () {
221
+ this.reissue_data = null
222
+ this.reissue_show = false
223
+ },
224
+ getBillUrl (type) {
225
+ let name = ''
226
+ // 根据type数据 选择调用的Logic
227
+ if (type === '机表收费') {
228
+ name = 'api/af-revenue/report/machine_bill'
229
+ } else if (type === '物联网收费') {
230
+ name = 'api/af-revenue/report/iot_bill'
231
+ } else if (type === '超用收费') {
232
+ name = 'api/af-revenue/report/overuse_bill'
233
+ } else if (type === '其他收费') {
234
+ name = 'api/af-revenue/report/otherCharge_bill'
235
+ } else if (type === '发卡售气') {
236
+ name = 'api/af-revenue/report/sendCard_bill'
237
+ } else if (type === '卡表收费') {
238
+ name = 'api/af-revenue/report/card_bill'
239
+ }
240
+ return name
241
+ },
242
+ report (row) {
243
+ let reprint = reprintGen(this, row)
244
+ return co(reprint)
245
+ },
246
+ print () {
247
+ this.selectInit()
248
+ },
249
+ select () {
250
+ let index = this.model.pageIndex - 1
251
+ if (!this.radio[index]) {
252
+ this.radio.$set(index, [])
253
+ }
254
+ if (this.all[index]) {
255
+ // 数据
256
+ this.rowsdata[index] = Object.assign([], this.model.rows)
257
+ // 勾选
258
+ for (var i = 0; i < this.model.rows.length; i++) {
259
+ this.radio[index].$set(i, true)
260
+ }
261
+ } else {
262
+ // 数据
263
+ this.rowsdata[index] = []
264
+ // 不勾选
265
+ for (var i = 0; i < this.model.rows.length; i++) {
266
+ this.radio[index].$set(i, false)
267
+ }
268
+ }
269
+ let z = 0
270
+ for (let i = 0; i < this.all.length; i++) {
271
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
272
+ this.printModel.rows[z++] = this.rowsdata[i][j]
273
+ }
274
+ }
275
+ },
276
+ selectOne (event, row, i) {
277
+ let index = this.model.pageIndex - 1
278
+ if (!this.rowsdata[index]) {
279
+ this.rowsdata[index] = []
280
+ }
281
+ if (!this.radio[index]) {
282
+ this.radio.$set(index, [])
283
+ }
284
+ if (event.target.checked) {
285
+ // 数据
286
+ this.rowsdata[index][i] = row
287
+ // 勾选
288
+ this.radio[index].$set(i, true)
289
+ // 判断是否全部选中
290
+ var allState = true
291
+ if (this.model.rows.length != this.radio[index].length) {
292
+ allState = false
293
+ }
294
+ for (var state of this.radio[index]) {
295
+ if (!state) {
296
+ allState = false
297
+ }
298
+ }
299
+ if (allState) {
300
+ this.all.$set(index, true)
301
+ } else {
302
+ this.all.$set(index, false)
303
+ }
304
+ } else {
305
+ // 数据
306
+ this.rowsdata[index][i] = []
307
+ // 不勾选
308
+ this.radio[index].$set(i, false)
309
+ // 任意取消一个则全选状态设为false
310
+ this.all.$set(index, false)
311
+ }
312
+ let z = 0
313
+ this.printModel.rows = []
314
+ for (let i = 0; i < this.all.length; i++) {
315
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
316
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
317
+ this.printModel.rows[z++] = this.rowsdata[i][j]
318
+ }
319
+ }
320
+ }
321
+ }
322
+ },
323
+ computed: {
324
+ ischecked () {
325
+ return function (index, i) {
326
+ if (!this.radio[index]) {
327
+ return false
328
+ }
329
+ return this.radio[index][i]
330
+ }
331
+ },
332
+ getCondition () {
333
+ return {
334
+ condition: this.condition
335
+ }
336
+ }
337
+ },
338
+ watch: {
339
+ sumsmodel: {
340
+ handler: function (val) {
341
+ this.getotherfooter()
342
+ },
343
+ deep: true
344
+ }
345
+ }
346
+ }
347
+ </script>
348
+
@@ -0,0 +1,149 @@
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 placeholder='开始时间' style="width:60%"
11
+ v-model="model.startTime"
12
+ :value.sync="model.startTime"
13
+ :format="'yyyy-MM-dd'"
14
+ :show-reset-button="true"
15
+ condition="f_signature_date >= '{} 00:00:00'">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group" >
19
+ <label class="font_normal_body">结束日期</label>
20
+ <datepicker placeholder='结束日期' style="width:60%"
21
+ v-model="model.endTime"
22
+ :value.sync="model.endTime"
23
+ :format="'yyyy-MM-dd'"
24
+ :show-reset-button="true"
25
+ condition="f_signature_date <= '{} 23:59:59'">
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="'getContractSigin'"
35
+ template-name='合同查看导出'
36
+ :choose-col="true"></export-excel>
37
+ </div>
38
+ </div>
39
+
40
+
41
+ </div>
42
+
43
+ </criteria>
44
+ <data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
45
+ <template partial='head'>
46
+ <tr>
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
+ <th><nobr>合同签订人</nobr></th>
54
+ <th><nobr>操&emsp;&emsp;作</nobr></th>
55
+ </tr>
56
+ </template>
57
+ <template partial='body' partial='list' v-ref:grid>
58
+ <tr >
59
+ <td style="text-align:center">{{ row.f_userinfo_code }}</td>
60
+ <td style="text-align:center">{{ row.f_user_name }}</td>
61
+ <td style="text-align:center">{{ row.f_address }}</td>
62
+ <td style="text-align:center">{{ row.f_contract_name }}</td>
63
+ <td style="text-align:center">{{ row.f_signature_state }}</td>
64
+ <td style="text-align:center">{{ row.f_signature_date }}</td>
65
+ <td style="text-align:center">{{ row.f_user_name_not }}</td>
66
+ <td style="text-align:center"><button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.showExplain(row)">合同预览</button></td>
67
+ </tr>
68
+ </template>
69
+ <template partial='foot'></template>
70
+ </data-grid>
71
+ </criteria-paged>
72
+ </div>
73
+ <modal v-if="explainShow" :show.sync="explainShow" :title="titleL" style="height: 1000px" :width="1000" v-ref:model backdrop="false">
74
+ <article slot="modal-body" class="modal-body">
75
+ <iframe id="myIframe" :src="pdfPath" style="width: 100%;height: 500px"></iframe>
76
+ </article>
77
+ <div slot="modal-footer" class="modal-footer">
78
+ <button type="button" class="btn btn-default" @click="printPDF">打印</button>
79
+ <button type="button" class="btn btn-default" @click="close()">关闭</button>
80
+ </div>
81
+ </modal>
82
+ </div>
83
+
84
+ </template>
85
+
86
+ <script>
87
+ import {PagedList} from 'vue-client'
88
+ export default {
89
+ title: '合同查看',
90
+ data () {
91
+ return {
92
+ condition: `f_userinfo_id = '${this.row.f_userinfo_id}'`,
93
+ model: new PagedList('api/af-revenue/sql/getContractSigin', 20, {}),
94
+ explainShow: false,
95
+ pdfPath: null,
96
+ prPdf: null,
97
+ titleL: null,
98
+ other: [],
99
+ footer: [],
100
+ // 合计数据
101
+ sumsmodel: {},
102
+ fields: {
103
+ 'f_userinfo_code': '用户编号',
104
+ 'f_user_name': '用户姓名',
105
+ 'f_address': '用户地址',
106
+ 'f_contract_name': '合同名称',
107
+ 'f_signature_state': '合同签订状态',
108
+ 'f_signature_date': '合同签订时间',
109
+ 'f_user_name_not': '合同签订人'
110
+ }
111
+ }
112
+ },
113
+ props: ['row'],
114
+ ready () {
115
+ this.$refs.paged.$refs.criteria.search()
116
+ },
117
+ methods: {
118
+ printPDF () {
119
+ window.open(this.prPdf, '_blank')
120
+ },
121
+ async search () {
122
+ this.condition = `f_userinfo_id = '${this.row.f_userinfo_id}'`
123
+ this.model.search(this.condition, this.model)
124
+ },
125
+ showExplain (row) {
126
+ this.pdfPath = row.f_visit_url + '#toolbar=0'
127
+ this.prPdf = row.f_visit_url
128
+ this.titleL = row.f_contract_name
129
+ this.explainShow = true
130
+ }
131
+ },
132
+ computed: {
133
+ getCondition () {
134
+ return {
135
+ condition: this.condition
136
+ }
137
+ }
138
+ },
139
+ watch: {
140
+ sumsmodel: {
141
+ handler: function (val) {
142
+ this.getotherfooter()
143
+ },
144
+ deep: true
145
+ }
146
+ }
147
+ }
148
+ </script>
149
+
@@ -9,4 +9,9 @@ export default function () {
9
9
  // 过户
10
10
  Vue.component('transfer-manage', (resolve) => { require(['./TransferManage'], resolve) })
11
11
  Vue.component('user-info-detail-manage-new', (resolve) => { require(['./UserInfoDetailManageNew'], resolve) })
12
+ // 当前选择用户的用户基本信息
13
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
14
+ // automatic-purse卡表机表相关组件
15
+ Vue.component('fill-gas-query-user', (resolve) => { require(['./FillGasQueryUser'], resolve) })
16
+ Vue.component('automatic-purse', (resolve) => { require(['./AutomaticPurse'], resolve) })
12
17
  }
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <div class="auto">
3
+ <partial-view v-ref:pv>
4
+ <div class="row">
5
+ <label class = "col-sm-4">客户名称:</label>
6
+ <span class = "col-sm-8" style="text-align:left">{{model.f_user_name}}</span>
7
+ </div>
8
+ <div class="row">
9
+ <label class = "col-sm-4">上期底数:</label>
10
+ <span class = "col-sm-2" style="text-align:left">{{model.f_last_tablebase}}</span>
11
+ <label class = "col-sm-4">本期底数:</label>
12
+ <span class = "col-sm-2" style="text-align:left">{{model.f_tablebase}}</span>
13
+ </div>
14
+ <div class="row">
15
+ <label class = "col-sm-4"> 用气量:</label>
16
+ <span class = "col-sm-2" style="text-align:left">{{model.f_pregas}}</span>
17
+ <label class = "col-sm-4">用气金额:</label>
18
+ <span class = "col-sm-2" style="text-align:left">{{model.f_preamount}}</span>
19
+ </div>
20
+ <div class="row">
21
+ <label class = "col-sm-4">上期结余:</label>
22
+ <span class = "col-sm-2" style="text-align:left">{{model.f_user_balance}}</span>
23
+ <label class = "col-sm-4" >本期结余:</label>
24
+ <span class = "col-sm-2" style="text-align:left">{{model.f_curbalance}}</span>
25
+ </div>
26
+ <div class="row">
27
+ <label class = "col-sm-4">操作时间:</label>
28
+ <span class = "col-sm-8" style="text-align:left">{{data.f_operate_date}}</span>
29
+ </div>
30
+ </partial-view>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ export default {
36
+ title: '自动下账详情',
37
+ props: ['data'],
38
+ data () {
39
+ return {
40
+ model: {}
41
+ }
42
+ },
43
+ ready () {
44
+ // 由于查询条目,表和‘机表收费’一样 故使用此sql
45
+ let sql = 'autoAccountsDetail'
46
+ let condition = {
47
+ id: this.data.id,
48
+ f_userinfo_id: this.data.f_userinfo_id
49
+ }
50
+ this.$info(`加载数据中..., sql:${sql}`)
51
+ this.$refs.pv.load('api/af-revenue/logic/getOneData', {data: {sql: sql, params: condition}}).then((a) => {
52
+ this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
53
+ this.model = a.data
54
+ }).catch((error) => {
55
+ if (error.status) {
56
+ this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
57
+ return
58
+ }
59
+ throw error
60
+ })
61
+ }
62
+ }
63
+ </script>