safecheck-client 4.0.2-64 → 4.0.2-66

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