safecheck-client 4.0.0-6 → 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 (313) 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/Util/ImgSelfSafePlus.vue +13 -3
  6. package/src/components/android/AddPlanItem.vue +447 -447
  7. package/src/components/android/AddPlanItemYy.vue +451 -451
  8. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  9. package/src/components/android/AndroidDefectDeal.vue +1 -1
  10. package/src/components/android/AndroidDefectDealBeforeSafe.vue +1 -1
  11. package/src/components/android/AndroidDefectDetails.vue +725 -0
  12. package/src/components/android/BlackUserOnLine.vue +2 -2
  13. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  14. package/src/components/android/Devices.vue +327 -327
  15. package/src/components/android/Devicesm.vue +327 -327
  16. package/src/components/android/Insurance/PhoneInsurancePurchase.vue +1 -1
  17. package/src/components/android/PaperFeedback.vue +14 -12
  18. package/src/components/android/PaperFeedbackTemp.vue +2 -2
  19. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  20. package/src/components/android/PhoneRecordInfo.vue +113 -113
  21. package/src/components/android/PhoneSellInfo.vue +113 -113
  22. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  23. package/src/components/android/PhoneUpUserinfo.vue +20 -0
  24. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  25. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  26. package/src/components/android/RelieveRestrict.vue +1 -1
  27. package/src/components/android/Restriction.vue +1 -1
  28. package/src/components/android/SafePlanItem.vue +509 -509
  29. package/src/components/android/SafecheckDevices.vue +47 -2
  30. package/src/components/android/SafecheckOrderV.vue +2 -2
  31. package/src/components/android/SealBind.vue +392 -0
  32. package/src/components/android/SealManage.vue +250 -0
  33. package/src/components/android/UserinfoSelect.vue +714 -714
  34. package/src/components/android/examples/SafeListExamples.vue +296 -296
  35. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  36. package/src/components/android/recheck/Recheck.vue +402 -402
  37. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  38. package/src/components/checkplan/checkmsg.vue +459 -459
  39. package/src/components/defect/DefectList.vue +507 -507
  40. package/src/components/defect/DefectListWeixiu.vue +484 -484
  41. package/src/components/filialCircle/CircleList.vue +139 -139
  42. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  43. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  44. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  45. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  46. package/src/components/inspections/inspectionFeedback.vue +2 -2
  47. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  48. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  49. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  50. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  51. package/src/components/paper/PaperList.vue +34 -6
  52. package/src/components/pc/AddToCheckBook.vue +100 -23
  53. package/src/components/pc/AnnouncementPC.vue +524 -524
  54. package/src/components/pc/CheckBook.vue +2 -0
  55. package/src/components/pc/CheckBookDetails.vue +6 -39
  56. package/src/components/pc/CheckBookEntry.vue +6 -7
  57. package/src/components/pc/CheckBookList.vue +60 -71
  58. package/src/components/pc/CheckBookSearchArea.vue +20 -24
  59. package/src/components/pc/CheckBookSearchUser.vue +139 -84
  60. package/src/components/pc/CheckBookSearchUserList.vue +1 -2
  61. package/src/components/pc/CheckBookUser.vue +276 -44
  62. package/src/components/pc/DefectList.vue +742 -742
  63. package/src/components/pc/DeviceChange.vue +1068 -1068
  64. package/src/components/pc/NewCheckpaper.vue +14 -8
  65. package/src/components/pc/NewCheckpaperTemp.vue +5 -5
  66. package/src/components/pc/PaperDefectMain.vue +1 -0
  67. package/src/components/pc/SafeVisitInfo.vue +261 -261
  68. package/src/components/planmanage/PlanManage.vue +886 -888
  69. package/src/components/planmanage/checkPlanList.vue +368 -368
  70. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  71. package/src/components/report/HiddenSituation.vue +165 -165
  72. package/src/components/rongcheng/AspPaperFeedback.vue +1 -1
  73. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  74. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  75. package/src/components/rongcheng/DefectList.vue +560 -560
  76. package/src/components/rongcheng/PaperFeedback.vue +2 -2
  77. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  78. package/src/components/safecheck/queryManage/CheckBookAll.vue +2 -2
  79. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  80. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  81. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  82. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  83. package/src/components/shaoguan/DefectList.vue +473 -473
  84. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  85. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  86. package/src/components/userfile/SecurityAudit.vue +243 -243
  87. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  88. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  89. package/src/filiale/ancheng/android/PaperFeedback.vue +2 -2
  90. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  91. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  92. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  93. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  94. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
  95. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  96. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  97. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +1 -1
  98. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  99. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  100. package/src/filiale/bayan/android/Edit.vue +132 -132
  101. package/src/filiale/bayan/android/PaperFeedback.vue +2 -2
  102. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  103. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  104. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  105. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  106. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  107. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  108. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  109. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  110. package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
  111. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  112. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  113. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  114. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  115. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  116. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  117. package/src/filiale/hanzhong/android/PaperFeedback.vue +2 -2
  118. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  119. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  120. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  121. package/src/filiale/huatong/android/PaperFeedback.vue +2 -2
  122. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  123. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  124. package/src/filiale/huayin/android/PaperFeedback.vue +2 -2
  125. package/src/filiale/huayin/android/SafecheckOrderV.vue +1 -1
  126. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  127. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  128. package/src/filiale/jiaocheng/android/PaperFeedback.vue +2 -2
  129. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  130. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  131. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  132. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  133. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  134. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  135. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  136. package/src/filiale/jingyang/android/PaperFeedback.vue +2 -2
  137. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  138. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  139. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +171 -100
  140. package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -0
  141. package/src/filiale/jinhong/android.js +1 -0
  142. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  143. package/src/filiale/kelai/android/AndroidDefectDeal.vue +2 -2
  144. package/src/filiale/kelai/android/PaperFeedback.vue +2 -2
  145. package/src/filiale/kelai/android/RelieveRestrict.vue +1 -1
  146. package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
  147. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  148. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  149. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  150. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  151. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +1 -1
  152. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  153. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  154. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  155. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  156. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  157. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  158. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  159. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  160. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  161. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  162. package/src/filiale/meihekou/android/AreaPlan.vue +569 -0
  163. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -0
  164. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -0
  165. package/src/filiale/meihekou/android/CurrentCreate.vue +1087 -0
  166. package/src/filiale/meihekou/android/MeterReading.vue +106 -0
  167. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1276 -0
  168. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2398 -0
  169. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -0
  170. package/src/filiale/meihekou/android.js +19 -0
  171. package/src/filiale/meihekou/pc.js +12 -0
  172. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  173. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  174. package/src/filiale/pingxiang/android/PaperFeedback.vue +2 -2
  175. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  176. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  177. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  178. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  179. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  180. package/src/filiale/qianneng/android/PaperFeedback.vue +2 -2
  181. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  182. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  183. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  184. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  185. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  186. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  187. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  188. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  189. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  190. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  191. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  192. package/src/filiale/rizhao/android/PaperFeedback.vue +2 -2
  193. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  194. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  195. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  196. package/src/filiale/rongchuang/android/PaperFeedback.vue +2 -2
  197. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  198. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  199. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  200. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  201. package/src/filiale/shanggao/android/PaperFeedback.vue +2 -2
  202. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  203. package/src/filiale/shanxian/android/AndroidDefectDeal.vue +1 -1
  204. package/src/filiale/shanxian/android/PaperFeedback.vue +2 -2
  205. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  206. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  207. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  208. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  209. package/src/filiale/shexian/android/AndroidDefectDeal.vue +1 -1
  210. package/src/filiale/shexian/android/PaperFeedback.vue +2 -2
  211. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  212. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  213. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  214. package/src/filiale/shimen/android/PaperFeedback.vue +2 -2
  215. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  216. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  217. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  218. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  219. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  220. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  221. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  222. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  223. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  224. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  225. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  226. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  227. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  228. package/src/filiale/tongchuan/android/AndroidDefectDeal.vue +1 -1
  229. package/src/filiale/tongchuan/android/PaperFeedback.vue +2 -2
  230. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  231. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  232. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  233. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  234. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  235. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  236. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  237. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  238. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  239. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  240. package/src/filiale/weinan/android/SafecheckOrderV.vue +3 -3
  241. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  242. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  243. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  244. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  245. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  246. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  247. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  248. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  249. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  250. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  251. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  252. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  253. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  254. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  255. package/src/filiale/wenxi/android/PaperFeedback.vue +3 -3
  256. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  257. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  258. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  259. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  260. package/src/filiale/wuan/android/PaperFeedback.vue +2 -2
  261. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  262. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  263. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  264. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  265. package/src/filiale/wuhai/android/PaperFeedback.vue +2 -2
  266. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  267. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  268. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  269. package/src/filiale/xiangyuanzhongai/android/SafecheckDevices.vue +20 -1
  270. package/src/filiale/xiangyuanzhongai/android/SafecheckOrderV.vue +2282 -0
  271. package/src/filiale/xiangyuanzhongai/android/SafecheckUserInfo.vue +786 -0
  272. package/src/filiale/xiangyuanzhongai/android.js +2 -0
  273. package/src/filiale/xiangyuanzhongai/pc/DefectListNew.vue +663 -0
  274. package/src/filiale/xiangyuanzhongai/pc/PaperList.vue +795 -0
  275. package/src/filiale/xiangyuanzhongai/pc.js +2 -0
  276. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  277. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  278. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  279. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  280. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  281. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +2 -2
  282. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  283. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  284. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  285. package/src/filiale/yongzhou/android/PaperFeedback.vue +2 -2
  286. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  287. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  288. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +1 -1
  289. package/src/filiale/yuansheng/android/PaperFeedback.vue +2 -2
  290. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  291. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  292. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  293. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  294. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  295. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  296. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -0
  297. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2848 -2846
  298. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  299. package/src/filiale/yunchengminsheng/android.js +15 -14
  300. package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +16 -5
  301. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  302. package/src/filiale/zhongsheng/android/PaperFeedback.vue +2 -2
  303. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  304. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  305. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  306. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  307. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  308. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  309. package/src/filiale/zhoukou/android/PaperFeedback.vue +2 -2
  310. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  311. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  312. package/src/main.js +32 -33
  313. package/src/safecheck-android.js +3 -0
