safecheck-client 4.0.0-59 → 4.0.0-60

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 (224) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  4. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  5. package/src/components/android/AddPlanItem.vue +447 -447
  6. package/src/components/android/AddPlanItemYy.vue +451 -451
  7. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  8. package/src/components/android/AndroidDefectDetails.vue +725 -725
  9. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  10. package/src/components/android/Devices.vue +327 -327
  11. package/src/components/android/Devicesm.vue +327 -327
  12. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  13. package/src/components/android/PhoneRecordInfo.vue +113 -113
  14. package/src/components/android/PhoneSellInfo.vue +113 -113
  15. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  16. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  17. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  18. package/src/components/android/SafePlanItem.vue +509 -509
  19. package/src/components/android/UserinfoSelect.vue +714 -714
  20. package/src/components/android/examples/SafeListExamples.vue +296 -296
  21. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  22. package/src/components/android/recheck/Recheck.vue +402 -402
  23. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  24. package/src/components/checkplan/checkmsg.vue +459 -459
  25. package/src/components/defect/DefectList.vue +507 -507
  26. package/src/components/defect/DefectListWeixiu.vue +484 -484
  27. package/src/components/filialCircle/CircleList.vue +139 -139
  28. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  29. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  30. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  31. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  32. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  33. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  34. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  35. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  36. package/src/components/pc/AnnouncementPC.vue +524 -524
  37. package/src/components/pc/DefectList.vue +742 -742
  38. package/src/components/pc/DeviceChange.vue +1068 -1068
  39. package/src/components/pc/SafeVisitInfo.vue +261 -261
  40. package/src/components/planmanage/PlanManage.vue +886 -886
  41. package/src/components/planmanage/checkPlanList.vue +368 -368
  42. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  43. package/src/components/report/HiddenSituation.vue +165 -165
  44. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  45. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  46. package/src/components/rongcheng/DefectList.vue +560 -560
  47. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  48. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  49. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  50. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  51. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  52. package/src/components/shaoguan/DefectList.vue +473 -473
  53. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  54. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  55. package/src/components/userfile/SecurityAudit.vue +243 -243
  56. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  57. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  58. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  59. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  60. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  61. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  62. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  63. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  64. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  65. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  66. package/src/filiale/bayan/android/Edit.vue +132 -132
  67. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  68. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  69. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  70. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  71. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  72. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  73. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  74. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  75. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  76. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  77. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  78. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  79. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  80. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  81. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  82. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  83. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  84. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  85. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  86. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  87. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  88. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  89. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  90. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  91. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  92. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  93. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  94. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  95. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  96. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  97. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +437 -437
  98. package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -346
  99. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  100. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  101. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  102. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  103. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  104. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  105. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  106. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  107. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  108. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  109. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  110. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  111. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  112. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  113. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  114. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  115. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  116. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  117. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  118. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  119. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  120. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  121. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  122. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  123. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  124. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  125. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  126. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  127. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  128. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  129. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  130. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  131. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  132. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  133. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  134. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  135. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  136. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  137. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  138. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  139. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  140. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  141. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  142. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  143. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  144. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  145. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  146. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  147. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  148. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  149. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  150. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  151. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  152. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  153. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  154. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  155. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  156. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  157. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  158. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  159. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  160. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  161. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  162. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  163. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  164. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  165. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  166. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  167. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  168. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  169. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  170. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  171. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  172. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  173. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  174. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  175. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  176. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  177. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  178. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  179. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  180. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  181. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  182. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  183. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  184. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  185. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  186. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  187. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  188. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  189. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  190. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  191. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  192. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  193. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  194. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  195. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  196. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  197. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  198. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  199. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  200. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  201. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  202. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  203. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  204. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  205. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  206. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  207. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  208. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  209. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  210. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  211. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -0
  212. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2848 -2848
  213. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  214. package/src/filiale/yunchengminsheng/android.js +15 -14
  215. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  216. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  217. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  218. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  219. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  220. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  221. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  222. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  223. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  224. package/src/main.js +32 -33
