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
@@ -628,7 +628,7 @@ let ChangeMeterService = {
628
628
  f_preamount: model.f_preamount,
629
629
  f_pregas: model.f_pregas,
630
630
  f_totalcost: model.f_totalcost,
631
- f_add_gas: model.f_add_gas,
631
+ f_add_gas: model.addtotal === '是' ? '计入' : '不计入',
632
632
  f_total_gas: model.addtotal === '是' ? (row.f_total_gas - 0) + (model.f_pregas - 0) : (row.f_total_gas - 0),
633
633
  f_total_fee: model.addtotal === '是' ? (row.f_total_fee - 0) + (model.f_preamount - 0) : (row.f_total_fee - 0),
634
634
  f_payment: model.f_payment.toString(),
@@ -14,6 +14,11 @@
14
14
  <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
15
15
  condition="f_userinfo_code = '{}'" @keyup.enter="$parent.$parent.clean()">
16
16
  </div>
17
+ <div class="form-group col-sm-3">
18
+ <label class="font_normal_body">旧客户号</label>
19
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_olduserinfo_code" placeholder='客户编号'
20
+ condition="f_olduserinfo_code = '{}'">
21
+ </div>
17
22
  <div class="form-group col-sm-3">
18
23
  <label class="font_normal_body">客户名称</label>
19
24
  <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" placeholder='客户名称'
@@ -26,42 +31,37 @@
26
31
  <!--<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" placeholder='客户名称'-->
27
32
  <!--@keyup.enter="search(), $parent.$parent.clean()" condition="f_user_name = '{}'">-->
28
33
  <!--</div>-->
29
- <div class="form-group col-sm-3">
30
- <label class="font_normal_body">旧客户号</label>
31
- <input type="text" class="input_search" style="width:60%" v-model="model.f_olduserinfo_code" placeholder='客户编号'
32
- condition="f_olduserinfo_code = '{}'">
33
- </div>
34
+
34
35
 
35
36
  <div class="form-group col-sm-3">
36
37
  <label class="font_normal_body">电&emsp;&emsp;话</label>
37
38
  <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
38
39
  condition="f_user_phone like '%{}%'">
39
40
  </div>
40
- <div class="form-group col-sm-3">
41
- <label class="font_normal_body">客户地址</label>
42
- <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_address" placeholder='客户地址'
43
- condition="address.f_address like '%{}%'">
44
- </div>
45
41
  <div class="form-group col-sm-3">
46
42
  <label class="font_normal_body">小&emsp;&emsp;区</label>
47
43
  <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area" placeholder='小区'
48
44
  condition="address.f_residential_area like '%{}%'">
49
45
  </div>
50
-
46
+ <div class="form-group col-sm-3">
47
+ <label class="font_normal_body">楼&emsp;&emsp;栋</label>
48
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_building" placeholder='楼栋'
49
+ condition="address.f_building = '{}'">
50
+ </div>
51
51
  <div class="form-group col-sm-3">
52
52
  <label class="font_normal_body">单&emsp;&emsp;元</label>
53
53
  <input type="text" class="input_search" style="width:60%" v-model="model.f_unit" placeholder='单元'
54
54
  condition="address.f_unit like '%{}%'">
55
55
  </div>
56
- <div class="form-group col-sm-3">
57
- <label class="font_normal_body">楼&emsp;&emsp;栋</label>
58
- <input type="text" class="input_search" style="width:60%" v-model="model.f_building" placeholder='楼栋'
59
- condition="address.f_building like '%{}%'">
60
- </div>
61
56
  <div class="form-group col-sm-3">
62
57
  <label class="font_normal_body">门&nbsp;&nbsp;牌&nbsp;&nbsp;号</label>
63
58
  <input type="text" class="input_search" style="width:60%" v-model="model.f_room" placeholder='门牌号'
64
- condition="address.f_room like '%{}%'">
59
+ condition="address.f_room like '{}'">
60
+ </div>
61
+ <div class="form-group col-sm-3">
62
+ <label class="font_normal_body">客户地址</label>
63
+ <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_address" placeholder='客户地址'
64
+ condition="address.f_address like '%{}%'">
65
65
  </div>
66
66
  <div class="form-group col-sm-3">
67
67
  <label class="font_normal_body">表&emsp;&emsp;号</label>
@@ -0,0 +1,325 @@
1
+ <template>
2
+ <div id="unit" class="flex-row three" v-show="listpage">
3
+ <div class="binary-left" style="overflow: scroll;width:15%" >
4
+ <mulitinfo :warninginfo="warningInfo" style="height:auto" @deal-msg="dealMsg" :data="row" :card-data="cardInfo" v-ref:info></mulitinfo>
5
+ </div>
6
+ <div class="binary-right" style="width:68%;overflow-y: scroll" >
7
+ <div :style="{height:(row?'auto':'100%')}">
8
+ <!--<div class="auto" v-if="sustainMoney != null">-->
9
+ <!--<h2 style="margin-top: 10px">当前连续收款金额: {{sustainMoney}}</h2>-->
10
+ <!--</div>-->
11
+ <div>
12
+ <charge-list :row="row" @select-oper="showWork" @dblclick="toBusiness" @deal-msg="dealMsg"
13
+ v-ref:list></charge-list>
14
+
15
+ <div class="auto" style="margin-top: 1%;" v-if="row">
16
+ <charge-oper :data.sync="row" :card-info="cardInfo" v-ref:oper></charge-oper>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ <div class="binary-right" style="width:22%" >
22
+ <ul class="nav nav-pills span" style="height:auto;margin:8px 0px;padding:4px 0;border-bottom: 1px solid #e7e7e7;" class="nav nav-tabs" >
23
+ <li ><a :style="selectFiled == '其他信息'?'color:#333333!important;':'color:#666666!important;'" :class="{'tel_voiceActive':selectFiled == '其他信息','tel_f_size':selectFiled != '其他信息'}" href="#" @click="setField('其他信息')">其他信息</a></li>
24
+ <li ><a :style="selectFiled == '历史操作'?'color:#333333!important;':'color:#666666!important;'" :class="{'tel_voiceActive':selectFiled == '历史操作','tel_f_size':selectFiled != '历史操作'}" href="#" @click="setField('历史操作')">历史操作</a></li>
25
+ <li v-if="row ?row.f_meter_type=='机表' : false"><a :style="selectFiled == '历史抄表'?'color:#333333!important;':'color:#666666!important;'" :class="{'tel_voiceActive':selectFiled == '历史抄表','tel_f_size':selectFiled != '历史抄表'}" href="#" @click="setField('历史抄表')">历史抄表</a></li>
26
+ </ul>
27
+ <div class="tab-content span" style="overflow-y: auto">
28
+ <otherinfo v-show="worktype === '其他信息'" style="height:auto" @deal-msg="dealMsg" :data="row" :card-data="cardInfo" v-ref:info></otherinfo>
29
+ <card-list v-show="worktype === '历史操作'" :btns="operatebtn" :f_orgid="f_orgid" :userinfoid="row ? row.f_userinfo_code : ''" @list-select-oper="recordCancel"
30
+ v-ref:card></card-list>
31
+ <hand-list v-if="worktype === '历史抄表'" :f_userfiles_id="row ? row.f_userfiles_id : ''" v-ref:hand></hand-list>
32
+ </div>
33
+
34
+ </div>
35
+
36
+ </div>
37
+ <div v-if="!listpage">
38
+ <user-info-detail-manage-new parentname="charge-manage" :f_userfiles_id="rowData.f_userfiles_id" @cancel-main="cancel" @cancel-re="cancelAndRefresh"></user-info-detail-manage-new>
39
+ </div>
40
+ <div v-if="showModal">
41
+ <charge-modal :warninginfo="warningInfo" :row="modalrow" :modal-show.sync="showModal" @close="close" @modalsuccess="modalsuccess"></charge-modal>
42
+ </div>
43
+ </template>
44
+ <script>
45
+ import ChargeOper from '../../components/charge/ChargeOper'
46
+ import {HttpResetClass} from "vue-client";
47
+
48
+ export default {
49
+ title: '收费(综合)',
50
+ components: { ChargeOper },
51
+ data () {
52
+ return {
53
+ sustainMoney: null,
54
+ // 页面开关
55
+ listpage: true,
56
+ f_orgid: '',
57
+ row: null,
58
+ cardInfo: null,
59
+ warningInfo: null,
60
+ modalrow: null,
61
+ showModal: false,
62
+ rowData: {},
63
+ dibao_remind: this.$appdata.getSingleValue('低保快到期提醒') ? this.$appdata.getSingleValue('低保快到期提醒') : 0,
64
+ reSearchShowMsy: !!this.$appdata.getSingleValue('收费后验证'),
65
+ show: [true],
66
+ selectFiled: '其他信息',
67
+ worktype: '其他信息',
68
+ searchTime: 1000,
69
+ interval: null
70
+ }
71
+ },
72
+ destroyed () {
73
+ if(this.$appdata.getSingleValue('磁条卡读卡间隔')) {
74
+ clearInterval(this.interval)
75
+ }
76
+ },
77
+ ready () {
78
+ if(this.$appdata.getSingleValue('磁条卡读卡间隔')){
79
+ this.searchTime = this.$appdata.getSingleValue('磁条卡读卡间隔')
80
+ this.readCiTiaoCard()
81
+ }
82
+ this.setsustainMoney()
83
+ },
84
+ methods: {
85
+ async readCiTiaoCard () {
86
+ console.log('读磁条卡,开始,不停的循环')
87
+ let data = {}
88
+ let getUser = {data: []}
89
+ let forgid = this.$login.convertToIn([this.$login.f.orgid])
90
+ try {
91
+ this.interval = setInterval(() => {
92
+ // 1秒一轮回
93
+ let http = new HttpResetClass()
94
+ http.load('POST', 'http://127.0.0.1:8003/ReadCard_HEC', data, {
95
+ resolveMsg: null,
96
+ rejectMsg: null
97
+ }).then(async res => {
98
+ if (res.data.CardID !== '') {
99
+ if (res.data.Err === null && res.data.Exception) {
100
+ this.$showAlert(res.data.Exception, 'danger', 2000)
101
+ // clearInterval(interval)
102
+ } else {
103
+ if (res.data.Factory === 'CiTiao') {
104
+ // 获取用户信息
105
+ getUser = await this.$resetpost('api/af-revenue/sql/sale_getUser', {
106
+ data: {
107
+ condition: `u.f_filialeid in ${forgid} and gb.f_meter_type in ('机表','物联网表') and i.f_userinfo_code='${res.data.CardID}'`,
108
+ orderitem: `f_userinfo_id`
109
+ }
110
+ }, {resolveMsg: null, rejectMsg: '读卡失败'})
111
+ this.$refs.list.model.rows = getUser.data
112
+ if (!this.row || (this.row && this.row.f_userinfo_code != getUser.data[0].f_userinfo_code)) {
113
+ await this.toBusiness(getUser.data[0])
114
+ }
115
+ }
116
+ }
117
+ }
118
+ })
119
+ }, this.searchTime * 1000)
120
+ } catch (error) {
121
+ console.log('捕获到异常', error)
122
+ }
123
+ },
124
+ setsustainMoney () {
125
+ this.sustainMoney = window.localStorage.getItem('sustainMoney')
126
+ },
127
+ setField (type) {
128
+ this.selectFiled = type
129
+ this.worktype = type
130
+ },
131
+ async toBusiness (obj) {
132
+ console.log('双击列表的时候传进来的数据:', obj)
133
+ if (!(obj instanceof Event)) {
134
+ // 对此数据进行验证
135
+ if (await this.validateRow(obj)) {
136
+ // 获取未写卡或者写卡失败记录
137
+ let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or f_write_card = '写卡失败') and f_userfiles_id = '${obj.f_userfiles_id}'`)
138
+ console.log('获取未写卡记录', getUnWriteSell)
139
+ if (getUnWriteSell.data.length > 1) {
140
+ this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
141
+ } else {
142
+ this.row = obj
143
+ this.row.unWriteSell = getUnWriteSell.data
144
+ this.cardInfo = this.$refs.list.cardInfo
145
+ this.$refs.list.criteriaShow = false
146
+ // 将列表只显示该条数据
147
+ this.$refs.list.refreshRow(obj)
148
+ }
149
+ }
150
+ }
151
+ },
152
+ close () {
153
+ this.showModal = false
154
+ this.warningInfo = null
155
+ this.clean()
156
+ this.$refs.list.search()
157
+ // this.$refs.card.search()
158
+ },
159
+ async validateRow (obj) {
160
+ console.log('查看传进来的参数:', obj)
161
+ this.warningInfo = await this.$resetpost('api/af-revenue/logic/getWarningMsg',
162
+ {data: {
163
+ f_userfiles_id: obj.f_userfiles_id,
164
+ f_userinfo_code: obj.f_userinfo_code,
165
+ f_userinfo_id: obj.f_userinfo_id
166
+ }
167
+ }
168
+ , {resolveMsg: '', rejectMsg: '获取提示失败'})
169
+ if (this.warningInfo.data.warningNum > 0 && obj.f_user_state !== '预备') {
170
+ this.modalrow = obj
171
+ this.showModal = true
172
+ return false
173
+ } else {
174
+ return true
175
+ }
176
+ },
177
+ clean () {
178
+ this.row = null
179
+ this.cardInfo = null
180
+ },
181
+ clearCondition () {
182
+ Object.keys(this.$refs.list.$refs.paged.$refs.cri.model).forEach((key) => {
183
+ console.log('key', key)
184
+ console.log('对应啥数据', this.$refs.list.$refs.paged.$refs.cri.model[key])
185
+ this.$refs.list.$refs.paged.$refs.cri.model[key] = []
186
+ })
187
+ // console.log('清数据。。。', this.$refs.list.$refs.paged.$refs.grid.model.rows)
188
+ // this.$set('$refs.list.$refs.paged.$refs.grid.model.rows', [])
189
+ },
190
+ dealMsg (obj) {
191
+ console.log('==================obj', obj)
192
+ this.listpage = false
193
+ this.rowData = obj
194
+ },
195
+ cancel (obj) {
196
+ this.listpage = true
197
+ },
198
+ cancelAndRefresh (obj) {
199
+ this.listpage = true
200
+ this.clean()
201
+ this.clearCondition()
202
+ this.$refs.list.searchNoData()
203
+ this.$refs.card.search()
204
+ },
205
+ async modalsuccess (obj) {
206
+ this.showModal = false
207
+ let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or (f_write_card = '写卡失败' and f_operate_date >= DATEADD(HOUR, -3, GETDATE()))) and f_userfiles_id = '${obj.f_userfiles_id}'`)
208
+ console.log('获取未写卡记录', getUnWriteSell)
209
+ if (getUnWriteSell.data.length > 1) {
210
+ this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
211
+ } else {
212
+ this.$refs.list.criteriaShow = false
213
+ this.row = obj
214
+ this.row.unWriteSell = getUnWriteSell.data
215
+ this.cardInfo = this.$refs.list.cardInfo
216
+ this.$refs.list.criteriaShow = false
217
+ // 将列表只显示该条数据
218
+ this.$refs.list.refreshRow(obj)
219
+ }
220
+ },
221
+ async serRow (obj) {
222
+ let newdata = await this.$resetpost('api/af-revenue/sql/sale_getUser', {
223
+ data: {condition: `i.f_userinfo_code='${obj.f_userinfo_code}' and u.f_filialeid = '${obj.f_filialeid}'`, orderitem: `f_userinfo_id Desc`}
224
+ }, {resolveMsg: null, rejectMsg: '获取用户信息失败'})
225
+ this.toBusiness(newdata.data[0])
226
+ // this.$refs.list.search()
227
+ }
228
+ },
229
+ events: {
230
+ 'error' (name, row, res) {
231
+ this.clean()
232
+ },
233
+ 'row' (val) {
234
+
235
+ },
236
+
237
+ 'success' (name, row, res) {
238
+ this.setsustainMoney()
239
+ // name === '发卡售气' ? this.$refs.list.toNext(this.index) : null
240
+ if (name === '机表收费确认') {
241
+ this.serRow(row)
242
+ return
243
+ }
244
+ if (name === '卡表收费' && this.reSearchShowMsy) {
245
+ this.$refs.list.$refs.paged.$refs.cri.$refs.readcard.readCard()
246
+ this.$refs.oper.noButton = false
247
+ return
248
+ }
249
+ if (name === '物联网收费' && this.reSearchShowMsy) {
250
+ this.serRow(row)
251
+ return
252
+ }
253
+ console.log('成功事件')
254
+ this.clean()
255
+ this.clearCondition()
256
+ this.$refs.list.search()
257
+ // this.clearCondition()
258
+ // this.$refs.card.search()
259
+ // this.$refs.info.$refs.recordstoryinfo.getdata()
260
+ },
261
+ 'clean' (row) {
262
+ // this.$refs.list.singleRefresh(row)
263
+ this.clean()
264
+ },
265
+ 'refresh' () {
266
+ this.setsustainMoney()
267
+ this.clean()
268
+ this.clearCondition()
269
+ this.$refs.list.searchNoData()
270
+ this.$refs.card.search()
271
+ },
272
+ 'resflushvalue' () {
273
+ this.$refs.info.$refs.valueaddinfo.reflush()
274
+ },
275
+ 'resflushrowdata' () {
276
+ this.toBusiness(this.row)
277
+ },
278
+ 'resflushdata' (data) {
279
+ this.toBusiness(data)
280
+ },
281
+ 'refreshrow' (val) {
282
+ console.log(val)
283
+ this.row = val
284
+ this.$refs.list.refreshRow(val)
285
+ // this.$refs.card.search()
286
+ },
287
+ 'cancelclean' (row) {
288
+ this.clean()
289
+ this.$refs.list.searchNoData()
290
+ // this.$refs.card.search()
291
+ }
292
+ },
293
+ watch: {
294
+ 'row' () {
295
+ // this.$refs.tab.$el.click()
296
+ }
297
+ }
298
+ }
299
+ </script>
300
+ <style>
301
+ .basic-main {
302
+ width: 79%;
303
+ }
304
+ .tel_voiceActive{
305
+ font-family: PingFang-SC-Bold;
306
+ font-size: 16px;
307
+ font-weight: normal!important;
308
+ font-stretch: normal!important;
309
+ line-height: 18px;
310
+ letter-spacing: 0px;
311
+ color: #333333!important;
312
+ border-bottom: 3px solid #599fe5;
313
+ padding:10px 10px!important;
314
+ }
315
+ .tel_f_size{
316
+ font-family: PingFang-SC-Medium;
317
+ font-size: 16px;
318
+ font-weight: normal;
319
+ font-stretch: normal;
320
+ line-height: 18px;
321
+ letter-spacing: 0px;
322
+ color: #666666!important;
323
+ padding:10px 10px!important;
324
+ }
325
+ </style>