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,457 @@
1
+ <template>
2
+ <div>
3
+ <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
+ <form class="form-horizontal select-overspread ">
5
+ <div class="row">
6
+ <div class="col-sm-4 form-group " :class="[!baseinfo.base.f_user_name ? 'has-error' : '']"
7
+ v-if="getConfigShowItem('f_user_name')">
8
+ <label for="f_user_name" class="font_normal_body">*{{getConfigLabelName('f_user_name','用户姓名')}}</label>
9
+ <input type="text" v-model="baseinfo.base.f_user_name"
10
+ v-validate:f_user_name='getConfigValidate("f_user_name",true)'
11
+ class="input_search" style="width:60%" :placeholder="getConfigPlaceholder('f_user_name','用户姓名')" v-next-el="phone">
12
+ </div>
13
+ <div style="" class="col-sm-4 form-group"
14
+ :class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'has-error' : '']" v-if="getConfigShowItem('f_user_phone')">
15
+ <label for="f_user_phone" class="font_normal_body">*{{getConfigLabelName('f_user_phone','客户电话')}}</label>
16
+ <input type="text" maxlength="11" v-model="baseinfo.base.f_user_phone"
17
+ v-validate:f_user_phone="getConfigValidate('f_user_phone')" class="input_search" style="width:60%"
18
+ :placeholder="getConfigPlaceholder('f_user_phone','客户电话')"
19
+ v-el:phone v-next-el="area">
20
+ </div>
21
+ <div class="col-sm-4 form-group" :class="[$v.f_user_state.required ? 'has-error' : '']">
22
+ <label for="f_user_state" class="font_normal_body">&ensp;客户状态</label>
23
+ <input type="text" v-show="false" v-model="baseinfo.base.f_user_state"
24
+ v-validate:f_user_state='{required: true}'>
25
+ <v-select :value.sync="baseinfo.base.f_user_state"
26
+ :value-single="true"
27
+ :options='userstates'
28
+ placeholder='客户状态'
29
+ close-on-select>
30
+ </v-select>
31
+ </div>
32
+ </div>
33
+ <div class="row">
34
+ <div style="" class="col-sm-4 form-group" >
35
+ <label for="f_credentials" class="font_normal_body">&ensp;证件类型</label>
36
+ <v-select id="idCardType" :value.sync="baseinfo.base.f_credentials"
37
+ v-model="baseinfo.base.f_credentials"
38
+ :value-single="true"
39
+ :options='credentials'
40
+ :placeholder="getConfigPlaceholder('f_credentials','证件类型')"
41
+ style="width: 65%"
42
+ close-on-select></v-select>
43
+ </div>
44
+ <div style="" class="col-sm-8 form-group"
45
+ key="身份证号码"
46
+ :class="[$v.f_idnumber.identityCardValid ? 'has-error' : '']"
47
+ v-if="baseinfo.base.f_credentials.includes('身份证')">
48
+ <label for="f_idnumber" class="font_normal_body color-red">*证件号码</label>
49
+ <input type="text" maxlength="18" v-model="baseinfo.base.f_idnumber"
50
+ v-validate:f_idnumber='{identityCardValid: true}' class="input_search" style="width:80%"
51
+ :placeholder="getConfigPlaceholder('f_idnumber','证件号码')">
52
+ </div>
53
+ <div style="" class="col-sm-8 form-group"
54
+ key="证件号码"
55
+ v-else>
56
+ <label class="font_normal_body">&ensp;证件号码</label>
57
+ <input type="text" v-model="baseinfo.base.f_idnumber" class="input_search" style="width:80%"
58
+ :placeholder="getConfigPlaceholder('f_idnumber','证件号码')">
59
+ </div>
60
+ </div>
61
+ <div class="row">
62
+ <div class="col-sm-12 form-group" :class="[$v.f_address.required ? 'has-error' : '']">
63
+ <label for="f_address" class="font_normal_body">*地址信息</label>
64
+ <input type="text" v-model="addressinfo.f_address" v-validate:f_address="{required: true}"
65
+ class="input_search" disabled="disabled" style="width:75%;" placeholder="用户地址" >
66
+ <span>
67
+ <button class="button_search button_spacing" type="button" style="width: max-content" v-if="!isedit" @click="selectaddress()">选择地址</button>
68
+ <!-- <button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit" @click="modifyaddress()">修改地址</button>-->
69
+ <button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit" @click="selectaddress()">修改地址</button>
70
+ </span>
71
+ </div>
72
+ </div>
73
+ <div class="row">
74
+ <div style=""
75
+ v-show="(formconfig && formconfig.f_used_name && formconfig.f_used_name.required) || !onlyshowmust"
76
+ :class="[$v.f_used_name.required ? 'has-error' : '']"
77
+ class="col-sm-4 form-group" v-if="getConfigShowItem('f_used_name')">
78
+ <label style="letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em" for="f_used_name" class="font_normal_body w3">&ensp;{{getConfigLabelName('f_used_name','曾用名')}}</label>
79
+ <input type="text" v-model="baseinfo.base.f_used_name" class="input_search" style="width:60%"
80
+ v-validate:f_used_name="getConfigValidate('f_used_name', false)"
81
+ :placeholder="getConfigPlaceholder('f_used_name','曾用名')">
82
+ </div>
83
+ <div style="" class="col-sm-4 form-group"
84
+ v-show="(formconfig && formconfig.f_rent_phone && formconfig.f_rent_phone.required) || !onlyshowmust"
85
+ :class="[$v.f_rent_phone.required ? 'has-error' : '']" v-if="getConfigShowItem('f_rent_phone')">
86
+ <label for="f_rent_phone" class="font_normal_body">&ensp;备用电话</label>
87
+ <input type="text" v-model="baseinfo.base.f_rent_phone" class="input_search" style="width:60%"
88
+ v-validate:f_rent_phone="getConfigValidate('f_rent_phone', false)"
89
+ placeholder="备用电话">
90
+ </div>
91
+ <div class="col-sm-4 form-group"
92
+ v-show="(formconfig && formconfig.f_people_num && formconfig.f_people_num.required) || !onlyshowmust"
93
+ :class="[$v.f_people_num.dctest ? 'has-error' : '']" v-if="getConfigShowItem('f_people_num')">
94
+ <label for="f_people_num" style="letter-spacing: 0.5em;margin-right: -0.5em" class="font_normal_body w3">{{getConfigLabelName('f_people_num','人口数')}}</label>
95
+ <input type="number" v-model="baseinfo.base.f_people_num" v-show="!peopleMax" v-validate:f_people_num='{dctest: [0, ">=" ]}'
96
+ :disabled="!jurisdiction.includes('修改人口数')" class="input_search" style="width:60%"
97
+ placeholder="家庭人口数">
98
+ <v-select id="f_people_num" :value.sync="baseinfo.base.f_people_num"
99
+ v-if="peopleMax"
100
+ v-model="baseinfo.base.f_people_num"
101
+ :value-single="true"
102
+ :options='peoplenums'
103
+ :placeholder="getConfigPlaceholder('f_people_num','家庭人口数')"
104
+ style="width: 65%"
105
+ close-on-select></v-select>
106
+ </div>
107
+ </div>
108
+ <div class="row">
109
+ <div style=""
110
+ v-show="(formconfig && formconfig.f_balance && formconfig.f_balance.required) || !onlyshowmust"
111
+ :class="[$v.f_balance.required ? 'has-error' : '']"
112
+ class="col-sm-4 form-group" v-if="getConfigShowItem('f_balance')">
113
+ <label for="f_balance" class="font_normal_body">&ensp;{{getConfigLabelName('f_balance','用户余额')}}</label>
114
+ <input type="text" v-model="baseinfo.base.f_balance" class="input_search" style="width:60%"
115
+ v-validate:f_balance="getConfigValidate('f_balance', false)"
116
+ :placeholder="getConfigPlaceholder('f_balance','用户余额')"
117
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
118
+ </div>
119
+ <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_is_mgq')"
120
+ v-show="(formconfig && formconfig.f_is_mgq && formconfig.f_is_mgq.required) || !onlyshowmust"
121
+ :class="[$v.f_is_mgq.required ? 'has-error' : '']">
122
+ <label for="f_is_mgq" style="letter-spacing: 0.5em;margin-right: -0.5em" class="font_normal_body w3">{{getConfigLabelName('f_is_mgq','煤改气')}}</label>
123
+ <input type="text" v-show="false" v-model="baseinfo.base.f_is_mgq"
124
+ v-validate:f_is_mgq="getConfigValidate('f_is_mgq', false)">
125
+ <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_mgq" v-model="baseinfo.base.f_is_mgq"
126
+ :placeholder="getConfigPlaceholder('f_is_mgq','是否煤改气')"
127
+ :options='mgq' style="width: 65%" close-on-select></v-select>
128
+ </div>
129
+ <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_book_no')"
130
+ v-show="(formconfig && formconfig.f_book_no && formconfig.f_book_no.required) || !onlyshowmust"
131
+ :class="[$v.f_book_no.required ? 'has-error' : '']">
132
+ <label for="f_contract" class="font_normal_body">&ensp;{{getConfigLabelName('f_book_no','燃气本号')}}</label>
133
+ <input type="text" v-model="baseinfo.base.f_book_no" class="input_search" style="width:60%"
134
+ v-validate:f_book_no="getConfigValidate('f_book_no', false)"
135
+ :placeholder="getConfigPlaceholder('f_book_no','用户证号')">
136
+ </div>
137
+ </div>
138
+ <div class="row">
139
+ <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_rent_name')"
140
+ v-show="(formconfig && formconfig.f_rent_name && formconfig.f_rent_name.required) || !onlyshowmust"
141
+ :class="[$v.f_rent_name.required ? 'has-error' : '']">
142
+ <label for="f_rent_name" class="font_normal_body">&ensp;{{getConfigLabelName('f_rent_name','租户姓名')}}</label>
143
+ <input type="text" v-model="baseinfo.base.f_rent_name" class="input_search" style="width:60%"
144
+ v-validate:f_rent_name="getConfigValidate('f_rent_name', false)"
145
+ :placeholder="getConfigPlaceholder('f_rent_name','租户姓名')">
146
+ </div>
147
+ <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_zuhu_phone')"
148
+ v-show="(formconfig && formconfig.f_zuhu_phone && formconfig.f_zuhu_phone.required) || !onlyshowmust"
149
+ :class="[$v.f_zuhu_phone.required ? 'has-error' : '']">
150
+ <label for="f_zuhu_phone" class="font_normal_body">{{getConfigLabelName('f_zuhu_phone','租户电话')}}</label>
151
+ <input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
152
+ v-validate:f_zuhu_phone="getConfigValidate('f_zuhu_phone', false)"
153
+ :placeholder="getConfigPlaceholder('f_zuhu_phone','租户电话')">
154
+ </div>
155
+ <div style="" class="col-sm-4 form-group"
156
+ v-show="(formconfig && formconfig.f_cost_type && formconfig.f_cost_type.required) || !onlyshowmust"
157
+ v-if="getConfigShowItem('f_cost_type')">
158
+ <label for="f_is_mgq" class="font_normal_body ">&ensp;{{getConfigLabelName('f_cost_type','付款类型')}}</label>
159
+ <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
160
+ :options='costtype'
161
+ :placeholder="getConfigPlaceholder('f_cost_type','付款类型')" style="width: 65%" close-on-select></v-select>
162
+ </div>
163
+ </div>
164
+ <div class="row">
165
+ <div class="col-sm-8 form-group" v-if="getConfigShowItem('f_contract_id')"
166
+ v-show="(formconfig && formconfig.f_contract_id && formconfig.f_contract_id.required) || !onlyshowmust"
167
+ :class="[$v.f_contract_id.required ? 'has-error' : '']">
168
+ <label for="f_contract" class="font_normal_body">&ensp;{{getConfigLabelName('f_contract_id','合同编号')}}</label>
169
+ <input type="text" v-model="baseinfo.base.f_contract_id" class="input_search" style="width:80%"
170
+ v-validate:f_contract_id="getConfigValidate('f_contract_id', false)"
171
+ :placeholder="getConfigPlaceholder('f_contract_id','合同编号')">
172
+ </div>
173
+ <div class="col-sm-4 form-group"
174
+ v-show="(formconfig && formconfig.f_print_dh && formconfig.f_print_dh.required) || !onlyshowmust"
175
+ :class="[$v.f_print_dh.required ? 'has-error' : '']">
176
+ <label for="f_print_dh" class="font_normal_body ">&ensp;{{getConfigLabelName('f_print_dh','打印类别')}}</label>
177
+ <input type="text" v-show="false" v-model="baseinfo.base.f_print_dh"
178
+ v-validate:f_print_dh="getConfigValidate('f_print_dh', false)">
179
+ <v-select id="f_print_dh" :value.sync="baseinfo.base.f_print_dh" v-model="baseinfo.base.f_print_dh"
180
+ :value-single="true" :disabled="baseinfo.base.f_print_dh_stats" :search="false"
181
+ :options='printstate' placeholder='流程单 | 点火单' style="width: 65%" close-on-select></v-select>
182
+ </div>
183
+
184
+
185
+ </div>
186
+ <div class="row">
187
+ <div style="" class="col-sm-12 form-group" v-if="getConfigShowItem('f_comments')"
188
+ v-show="(formconfig && formconfig.f_comments && formconfig.f_comments.required) || !onlyshowmust"
189
+ :class="[$v.f_comments.required ? 'has-error' : '']">
190
+ <label for="f_paper_accoun" style="letter-spacing: 2em;margin-right: -2em;margin-left: -2em" class="font_normal_body w2">&ensp;{{getConfigLabelName('f_comments','备注')}}</label>
191
+ <input class="input_search" style="width:86.5%;height: 40px" v-model="baseinfo.base.f_comments"
192
+ :placeholder="getConfigPlaceholder('f_comments','请输入备注信息')"
193
+ v-validate:f_comments="getConfigValidate('f_comments',false)" />
194
+ </div>
195
+
196
+ <div class="col-sm-4 form-group"
197
+ v-show="((formconfig && formconfig.f_house_type && formconfig.f_house_type.required) || !onlyshowmust) && getConfigShowItem('f_house_type')"
198
+ :class="[$v.f_house_type.required ? 'has-error' : '']">
199
+ <label for="f_user_state" class="font_normal_body">&ensp;{{getConfigLabelName('f_house_type','房屋类型')}}</label>
200
+ <input type="text" v-show="false" v-model="baseinfo.base.f_house_type"
201
+ v-validate:f_house_type="getConfigValidate('f_house_type',false)">
202
+ <v-select :value.sync="baseinfo.base.f_house_type"
203
+ :search="false"
204
+ :value-single="true"
205
+ :options='housetype' close-on-select
206
+ :placeholder="getConfigPlaceholder('f_house_type','房屋类型')">
207
+ </v-select>
208
+ </div>
209
+ </div>
210
+ <div class="row">
211
+ <a style="text-decoration: none;font-weight: 300;float: left;color: #333;margin-top: 15px;font-weight: 500"
212
+ v-if="baseinfo.base.f_cost_type[0] === '银行代扣'">银行信息</a>
213
+ </div>
214
+ <div v-if="baseinfo.base.f_cost_type[0] === '银行代扣'">
215
+ <div class="row">
216
+ <div class="col-sm-4 form-group"
217
+ :class="[$v.f_bank_accopen.required ? 'has-error' : '']">
218
+ <label for="f_username" class="font_normal_body">银行户名</label>
219
+ <input type="text" v-model="baseinfo.bank.f_bank_accopen"
220
+ class="input_search" style="width:60%" id="f_username" placeholder="客户名称"
221
+ v-validate:f_bank_accopen='{required: true}'
222
+ v-next-el="bankaccount">
223
+ </div>
224
+ <div class="col-sm-4 form-group" id=userfiles-useEssInf-银行名称>
225
+ <label for="f_username" class="font_normal_body ">银行名称</label>
226
+ <v-select :value.sync="baseinfo.bank.f_bank_name"
227
+ :options='banknames' placeholder='银行名称'
228
+ close-on-select></v-select>
229
+ </div>
230
+ <div class="col-sm-4 form-group">
231
+ <label for="f_bank_idnumber" class="font_normal_body">缴费编号</label>
232
+ <input type="text" v-model="baseinfo.bank.f_bank_pay_number"
233
+ class="input_search" style="width:60%"
234
+ aria-describedby="helpBlock" placeholder="缴费编号" v-el:bankpaynumber>
235
+ </div>
236
+ <div class="col-sm-12 form-group">
237
+ <label for="f_bank_idnumber" class="font_normal_body">身份证号</label>
238
+ <input type="text" v-model="baseinfo.bank.f_bank_idnumber"
239
+ class="input_search" style="width:54%"
240
+ aria-describedby="helpBlock" placeholder="身份证号" v-el:bankidnumber>
241
+ </div>
242
+ <div class="col-sm-12 form-group"
243
+ :class="[$v.f_bank_account.required ? 'has-error' : '']">
244
+ <label for="f_userid" class="font_normal_body">银行账号</label>
245
+ <input type="text" v-model="baseinfo.bank.f_bank_account" class="input_search" style="width:54%"
246
+ v-validate:f_bank_account='{required: true}' placeholder="银行账号" v-el:bankaccount
247
+ v-next-el="bankidnumber">
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </form>
252
+ </validator>
253
+ <modal v-if="showselectaddress" :show.sync="showselectaddress" width="80%" title="地址信息" v-ref:modal large
254
+ backdrop="false">
255
+ <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
256
+ <file-address-manage-new :is-select="isSelect" :fileinfo="addressinfo"
257
+ @address-valid="doNothing" :showselectaddress.sync="showselectaddress"
258
+ :f_filialeid="f_filialeid"
259
+ v-ref:fileaddress></file-address-manage-new>
260
+ </article>
261
+ <footer slot="modal-footer" class="modal-footer">
262
+ </footer>
263
+ </modal>
264
+ </div>
265
+ </template>
266
+
267
+ <script>
268
+ import {HttpResetClass} from 'vue-client'
269
+
270
+ let getEditUserState = async function (self) {
271
+ try {
272
+ let http = new HttpResetClass()
273
+ let result = await http.load('GET', `rs/vue/EditUserState.json`, {}, {resolveMsg: null, rejectMsg: null})
274
+ console.log(result.data.EditUserState)
275
+ self.edituserstate = result.data.EditUserState
276
+ Object.assign(self.config, result.data)
277
+ } catch (e) {
278
+ console.log(e)
279
+ }
280
+ }
281
+
282
+ export default {
283
+ title: '基本信息',
284
+ props: ['baseinfo', 'addressinfo', 'isedit', 'f_filialeid', 'formconfig', 'onlyshowmust'],
285
+ data () {
286
+ return {
287
+ showselectaddress: false,
288
+ site: '',
289
+ areas: [],
290
+ streets: [],
291
+ residentials: [],
292
+ config: {
293
+ f_idnumber: true,
294
+ f_house_type: true
295
+ },
296
+ validateRules: {},
297
+ inputtores: this.$appdata.getParam('抄表员'),
298
+ credentials: this.$appdata.getParam('证件类型'),
299
+ costtypes: this.$appdata.getParam('缴费类型'),
300
+ banknames: this.$appdata.getParam('银行名称'),
301
+ userstates: [{label: '预备', value: '预备'}],
302
+ housetype: this.$appdata.getParam('房屋类型'),
303
+ mgq: this.$appdata.getParam('是否煤改气'),
304
+ costtype: this.$appdata.getParam('付款类型'),
305
+ printstate: this.$appdata.getParam('建档打印类型') ? [{label: '暂不选择', value: '暂不选择'}, ...this.$appdata.getParam('建档打印类型')] : [{label: '暂不选择', value: '暂不选择'}],
306
+ peopleMax: this.$appdata.getSingleValue('最大人口数'),
307
+ jurisdiction: this.$login.r,
308
+ edituserstate: false,
309
+ // highMeterPlugin: {},
310
+ readCardFlag: true,
311
+
312
+ isSelect: false
313
+ }
314
+ },
315
+ ready () {
316
+ getEditUserState(this)
317
+ this.$resetValidation()
318
+ // this.initValidateRules()
319
+ },
320
+ beforeDestroy () {
321
+ },
322
+ methods: {
323
+ // updateValidateRules() {
324
+ // if (!this.formconfig) return
325
+ //
326
+ // Object.keys(this.formconfig).forEach(field => {
327
+ // const fieldConfig = this.formconfig[field]
328
+ // const rules = {}
329
+ //
330
+ // if (fieldConfig.required) {
331
+ // rules.required = true
332
+ // }
333
+ //
334
+ // if (fieldConfig.minlength || fieldConfig.minlength === 0) {
335
+ // rules.minlength = fieldConfig.minlength
336
+ // }
337
+ //
338
+ // if (fieldConfig.maxlength) {
339
+ // rules.maxlength = fieldConfig.maxlength
340
+ // }
341
+ //
342
+ // this.validateRules[field] = Object.assign({}, this.validateRules[field], rules)
343
+ // })
344
+ // },
345
+
346
+ getConfigValidate (name, defaultVal) {
347
+ this.$resetValidation()
348
+ if (this.formconfig && this.formconfig[name]) {
349
+ let Validate = {}
350
+ if (this.formconfig[name].required) {
351
+ Object.assign(Validate, {required: true})
352
+ }
353
+ if (this.formconfig[name].minlength || this.formconfig[name].minlength === 0) {
354
+ Object.assign(Validate, {minlength: this.formconfig[name].minlength})
355
+ }
356
+ if (this.formconfig[name].maxlength) {
357
+ Object.assign(Validate, {maxlength: this.formconfig[name].maxlength})
358
+ }
359
+ return Validate
360
+ } else if (name === 'f_user_phone') {
361
+ return { minlength: 11, maxlength: 11 }
362
+ } else if (defaultVal) {
363
+ return {required: defaultVal}
364
+ }
365
+ return {}
366
+ },
367
+ getConfigShowItem (name, defaultVal = true) {
368
+ if (this.formconfig && this.formconfig[name] && this.formconfig[name].hasOwnProperty('showItem')) {
369
+ return this.formconfig[name].showItem
370
+ } else {
371
+ return defaultVal
372
+ }
373
+ },
374
+ getConfigLabelName (name, defaultVal) {
375
+ if (this.formconfig && this.formconfig[name] && this.formconfig[name].labelName) {
376
+ return this.formconfig[name].labelName
377
+ } else {
378
+ return defaultVal
379
+ }
380
+ },
381
+ getConfigPlaceholder (name, defaultVal) {
382
+ if (this.formconfig && this.formconfig[name] && this.formconfig[name].placeholder) {
383
+ return this.formconfig[name].placeholder
384
+ } else {
385
+ return defaultVal
386
+ }
387
+ },
388
+ selectaddress () {
389
+ this.showselectaddress = true
390
+ this.isSelect = true
391
+ },
392
+ modifyaddress () {
393
+ this.showselectaddress = true
394
+ this.isSelect = false
395
+ },
396
+ onValid (res) {
397
+ this.$dispatch('valid')
398
+ },
399
+ onInvalid (res) {
400
+ // 打印所有校验状态
401
+ this.$dispatch('invalid')
402
+ },
403
+ doNothing () {
404
+ // console.log('啥也不做')
405
+ },
406
+ resetValidation () {
407
+ this.baseinfo = Object.assign({}, this.baseinfo)
408
+ this.$nextTick(() => {
409
+ this.$resetValidation();
410
+ })
411
+ },
412
+ readIDCardCallback (compoent, msg) {
413
+ // console.log('进入高拍仪',msg)
414
+ if (msg.err !== 0) {
415
+ return
416
+ }
417
+ // document.getElementById("idCardType").getElementsByClassName("btn-content")[0].innerHTML="身份证"
418
+ compoent.baseinfo.base.f_idnumber = msg.strID
419
+ compoent.baseinfo.base.f_user_name = msg.strName.trim()
420
+ // compoent.baseinfo.base.f_credentials = '身份证'
421
+ }
422
+ },
423
+ watch: {
424
+ 'baseinfo.base.f_credentials' () {
425
+ this.$resetValidation()
426
+ },
427
+ 'baseinfo.base.f_cost_type[0]' () {
428
+ console.log('baseinfo.base.f_cost_type 变化了')
429
+ this.$resetValidation()
430
+ },
431
+ 'baseinfo.base.f_user_name' (val) {
432
+ console.log('f_user_name变化', val)
433
+ }
434
+ },
435
+ computed: {
436
+ peoplenums () {
437
+ let peopleMax = this.$appdata.getSingleValue('最大人口数') ? this.$appdata.getSingleValue('最大人口数') : 0
438
+ let nums = []
439
+ for (let i = 1; i <= peopleMax; i++) {
440
+ let temp = {}
441
+ temp.label = i
442
+ temp.value = i
443
+ nums.push(temp)
444
+ }
445
+ return nums
446
+ }
447
+ },
448
+ events: {
449
+ 'confirmaddress' (res) {
450
+ this.showselectaddress = false
451
+ this.addressinfo.f_address = res.f_address
452
+ this.addressinfo.id = res.id
453
+ this.$dispatch('defaultOtheret', res)
454
+ }
455
+ }
456
+ }
457
+ </script>