@@ -1,437 +1,437 @@
1
- <template>
2
- <div class="auto clearfix">
3
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
4
- <div class="col-xs-4 col-sm-4 col-md-4">
5
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
6
- <span class="text-left font">客户编号</span>
7
- </div>
8
- <div class="col-xs-8 col-sm-8 col-md-8">
9
- <p class="text-left show-font">{{ model.f_userinfo_code }}</p>
10
- </div>
11
- </div>
12
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
13
- <div class="col-xs-4 col-sm-4 col-md-4">
14
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
15
- <span class="text-left font">客户姓名</span>
16
- </div>
17
- <div class="col-xs-8 col-sm-8 col-md-8">
18
- <input v-model="model.f_user_name" class="form-control show-font" placeholder="请输入客户姓名" type="text">
19
- </div>
20
- </div>
21
- <div class="row app-row col-xs-12 col-sm-12 col-md-12">
22
- <div class="col-xs-4 col-sm-2 col-md-2">
23
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
24
- <span class="text-left font">客户地址</span>
25
- </div>
26
- <div class="col-xs-8 col-sm-10 col-md-10">
27
- <input v-model="model.f_address" class="form-control show-font" placeholder="请输入客户地址" type="text">
28
- </div>
29
- </div>
30
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
31
- <div class="col-xs-4 col-sm-4 col-md-4">
32
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
33
- <span class="text-left font">客户电话</span>
34
- </div>
35
- <div class="col-xs-8 col-sm-8 col-md-8">
36
- <input v-model="model.f_user_phone" class="form-control show-font" placeholder="请输入电话号码" type="number">
37
- </div>
38
- </div>
39
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
40
- <div class="col-xs-4 col-sm-4 col-md-4">
41
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
42
- <span class="text-left font">证件类型</span>
43
- </div>
44
- <div class="col-xs-8 col-sm-8 col-md-8">
45
- <v-select v-model="model.f_id_type" :options="idTypeOptions"
46
- :value-single="true" :value.sync="model.f_id_type"
47
- close-on-select placeholder="请选择证件类型"
48
- style="width: 100%">
49
- </v-select>
50
- </div>
51
- </div>
52
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
53
- <div class="col-xs-4 col-sm-4 col-md-4">
54
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
55
- <span class="text-left font">证件号码</span>
56
- </div>
57
- <div class="col-xs-8 col-sm-8 col-md-8">
58
- <input v-model="model.f_idnumber" class="form-control show-font" placeholder="请输入证件号码" type="text">
59
- </div>
60
- </div>
61
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
62
- <div class="col-xs-4 col-sm-4 col-md-4">
63
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
64
- <span class="text-left font">保单号</span>
65
- </div>
66
- <div class="col-xs-8 col-sm-8 col-md-8">
67
- <input v-model="model.f_insurance_number" class="form-control show-font" placeholder="请输入保单号" type="number">
68
- </div>
69
- </div>
70
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
71
- <div class="col-xs-4 col-sm-4 col-md-4">
72
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
73
- <span class="text-left font">上期保费截至日期</span>
74
- </div>
75
- <div class="col-xs-8 col-sm-8 col-md-8">
76
- <p class="text-left show-font">{{ model.f_last_insexpiration_date }}</p>
77
- </div>
78
- </div>
79
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
80
- <div class="col-xs-4 col-sm-4 col-md-4">
81
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
82
- <span class="text-left font">投保日期</span>
83
- </div>
84
- <div class="col-xs-8 col-sm-8 col-md-8">
85
- <datepicker v-model="model.f_ins_start_date" :format="'yyyy-MM-dd'" :value.sync="model.f_ins_start_date"
86
- placeholder="请选择投保日期" style="width: 60%" @change="changeExpirationDate">
87
- </datepicker>
88
- </div>
89
- </div>
90
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
91
- <div class="col-xs-4 col-sm-4 col-md-4">
92
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
93
- <span class="text-left font">购买年限</span>
94
- </div>
95
- <div class="col-xs-8 col-sm-8 col-md-8">
96
- <input v-model="model.f_salecount" class="form-control show-font" placeholder="购买年限" style="width: 60%"
97
- type="number" @change="changeExpirationDate">
98
- </div>
99
- </div>
100
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
101
- <div class="col-xs-4 col-sm-4 col-md-4">
102
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
103
- <span class="text-left font">购买日期</span>
104
- </div>
105
- <div class="col-xs-8 col-sm-8 col-md-8">
106
- <datepicker v-model="create_date" :format="'yyyy-MM-dd'" :value.sync="create_date"
107
- placeholder="购买日期" style="width: 60%">
108
- </datepicker>
109
- </div>
110
- </div>
111
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
112
- <div class="col-xs-4 col-sm-4 col-md-4">
113
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
114
- <span class="text-left font">到期日期</span>
115
- </div>
116
- <div class="col-xs-8 col-sm-8 col-md-8">
117
- <datepicker v-model="model.f_expiration_date" :format="'yyyy-MM-dd'" :value.sync="model.f_expiration_date"
118
- placeholder="到期日期" style="width: 60%">
119
- </datepicker>
120
- </div>
121
- </div>
122
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
123
- <div class="col-xs-4 col-sm-4 col-md-4">
124
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
125
- <span class="text-left font">保险公司</span>
126
- </div>
127
- <div class="col-xs-8 col-sm-8 col-md-8">
128
- <v-select v-model="model.f_insurance_company" :options="insurance_companys"
129
- :value-single="true" :value.sync="model.f_insurance_company"
130
- close-on-select placeholder="保险公司"
131
- style="width: 100%">
132
- </v-select>
133
- </div>
134
- </div>
135
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
136
- <div class="col-xs-4 col-sm-4 col-md-4">
137
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
138
- <span class="text-left font">保险险种</span>
139
- </div>
140
- <div class="col-xs-8 col-sm-8 col-md-8">
141
- <v-select v-model="model.f_insurance_type" :options="insurance_types"
142
- :value-single="true" :value.sync="model.f_insurance_type"
143
- close-on-select placeholder="保险险种"
144
- style="width: 100%">
145
- </v-select>
146
- </div>
147
- </div>
148
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
149
- <div class="col-xs-4 col-sm-4 col-md-4">
150
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
151
- <span class="text-left font">金额</span>
152
- </div>
153
- <div class="col-xs-8 col-sm-8 col-md-8">
154
- <input v-model="model.f_money" class="form-control show-font" placeholder="请输入金额" type="number">
155
- </div>
156
- </div>
157
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
158
- <div class="col-xs-4 col-sm-4 col-md-4">
159
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
160
- <span class="text-left font">与投保人关系</span>
161
- </div>
162
- <div class="col-xs-8 col-sm-8 col-md-8">
163
- <v-select v-model="model.f_relationship" :options="relationshipOptions"
164
- :value-single="true" :value.sync="model.f_relationship"
165
- close-on-select placeholder="请选择关系"
166
- style="width: 100%">
167
- </v-select>
168
- </div>
169
- </div>
170
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
171
- <div class="col-xs-4 col-sm-4 col-md-4">
172
- <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
173
- <span class="text-left font">收款方式</span>
174
- </div>
175
- <div class="col-xs-8 col-sm-8 col-md-8">
176
- <v-select v-model="model.f_payment" :options="payTypes"
177
- :value-single="true" :value.sync="model.f_payment"
178
- close-on-select placeholder="收款方式"
179
- style="width: 100%">
180
- </v-select>
181
- </div>
182
- </div>
183
- <div class="row app-row col-xs-12">
184
- <div class="col-xs-4 col-sm-4 col-md-4">
185
- <img alt="" src="../../../assets/add.png" style="width: 20px;">
186
- <span class="text-left font">备注</span>
187
- </div>
188
- <div class="col-xs-8 col-sm-8 col-md-8">
189
- <input v-model="model.f_comments" class="form-control show-font" placeholder="备注">
190
- </div>
191
- </div>
192
- <div class="col-xs-12 text-center app-row">
193
- <button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="commit()">提交</button>
194
- </div>
195
- </div>
196
- </template>
197
- <script>
198
- import {HttpResetClass} from 'vue-client'
199
- import * as Util from '../../../components/Util'
200
- import Vue from 'vue'
201
-
202
- export default {
203
- title: '手机单户抄表',
204
- data() {
205
- return {
206
- create_date: Util.getNowDate(),
207
- isCommit: false,
208
- insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
209
- insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
210
- payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
211
- idTypeOptions: [
212
- {label: '身份证', value: '身份证'},
213
- {label: '军官证', value: '军官证'},
214
- {label: '统一社会信用代码', value: '统一社会信用代码'},
215
- {label: '港澳居民通行证', value: '港澳居民通行证'},
216
- {label: '外国人永久居留证', value: '外国人永久居留证'},
217
- {label: '户口本', value: '户口本'}
218
- ],
219
- relationshipOptions: [
220
- {label: '本人', value: '0'},
221
- {label: '配偶', value: '1'},
222
- {label: '父母', value: '2'},
223
- {label: '子女', value: '3'},
224
- {label: '其他', value: '9'}
225
- ]
226
- }
227
- },
228
- props: {
229
- model: {
230
- type: Object,
231
- default: {}
232
- }
233
- },
234
- ready() {
235
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
236
- data: {
237
- items: 'ui.*,p.f_province,p.f_city,p.f_district,tu.f_user_type,tu.f_user_id,tu.version as table_version',
238
- tablename: 't_userinfo ui left join t_user_address ua on ui.f_userinfo_id = ua.f_userinfo_id left join t_pcd p on ua.f_pcd_id = p.id left join t_userfiles tu on tu.f_userinfo_id = ui.f_userinfo_id',
239
- condition: `ui.f_userinfo_id = '${this.model.f_userinfo_id}' and tu.f_table_state in ('正常','停用','预备')`,
240
- orderitem: '1'
241
- }
242
- }).then(response => {
243
- this.model = Object.assign({}, this.model, response.data[0])
244
- this.model.f_last_insexpiration_date = response.data[0].f_ins_stop_date
245
- if (response.data[0].f_user_type.includes('非民用')) {
246
- this.model.f_relationship = '9'
247
- } else {
248
- this.model.f_relationship = '0'
249
- }
250
- if (response.data[0].f_ins_stop_date && response.data[0].f_ins_stop_date >= Util.toStandardDateString()) {
251
- let stopDate = new Date(response.data[0].f_ins_stop_date)
252
- stopDate.setDate(stopDate.getDate() + 1)
253
- let year = stopDate.getFullYear()
254
- let month = (stopDate.getMonth() + 1).toString().padStart(2, '0')
255
- let day = stopDate.getDate().toString().padStart(2, '0')
256
- this.model.f_ins_start_date = `${year}-${month}-${day}`
257
- } else {
258
- this.model.f_ins_start_date = Util.toStandardDateString()
259
- }
260
- // if (!this.model.province || !this.model.city || !this.model.county){
261
- // this.$showMessage('检查档案省、市、区数据是否正常')
262
- // }
263
- })
264
- this.model.f_money = ''
265
- this.model.f_fee_type = ''
266
- this.model.f_comments = ''
267
- this.model.f_salecount = 1
268
- this.model.f_insurance_number = ''
269
- this.model.f_id_type = '身份证'
270
- },
271
- methods: {
272
- async commit() {
273
- if (!this.model.f_payment) {
274
- this.$showMessage('收款方式未选择,请选择后重新尝试。')
275
- return
276
- }
277
- if (!this.model.f_ins_start_date) {
278
- this.$showMessage('投保日期未选择,请选择后重新尝试。')
279
- return
280
- }
281
- if (!this.model.f_expiration_date) {
282
- this.$showMessage('到期日期未选择,请选择后重新尝试。')
283
- return
284
- }
285
- if (!this.model.f_insurance_type) {
286
- this.$showMessage('保险险种未填写,请填写后重新尝试。')
287
- return
288
- }
289
- if (!this.model.f_money) {
290
- this.$showMessage('金额未填写,请填写后重新尝试。')
291
- return
292
- }
293
- if (!this.model.f_id_type) {
294
- this.$showMessage('证件类型未选择,请选择后重新尝试。')
295
- return
296
- }
297
- // if (!this.model.f_idnumber) {
298
- // this.$showMessage('证件号码未填写,请填写后重新尝试。')
299
- // return
300
- // }
301
- if (!this.model.f_insurance_number) {
302
- this.$showMessage('保单号未填写,请填写后重新尝试。')
303
- return
304
- }
305
- if (!this.model.f_relationship) {
306
- this.$showMessage('与投保人关系未选择,请选择后重新尝试。')
307
- return
308
- }
309
- let data = {
310
- "begin_date": this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
311
- "insure_period_display": `${this.model.f_salecount}年`,// 保期
312
- "user_name": this.model.f_user_name,// 投保人姓名
313
- "id_type": this.model.f_id_type,//证件类型
314
- "id_number": this.model.f_idnumber,// 证件号码
315
- "user_phone": this.model.f_user_phone,// 投保人电话
316
- "user_address": this.model.f_address,// 投保人地址
317
- "province": this.model.f_province,//省
318
- "city": this.model.f_city,//市
319
- "county": this.model.f_district,//区
320
- "insuredList": [ //被保人信息
321
- {
322
- "user_name": this.model.f_user_name,// 被保人姓名
323
- "id_type": this.model.f_id_type,//证件类型
324
- "id_number": this.model.f_idnumber,// 证件号码
325
- "relationship": this.model.f_relationship//与投保人关系: 0 本人 1 配偶 2 父母 3 子女 9 其他 若投保人是企业,默认传9
326
- }
327
- ]
328
- }
329
- try {
330
- let commit_data = JSON.parse(JSON.stringify(this.model))
331
- /*const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, data)
332
- let commit_data = JSON.parse(JSON.stringify(this.model))
333
- if (response.data.message.includes('成功')) {
334
- commit_data.f_serial_id = response.data.orderNo
335
- } else {
336
- this.$showMessage(response.data.message)
337
- return
338
- }*/
339
- commit_data.f_buy_date = this.create_date
340
- commit_data.f_total_ins_charge = 0
341
- commit_data.f_operatorid = Vue.user.id
342
- commit_data.f_operator = Vue.user.name
343
- if (this.model.f_payment == '余额抵扣'){
344
- if (this.model.f_meter_classify == '机表'){
345
- if((this.model.f_balance -0)-this.model.f_money < 0){
346
- this.$showMessage('当前用户账户余额不够抵扣本次收费,请选择其他的收费方式进行收费')
347
- return
348
- }
349
- commit_data.f_receivable = Number(commit_data.f_money)
350
- commit_data.f_money = 0
351
- }else {
352
- this.$showMessage('仅有机表用户可选择余额抵扣')
353
- return
354
- }
355
- }
356
- commit_data.f_receivable = this.model.f_money
357
- commit_data.f_operate_date = Util.toStandardDateString()
358
- commit_data.f_state = '有效'
359
- commit_data.f_orgid = Vue.user.orgid
360
- commit_data.f_orgname = Vue.user.orgs
361
- commit_data.f_depid = Vue.user.depids
362
- commit_data.f_depname = Vue.user.deps
363
- await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
364
- this.$showMessage('提交成功')
365
- this.$back()
366
- } catch (error) {
367
- this.$showMessage('提交失败')
368
- this.isCommit = false
369
- }
370
- },
371
- changeExpirationDate() {
372
- if (this.model.f_ins_start_date && this.model.f_salecount) {
373
- let factoryDate = new Date(this.model.f_ins_start_date);
374
- let scrapDate = new Date(factoryDate);
375
- scrapDate.setFullYear(factoryDate.getFullYear() + parseInt(this.model.f_salecount));
376
- let year = scrapDate.getFullYear();
377
- let month = (scrapDate.getMonth() + 1).toString().padStart(2, '0');
378
- let day = (scrapDate.getDate()-1).toString().padStart(2, '0');
379
- this.$set('model.f_expiration_date',`${year}-${month}-${day}`)
380
- }
381
- }
382
- },
383
- watch: {
384
- 'model.f_insurance_type'() {
385
- this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
386
- },
387
- 'model.f_salecount'() {
388
- this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
389
- }
390
- }
391
- }
392
- </script>
393
- <style scoped>
394
- .mt-5 {
395
- margin-top: 5px;
396
- }
397
-
398
- .mt-10 {
399
- margin-top: 10px;
400
- }
401
-
402
- .mt-20 {
403
- margin-top: 20px;
404
- }
405
-
406
- .app-row {
407
- background-color: white;
408
- padding: 10px 10px 0 10px;
409
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
410
- }
411
-
412
- .app-row-none-border {
413
- background-color: white;
414
- padding: 10px 10px 0 10px;
415
- }
416
-
417
- .font {
418
- font: 15px PingFang-SC-Medium;
419
- color: #666666;
420
- }
421
-
422
- .show-font {
423
- font: 15px PingFang-SC-Medium;
424
- color: #333333
425
- }
426
-
427
- .btn-font {
428
- font: 600 16px PingFang-SC-Bold;
429
- color: #499EDF;
430
- }
431
-
432
- .btn-color {
433
- background-color: #FFFFFF;
434
- border-radius: 10px;
435
- border: 1px solid #499EDF;
436
- }
437
- </style>
1
+ <template>
2
+ <div class="auto clearfix">
3
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
4
+ <div class="col-xs-4 col-sm-4 col-md-4">
5
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
6
+ <span class="text-left font">客户编号</span>
7
+ </div>
8
+ <div class="col-xs-8 col-sm-8 col-md-8">
9
+ <p class="text-left show-font">{{ model.f_userinfo_code }}</p>
10
+ </div>
11
+ </div>
12
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
13
+ <div class="col-xs-4 col-sm-4 col-md-4">
14
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
15
+ <span class="text-left font">客户姓名</span>
16
+ </div>
17
+ <div class="col-xs-8 col-sm-8 col-md-8">
18
+ <input v-model="model.f_user_name" class="form-control show-font" placeholder="请输入客户姓名" type="text">
19
+ </div>
20
+ </div>
21
+ <div class="row app-row col-xs-12 col-sm-12 col-md-12">
22
+ <div class="col-xs-4 col-sm-2 col-md-2">
23
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
24
+ <span class="text-left font">客户地址</span>
25
+ </div>
26
+ <div class="col-xs-8 col-sm-10 col-md-10">
27
+ <input v-model="model.f_address" class="form-control show-font" placeholder="请输入客户地址" type="text">
28
+ </div>
29
+ </div>
30
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
31
+ <div class="col-xs-4 col-sm-4 col-md-4">
32
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
33
+ <span class="text-left font">客户电话</span>
34
+ </div>
35
+ <div class="col-xs-8 col-sm-8 col-md-8">
36
+ <input v-model="model.f_user_phone" class="form-control show-font" placeholder="请输入电话号码" type="number">
37
+ </div>
38
+ </div>
39
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
40
+ <div class="col-xs-4 col-sm-4 col-md-4">
41
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
42
+ <span class="text-left font">证件类型</span>
43
+ </div>
44
+ <div class="col-xs-8 col-sm-8 col-md-8">
45
+ <v-select v-model="model.f_id_type" :options="idTypeOptions"
46
+ :value-single="true" :value.sync="model.f_id_type"
47
+ close-on-select placeholder="请选择证件类型"
48
+ style="width: 100%">
49
+ </v-select>
50
+ </div>
51
+ </div>
52
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
53
+ <div class="col-xs-4 col-sm-4 col-md-4">
54
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
55
+ <span class="text-left font">证件号码</span>
56
+ </div>
57
+ <div class="col-xs-8 col-sm-8 col-md-8">
58
+ <input v-model="model.f_idnumber" class="form-control show-font" placeholder="请输入证件号码" type="text">
59
+ </div>
60
+ </div>
61
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
62
+ <div class="col-xs-4 col-sm-4 col-md-4">
63
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
64
+ <span class="text-left font">保单号</span>
65
+ </div>
66
+ <div class="col-xs-8 col-sm-8 col-md-8">
67
+ <input v-model="model.f_insurance_number" class="form-control show-font" placeholder="请输入保单号" type="number">
68
+ </div>
69
+ </div>
70
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
71
+ <div class="col-xs-4 col-sm-4 col-md-4">
72
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
73
+ <span class="text-left font">上期保费截至日期</span>
74
+ </div>
75
+ <div class="col-xs-8 col-sm-8 col-md-8">
76
+ <p class="text-left show-font">{{ model.f_last_insexpiration_date }}</p>
77
+ </div>
78
+ </div>
79
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
80
+ <div class="col-xs-4 col-sm-4 col-md-4">
81
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
82
+ <span class="text-left font">投保日期</span>
83
+ </div>
84
+ <div class="col-xs-8 col-sm-8 col-md-8">
85
+ <datepicker v-model="model.f_ins_start_date" :format="'yyyy-MM-dd'" :value.sync="model.f_ins_start_date"
86
+ placeholder="请选择投保日期" style="width: 60%" @change="changeExpirationDate">
87
+ </datepicker>
88
+ </div>
89
+ </div>
90
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
91
+ <div class="col-xs-4 col-sm-4 col-md-4">
92
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
93
+ <span class="text-left font">购买年限</span>
94
+ </div>
95
+ <div class="col-xs-8 col-sm-8 col-md-8">
96
+ <input v-model="model.f_salecount" class="form-control show-font" placeholder="购买年限" style="width: 60%"
97
+ type="number" @change="changeExpirationDate">
98
+ </div>
99
+ </div>
100
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
101
+ <div class="col-xs-4 col-sm-4 col-md-4">
102
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
103
+ <span class="text-left font">购买日期</span>
104
+ </div>
105
+ <div class="col-xs-8 col-sm-8 col-md-8">
106
+ <datepicker v-model="create_date" :format="'yyyy-MM-dd'" :value.sync="create_date"
107
+ placeholder="购买日期" style="width: 60%">
108
+ </datepicker>
109
+ </div>
110
+ </div>
111
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
112
+ <div class="col-xs-4 col-sm-4 col-md-4">
113
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
114
+ <span class="text-left font">到期日期</span>
115
+ </div>
116
+ <div class="col-xs-8 col-sm-8 col-md-8">
117
+ <datepicker v-model="model.f_expiration_date" :format="'yyyy-MM-dd'" :value.sync="model.f_expiration_date"
118
+ placeholder="到期日期" style="width: 60%">
119
+ </datepicker>
120
+ </div>
121
+ </div>
122
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
123
+ <div class="col-xs-4 col-sm-4 col-md-4">
124
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
125
+ <span class="text-left font">保险公司</span>
126
+ </div>
127
+ <div class="col-xs-8 col-sm-8 col-md-8">
128
+ <v-select v-model="model.f_insurance_company" :options="insurance_companys"
129
+ :value-single="true" :value.sync="model.f_insurance_company"
130
+ close-on-select placeholder="保险公司"
131
+ style="width: 100%">
132
+ </v-select>
133
+ </div>
134
+ </div>
135
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
136
+ <div class="col-xs-4 col-sm-4 col-md-4">
137
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
138
+ <span class="text-left font">保险险种</span>
139
+ </div>
140
+ <div class="col-xs-8 col-sm-8 col-md-8">
141
+ <v-select v-model="model.f_insurance_type" :options="insurance_types"
142
+ :value-single="true" :value.sync="model.f_insurance_type"
143
+ close-on-select placeholder="保险险种"
144
+ style="width: 100%">
145
+ </v-select>
146
+ </div>
147
+ </div>
148
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
149
+ <div class="col-xs-4 col-sm-4 col-md-4">
150
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
151
+ <span class="text-left font">金额</span>
152
+ </div>
153
+ <div class="col-xs-8 col-sm-8 col-md-8">
154
+ <input v-model="model.f_money" class="form-control show-font" placeholder="请输入金额" type="number">
155
+ </div>
156
+ </div>
157
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
158
+ <div class="col-xs-4 col-sm-4 col-md-4">
159
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
160
+ <span class="text-left font">与投保人关系</span>
161
+ </div>
162
+ <div class="col-xs-8 col-sm-8 col-md-8">
163
+ <v-select v-model="model.f_relationship" :options="relationshipOptions"
164
+ :value-single="true" :value.sync="model.f_relationship"
165
+ close-on-select placeholder="请选择关系"
166
+ style="width: 100%">
167
+ </v-select>
168
+ </div>
169
+ </div>
170
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
171
+ <div class="col-xs-4 col-sm-4 col-md-4">
172
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
173
+ <span class="text-left font">收款方式</span>
174
+ </div>
175
+ <div class="col-xs-8 col-sm-8 col-md-8">
176
+ <v-select v-model="model.f_payment" :options="payTypes"
177
+ :value-single="true" :value.sync="model.f_payment"
178
+ close-on-select placeholder="收款方式"
179
+ style="width: 100%">
180
+ </v-select>
181
+ </div>
182
+ </div>
183
+ <div class="row app-row col-xs-12">
184
+ <div class="col-xs-4 col-sm-4 col-md-4">
185
+ <img alt="" src="../../../assets/add.png" style="width: 20px;">
186
+ <span class="text-left font">备注</span>
187
+ </div>
188
+ <div class="col-xs-8 col-sm-8 col-md-8">
189
+ <input v-model="model.f_comments" class="form-control show-font" placeholder="备注">
190
+ </div>
191
+ </div>
192
+ <div class="col-xs-12 text-center app-row">
193
+ <button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="commit()">提交</button>
194
+ </div>
195
+ </div>
196
+ </template>
197
+ <script>
198
+ import {HttpResetClass} from 'vue-client'
199
+ import * as Util from '../../../components/Util'
200
+ import Vue from 'vue'
201
+
202
+ export default {
203
+ title: '手机单户抄表',
204
+ data() {
205
+ return {
206
+ create_date: Util.getNowDate(),
207
+ isCommit: false,
208
+ insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
209
+ insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
210
+ payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
211
+ idTypeOptions: [
212
+ {label: '身份证', value: '身份证'},
213
+ {label: '军官证', value: '军官证'},
214
+ {label: '统一社会信用代码', value: '统一社会信用代码'},
215
+ {label: '港澳居民通行证', value: '港澳居民通行证'},
216
+ {label: '外国人永久居留证', value: '外国人永久居留证'},
217
+ {label: '户口本', value: '户口本'}
218
+ ],
219
+ relationshipOptions: [
220
+ {label: '本人', value: '0'},
221
+ {label: '配偶', value: '1'},
222
+ {label: '父母', value: '2'},
223
+ {label: '子女', value: '3'},
224
+ {label: '其他', value: '9'}
225
+ ]
226
+ }
227
+ },
228
+ props: {
229
+ model: {
230
+ type: Object,
231
+ default: {}
232
+ }
233
+ },
234
+ ready() {
235
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
236
+ data: {
237
+ items: 'ui.*,p.f_province,p.f_city,p.f_district,tu.f_user_type,tu.f_user_id,tu.version as table_version',
238
+ tablename: 't_userinfo ui left join t_user_address ua on ui.f_userinfo_id = ua.f_userinfo_id left join t_pcd p on ua.f_pcd_id = p.id left join t_userfiles tu on tu.f_userinfo_id = ui.f_userinfo_id',
239
+ condition: `ui.f_userinfo_id = '${this.model.f_userinfo_id}' and tu.f_table_state in ('正常','停用','预备')`,
240
+ orderitem: '1'
241
+ }
242
+ }).then(response => {
243
+ this.model = Object.assign({}, this.model, response.data[0])
244
+ this.model.f_last_insexpiration_date = response.data[0].f_ins_stop_date
245
+ if (response.data[0].f_user_type.includes('非民用')) {
246
+ this.model.f_relationship = '9'
247
+ } else {
248
+ this.model.f_relationship = '0'
249
+ }
250
+ if (response.data[0].f_ins_stop_date && response.data[0].f_ins_stop_date >= Util.toStandardDateString()) {
251
+ let stopDate = new Date(response.data[0].f_ins_stop_date)
252
+ stopDate.setDate(stopDate.getDate() + 1)
253
+ let year = stopDate.getFullYear()
254
+ let month = (stopDate.getMonth() + 1).toString().padStart(2, '0')
255
+ let day = stopDate.getDate().toString().padStart(2, '0')
256
+ this.model.f_ins_start_date = `${year}-${month}-${day}`
257
+ } else {
258
+ this.model.f_ins_start_date = Util.toStandardDateString()
259
+ }
260
+ // if (!this.model.province || !this.model.city || !this.model.county){
261
+ // this.$showMessage('检查档案省、市、区数据是否正常')
262
+ // }
263
+ })
264
+ this.model.f_money = ''
265
+ this.model.f_fee_type = ''
266
+ this.model.f_comments = ''
267
+ this.model.f_salecount = 1
268
+ this.model.f_insurance_number = ''
269
+ this.model.f_id_type = '身份证'
270
+ },
271
+ methods: {
272
+ async commit() {
273
+ if (!this.model.f_payment) {
274
+ this.$showMessage('收款方式未选择,请选择后重新尝试。')
275
+ return
276
+ }
277
+ if (!this.model.f_ins_start_date) {
278
+ this.$showMessage('投保日期未选择,请选择后重新尝试。')
279
+ return
280
+ }
281
+ if (!this.model.f_expiration_date) {
282
+ this.$showMessage('到期日期未选择,请选择后重新尝试。')
283
+ return
284
+ }
285
+ if (!this.model.f_insurance_type) {
286
+ this.$showMessage('保险险种未填写,请填写后重新尝试。')
287
+ return
288
+ }
289
+ if (!this.model.f_money) {
290
+ this.$showMessage('金额未填写,请填写后重新尝试。')
291
+ return
292
+ }
293
+ if (!this.model.f_id_type) {
294
+ this.$showMessage('证件类型未选择,请选择后重新尝试。')
295
+ return
296
+ }
297
+ // if (!this.model.f_idnumber) {
298
+ // this.$showMessage('证件号码未填写,请填写后重新尝试。')
299
+ // return
300
+ // }
301
+ if (!this.model.f_insurance_number) {
302
+ this.$showMessage('保单号未填写,请填写后重新尝试。')
303
+ return
304
+ }
305
+ if (!this.model.f_relationship) {
306
+ this.$showMessage('与投保人关系未选择,请选择后重新尝试。')
307
+ return
308
+ }
309
+ let data = {
310
+ "begin_date": this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
311
+ "insure_period_display": `${this.model.f_salecount}年`,// 保期
312
+ "user_name": this.model.f_user_name,// 投保人姓名
313
+ "id_type": this.model.f_id_type,//证件类型
314
+ "id_number": this.model.f_idnumber,// 证件号码
315
+ "user_phone": this.model.f_user_phone,// 投保人电话
316
+ "user_address": this.model.f_address,// 投保人地址
317
+ "province": this.model.f_province,//省
318
+ "city": this.model.f_city,//市
319
+ "county": this.model.f_district,//区
320
+ "insuredList": [ //被保人信息
321
+ {
322
+ "user_name": this.model.f_user_name,// 被保人姓名
323
+ "id_type": this.model.f_id_type,//证件类型
324
+ "id_number": this.model.f_idnumber,// 证件号码
325
+ "relationship": this.model.f_relationship//与投保人关系: 0 本人 1 配偶 2 父母 3 子女 9 其他 若投保人是企业,默认传9
326
+ }
327
+ ]
328
+ }
329
+ try {
330
+ let commit_data = JSON.parse(JSON.stringify(this.model))
331
+ /*const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, data)
332
+ let commit_data = JSON.parse(JSON.stringify(this.model))
333
+ if (response.data.message.includes('成功')) {
334
+ commit_data.f_serial_id = response.data.orderNo
335
+ } else {
336
+ this.$showMessage(response.data.message)
337
+ return
338
+ }*/
339
+ commit_data.f_buy_date = this.create_date
340
+ commit_data.f_total_ins_charge = 0
341
+ commit_data.f_operatorid = Vue.user.id
342
+ commit_data.f_operator = Vue.user.name
343
+ if (this.model.f_payment == '余额抵扣'){
344
+ if (this.model.f_meter_classify == '机表'){
345
+ if((this.model.f_balance -0)-this.model.f_money < 0){
346
+ this.$showMessage('当前用户账户余额不够抵扣本次收费,请选择其他的收费方式进行收费')
347
+ return
348
+ }
349
+ commit_data.f_receivable = Number(commit_data.f_money)
350
+ commit_data.f_money = 0
351
+ }else {
352
+ this.$showMessage('仅有机表用户可选择余额抵扣')
353
+ return
354
+ }
355
+ }
356
+ commit_data.f_receivable = this.model.f_money
357
+ commit_data.f_operate_date = Util.toStandardDateString()
358
+ commit_data.f_state = '有效'
359
+ commit_data.f_orgid = Vue.user.orgid
360
+ commit_data.f_orgname = Vue.user.orgs
361
+ commit_data.f_depid = Vue.user.depids
362
+ commit_data.f_depname = Vue.user.deps
363
+ await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
364
+ this.$showMessage('提交成功')
365
+ this.$back()
366
+ } catch (error) {
367
+ this.$showMessage('提交失败')
368
+ this.isCommit = false
369
+ }
370
+ },
371
+ changeExpirationDate() {
372
+ if (this.model.f_ins_start_date && this.model.f_salecount) {
373
+ let factoryDate = new Date(this.model.f_ins_start_date);
374
+ let scrapDate = new Date(factoryDate);
375
+ scrapDate.setFullYear(factoryDate.getFullYear() + parseInt(this.model.f_salecount));
376
+ let year = scrapDate.getFullYear();
377
+ let month = (scrapDate.getMonth() + 1).toString().padStart(2, '0');
378
+ let day = (scrapDate.getDate()-1).toString().padStart(2, '0');
379
+ this.$set('model.f_expiration_date',`${year}-${month}-${day}`)
380
+ }
381
+ }
382
+ },
383
+ watch: {
384
+ 'model.f_insurance_type'() {
385
+ this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
386
+ },
387
+ 'model.f_salecount'() {
388
+ this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
389
+ }
390
+ }
391
+ }
392
+ </script>
393
+ <style scoped>
394
+ .mt-5 {
395
+ margin-top: 5px;
396
+ }
397
+
398
+ .mt-10 {
399
+ margin-top: 10px;
400
+ }
401
+
402
+ .mt-20 {
403
+ margin-top: 20px;
404
+ }
405
+
406
+ .app-row {
407
+ background-color: white;
408
+ padding: 10px 10px 0 10px;
409
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
410
+ }
411
+
412
+ .app-row-none-border {
413
+ background-color: white;
414
+ padding: 10px 10px 0 10px;
415
+ }
416
+
417
+ .font {
418
+ font: 15px PingFang-SC-Medium;
419
+ color: #666666;
420
+ }
421
+
422
+ .show-font {
423
+ font: 15px PingFang-SC-Medium;
424
+ color: #333333
425
+ }
426
+
427
+ .btn-font {
428
+ font: 600 16px PingFang-SC-Bold;
429
+ color: #499EDF;
430
+ }
431
+
432
+ .btn-color {
433
+ background-color: #FFFFFF;
434
+ border-radius: 10px;
435
+ border: 1px solid #499EDF;
436
+ }
437
+ </style>