@@ -0,0 +1,1276 @@
1
+ <template>
2
+ <work-busy :is-busy="excessive"></work-busy>
3
+ <div style="height: 100%">
4
+ <div class="panel auto">
5
+ <div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">
6
+ <span class="spanboder">
7
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">基本信息
8
+ <img class="butt3" :src="imgback('基本信息')">
9
+ </span>
10
+ </div>
11
+ <div class="panel-body " id="upuserinfo_sel" v-show="headername=='基本信息'">
12
+ <div class="row auto" style="margin: 5px 0">
13
+ <label class="righttxt">用户编号:</label>
14
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly/>
15
+ </div>
16
+ <div class="row auto" style="margin: 5px 0">
17
+ <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
+ v-model="userinfo.baseinfo.base.f_user_name" readonly/>
19
+ </div>
20
+ <div class="row auto" style="margin: 5px 0">
21
+ <label class="righttxt">身份证号:</label><input type="text" class="form-control rightipt"
22
+ v-model="userinfo.baseinfo.base.f_idnumber" />
23
+ </div>
24
+ <div class="row auto" style="margin: 5px 0">
25
+ <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
26
+ v-model="userinfo.baseinfo.base.f_user_state"/>
27
+ </div>
28
+ <div class="row auto" style="margin: 5px 0">
29
+ <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
30
+ v-model="userinfo.baseinfo.base.f_user_phone"/>
31
+ </div>
32
+ <div class="row auto" style="margin: 5px 0">
33
+ <label class="righttxt">租户姓名:</label><input type="text" class="form-control rightipt"
34
+ v-model="userinfo.baseinfo.base.f_rent_name"/>
35
+ </div>
36
+ <div class="row auto" style="margin: 5px 0">
37
+ <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
38
+ v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
39
+ </div>
40
+ <div class="row auto" style="margin: 5px 0">
41
+ <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
42
+ v-model="userinfo.baseinfo.base.f_createfile_date" readonly/>
43
+ </div>
44
+ <!-- <div class="row auto" style="margin: 5px 0">
45
+ <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
46
+ </div>-->
47
+ <div class="row auto" style="margin: 5px 0">
48
+ <label class="righttxt">地址类型:</label>
49
+ <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
50
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
51
+ id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
52
+ for="phone_addressType1">普通地址</label></div>
53
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
54
+ id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
55
+ for="phone_addressType2">特殊地址</label></div>
56
+ </div>
57
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
58
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
59
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
60
+ :width="'60%'"
61
+ v-model="userinfo.addressinfo.f_iscity"
62
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
63
+ </div>
64
+ <div class="row auto" style="margin: 5px 0">
65
+ <label class="righttxt">地区类型:</label>
66
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
67
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
68
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
69
+ :width="'60%'"
70
+ :disabled="true"
71
+ v-model="userinfo.addressinfo.f_iscity"
72
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
73
+ </div>
74
+ <div class="row auto" style="margin: 5px 0">
75
+ <label class="righttxt">省&ensp;市&ensp;区:</label>
76
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
77
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
78
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"
79
+ :width="'60%'"
80
+ v-model="selectPcd"
81
+ :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
82
+ @change="pcd_change()"></v-select>
83
+ </div>
84
+ <div class="row auto" style="margin: 5px 0">
85
+ <label class="righttxt">街道名称:</label>
86
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
87
+ <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"
88
+ :width="'60%'"
89
+ v-model="selectStreet"
90
+ :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
91
+ @change="street_change()"></v-select>
92
+ </div>
93
+ <div class="row auto" style="margin: 5px 0">
94
+ <label class="righttxt">集收单位:</label>
95
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
96
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
97
+ :width="'60%'"
98
+ v-model="selectArea"
99
+ :timeout="500"
100
+ @select-search="select_search"
101
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single
102
+ @change="area_change()"></v-select>
103
+ </div>
104
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
105
+ <label class="righttxt">集收单位:</label>
106
+ &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
107
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
108
+ :width="'60%'"
109
+ v-model="selectArea"
110
+ @select-search="select_search"
111
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
112
+ </div>-->
113
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
114
+ <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress"
115
+ class="form-control rightipt"
116
+ v-model="userinfo.addressinfo.f_building"/>
117
+ </div>
118
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
119
+ <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress"
120
+ class="form-control rightipt"
121
+ v-model="userinfo.addressinfo.f_unit"/>
122
+ </div>
123
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
124
+ <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress"
125
+ class="form-control rightipt"
126
+ v-model="userinfo.addressinfo.f_floor"/>
127
+ </div>
128
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
129
+ <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress"
130
+ class="form-control rightipt"
131
+ v-model="userinfo.addressinfo.f_room"/>
132
+ </div>
133
+ <div class="row auto" style="margin: 5px 0">
134
+ <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
135
+ v-model="userinfo_old.addressinfo.f_address"/>
136
+ </div>
137
+ <div class="row auto" style="margin: 5px 0">
138
+ <label class="righttxt">新&ensp;地&ensp;址:</label>
139
+ <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
140
+ <textarea :readonly="addressType=='普通地址'" class="form-control rightipt" : style="height: 80px"
141
+ v-model="userinfo.addressinfo.f_address"></textarea>
142
+ </div>
143
+
144
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
145
+ <label class="righttxt">新&ensp;地&ensp;址:</label>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
146
+ <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
147
+ </div>-->
148
+
149
+ <div class="row auto" style="margin: 5px 0">
150
+ <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
151
+ style="height: 150px"
152
+ v-model="userinfo.baseinfo.base.f_remark"></textarea>
153
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
154
+ </div>
155
+ </div>
156
+ </div>
157
+ <div class="panel auto">
158
+ <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
159
+ <span class="spanboder">
160
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
161
+ <img class="butt3" :src="imgback('表具信息')">
162
+ </span>
163
+ </div>
164
+ <div class="panel-body " v-show="headername=='表具信息'">
165
+ <div class="row auto" style="margin: 5px 0">
166
+ <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
167
+ <input type="text" :readonly="(userinfo.meterinfo[0].f_meter_classify!='机表' && userinfo.meterinfo[0].f_meter_classify!='金额卡表'&&userinfo.meterinfo[0].f_meter_classify!='气量卡表')" class="form-control rightipt"
168
+ style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber"/>
169
+ <button type="button"
170
+ :disabled="!(userinfo.meterinfo[0].f_meter_classify=='机表' || userinfo.meterinfo[0].f_meter_classify=='金额卡表' || userinfo.meterinfo[0].f_meter_classify=='气量卡表')"
171
+ name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码
172
+ </button>
173
+ </div>
174
+
175
+ <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
176
+ <div class="auto">
177
+ <div class="panel" style="padding: 0px 15px 5px 10px;">
178
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
179
+ <div class="row" style="height: 240px;">
180
+ <div class="col-sm-4">
181
+ <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
182
+ </div>
183
+ </div>
184
+ <div class="row text-right div-photo" :class="style__">
185
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
186
+ <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </div>-->
192
+ <div class="row auto" style="margin: 5px 0">
193
+ <label class="righttxt">通&ensp;气&ensp;人:</label>
194
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_gas_person"/>
195
+ </div>
196
+ <div class="row auto" style="margin: 5px 0">
197
+ <label class="righttxt">通气时间:</label>
198
+ <datepicker class="rightipt"
199
+ :value.sync="userinfo.meterinfo[0].f_gas_date"
200
+ v-model="userinfo.meterinfo[0].f_gas_date"
201
+ :disabled-days-of-Week="[]"
202
+ :format="'yyyy-MM-dd'"
203
+ :show-reset-button="reset">
204
+ </datepicker>
205
+ </div>
206
+ <div class="row auto" style="margin: 5px 0" v-show="showBox">
207
+ <label class="righttxt">调&ensp;压&ensp;箱:</label>
208
+ <v-select class="rightipt"
209
+ :value.sync="userinfo.meterinfo[0].f_adjustable_id"
210
+ v-model="userinfo.meterinfo[0].f_adjustable_id"
211
+ placeholder='请选择'
212
+ :width='wid'
213
+ readonly
214
+ :options="boxOptions"
215
+ close-on-select value-single></v-select>
216
+ </div>
217
+ <div class="row auto" style="margin: 5px 0">
218
+ <label class="righttxt">是否直通:</label>
219
+ <v-select
220
+ :value.sync="userinfo.meterinfo[0].f_if_direct"
221
+ class="input-font"
222
+ style="margin-left: 5%;"
223
+ :width="'60%'"
224
+ v-model="userinfo.meterinfo[0].f_if_direct"
225
+ :options='directOptions'
226
+ placeholder='是否直通'
227
+ close-on-select
228
+ clear-button
229
+ value-single>
230
+ </v-select>
231
+ </div>
232
+ <div class="row auto" style="margin: 5px 0">
233
+ <label class="righttxt">表&ensp;封&ensp;号:</label>
234
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"/>
235
+ </div>
236
+ <div class="row auto" style="margin: 5px 0">
237
+ <label class="righttxt">表&ensp;位&ensp;置:</label>
238
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
239
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
240
+ v-model="userinfo.meterinfo[0].f_position"
241
+ placeholder='请选择'
242
+ :width='wid'
243
+ readonly
244
+ :options="wz_types"
245
+ close-on-select value-single></v-select>
246
+ </div>
247
+ <div class="row auto" style="margin: 5px 0">
248
+ <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;向:</label>
249
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
250
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
251
+ v-model="userinfo.meterinfo[0].f_aroundmeter"
252
+ placeholder='请选择'
253
+ :width='wid'
254
+ readonly
255
+ :options="aroundmeters"
256
+ close-on-select value-single></v-select>
257
+ </div>
258
+ <div class="row auto" style="margin: 5px 0">
259
+ <label class="righttxt">气表类型:</label>
260
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>
261
+ </div>
262
+ <div class="row auto" style="margin: 5px 0">
263
+ <label class="righttxt">表前阀状态:</label>
264
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
265
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_bqf_state"
266
+ v-model="userinfo.meterinfo[0].f_bqf_state"
267
+ placeholder='请选择'
268
+ :width='wid'
269
+ readonly
270
+ :options="bqf_states"
271
+ close-on-select value-single></v-select>
272
+ </div>
273
+ <!-- <div class="row auto" style="margin: 5px 0">
274
+ <div style="display: flex;justify-content: center;">
275
+ <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
276
+ </div>
277
+ </div>-->
278
+ </div>
279
+ </div>
280
+ <div class="panel auto">
281
+ <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
282
+
283
+ <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
284
+ class="butt3" :src="imgback('设备信息')"></span>
285
+ </div>
286
+ <div class="panel-body" v-show="headername=='设备信息'">
287
+ <div class="row" v-for="row in model"
288
+ style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
289
+ <div class="row auto" style="margin: 5px 0">
290
+ <label class="righttxt">设备类型:</label>
291
+ <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
292
+ <v-select class="rightipt" :value.sync="row.f_devices_type"
293
+ v-model="row.f_devices_type"
294
+ placeholder='请选择'
295
+ :width='wid'
296
+ readonly
297
+ :options="devices_types"
298
+ close-on-select value-single></v-select>
299
+ </div>
300
+ <div class="row auto" style="margin: 5px 0">
301
+ <label class="righttxt">设备品牌:</label>
302
+ <v-select class="rightipt" :value.sync="row.f_brand"
303
+ v-model="row.f_brand"
304
+ placeholder='请选择'
305
+ :width='wid'
306
+ readonly
307
+ :options="deviceBrandOption[row.f_devices_type]"
308
+ close-on-select value-single></v-select>
309
+ </div>
310
+ <div class="row auto" style="margin: 5px 0">
311
+ <label class="righttxt">设备型号:</label><input type="text" class="form-control rightipt"
312
+ v-model="row.f_devices_model"/>
313
+ </div>
314
+ <div class="row auto" style="margin: 5px 0">
315
+ <label class="righttxt">生产日期:</label>
316
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
317
+ <datepicker class="rightipt"
318
+ :value.sync="row.f_make_date"
319
+ v-model="row.f_make_date"
320
+ :disabled-days-of-Week="[]"
321
+ :format="'yyyy-MM-dd'"
322
+ :show-reset-button="reset" @change="calculateExpireDate(row)" readonly="readonly">
323
+ </datepicker>
324
+ </div>
325
+ <div class="row auto" style="margin: 5px 0">
326
+ <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
327
+ v-model="row.f_service_life" @change="calculateExpireDate(row)"/>
328
+ </div>
329
+ <div class="row auto" style="margin: 5px 0">
330
+ <label class="righttxt">到期日期:</label>
331
+ <datepicker class="rightipt"
332
+ :value.sync="row.f_expire_date"
333
+ v-model="row.f_expire_date"
334
+ :disabled-days-of-Week="[]"
335
+ :format="'yyyy-MM-dd'"
336
+ :show-reset-button="reset" readonly="readonly">
337
+ </datepicker>
338
+ </div>
339
+ <div class="row auto" style="margin: 5px 0">
340
+ <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
341
+ v-model="row.f_input_person"/>
342
+ </div>
343
+ <div class="row auto" style="margin: 5px 0">
344
+ <label class="righttxt">安装日期:</label>
345
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
346
+ <datepicker class="rightipt"
347
+ :value.sync="row.f_input_date"
348
+ v-model="row.f_input_date"
349
+ :disabled-days-of-Week="[]"
350
+ :format="'yyyy-MM-dd'"
351
+ :show-reset-button="reset" readonly="readonly">
352
+ </datepicker>
353
+ </div>
354
+ <div class="row auto" style="margin: 5px 0">
355
+ <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
356
+ v-model="row.f_devices_num"/>
357
+ </div>
358
+ <!--<div class="row auto" style="margin: 5px 0">
359
+ <label class="righttxt">管道类型:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
360
+ </div>-->
361
+ <!--<div class="row auto" style="margin: 5px 0">
362
+ <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
363
+ </div>-->
364
+ <div class="row auto" style="margin: 5px 0">
365
+ <label class="righttxt">购买方式:</label>
366
+ <v-select class="rightipt" :value.sync="row.watchpurchase"
367
+ v-model="row.watchpurchase"
368
+ placeholder='请选择'
369
+ :width='wid'
370
+ readonly
371
+ :options="buy_types"
372
+ close-on-select value-single></v-select>
373
+ </div>
374
+ <div style="display: flex;justify-content: center;margin-bottom: 3px"
375
+ v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0">
376
+ <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
377
+ </div>
378
+ </div>
379
+ <div style="display: flex;justify-content: space-around;">
380
+ <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
381
+ </div>
382
+ </div>
383
+ </div>
384
+ <div class="panel auto">
385
+ <div class="panel-body">
386
+ <div style="display: flex;justify-content: center;">
387
+ <button class="col-sm-3 btn btn-primary" :disabled="enable" @click="isNeedAudit ? editUserInfo() : editUserInfoNoAudit()">{{isNeedAudit ? '上传审核' : '上传'}}</button>
388
+ </div>
389
+ </div>
390
+ </div>
391
+ </div>
392
+ </template>
393
+
394
+ <script>
395
+ import {HttpResetClass} from 'vue-client'
396
+ import * as Util from "../../Util";
397
+ import Vue from 'vue'
398
+
399
+ export default {
400
+ title: '设备查看',
401
+ data() {
402
+ return {
403
+ model: [],
404
+ show: false,
405
+ row: Object,
406
+ userinfo: Object,
407
+ userinfo_old: Object,
408
+ wid: "60%",
409
+ aroundmeters: [],
410
+ devices_types: [],
411
+ pipe_types: [{label: '橡胶管', value: '橡胶管'}, {label: '波纹管', value: '波纹管'}, {label: '钢管', value: '钢管'}],
412
+ wz_types: [],
413
+ cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
414
+ buy_types: [{label: '本公司购买', value: '本公司购买'}, {label: '非本公司购买', value: '非本公司购买'}],
415
+ bqf_states: [{label: '开阀', value: '开阀'}, {label: '关阀', value: '关阀'}],
416
+ pcds: [],
417
+ streets: [],
418
+ update: false,
419
+ headername: '基本信息',
420
+ excessive: false,
421
+ area: [],
422
+ enable: false,
423
+ f_meterno_path: Vue.nopic,
424
+ selectArea: {id: ''},
425
+ selectPcd: {id: ''},
426
+ selectStreet: {id: ''},
427
+ changemeterno: false,//是否修改了机表表号
428
+ approveChange: false,//是否需要进行信息变更审核
429
+ newAddress: '',
430
+ addressType: '',
431
+ //需要审核的字段
432
+ checkField: {
433
+ checkUserinfoField: [
434
+ 'f_user_name'
435
+ ],
436
+ checkUserFilesField: [
437
+ 'f_meternumber'
438
+ ],
439
+ checkAddressField: [
440
+ 'f_pcd_id',
441
+ 'f_street_id',
442
+ 'f_residential_area_id',
443
+ 'f_building',
444
+ 'f_unit',
445
+ 'f_floor',
446
+ 'f_room',
447
+ 'f_slice_area',
448
+ 'f_special',
449
+ 'f_address'
450
+ ],
451
+ },
452
+ boxOptions: [],
453
+ showBox: false,
454
+ directOptions: [{label: '是', value: '是'}, {label: '否', value: '否'}],
455
+ deviceBrandOption: {},
456
+ isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
457
+ }
458
+ },
459
+ props: {
460
+ user: {
461
+ type: Object
462
+ },
463
+ f_userinfo_id: '',
464
+ f_source: ''
465
+ },
466
+ methods: {
467
+ scan() {
468
+ HostApp.__this__ = this,
469
+ HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
470
+ },
471
+ getCode() {
472
+ var datapa = HostApp.getCode().data;
473
+ //tag
474
+ this.userinfo.meterinfo[0].f_meternumber = datapa
475
+ },
476
+ //数据检查
477
+ checkVal() {
478
+ //检查一些必要信息是否未填
479
+ this.approveChange = false
480
+ this.changemeterno = false
481
+ let checked = {ischeck: true, msg: ''}
482
+ //tag
483
+ //tag
484
+ //tag
485
+ if (!this.userinfo.baseinfo.base.f_user_name) {
486
+ checked = {ischeck: false, msg: '请输入用户名称!'}
487
+ }
488
+ if (!this.selectPcd.id) {
489
+ checked = {ischeck: false, msg: '请选择省市区!'}
490
+ }
491
+ if (!this.selectStreet.id) {
492
+ checked = {ischeck: false, msg: '请选择街道!'}
493
+ }
494
+ if (!this.userinfo.addressinfo.f_address) {
495
+ checked = {ischeck: false, msg: '新地址不能为空!'}
496
+ }
497
+ if (this.addressType == '普通地址') {
498
+ if (!this.selectArea.id) {
499
+ checked = {ischeck: false, msg: '请选择集收单位!'}
500
+ }
501
+ if (!this.userinfo.addressinfo.f_room) {
502
+ checked = {ischeck: false, msg: '新输入门牌号!'}
503
+ }
504
+ }
505
+ if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
506
+
507
+ //tag
508
+ //tag
509
+ if (this.userinfo.meterinfo[0].f_meternumber) {
510
+ if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
511
+ if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
512
+ checked = {ischeck: false, msg: '请拍摄表号照片!'}
513
+ } else {
514
+ //用来标识当前有修改机表表号,后台需要进行照片上传
515
+ this.changemeterno = true
516
+ }
517
+ }
518
+ } else {
519
+ checked = {ischeck: false, msg: '请输入表号!'}
520
+ }
521
+ }
522
+ //检查本次修改信息中是否包含需要审核的内容
523
+ for (let check in this.checkField) {
524
+ //tag
525
+ if (typeof check != 'function') {
526
+ for (let i = 0; i < this.checkField[check].length; i++) {
527
+ //tag
528
+ if (check == 'checkUserinfoField') {
529
+ //tag
530
+ //tag
531
+ if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
532
+ //tag
533
+ this.approveChange = true
534
+ }
535
+ } else if (check == 'checkUserFilesField') {
536
+ //tag
537
+ //tag
538
+ if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
539
+ //tag
540
+ this.approveChange = true
541
+ }
542
+ } else if (check == 'checkAddressField') {
543
+ //tag
544
+ //tag
545
+ if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
546
+ //tag
547
+ this.approveChange = true
548
+ }
549
+ }
550
+ }
551
+ }
552
+ }
553
+ //tag
554
+ return checked
555
+ },
556
+ select_search(text) {
557
+ //tag
558
+ if (this.selectStreet.id) {
559
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
560
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
561
+ data: {
562
+ items: "*",
563
+ tablename: "t_area",
564
+ orderitem: "id",
565
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
566
+ }
567
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
568
+ //tag)
569
+ if (res.data.length > 0) {
570
+ this.area = []
571
+ res.data.forEach((result) => {
572
+ this.area.push({label: result.f_residential_area, value: result})
573
+ })
574
+ }
575
+ })
576
+ } else {
577
+ this.area = []
578
+ }
579
+ },
580
+ cameraCallBack(prop, fileName) {
581
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
582
+ //tag
583
+ HostApp.__callback__ = null
584
+ HostApp.__this__ = null
585
+ },
586
+ calculateExpireDate(device) {
587
+ if (device.f_make_date && device.f_service_life) {
588
+ const makeDate = new Date(device.f_make_date);
589
+ const serviceLife = parseInt(device.f_service_life);
590
+ if (!isNaN(makeDate.getTime()) && !isNaN(serviceLife)) {
591
+ makeDate.setFullYear(makeDate.getFullYear() + serviceLife);
592
+ device.f_expire_date = makeDate.toISOString().slice(0, 10); // Format as YYYY-MM-DD
593
+ } else {
594
+ device.f_expire_date = null;
595
+ }
596
+ } else {
597
+ device.f_expire_date = null;
598
+ }
599
+ },
600
+ //数据检查
601
+ takePic(prop, title) {
602
+ HostApp.__callback__ = this.cameraCallBack
603
+ HostApp.__this__ = this
604
+ //tag
605
+ let fileName
606
+ if (!this[prop] || this[prop].includes("nopic.png")) {
607
+ fileName = Util.guid() + '-' + prop + '.jpg'
608
+ } else {
609
+ fileName = Util.getFileName(this[prop])
610
+ }
611
+ HostApp._open_a_page({
612
+ type: 'boomerang',
613
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
614
+ param: {
615
+ file: fileName,
616
+ requestCode: 111,
617
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
618
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
619
+ }
620
+ })
621
+ },
622
+ delfile(prop, fileName) {
623
+ if (fileName == Vue.nopic)
624
+ return
625
+ else {
626
+ HostApp.delfile(fileName)
627
+ this[prop] = Vue.nopic
628
+ }
629
+ },
630
+ editUserInfoNoAudit() {
631
+ let checked = this.checkVal()
632
+ if (!checked.ischeck) {
633
+ this.$showMessage(checked.msg)
634
+ return
635
+ }
636
+ for (let i = 0; i < this.model.length; i++) {
637
+ this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
638
+ }
639
+ this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
640
+ if (res === 'confirm') {
641
+ this.excessive = true
642
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
643
+ // userinfoms.f_user_name=row.f_user_name
644
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
645
+ userinfoms.f_idnumber = this.userinfo.baseinfo.base.f_idnumber
646
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
647
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
648
+ userinfoms.f_operator_record = Vue.user.name
649
+ userinfoms.f_operatorid_record = Vue.user.id
650
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
651
+ userinfoms.f_orgid_record = Vue.user.orgid
652
+ userinfoms.f_orgname_record = Vue.user.orgs
653
+ userinfoms.f_depid_record = Vue.user.depids
654
+ userinfoms.f_depname_record = Vue.user.deps
655
+ this.userinfo_old.baseinfo.base.f_idnumber = this.userinfo.baseinfo.base.f_idnumber
656
+ this.userinfo_old.baseinfo.base.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
657
+ this.userinfo_old.baseinfo.base.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
658
+ this.userinfo_old.baseinfo.base.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
659
+ this.userinfo_old.addressinfo.f_iscity = this.userinfo.addressinfo.f_iscity
660
+ this.userinfo_old.addressinfo.f_building = this.userinfo.addressinfo.f_building
661
+ this.userinfo_old.addressinfo.f_unit = this.userinfo.addressinfo.f_unit
662
+ this.userinfo_old.addressinfo.f_floor = this.userinfo.addressinfo.f_floor
663
+ this.userinfo_old.addressinfo.f_room = this.userinfo.addressinfo.f_room
664
+ this.userinfo_old.addressinfo.f_address = this.userinfo.addressinfo.f_address
665
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
666
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
667
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
668
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
669
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
670
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
671
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
672
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
673
+ userinfoms.userfiles = []
674
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
675
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
676
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
677
+ data: {
678
+ userinfo: userinfoms,
679
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
680
+ address: {
681
+ id: this.userinfo_old.addressinfo.id,
682
+ oldid: this.userinfo_old.addressinfo.id,
683
+ f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
684
+ }
685
+ }
686
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
687
+ if (res1.data.status == 200) {
688
+ let data = this.userinfo.addressinfo
689
+ data.f_address = this.userinfo.addressinfo.f_address? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
690
+ //
691
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/address_updateuseraddress`, {data: data}).then((res2) => {
692
+ this.$showMessage("修改用户地址信息成功!")
693
+ }).catch(error => {
694
+ this.$showMessage("修改用户地址信息!")
695
+ })
696
+ this.$showMessage("修改用户信息成功!")
697
+ this.enable = true
698
+ this.excessive = false
699
+ }
700
+ }).catch((msg) => {
701
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
702
+ this.excessive = false
703
+ })
704
+ }
705
+ })
706
+ },
707
+ editUserInfo() {
708
+ let checked = this.checkVal()
709
+ if (!checked.ischeck) {
710
+ this.$showMessage(checked.msg)
711
+ return
712
+ }
713
+ this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
714
+ if (res === 'confirm') {
715
+ this.excessive = true
716
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
717
+ //userinfoms.f_user_name=row.f_user_name
718
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
719
+ userinfoms.f_idnumber = this.userinfo.baseinfo.base.f_idnumber
720
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
721
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
722
+ userinfoms.f_operator_record = Vue.user.name
723
+ userinfoms.f_operatorid_record = Vue.user.id
724
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
725
+ userinfoms.f_orgid_record = Vue.user.orgid
726
+ userinfoms.f_orgname_record = Vue.user.orgs
727
+ userinfoms.f_depid_record = Vue.user.depids
728
+ userinfoms.f_depname_record = Vue.user.deps
729
+ this.userinfo_old.baseinfo.base.f_idnumber = this.userinfo.baseinfo.base.f_idnumber
730
+ this.userinfo_old.baseinfo.base.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
731
+ this.userinfo_old.baseinfo.base.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
732
+ this.userinfo_old.baseinfo.base.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
733
+ this.userinfo_old.addressinfo.f_iscity = this.userinfo.addressinfo.f_iscity
734
+ this.userinfo_old.addressinfo.f_building = this.userinfo.addressinfo.f_building
735
+ this.userinfo_old.addressinfo.f_unit = this.userinfo.addressinfo.f_unit
736
+ this.userinfo_old.addressinfo.f_floor = this.userinfo.addressinfo.f_floor
737
+ this.userinfo_old.addressinfo.f_room = this.userinfo.addressinfo.f_room
738
+ this.userinfo_old.addressinfo.f_address = this.userinfo.addressinfo.f_address
739
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
740
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
741
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
742
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
743
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
744
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
745
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
746
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
747
+ this.userinfo_old.meterinfo[0].f_meternumber = this.userinfo.meterinfo[0].f_meternumber
748
+ userinfoms.userfiles = []
749
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
750
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
751
+ //tag)
752
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
753
+ data: {
754
+ userinfo: userinfoms,
755
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
756
+ address: {id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id}
757
+ }
758
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
759
+ //tag+res1.data.status)
760
+ if (res1.data.status == 200) {
761
+ //本次修改信息包含需要审核信息
762
+ if (this.approveChange) {
763
+ //tag
764
+ let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
765
+ row: {
766
+ f_time: Util.toStandardTimeString(),
767
+ f_modifier: Vue.user.name,//Vue.user.name
768
+ f_modifier_id: Vue.user.id,//Vue.user.id
769
+ f_modify_type: '用户档案',
770
+ f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
771
+ f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
772
+ f_approved: '未审核',
773
+ filialestr: Vue.user.orgid,//Vue.user.orgid
774
+ version: 1,
775
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
776
+ f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
777
+ f_street: this.userinfo.addressinfo.f_street,
778
+ f_building: this.userinfo.addressinfo.f_building,
779
+ f_unit: this.userinfo.addressinfo.f_unit,
780
+ f_floor: this.userinfo.addressinfo.f_floor,
781
+ f_room: this.userinfo.addressinfo.f_room,
782
+ f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
783
+ f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
784
+ f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
785
+ f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
786
+ f_residential_area: this.userinfo.addressinfo.f_residential_area,
787
+ f_address: this.userinfo.addressinfo.f_address,
788
+ f_pcd: this.userinfo.addressinfo.f_pcd,
789
+ f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
790
+ f_street_id: this.userinfo.addressinfo.f_street_id,
791
+ f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
792
+ f_used_name: this.userinfo.baseinfo.base.f_used_name,
793
+ f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
794
+ f_slice_area: this.userinfo.addressinfo.f_slice_area,
795
+ f_remark: this.userinfo.baseinfo.base.f_remark,
796
+ f_source: this.f_source,
797
+ f_meterno_path: this.f_meterno_path,
798
+ f_iscity: this.userinfo.addressinfo.f_iscity,
799
+ f_special: this.userinfo.addressinfo.f_special,
800
+ f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
801
+ changemeterno: this.changemeterno
802
+ },
803
+ tablename: 't_modify_userinfo'
804
+ })
805
+ //tag)
806
+ if (res2.code == 200) {
807
+ this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
808
+ this.enable = true
809
+ this.excessive = false
810
+ } else {
811
+ this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
812
+ this.excessive = false
813
+ }
814
+ } else {
815
+ this.$showMessage("修改用户信息成功!")
816
+ this.enable = true
817
+ this.excessive = false
818
+ }
819
+
820
+ }
821
+ }).catch((msg) => {
822
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
823
+ this.excessive = false
824
+ })
825
+
826
+ }
827
+ })
828
+ },
829
+ imgback(header) {
830
+ if (this.headername == header) {
831
+ return require('../../../assets/xiangxia1.png')
832
+ } else {
833
+ return require('../../../assets/xiangyou1.png')
834
+ }
835
+ this.headername = header
836
+ },
837
+ selectVal(header) {
838
+ if (this.headername == header) {
839
+ this.headername = ''
840
+ } else {
841
+ this.headername = header
842
+ }
843
+
844
+ },
845
+ changeNewAddress() {
846
+ this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
847
+ },
848
+ area_change() {
849
+ //tag
850
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
851
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
852
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
853
+ this.changeNewAddress()
854
+ //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
855
+ },
856
+ async street_change() {
857
+ //tag
858
+ if (this.selectStreet.id) {
859
+ //如果街道改变--给街道赋值!
860
+ this.userinfo.addressinfo.f_street = this.selectStreet.f_street
861
+ this.userinfo.addressinfo.f_street_id = this.selectStreet.id
862
+ this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
863
+ //清空当前选中小区的值
864
+ this.userinfo.addressinfo.f_residential_area = ''
865
+ this.userinfo.addressinfo.f_residential_area_id = ''
866
+ this.userinfo.addressinfo.f_slice_area = ''
867
+ this.selectArea = {id: ''}
868
+ this.area = []
869
+ let pcdText = ` and f_street_id=${this.selectStreet.id}`
870
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
871
+ data: {
872
+ items: "*",
873
+ tablename: "t_area",
874
+ orderitem: "id",
875
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
876
+ }
877
+ }, {resolveMsg: null, rejectMsg: null})
878
+ ////tag)
879
+ res.data.forEach((result) => {
880
+ this.area.push({label: result.f_residential_area, value: result})
881
+ })
882
+ } else {
883
+ this.area = []
884
+ }
885
+
886
+ this.changeNewAddress()
887
+ },
888
+ async pcd_change() {
889
+ //tag
890
+ if (this.selectPcd.id) {
891
+ //tag
892
+ //如果省市区改变-重新赋值
893
+ this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
894
+ this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
895
+ //清空 选中的街道和集收单位
896
+ this.selectStreet = {id: ''}
897
+ this.userinfo.addressinfo.f_street = ''
898
+ this.userinfo.addressinfo.f_street_id = ''
899
+ this.userinfo.addressinfo.f_iscity = ''
900
+ this.selectArea = {id: ''}
901
+ this.userinfo.addressinfo.f_residential_area = ''
902
+ this.userinfo.addressinfo.f_residential_area_id = ''
903
+ this.userinfo.addressinfo.f_slice_area = ''
904
+ this.streets = []
905
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
906
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
907
+ data: {
908
+ items: "*",
909
+ tablename: "t_street",
910
+ orderitem: "id",
911
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
912
+ }
913
+ }, {resolveMsg: null, rejectMsg: null})
914
+ streetlist.data.forEach((result) => {
915
+ this.streets.push({label: result.f_street, value: result})
916
+ })
917
+ } else {
918
+ this.streets = []
919
+ }
920
+ this.changeNewAddress()
921
+ },
922
+ upUserState() {
923
+ //tag)
924
+ if (this.userinfo.meterinfo[0].f_table_state == '正常') {
925
+ let data = {
926
+ f_userfiles_id: {
927
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
928
+ f_table_state: '停用',
929
+ version: this.userinfo.meterinfo[0].version
930
+ },
931
+ f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
932
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
933
+ f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
934
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
935
+ f_comments: '安检时发现问题关闭阀门',
936
+ f_othereason: '',
937
+ f_operat_type: '停用',
938
+ f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
939
+ f_state: '有效',
940
+ f_operator: Vue.user.name,//${Vue.$login.f.name}
941
+ f_operatorid: Vue.user.id,
942
+ f_orgid: Vue.user.orgid,
943
+ f_orgname: Vue.user.orgs,
944
+ f_depid: Vue.user.depids,
945
+ f_depname: Vue.user.deps,
946
+ f_zoneid: Vue.user.zoneid,
947
+ f_zones: Vue.user.zones
948
+ }
949
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
950
+ data, {resolveMsg: null, rejectMsg: null}).then((row) => {
951
+ this.$showMessage('已成功关阀停气!')
952
+ this.userinfo.meterinfo[0].f_table_state = '停用'
953
+ })
954
+ } else {
955
+ this.$showMessage('该用户已被关阀停用,请勿重复操作!')
956
+ }
957
+
958
+ },
959
+ addDevices() {
960
+ //Vue.user.name
961
+ let obj = {
962
+ "f_operator": Vue.user.name,
963
+ "f_picture": null,
964
+ "f_pipe_type": null,
965
+ "f_pipeinstall_date": null,
966
+ "f_pipe_connection": null,
967
+ "f_expire_date": null,
968
+ "f_pipeexpire_date": null,
969
+ "f_comments": null,
970
+ "f_operate_date": Util.toStandardTimeString(),
971
+ "f_operatorid": Vue.user.id,
972
+ "f_devices_num": null,
973
+ "f_process_id": null,
974
+ "f_devices_type": null,
975
+ "f_make_date": null,
976
+ "f_input_date": null,
977
+ "f_state": "有效",
978
+ "f_brand": null,
979
+ "f_devices_model": null,
980
+ "f_devices_no": null,
981
+ "img": {"content": null, "filename": null}
982
+ }
983
+ this.model.push(obj)
984
+ },
985
+ delDevices(idx) {
986
+ //tag
987
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
988
+ if (res === 'confirm') {
989
+ this.model.splice(idx, 1)
990
+ }
991
+ })
992
+ },
993
+ async getAreaList(text) {
994
+ if (this.selectStreet.id) {
995
+ this.area = []
996
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
997
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
998
+ data: {
999
+ items: "*",
1000
+ tablename: "t_area",
1001
+ orderitem: "id",
1002
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1003
+ }
1004
+ }, {resolveMsg: null, rejectMsg: null})
1005
+ ////tag)
1006
+ res.data.forEach((result) => {
1007
+ this.area.push({label: result.f_residential_area, value: result})
1008
+ })
1009
+ //tag
1010
+ this.area.push({
1011
+ label: this.userinfo.addressinfo.f_residential_area,
1012
+ value: {
1013
+ id: this.userinfo.addressinfo.f_residential_area_id,
1014
+ f_residential_area: this.userinfo.addressinfo.f_residential_area
1015
+ }
1016
+ })
1017
+ } else {
1018
+ this.area = []
1019
+ }
1020
+
1021
+ },
1022
+ async getStreetList() {
1023
+ if (this.selectPcd.id) {
1024
+ //tag
1025
+ this.streets = []
1026
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1027
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1028
+ data: {
1029
+ items: "*",
1030
+ tablename: "t_street",
1031
+ orderitem: "id",
1032
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1033
+ }
1034
+ }, {resolveMsg: null, rejectMsg: null})
1035
+ streetlist.data.forEach((result) => {
1036
+ //如果第一次进来有地址id 就拿下地址区域
1037
+ if (this.selectStreet.id && this.selectStreet.id == result.id) {
1038
+ //tag)
1039
+ this.userinfo.addressinfo.f_iscity = result.f_iscity
1040
+ }
1041
+ this.streets.push({label: result.f_street, value: result})
1042
+ })
1043
+ } else {
1044
+ this.streets = []
1045
+ }
1046
+ },
1047
+ changeAddressType(val) {
1048
+ //tag
1049
+ if (this.addressType == '普通地址') {
1050
+ this.userinfo.addressinfo.f_special = null
1051
+ } else if (this.addressType == '特殊地址') {
1052
+ this.userinfo.addressinfo.f_special = 1
1053
+ this.userinfo.addressinfo.f_building = null
1054
+ this.userinfo.addressinfo.f_unit = null
1055
+ this.userinfo.addressinfo.f_floor = null
1056
+ this.userinfo.addressinfo.f_room = null
1057
+ }
1058
+ this.changeNewAddress()
1059
+ }
1060
+
1061
+ },
1062
+ computed: {
1063
+ getAddress() {
1064
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1065
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1066
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1067
+ (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1068
+ (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1069
+ (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1070
+ (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1071
+ },
1072
+ getAddressTS() {
1073
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1074
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1075
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1076
+ }
1077
+ },
1078
+ watch: {
1079
+
1080
+ /*'selectPcd.id' (val) {
1081
+ //tag
1082
+ if(this.selectPcd.id){
1083
+ this.getStreetList()
1084
+ }
1085
+ },
1086
+ 'selectStreet.id' (val) {
1087
+ //tag
1088
+ if(this.selectStreet.id){
1089
+ this.getAreaList()
1090
+ }
1091
+ }*/
1092
+ },
1093
+ async ready() {
1094
+ /*//tag)
1095
+
1096
+ //tag)
1097
+ //tag)*/
1098
+ //this.f_userinfo_id=1102260
1099
+ //this.f_userinfo_id=1997541
1100
+ if (!this.f_userinfo_id) {
1101
+ this.$showMessage("未检测到用户!")
1102
+ this.enable = true
1103
+ return
1104
+ }
1105
+ try {
1106
+
1107
+ this.devices_types = Vue.$appdata.getParam('设备类型')
1108
+ console.log('this.devices_types=', JSON.stringify(this.devices_types))
1109
+ if (this.devices_types){
1110
+ for (const devices_type of this.devices_types) {
1111
+ console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1112
+ this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1113
+ }
1114
+ }
1115
+ console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1116
+ this.wz_types = Vue.$appdata.getParam('安装位置')
1117
+ this.aroundmeters = Vue.$appdata.getParam('左右表')
1118
+
1119
+ ////tag)
1120
+ this.excessive = true
1121
+ //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1122
+
1123
+ let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1124
+ data: {
1125
+ items: "*",
1126
+ tablename: "t_pcd",
1127
+ orderitem: "id",
1128
+ condition: `f_orgid = '${Vue.user.orgid}'`
1129
+ }
1130
+ }, {resolveMsg: null, rejectMsg: null})
1131
+ //tag)
1132
+ pcdlist.data.forEach((result) => {
1133
+ this.pcds.push({label: result.f_pcd, value: result})
1134
+ })
1135
+ ////tag)
1136
+ let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1137
+ //f_userinfo_code:'12381344',
1138
+ f_userinfo_id: this.f_userinfo_id
1139
+ }, {resolveMsg: null, rejectMsg: null})
1140
+ //tag
1141
+ //tag
1142
+ this.userinfo = res.data
1143
+ this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1144
+ this.model = this.userinfo.meterinfo[0].devicesinfo
1145
+ if (this.model && this.model.length > 0) {
1146
+ this.model.forEach(device => {
1147
+ this.calculateExpireDate(device);
1148
+ });
1149
+ }
1150
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1151
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1152
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1153
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1154
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1155
+ await this.getStreetList()
1156
+ await this.getAreaList()
1157
+ this.excessive = false
1158
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1159
+ //this.userinfo.addressinfo.f_special=1
1160
+ //tag
1161
+ } catch (e) {
1162
+ this.excessive = false
1163
+ this.enable = true
1164
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
1165
+ }
1166
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, {data: {}}, {
1167
+ resolveMsg: null,
1168
+ rejectMsg: null
1169
+ }).then((addressUnit) => {
1170
+ //tag
1171
+ //tag
1172
+ //tag
1173
+ //tag
1174
+ this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1175
+ this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1176
+ this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1177
+ this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1178
+ }).catch((msg) => {
1179
+ //tag)
1180
+ })
1181
+ this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是'? true : false
1182
+ console.log(this.showBox)
1183
+ if (this.showBox) {
1184
+ // 获取调压箱
1185
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, {data: {condition: '1 = 1'}}, {
1186
+ resolveMsg: null,
1187
+ rejectMsg: null
1188
+ }).then((res) => {
1189
+ const boxOptions = []
1190
+ for (const data of res.data) {
1191
+ const one = {
1192
+ label: data.f_adjustable_id + data.f_adjustable_name,
1193
+ value: Number(data.f_adjustable_id)
1194
+ }
1195
+ boxOptions.push(one)
1196
+ }
1197
+ this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1198
+ console.log(this.boxOptions)
1199
+ }).catch((msg) => {
1200
+ //tag)
1201
+ })
1202
+ }
1203
+ }
1204
+ }
1205
+ </script>
1206
+ <style lang="less" scoped>
1207
+ .butt3 {
1208
+ float: right;
1209
+ width: 12px;
1210
+ margin: 1% 2% 0 0;
1211
+ }
1212
+
1213
+ .rightipt {
1214
+ width: 60%;
1215
+ float: left;
1216
+ margin-left: 5%;
1217
+ }
1218
+
1219
+ .righttxt {
1220
+ border: none;
1221
+ margin-left: 5px;
1222
+ /*border-left: 5px solid #A2C2EB;*/
1223
+ float: left;
1224
+ width: 25%;
1225
+ margin-bottom: 3px;
1226
+ text-align: left;
1227
+ word-wrap: break-word;
1228
+ white-space: normal;
1229
+ }
1230
+
1231
+ .tit1 {
1232
+ /*background: #ffffff url('../../../assets/用户姓名.png') no-repeat fixed center;*/
1233
+ background-image: url('../../../assets/用户姓名.png');
1234
+ background-repeat: no-repeat;
1235
+ background-position: center;
1236
+ }
1237
+
1238
+ .spanboder {
1239
+ border-bottom: 2px solid #499edf;
1240
+ padding-bottom: 8px
1241
+ }
1242
+
1243
+ #upuserinfo_sel /deep/ ul {
1244
+ width: 100% !important;
1245
+ left: 0 !important;
1246
+ }
1247
+
1248
+ .btn-photo {
1249
+ border: 0;
1250
+ border-radius: 7px;
1251
+ background-color: #7dc1f4;
1252
+ font: 15px PingFang-SC-Bold;
1253
+ height: 20%;
1254
+ }
1255
+
1256
+ .panel-self {
1257
+ border-radius: 10px;
1258
+ border: 1px solid #499EDF;
1259
+ background-color: #F8F8F8;
1260
+ }
1261
+
1262
+ .div-photo {
1263
+ width: auto;
1264
+ height: auto;
1265
+ /* margin-top: 10px; */
1266
+ position: absolute;
1267
+ bottom: 10px;
1268
+ right: 10px;
1269
+ }
1270
+ </style>
1271
+ <style lang="less">
1272
+ #upuserinfo_sel ul {
1273
+ width: 100% !important;
1274
+ left: 0 !important;
1275
+ }
1276
+ </style>