safecheck-client 3.0.31-gongyi → 3.0.32-2

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 (1117) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.project +23 -0
  3. package/README.md +5 -1
  4. package/build/webpack.base.conf.js +91 -50
  5. package/build/webpack.dev.conf.js +20 -16
  6. package/build/webpack.prod.conf.js +37 -39
  7. package/examples/ChangeConfig/App.vue +3 -3
  8. package/examples/ChangeConfig/comp.js +67 -67
  9. package/examples/CheckAdvise/App.vue +1 -1
  10. package/examples/PhoneSafePlan/App.vue +2 -2
  11. package/examples/PhoneSafePlan/TestData.js +3 -3
  12. package/examples/SafePlan/App.vue +11 -5
  13. package/examples/SafePlan/TestData.js +3 -3
  14. package/examples/SafePlan/comp.js +67 -61
  15. package/examples/SafePlan-aode/App.vue +2 -2
  16. package/examples/SafePlan-aode/TestData.js +3 -3
  17. package/examples/SafePlan-aode/comp.js +40 -40
  18. package/examples/SafePlan-liaoyuan/App.vue +33 -4
  19. package/examples/SafePlan-liaoyuan/TestData.js +3 -3
  20. package/examples/SafePlan-liaoyuan/comp.js +67 -54
  21. package/examples/SafePlan-shaoguan/App.vue +2 -2
  22. package/examples/SafePlan-shaoguan/TestData.js +3 -3
  23. package/examples/SafePlan-shaoguan/comp.js +46 -46
  24. package/examples/SafePlan-tongchuan/App.vue +4 -4
  25. package/examples/SafePlan-tongchuan/TestData.js +3 -3
  26. package/examples/SafePlan-tongchuan/comp.js +50 -50
  27. package/examples/SafePlan-wenxi/App.vue +4 -4
  28. package/examples/SafePlan-wenxi/TestData.js +3 -3
  29. package/examples/SafePlan-wenxi/comp.js +54 -54
  30. package/examples/SafePlan-zhoukou/App.vue +4 -4
  31. package/examples/SafePlan-zhoukou/TestData.js +3 -3
  32. package/examples/SafePlan-zhoukou/comp.js +57 -57
  33. package/examples/SafePlanItem/App.vue +3 -3
  34. package/examples/SafePlanItem/TestData.js +3 -3
  35. package/examples/SafePlanItem/comp.js +1 -1
  36. package/examples/SafePlanrongcheng/App.vue +4 -3
  37. package/examples/SafePlanrongcheng/TestData.js +3 -3
  38. package/examples/SafePlanrongcheng/comp.js +47 -39
  39. package/examples/SafePlanrongcheng-gs/App.vue +2 -2
  40. package/examples/SafePlanrongcheng-gs/TestData.js +3 -3
  41. package/examples/SafePlanrongcheng-gs/comp.js +47 -39
  42. package/examples/SafePlanrongcheng-gssq/App.vue +2 -2
  43. package/examples/SafePlanrongcheng-gssq/TestData.js +3 -3
  44. package/examples/SafePlanrongcheng-gssq/comp.js +47 -39
  45. package/examples/SafePlanrongcheng-mysq/App.vue +2 -2
  46. package/examples/SafePlanrongcheng-mysq/TestData.js +3 -3
  47. package/examples/SafePlanrongcheng-mysq/comp.js +48 -40
  48. package/examples/Test/App.vue +1 -1
  49. package/examples/Test/TestData.js +5 -5
  50. package/examples/UserFiles/App.vue +4 -4
  51. package/examples/UserFiles/TestData.js +3 -3
  52. package/examples/UserFiles/comp.js +17 -17
  53. package/package.json +23 -9
  54. package/settings.gradle +2 -0
  55. package/src/App.vue +12 -8
  56. package/src/android.js +1 -2
  57. package/src/assets/alarm.png +0 -0
  58. package/src/assets/anjince.png +0 -0
  59. package/src/assets/city_proper.png +0 -0
  60. package/src/assets/echarts6.png +0 -0
  61. package/src/assets/endPng.png +0 -0
  62. package/src/assets/firstPng.png +0 -0
  63. package/src/assets/township.png +0 -0
  64. package/src/assets/wensu/1.jpg +0 -0
  65. package/src/assets/wensu/2.jpg +0 -0
  66. package/src/assets/wensu/3.jpg +0 -0
  67. package/src/assets/wensu/4.jpg +0 -0
  68. package/src/assets/wensu/5.jpg +0 -0
  69. package/src/assets//344/270/213/350/275/275_.png +0 -0
  70. package/src/assets//345/226/207/345/217/255.png +0 -0
  71. package/src/assets//345/234/260/345/235/200/344/277/256/346/224/271.png +0 -0
  72. package/src/assets//345/267/241/346/243/200/344/272/272/345/221/230.png +0 -0
  73. package/src/assets//347/273/210/347/202/271.png +0 -0
  74. package/src/assets//350/265/267/347/202/271.png +0 -0
  75. package/src/bus.js +2 -0
  76. package/src/components/CheckerCount/CheckCountAreaList.vue +19 -18
  77. package/src/components/CheckerCount/CheckCountAreaManage.vue +2 -2
  78. package/src/components/CheckerCount/CheckCountUserList.vue +5 -5
  79. package/src/components/DefectDealMain/DefectListNew.vue +597 -0
  80. package/src/components/DefectDealMain/DefectMainNew.vue +63 -0
  81. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -0
  82. package/src/components/ExportExcel.vue +17 -11
  83. package/src/components/ExportExcelOld.vue +203 -0
  84. package/src/components/Login.vue +4 -4
  85. package/src/components/NewDefectList/DefectListNew.vue +616 -0
  86. package/src/components/NewDefectList/DefectMainNew.vue +60 -0
  87. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -0
  88. package/src/components/Test.vue +1 -1
  89. package/src/components/Util/FileUpload.vue +4 -4
  90. package/src/components/Util/ImgSelfSafe.vue +6 -6
  91. package/src/components/Util/ImgSelfSafePlus.vue +209 -0
  92. package/src/components/Util/RightTreeSafe.vue +5 -0
  93. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  94. package/src/components/Util/SafecheckUpload.vue +6 -6
  95. package/src/components/Util.js +43 -8
  96. package/src/components/android/AddPlanItem.vue +242 -207
  97. package/src/components/android/AddSpecialPlanItem.vue +426 -0
  98. package/src/components/android/AndroidDefectDeal.vue +459 -223
  99. package/src/components/android/Announcement.vue +2 -2
  100. package/src/components/android/AreaPlan.vue +80 -12
  101. package/src/components/android/BlackUserOnLine.vue +318 -0
  102. package/src/components/android/CheckNotice.vue +3 -3
  103. package/src/components/android/CheckPlan.vue +6 -6
  104. package/src/components/android/CheckPlanDown.vue +4 -6
  105. package/src/components/android/CheckPlanItems.vue +1 -1
  106. package/src/components/android/CheckPlanList.vue +188 -0
  107. package/src/components/android/Checkpage.vue +1 -1
  108. package/src/components/android/CivilCurrentCreate.vue +1026 -0
  109. package/src/components/android/ClockIn.vue +94 -0
  110. package/src/components/android/CurrentCreate.vue +228 -148
  111. package/src/components/android/CurrentCreate_new.vue +1021 -0
  112. package/src/components/android/DailyworkloadQuery.vue +287 -211
  113. package/src/components/android/Defect.vue +5 -5
  114. package/src/components/android/DeviceDefect.vue +5 -5
  115. package/src/components/android/Devices.vue +16 -16
  116. package/src/components/android/DevicesItem.vue +30 -30
  117. package/src/components/android/DevicesItemm.vue +29 -29
  118. package/src/components/android/Devicesm.vue +26 -26
  119. package/src/components/android/DoorService.vue +1 -1
  120. package/src/components/android/ExtractCheckPlan.vue +5 -5
  121. package/src/components/android/ExtractPlanItem.vue +207 -198
  122. package/src/components/android/ImgSelfAndroid.vue +181 -0
  123. package/src/components/android/Insurance/PhoneInsuranceManage.vue +44 -0
  124. package/src/components/android/Insurance/PhoneInsurancePurchase.vue +282 -0
  125. package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +288 -0
  126. package/src/components/android/Insurance/PhoneInsuranceRecordList.vue +285 -0
  127. package/src/components/android/Insurance/TabButton.vue +149 -0
  128. package/src/components/android/Insurance/Tabs.vue +67 -0
  129. package/src/components/android/Iotinstructionsview/IoTinstruction.vue +183 -0
  130. package/src/components/android/LocalPagedList.js +3 -3
  131. package/src/components/android/LocalPathList.js +2 -2
  132. package/src/components/android/Login.vue +16 -16
  133. package/src/components/android/NewCheckpaperAndroid.vue +1362 -0
  134. package/src/components/android/NoCivilCurrentCreate.vue +1023 -0
  135. package/src/components/android/OnlineCheckByArea.vue +172 -0
  136. package/src/components/android/OnlineRepairSafe.vue +394 -0
  137. package/src/components/android/OnlineVindicate.vue +322 -0
  138. package/src/components/android/PaperAlarmNoncivil.vue +3 -3
  139. package/src/components/android/PaperCooker.vue +4 -4
  140. package/src/components/android/PaperDefect.vue +1 -1
  141. package/src/components/android/PaperDevice.vue +1 -1
  142. package/src/components/android/PaperFeedback.vue +143 -106
  143. package/src/components/android/PaperFeedbackTemp.vue +1470 -0
  144. package/src/components/android/PaperFeedbackm.vue +42 -42
  145. package/src/components/android/PaperFurnace.vue +3 -3
  146. package/src/components/android/PaperFurnaceNoncivil.vue +3 -3
  147. package/src/components/android/PaperHeater.vue +3 -3
  148. package/src/components/android/PaperInnerPlumb.vue +3 -3
  149. package/src/components/android/PaperMessage.vue +77 -77
  150. package/src/components/android/PaperMessageNocivil.vue +57 -57
  151. package/src/components/android/PaperMeter.vue +3 -3
  152. package/src/components/android/PaperMeterNoncivil.vue +3 -3
  153. package/src/components/android/PaperPieceNoncivil.vue +3 -3
  154. package/src/components/android/PaperPlumb.vue +3 -3
  155. package/src/components/android/PaperPlumbNoncivil.vue +3 -3
  156. package/src/components/android/PaperSet.vue +196 -196
  157. package/src/components/android/PaperSetNoncivil.vue +160 -160
  158. package/src/components/android/PaperState.vue +7 -7
  159. package/src/components/android/PaperStateNoncivil.vue +4 -4
  160. package/src/components/android/PaperStateNoncivilm.vue +4 -4
  161. package/src/components/android/PaperStatem.vue +10 -10
  162. package/src/components/android/PaperUser.vue +133 -157
  163. package/src/components/android/PaperUserNoncivil.vue +5 -5
  164. package/src/components/android/PaperUserm.vue +169 -159
  165. package/src/components/android/PaperValve.vue +3 -3
  166. package/src/components/android/PaperValveNoncivil.vue +3 -3
  167. package/src/components/android/PhoneChangemeterInfo.vue +5 -5
  168. package/src/components/android/PhoneRecordInfo.vue +113 -0
  169. package/src/components/android/PhoneSellInfo.vue +2 -2
  170. package/src/components/android/PhoneState.vue +1 -1
  171. package/src/components/android/PhoneUpDetail.vue +1040 -0
  172. package/src/components/android/PhoneUpUserinfo.vue +730 -435
  173. package/src/components/android/PhoneUserFind.vue +3 -3
  174. package/src/components/android/PhoneotherInfo.vue +132 -0
  175. package/src/components/android/PrearrangedPlan.vue +3 -3
  176. package/src/components/android/RelieveRestrict.vue +293 -0
  177. package/src/components/android/RepairAreaList.vue +1 -1
  178. package/src/components/android/RepairList.vue +2 -2
  179. package/src/components/android/RepairQuery.vue +2 -2
  180. package/src/components/android/ResAreaList.vue +1 -1
  181. package/src/components/android/Restriction.vue +351 -0
  182. package/src/components/android/RightTree.vue +2 -2
  183. package/src/components/android/SafePlanItem.vue +497 -0
  184. package/src/components/android/SafecheckDevices.vue +289 -138
  185. package/src/components/android/SafecheckDevicesTemp.vue +1333 -0
  186. package/src/components/android/SafecheckOrderV.vue +2445 -2050
  187. package/src/components/android/SafecheckOrderVTemp.vue +1233 -0
  188. package/src/components/android/SafecheckState.vue +9 -9
  189. package/src/components/android/SafecheckUser.vue +9 -9
  190. package/src/components/android/ShebeiDevices.vue +77 -77
  191. package/src/components/android/SwitchValve.vue +178 -85
  192. package/src/components/android/SystemSetting.vue +2 -2
  193. package/src/components/android/ToolsPage.vue +1 -1
  194. package/src/components/android/TrackState.vue +3 -3
  195. package/src/components/android/UploadPage.vue +13 -123
  196. package/src/components/android/YuYueAddPlanItem.vue +257 -0
  197. package/src/components/android/checkPlanResult.vue +1 -1
  198. package/src/components/android/old/PaperFeedback.vue +41 -41
  199. package/src/components/android/recheck/Recheck.vue +402 -0
  200. package/src/components/android/safeHistoryLook.vue +474 -0
  201. package/src/components/android/userinfo/SafecheckUserInfo.vue +407 -242
  202. package/src/components/android/wasm/PhoneSafePlan.vue +4 -4
  203. package/src/components/android/wasm/TestData.js +3 -3
  204. package/src/components/attendance/DailyAttendance.vue +2 -2
  205. package/src/components/attendance/MonthlyAttendance.vue +12 -12
  206. package/src/components/callincheck/CallInCheckMain.vue +1 -1
  207. package/src/components/callincheck/CallInPlan.vue +3 -3
  208. package/src/components/callincheck/UserFileList.vue +1 -1
  209. package/src/components/checkAreaClassification.vue +13 -13
  210. package/src/components/checkplan/CheckDetail.vue +110 -110
  211. package/src/components/checkplan/CheckPlan.vue +2 -2
  212. package/src/components/checkplan/SelectCheckPlan.vue +221 -134
  213. package/src/components/checkplan/SelectMessage.vue +7 -7
  214. package/src/components/checkplan/checkmsg.vue +30 -30
  215. package/src/components/checkplan/checkmsgZG.vue +26 -26
  216. package/src/components/createcheckplan/CreatePlan.vue +31 -109
  217. package/src/components/createcheckplan/CreatePlanWuan.vue +23 -100
  218. package/src/components/createcheckplan/DelPlanRepeat.vue +13 -13
  219. package/src/components/createcheckplan/DistributePlan.vue +1 -1
  220. package/src/components/createcheckplan/PlanList.vue +14 -14
  221. package/src/components/defect/DefectDetail.vue +6 -6
  222. package/src/components/defect/DefectDetailWeixiu.vue +6 -6
  223. package/src/components/defect/DefectList.vue +24 -6
  224. package/src/components/defect/DefectListWeixiu.vue +276 -271
  225. package/src/components/defect/DefectMain.vue +2 -2
  226. package/src/components/defect/DefectMainWeixiu.vue +2 -2
  227. package/src/components/defect/DefectPaper.vue +16 -14
  228. package/src/components/defect/DefectPaperWeiXiu.vue +6 -6
  229. package/src/components/defect/ImageViewer.vue +7 -7
  230. package/src/components/defect/ImgButton.vue +162 -104
  231. package/src/components/defect/ImgButtons.vue +159 -0
  232. package/src/components/defect/ImgsButton.vue +2 -2
  233. package/src/components/defects/CheckPaperItems.vue +2 -2
  234. package/src/components/defects/CheckPaperSearch.vue +12 -12
  235. package/src/components/defects/CheckPaperSearchMain.vue +1 -1
  236. package/src/components/defects/DefectCondition.vue +1 -1
  237. package/src/components/equipment/CheckRate.vue +3 -3
  238. package/src/components/equipment/MonthCheckRate.vue +1 -1
  239. package/src/components/filialCircle/AddCircleFiliale.vue +1 -1
  240. package/src/components/inspections/AddInspectPlanItem.vue +12 -12
  241. package/src/components/inspections/AddInspectPlanItems.vue +12 -12
  242. package/src/components/inspections/AddInspectPlanItemss.vue +14 -14
  243. package/src/components/inspections/Checked.vue +3 -3
  244. package/src/components/inspections/DisplayInspectionList.vue +50 -50
  245. package/src/components/inspections/InsUploadPage.vue +12 -12
  246. package/src/components/inspections/InspectionList.vue +12 -78
  247. package/src/components/inspections/InspectionLists.vue +12 -78
  248. package/src/components/inspections/InspectionListss.vue +12 -79
  249. package/src/components/inspections/inspectionDevices.vue +65 -65
  250. package/src/components/inspections/inspectionFeedback.vue +43 -43
  251. package/src/components/inspections/inspectionOrderV.vue +193 -193
  252. package/src/components/inspections/inspectionOrderVs.vue +193 -193
  253. package/src/components/inspections/inspectionOrderVss.vue +194 -194
  254. package/src/components/inspections/inspectionUserInfo.vue +23 -23
  255. package/src/components/issueplan/IssuePlanAction.vue +1 -1
  256. package/src/components/issueplan/IssuePlanQuery.vue +2 -2
  257. package/src/components/json-editor/SafeJsonEditor.vue +26 -26
  258. package/src/components/json-editor/assets/jsoneditor-minimalist.js +35 -35
  259. package/src/components/json-editor/assets/jsoneditor.js +492 -492
  260. package/src/components/json-editor/example/App.vue +9 -9
  261. package/src/components/levelplan/AdjustPlan.vue +2 -2
  262. package/src/components/levelplan/CheckerLeft.vue +1 -1
  263. package/src/components/levelplan/CheckerPlanAdjust.vue +8 -8
  264. package/src/components/levelplan/CheckerRight.vue +2 -2
  265. package/src/components/map/AMap.vue +3 -3
  266. package/src/components/map/AMapTrailShowZk.vue +11 -4
  267. package/src/components/map/AMapTrajectory.vue +436 -0
  268. package/src/components/map/AMapTrajectoryNew.vue +390 -0
  269. package/src/components/map/FootPrintList.vue +1 -1
  270. package/src/components/map/MapCriteriaData.vue +3 -3
  271. package/src/components/map/PersonTrack.vue +224 -0
  272. package/src/components/map/checkScreen.vue +711 -558
  273. package/src/components/map/douglasPeuckerForAMap.js +88 -0
  274. package/src/components/metterfiles/MetterfilesAdd.vue +1 -1
  275. package/src/components/metterfiles/MetterfilesChange.vue +1 -1
  276. package/src/components/metterfiles/UserFiles.vue +1 -1
  277. package/src/components/metterfiles/Userfileschange.vue +1 -1
  278. package/src/components/noplan/NoPlanPaperList.vue +123 -0
  279. package/src/components/noplan/NoPlanSearchUser.vue +300 -0
  280. package/src/components/noplan/NoPlanUserInfo.vue +67 -0
  281. package/src/components/olddata/OldPaperList.vue +340 -0
  282. package/src/components/paper/PaperList.vue +293 -164
  283. package/src/components/paper/PaperVerify.vue +2 -2
  284. package/src/components/paper/PlanChooser.vue +18 -12
  285. package/src/components/pc/AddToCheckBook.vue +160 -0
  286. package/src/components/pc/AnnouncementPC.vue +9 -9
  287. package/src/components/pc/CheckBook.vue +247 -13
  288. package/src/components/pc/CheckBookArea.vue +146 -0
  289. package/src/components/pc/CheckBookCompany.vue +144 -0
  290. package/src/components/pc/CheckBookDetails.vue +194 -0
  291. package/src/components/pc/CheckBookEntry.vue +61 -0
  292. package/src/components/pc/CheckBookList.vue +187 -348
  293. package/src/components/pc/CheckBookSearchArea.vue +564 -0
  294. package/src/components/pc/CheckBookSearchUnit.vue +229 -0
  295. package/src/components/pc/CheckBookSearchUser.vue +604 -0
  296. package/src/components/pc/CheckBookSearchUserList.vue +675 -0
  297. package/src/components/pc/CheckBookUser.vue +28 -4
  298. package/src/components/pc/CheckNoDetail.vue +209 -0
  299. package/src/components/pc/CheckNoPlan.vue +55 -0
  300. package/src/components/pc/CheckPlanCountChart.vue +201 -0
  301. package/src/components/pc/DefectDeal.vue +997 -0
  302. package/src/components/pc/DefectList.vue +742 -0
  303. package/src/components/pc/DepSelector.vue +55 -0
  304. package/src/components/pc/DeviceChange.vue +82 -82
  305. package/src/components/pc/Edit.vue +126 -0
  306. package/src/components/pc/HiddenChart.vue +9 -9
  307. package/src/components/pc/LodopFuncs.js +159 -0
  308. package/src/components/pc/NewCheckpaper.vue +780 -146
  309. package/src/components/pc/NewCheckpaperTemp.vue +1295 -0
  310. package/src/components/pc/PaperChazhiMain.vue +12 -78
  311. package/src/components/pc/PaperDefectMain.vue +422 -140
  312. package/src/components/pc/PaperEdit.vue +151 -0
  313. package/src/components/pc/PaperVisitMain.vue +179 -0
  314. package/src/components/pc/PrintData.vue +243 -0
  315. package/src/components/pc/PrintMaterialBill.vue +155 -0
  316. package/src/components/pc/PrintTable.vue +241 -0
  317. package/src/components/pc/RoleSelector.vue +87 -49
  318. package/src/components/pc/RoleSelectorDep.vue +158 -0
  319. package/src/components/pc/SafeCheckOrder/SafeCheckOrder.vue +62 -0
  320. package/src/components/pc/SafeCheckOrder/SafeCheckOrderApplyDisposeBasics.vue +200 -0
  321. package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +214 -0
  322. package/src/components/pc/SafeCheckTree.vue +118 -0
  323. package/src/components/pc/SafeVisitHistory.vue +208 -0
  324. package/src/components/pc/SafecheckDeviceList.vue +260 -0
  325. package/src/components/pc/SelectCheckNoPlan.vue +278 -0
  326. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -0
  327. package/src/components/phonestate/FootprintMap.vue +5 -5
  328. package/src/components/plancheck/CheckPlanAreaManage.vue +3 -3
  329. package/src/components/plancheck/CheckPlanList.vue +5 -5
  330. package/src/components/planmanage/PlanManage.vue +102 -22
  331. package/src/components/planmanage/checkPlanList.vue +180 -153
  332. package/src/components/planmanage/checkUserList.vue +386 -338
  333. package/src/components/querycheckpaper/CheckPaperList.vue +11 -3
  334. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +12 -5
  335. package/src/components/querycheckpaper/CheckPaperSearchUserNew.vue +67 -0
  336. package/src/components/querycheckpaper/CheckSearchUser.vue +177 -54
  337. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -0
  338. package/src/components/querycheckpaper/PaperItems.vue +2 -2
  339. package/src/components/querycheckpaper/PaperSearchMain.vue +3 -3
  340. package/src/components/querycheckpaper/ShebeiPaperList.vue +3 -3
  341. package/src/components/querycheckpaper/ShebeiPaperSearchUser.vue +3 -3
  342. package/src/components/querycheckpaper/ShebeiSearchUser.vue +13 -13
  343. package/src/components/report/CheckByPlan.vue +118 -0
  344. package/src/components/report/CheckPlanAreaList.vue +70 -34
  345. package/src/components/report/CheckPlanAreaManage.vue +2 -2
  346. package/src/components/report/CheckPlanAreaReport.vue +122 -0
  347. package/src/components/report/CheckPlanCountChartArea.vue +115 -0
  348. package/src/components/report/CheckPlanUserList.vue +5 -5
  349. package/src/components/report/HazardStatistics.vue +114 -0
  350. package/src/components/report/HiddenSituation.vue +75 -22
  351. package/src/components/report/NoCheckplanSafecheck.vue +212 -0
  352. package/src/components/report/SafePlanSale.vue +4 -4
  353. package/src/components/report/SafePlanStatistics.vue +5 -5
  354. package/src/components/report/YinHuanBiHuan.vue +150 -0
  355. package/src/components/rongcheng/AddPlanItem.vue +5 -5
  356. package/src/components/rongcheng/AreaPlan.vue +4 -4
  357. package/src/components/rongcheng/AspPaperFeedback.vue +56 -56
  358. package/src/components/rongcheng/AspPaperStatem.vue +8 -8
  359. package/src/components/rongcheng/AspiratedAreaPlan.vue +4 -4
  360. package/src/components/rongcheng/AspiratedCurrentCreate.vue +682 -639
  361. package/src/components/rongcheng/AspiratedDevices.vue +110 -77
  362. package/src/components/rongcheng/AspiratedDistribute.vue +240 -0
  363. package/src/components/rongcheng/AspiratedOrderV.vue +209 -208
  364. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +42 -42
  365. package/src/components/rongcheng/AspiratedPaperMessage.vue +77 -77
  366. package/src/components/rongcheng/AspiratedPaperMessageNocivil.vue +57 -57
  367. package/src/components/rongcheng/AspiratedUploadPage.vue +12 -12
  368. package/src/components/rongcheng/AspiratedUserInfo.vue +11 -11
  369. package/src/components/rongcheng/CheckCurrentCreate.vue +54 -30
  370. package/src/components/rongcheng/CheckPaperAreaUser.vue +51 -0
  371. package/src/components/rongcheng/CheckPaperList.vue +3 -3
  372. package/src/components/rongcheng/CheckPaperSearchUser.vue +1 -1
  373. package/src/components/rongcheng/CheckPaperSearchUserNo.vue +1 -1
  374. package/src/components/rongcheng/CheckPlanList.vue +256 -0
  375. package/src/components/rongcheng/CheckSearchArea.vue +703 -0
  376. package/src/components/rongcheng/CheckSearchUser.vue +604 -524
  377. package/src/components/rongcheng/CheckSearchUserNo.vue +455 -434
  378. package/src/components/rongcheng/CheckUserList.vue +205 -0
  379. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -0
  380. package/src/components/rongcheng/Datepicker.vue +825 -0
  381. package/src/components/rongcheng/DefectList.vue +7 -7
  382. package/src/components/rongcheng/DefectPaper.vue +53 -18
  383. package/src/components/rongcheng/EventListener.js +29 -0
  384. package/src/components/rongcheng/ImgSelf.vue +122 -0
  385. package/src/components/rongcheng/PaperFeedback.vue +61 -61
  386. package/src/components/rongcheng/PaperListAJ.vue +5 -72
  387. package/src/components/rongcheng/PaperListNPAJ.vue +5 -72
  388. package/src/components/rongcheng/PaperListNPSQ.vue +7 -72
  389. package/src/components/rongcheng/PaperListSQ.vue +13 -73
  390. package/src/components/rongcheng/PaperMessage.vue +78 -78
  391. package/src/components/rongcheng/PaperMessageNocivil.vue +57 -57
  392. package/src/components/rongcheng/PaperStateNoncivilm.vue +35 -25
  393. package/src/components/rongcheng/PaperStatem.vue +98 -27
  394. package/src/components/rongcheng/PhoneDevicesInfo.vue +6 -6
  395. package/src/components/rongcheng/PhoneUpUserinfo.vue +1191 -0
  396. package/src/components/rongcheng/SafecheckDevices.vue +128 -95
  397. package/src/components/rongcheng/SafecheckOrderV.vue +2184 -2136
  398. package/src/components/rongcheng/SafecheckOrderVCli.vue +250 -212
  399. package/src/components/rongcheng/SafecheckUserInfo.vue +586 -21
  400. package/src/components/rongcheng/UploadPage.vue +16 -16
  401. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +16 -30
  402. package/src/components/rongcheng/report/CheckPlanAreaList.vue +32 -14
  403. package/src/components/rongcheng/report/CheckPlanUserList.vue +8 -8
  404. package/src/components/safecheck/common/TabButton.vue +3 -3
  405. package/src/components/safecheck/queryManage/CheckBookAll.vue +15 -19
  406. package/src/components/safecheck/queryManage/SafeCheckManage.vue +3 -3
  407. package/src/components/sendsingle/EquipmentManagement.vue +27 -27
  408. package/src/components/sendsingle/onlineChangeMeter.vue +60 -60
  409. package/src/components/sendsingle/onlineoperation.vue +26 -26
  410. package/src/components/sendsingle/onlinequeryuser.vue +29 -29
  411. package/src/components/shaoguan/CheckPlanUserList.vue +6 -6
  412. package/src/components/shaoguan/DefectDetail.vue +6 -6
  413. package/src/components/shaoguan/DefectList.vue +6 -6
  414. package/src/components/shaoguan/DefectPaper.vue +2 -2
  415. package/src/components/shaoguan/PaperList.vue +12 -79
  416. package/src/components/shaoguan/SafecheckOrderV.vue +202 -202
  417. package/src/components/tongcheng/AreaPlan.vue +4 -4
  418. package/src/components/tongcheng/CurrentCreate.vue +13 -13
  419. package/src/components/tongcheng/PaperFeedback.vue +48 -48
  420. package/src/components/tongcheng/PaperMessage.vue +79 -79
  421. package/src/components/tongcheng/PaperMessageNocivil.vue +57 -57
  422. package/src/components/tongcheng/PaperSet.vue +196 -196
  423. package/src/components/tongcheng/PaperUser.vue +9 -9
  424. package/src/components/userfile/InfoModifyModal.vue +5 -3
  425. package/src/components/userfile/SecurityAudit.vue +243 -0
  426. package/src/components/userfile/UserInfoAudit.vue +106 -42
  427. package/src/components/userfile/UserinfoModify.vue +4 -0
  428. package/src/components/userfileNew/InfoModifyModal.vue +122 -0
  429. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -0
  430. package/src/components/userfileNew/UserinfoModify.vue +283 -0
  431. package/src/components/userfileNew/UserinfoModifyOld.vue +117 -0
  432. package/src/filiale/ALshan/pc/CheckSearchUser.vue +15 -15
  433. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +10 -7
  434. package/src/filiale/ALshan/pc/RoleSelector.vue +140 -0
  435. package/src/filiale/ALshan/pc/checkUserList.vue +714 -0
  436. package/src/filiale/ALshan/pc.js +2 -0
  437. package/src/filiale/Util.js +8 -8
  438. package/src/filiale/ancheng/android/NewCheckpaperAndroid.vue +1358 -0
  439. package/src/filiale/ancheng/android/PaperFeedback.vue +1489 -0
  440. package/src/filiale/ancheng/android/SafecheckDevices.vue +1267 -0
  441. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -0
  442. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -0
  443. package/src/filiale/ancheng/android.js +14 -0
  444. package/src/filiale/ancheng/pc/NewCheckpaper.vue +1744 -0
  445. package/src/filiale/ancheng/pc/PaperList.vue +659 -0
  446. package/src/filiale/ancheng/pc/checkScreen.vue +923 -0
  447. package/src/filiale/ancheng/pc.js +15 -0
  448. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -0
  449. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +648 -0
  450. package/src/filiale/ankangyihua/android/CurrentCreate.vue +1039 -0
  451. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -0
  452. package/src/filiale/ankangyihua/android/UploadPage.vue +306 -0
  453. package/src/filiale/ankangyihua/android.js +14 -0
  454. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -0
  455. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -0
  456. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -0
  457. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -0
  458. package/src/filiale/ankangyihua/pc/NewCheckpaper.vue +1420 -0
  459. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -0
  460. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -0
  461. package/src/filiale/ankangyihua/pc/PdfUtil.js +872 -0
  462. package/src/filiale/ankangyihua/pc/PlanManage.vue +830 -0
  463. package/src/filiale/ankangyihua/pc/RoleSelector.vue +160 -0
  464. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -0
  465. package/src/filiale/ankangyihua/pc.js +22 -0
  466. package/src/filiale/bayan/android/AddPlanItem.vue +413 -0
  467. package/src/filiale/bayan/android/CurrentCreate.vue +1057 -0
  468. package/src/filiale/bayan/android/Edit.vue +132 -0
  469. package/src/filiale/bayan/android/PaperFeedback.vue +1651 -0
  470. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -0
  471. package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -0
  472. package/src/filiale/bayan/android/SafecheckOrderV.vue +2850 -0
  473. package/src/filiale/bayan/android/SafecheckUserInfo.vue +811 -0
  474. package/src/filiale/bayan/android.js +17 -0
  475. package/src/filiale/bayan/pc/NewCheckpaper.vue +1958 -0
  476. package/src/filiale/bayan/pc/PaperList.vue +792 -0
  477. package/src/filiale/bayan/pc/PlanManage.vue +939 -0
  478. package/src/filiale/bayan/pc.js +15 -0
  479. package/src/filiale/dexin/android/SafecheckDevices.vue +1305 -0
  480. package/src/filiale/dexin/android/SafecheckOrderV.vue +2799 -0
  481. package/src/filiale/dexin/android.js +11 -0
  482. package/src/filiale/dexin/pc/PaperList.vue +805 -0
  483. package/src/filiale/dexin/pc.js +12 -0
  484. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  485. package/src/filiale/fugou/android.js +10 -0
  486. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  487. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  488. package/src/filiale/fugou/pc/PaperDefectMain.vue +901 -0
  489. package/src/filiale/fugou/pc/PaperList.vue +903 -0
  490. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  491. package/src/filiale/fugou/pc.js +17 -0
  492. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -0
  493. package/src/filiale/fugu/android.js +10 -0
  494. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -0
  495. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -0
  496. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -0
  497. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -0
  498. package/src/filiale/fugu/pc.js +18 -0
  499. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -0
  500. package/src/filiale/ganquan/android/AndroidDefectDeal.vue +570 -0
  501. package/src/filiale/ganquan/android/NoPlanDaofang.vue +241 -0
  502. package/src/filiale/ganquan/android/PhoneUpUserinfo.vue +986 -0
  503. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -0
  504. package/src/filiale/ganquan/android.js +25 -0
  505. package/src/filiale/ganquan/pc/CheckPlan.vue +47 -0
  506. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -0
  507. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -0
  508. package/src/filiale/ganquan/pc/PaperList.vue +654 -0
  509. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -0
  510. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -0
  511. package/src/filiale/ganquan/pc/checkUserList.vue +681 -0
  512. package/src/filiale/ganquan/pc.js +20 -0
  513. package/src/filiale/gehua/android/CurrentCreate.vue +1009 -0
  514. package/src/filiale/gehua/android.js +12 -0
  515. package/src/filiale/gehua/pc/PaperList.vue +558 -0
  516. package/src/filiale/gehua/pc/checkUserList.vue +720 -0
  517. package/src/filiale/gehua/pc/checkmsg.vue +241 -0
  518. package/src/filiale/gehua/pc.js +15 -0
  519. package/src/filiale/guangxi/android/AreaPlan.vue +547 -0
  520. package/src/filiale/guangxi/android/CurrentCreate.vue +1037 -0
  521. package/src/filiale/guangxi/android.js +13 -0
  522. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -0
  523. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -0
  524. package/src/filiale/guangxi/pc/DefectMainNew.vue +63 -0
  525. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -0
  526. package/src/filiale/guangxi/pc.js +14 -0
  527. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -0
  528. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -0
  529. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -0
  530. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -0
  531. package/src/filiale/hanzhong/android.js +16 -0
  532. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +703 -0
  533. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +499 -0
  534. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +563 -0
  535. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +499 -0
  536. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1114 -0
  537. package/src/filiale/hanzhong/pc/CheckUserList.vue +736 -0
  538. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +586 -0
  539. package/src/filiale/hanzhong/pc/HomeEcharts.vue +153 -0
  540. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  541. package/src/filiale/hanzhong/pc/PaperList.vue +702 -0
  542. package/src/filiale/hanzhong/pc.js +46 -0
  543. package/src/filiale/huatong/android/AndroidDefectDeal.vue +396 -0
  544. package/src/filiale/huatong/android/CurrentCreate.vue +1023 -0
  545. package/src/filiale/huatong/android/PaperFeedback.vue +1433 -0
  546. package/src/filiale/huatong/android/SafecheckDevices.vue +68 -68
  547. package/src/filiale/huatong/android/SafecheckOrderV.vue +250 -222
  548. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -0
  549. package/src/filiale/huatong/android.js +5 -2
  550. package/src/filiale/huatong/pc/ExportExcelOld.vue +203 -0
  551. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -0
  552. package/src/filiale/huatong/pc/PaperList.vue +789 -0
  553. package/src/filiale/huatong/pc.js +3 -1
  554. package/src/filiale/huayin/android/AreaPlan.vue +535 -0
  555. package/src/filiale/huayin/android/PaperFeedback.vue +1422 -0
  556. package/src/filiale/huayin/android/SafecheckOrderV.vue +2712 -0
  557. package/src/filiale/huayin/android.js +14 -0
  558. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -0
  559. package/src/filiale/huayin/pc/PaperList.vue +621 -0
  560. package/src/filiale/huayin/pc.js +14 -0
  561. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -0
  562. package/src/filiale/jiaocheng/android/PaperFeedback.vue +1308 -0
  563. package/src/filiale/jiaocheng/android/SafecheckDevices.vue +1267 -0
  564. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -0
  565. package/src/filiale/jiaocheng/android.js +13 -0
  566. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -0
  567. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -0
  568. package/src/filiale/jiaocheng/pc/NewCheckpaper.vue +1417 -0
  569. package/src/filiale/jiaocheng/pc.js +14 -0
  570. package/src/filiale/jinbin/android/AndroidDefectDeal.vue +403 -0
  571. package/src/filiale/jinbin/android/DailyworkloadQuery.vue +395 -0
  572. package/src/filiale/jinbin/android/PhoneUpUserinfo.vue +878 -0
  573. package/src/filiale/jinbin/android.js +12 -0
  574. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -0
  575. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -0
  576. package/src/filiale/jinbin/pc.js +15 -0
  577. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  578. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  579. package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -0
  580. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +1234 -0
  581. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  582. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  583. package/src/filiale/jingyang/android.js +11 -0
  584. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -0
  585. package/src/filiale/jingyang/pc/InfoModifyModal.vue +151 -0
  586. package/src/filiale/jingyang/pc/PaperList.vue +793 -0
  587. package/src/filiale/jingyang/pc/UserInfoAuditNew.vue +272 -0
  588. package/src/filiale/jingyang/pc/UserinfoModify.vue +133 -0
  589. package/src/filiale/jingyang/pc.js +14 -0
  590. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  591. package/src/filiale/kelai/android/AndroidDefectDeal.vue +747 -0
  592. package/src/filiale/kelai/android/CheckPlanList.vue +203 -0
  593. package/src/filiale/kelai/android/CurrentCreate.vue +1008 -0
  594. package/src/filiale/kelai/android/PaperFeedback.vue +1539 -0
  595. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1053 -0
  596. package/src/filiale/kelai/android/RelieveRestrict.vue +304 -0
  597. package/src/filiale/kelai/android/SafecheckDevices.vue +1232 -0
  598. package/src/filiale/kelai/android/SafecheckOrderV.vue +2448 -0
  599. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -0
  600. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -0
  601. package/src/filiale/kelai/android.js +21 -0
  602. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +488 -0
  603. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -0
  604. package/src/filiale/kelai/pc/DefectListNew.vue +688 -0
  605. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -0
  606. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGas.vue +60 -0
  607. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -0
  608. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -0
  609. package/src/filiale/kelai/pc/InfoModifyModal.vue +123 -0
  610. package/src/filiale/kelai/pc/MeterModify.vue +46 -0
  611. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -0
  612. package/src/filiale/kelai/pc/PaperList.vue +596 -0
  613. package/src/filiale/kelai/pc/UserInfoAudit.vue +254 -0
  614. package/src/filiale/kelai/pc/UserinfoModify.vue +124 -0
  615. package/src/filiale/kelai/pc/checkUserList.vue +698 -0
  616. package/src/filiale/kelai/pc/checkmsg.vue +275 -0
  617. package/src/filiale/kelai/pc.js +25 -0
  618. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -0
  619. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  620. package/src/filiale/liaoyuan/android/SafecheckDevices.vue +68 -68
  621. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +232 -227
  622. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +30 -23
  623. package/src/filiale/liaoyuan/android.js +2 -0
  624. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -0
  625. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +13 -7
  626. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +550 -514
  627. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +54 -54
  628. package/src/filiale/liaoyuan/pc/PaperList.vue +66 -86
  629. package/src/filiale/liaoyuan/pc/RoleSelector.vue +160 -0
  630. package/src/filiale/liaoyuan/pc.js +3 -1
  631. package/src/filiale/lixian/android/CurrentCreate.vue +997 -0
  632. package/src/filiale/lixian/android/SafecheckDevices.vue +82 -82
  633. package/src/filiale/lixian/android/SafecheckOrderV.vue +215 -214
  634. package/src/filiale/lixian/android/SafecheckUserInfo.vue +30 -38
  635. package/src/filiale/lixian/android.js +2 -1
  636. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +25 -19
  637. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -0
  638. package/src/filiale/lixian/pc/NewCheckpaper.vue +58 -58
  639. package/src/filiale/lixian/pc/PaperChazhiMain.vue +13 -80
  640. package/src/filiale/lixian/pc/PaperDefectMain.vue +14 -80
  641. package/src/filiale/lixian/pc/PaperList.vue +21 -87
  642. package/src/filiale/lixian/pc/checkPlanList.vue +366 -0
  643. package/src/filiale/lixian/pc/checkUserList.vue +761 -0
  644. package/src/filiale/lixian/pc.js +4 -2
  645. package/src/filiale/minsheng/android/AreaPlan.vue +537 -0
  646. package/src/filiale/minsheng/android/CurrentCreate.vue +1028 -0
  647. package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +1269 -0
  648. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -0
  649. package/src/filiale/minsheng/android/SwitchValve.vue +497 -0
  650. package/src/filiale/minsheng/android.js +16 -0
  651. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -0
  652. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -0
  653. package/src/filiale/minsheng/pc/DefectMainNew.vue +63 -0
  654. package/src/filiale/minsheng/pc/checkUserList.vue +806 -0
  655. package/src/filiale/minsheng/pc.js +15 -0
  656. package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -0
  657. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -0
  658. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -0
  659. package/src/filiale/pingxiang/android.js +11 -0
  660. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -0
  661. package/src/filiale/pingxiang/pc/DefectMainNew.vue +62 -0
  662. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -0
  663. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -0
  664. package/src/filiale/pingxiang/pc/PaperList.vue +595 -0
  665. package/src/filiale/pingxiang/pc.js +15 -0
  666. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -0
  667. package/src/filiale/qianneng/android/AreaPlan.vue +536 -0
  668. package/src/filiale/qianneng/android/CurrentCreate.vue +1003 -0
  669. package/src/filiale/qianneng/android/PaperFeedback.vue +1434 -0
  670. package/src/filiale/qianneng/android/PhoneUpUserinfo.vue +1127 -0
  671. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -0
  672. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -0
  673. package/src/filiale/qianneng/android/SwitchValve.vue +369 -0
  674. package/src/filiale/qianneng/android.js +18 -0
  675. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -0
  676. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -0
  677. package/src/filiale/qianneng/pc/InfoModifyModal.vue +135 -0
  678. package/src/filiale/qianneng/pc/MeterModify.vue +46 -0
  679. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -0
  680. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -0
  681. package/src/filiale/qianneng/pc/PaperList.vue +747 -0
  682. package/src/filiale/qianneng/pc/PlanManage.vue +857 -0
  683. package/src/filiale/qianneng/pc/UserInfoAudit.vue +286 -0
  684. package/src/filiale/qianneng/pc/UserinfoModify.vue +125 -0
  685. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -0
  686. package/src/filiale/qianneng/pc/checkUserList.vue +871 -0
  687. package/src/filiale/qianneng/pc.js +22 -0
  688. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1268 -0
  689. package/src/filiale/qingjian/android/SafecheckDevices.vue +1269 -0
  690. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2778 -0
  691. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +796 -0
  692. package/src/filiale/qingjian/android.js +13 -0
  693. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1876 -0
  694. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -0
  695. package/src/filiale/qingjian/pc.js +15 -0
  696. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -0
  697. package/src/filiale/qingtongxia/android.js +10 -0
  698. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -0
  699. package/src/filiale/qingtongxia/pc/NewCheckpaper.vue +1908 -0
  700. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -0
  701. package/src/filiale/qingtongxia/pc.js +15 -0
  702. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -0
  703. package/src/filiale/rizhao/android/PaperFeedback.vue +1510 -0
  704. package/src/filiale/rizhao/android/SafecheckDevices.vue +1169 -0
  705. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -0
  706. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -0
  707. package/src/filiale/rizhao/android.js +14 -0
  708. package/src/filiale/rizhao/pc/DefectList.vue +489 -0
  709. package/src/filiale/rizhao/pc/NewCheckpaper.vue +1346 -0
  710. package/src/filiale/rizhao/pc/PaperList.vue +714 -0
  711. package/src/filiale/rizhao/pc.js +15 -0
  712. package/src/filiale/rongchuang/android/PaperFeedback.vue +1455 -0
  713. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2455 -0
  714. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -0
  715. package/src/filiale/rongchuang/android.js +12 -0
  716. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +1290 -0
  717. package/src/filiale/rongchuang/pc/checkUserList.vue +42 -15
  718. package/src/filiale/rongchuang/pc.js +2 -1
  719. package/src/filiale/shanggao/android/PaperFeedback.vue +1422 -0
  720. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -0
  721. package/src/filiale/shanggao/android.js +12 -0
  722. package/src/filiale/shanxian/android/AndroidDefectDeal.vue +755 -0
  723. package/src/filiale/shanxian/android/CurrentCreate_new.vue +1027 -0
  724. package/src/filiale/shanxian/android/PaperFeedback.vue +1445 -0
  725. package/src/filiale/shanxian/android/PhoneUpUserinfo.vue +939 -0
  726. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -0
  727. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -0
  728. package/src/filiale/shanxian/android.js +17 -0
  729. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -0
  730. package/src/filiale/shanxian/pc/CheckPlan.vue +55 -0
  731. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -0
  732. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -0
  733. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -0
  734. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -0
  735. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +303 -0
  736. package/src/filiale/shanxian/pc/checkUserList.vue +700 -0
  737. package/src/filiale/shanxian/pc.js +20 -0
  738. package/src/filiale/shaoguan/android.js +10 -0
  739. package/src/filiale/shaoguan/pc/PaperList.vue +589 -0
  740. package/src/filiale/shaoguan/pc.js +11 -0
  741. package/src/filiale/shexian/android/AddPlanItem.vue +444 -0
  742. package/src/filiale/shexian/android/AndroidDefectDeal.vue +634 -0
  743. package/src/filiale/shexian/android/AreaPlan.vue +540 -0
  744. package/src/filiale/shexian/android/DailyworkloadQuery.vue +418 -0
  745. package/src/filiale/shexian/android/PaperFeedback.vue +1448 -0
  746. package/src/filiale/shexian/android/PhoneUpUserinfo.vue +1153 -0
  747. package/src/filiale/shexian/android/SafecheckDevices.vue +1279 -0
  748. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -0
  749. package/src/filiale/shexian/android.js +17 -0
  750. package/src/filiale/shexian/pc/DefectListNew.vue +593 -0
  751. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -0
  752. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -0
  753. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -0
  754. package/src/filiale/shexian/pc.js +15 -0
  755. package/src/filiale/shimen/android/CurrentCreate.vue +29 -29
  756. package/src/filiale/shimen/android/PaperFeedback.vue +66 -66
  757. package/src/filiale/shimen/android/PhoneSellInfo.vue +2 -2
  758. package/src/filiale/shimen/android/SafecheckUserInfo.vue +24 -24
  759. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +18 -18
  760. package/src/filiale/shimen/pc/CheckSearchUser.vue +14 -14
  761. package/src/filiale/shimen/pc/DefectList.vue +6 -6
  762. package/src/filiale/shimen/pc/NewCheckpaper.vue +54 -54
  763. package/src/filiale/shimen/pc/PaperDefectMain.vue +17 -84
  764. package/src/filiale/shimen/pc/PaperList.vue +12 -78
  765. package/src/filiale/shimen/pc/checkmsg.vue +7 -7
  766. package/src/filiale/shiquan/android/AreaPlan.vue +526 -0
  767. package/src/filiale/shiquan/android/CurrentCreate.vue +1014 -0
  768. package/src/filiale/shiquan/android/SafecheckDevices.vue +1269 -0
  769. package/src/filiale/shiquan/android.js +12 -0
  770. package/src/filiale/shiquan/pc/checkUserList.vue +755 -0
  771. package/src/filiale/shiquan/pc.js +13 -0
  772. package/src/filiale/tianke/android/AddPlanItem.vue +455 -0
  773. package/src/filiale/tianke/android/CurrentCreate.vue +988 -0
  774. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -0
  775. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -0
  776. package/src/filiale/tianke/android.js +16 -0
  777. package/src/filiale/tianke/pc/DefectListNew.vue +538 -0
  778. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -0
  779. package/src/filiale/tianke/pc/checkScreen.vue +781 -0
  780. package/src/filiale/tianke/pc/cq.jpg +0 -0
  781. package/src/filiale/tianke/pc/qy.jpg +0 -0
  782. package/src/filiale/tianke/pc.js +15 -0
  783. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -0
  784. package/src/filiale/tongchuan/android/AndroidDefectDeal.vue +647 -0
  785. package/src/filiale/tongchuan/android/CurrentCreate.vue +1001 -0
  786. package/src/filiale/tongchuan/android/PaperFeedback.vue +129 -163
  787. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -0
  788. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -0
  789. package/src/filiale/tongchuan/android/PhoneUpDetail.vue +707 -0
  790. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1265 -0
  791. package/src/filiale/tongchuan/android/SafecheckDevices.vue +458 -363
  792. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2652 -2193
  793. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +119 -39
  794. package/src/filiale/tongchuan/android/SwitchValve.vue +284 -0
  795. package/src/filiale/tongchuan/android/UploadPage.vue +26 -14
  796. package/src/filiale/tongchuan/android.js +9 -2
  797. package/src/filiale/tongchuan/pc/CheckBookArea.vue +145 -0
  798. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -0
  799. package/src/filiale/tongchuan/pc/CheckBookEntry.vue +61 -0
  800. package/src/filiale/tongchuan/pc/CheckBookList.vue +377 -0
  801. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -0
  802. package/src/filiale/tongchuan/pc/CheckPlan.vue +55 -0
  803. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -0
  804. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +135 -0
  805. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +6 -5
  806. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +625 -541
  807. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -0
  808. package/src/filiale/tongchuan/pc/DefectPaper.vue +17 -17
  809. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +90 -10
  810. package/src/filiale/tongchuan/pc/HiddenSituation.vue +164 -0
  811. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +65 -60
  812. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -0
  813. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +676 -250
  814. package/src/filiale/tongchuan/pc/PaperList.vue +77 -84
  815. package/src/filiale/tongchuan/pc/PlanManage.vue +901 -0
  816. package/src/filiale/tongchuan/pc/RoleSelector.vue +172 -0
  817. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +293 -0
  818. package/src/filiale/tongchuan/pc/checkUserList.vue +31 -15
  819. package/src/filiale/tongchuan/pc/repairScreen.vue +767 -0
  820. package/src/filiale/tongchuan/pc.js +16 -1
  821. package/src/filiale/weinan/android/AddPlanItem.vue +438 -0
  822. package/src/filiale/weinan/android/AndroidDefectDeal.vue +450 -0
  823. package/src/filiale/weinan/android/AreaPlan.vue +693 -0
  824. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -0
  825. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -0
  826. package/src/filiale/weinan/android/PaperFeedback.vue +1410 -0
  827. package/src/filiale/weinan/android/PhoneUpDetail.vue +968 -0
  828. package/src/filiale/weinan/android/PhoneUpUserinfo.vue +1038 -0
  829. package/src/filiale/weinan/android/SafePlanItem.vue +440 -0
  830. package/src/filiale/weinan/android/SafecheckDevices.vue +1234 -0
  831. package/src/filiale/weinan/android/SafecheckOrderV.vue +3276 -0
  832. package/src/filiale/weinan/android/SafecheckUserInfo.vue +773 -0
  833. package/src/filiale/weinan/android.js +21 -0
  834. package/src/filiale/weinan/pc/CheckBook.vue +332 -0
  835. package/src/filiale/weinan/pc/CheckBookAll.vue +67 -0
  836. package/src/filiale/weinan/pc/CheckBookArea.vue +180 -0
  837. package/src/filiale/weinan/pc/CheckBookCompany.vue +144 -0
  838. package/src/filiale/weinan/pc/CheckBookCompanyUser.vue +86 -0
  839. package/src/filiale/weinan/pc/CheckBookDetails.vue +194 -0
  840. package/src/filiale/weinan/pc/CheckBookList.vue +446 -0
  841. package/src/filiale/weinan/pc/CheckBookSearchUser.vue +604 -0
  842. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +722 -0
  843. package/src/filiale/weinan/pc/CheckBookUser.vue +101 -0
  844. package/src/filiale/weinan/pc/CheckDetail.vue +278 -0
  845. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -0
  846. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -0
  847. package/src/filiale/weinan/pc/CheckNoPlan.vue +59 -0
  848. package/src/filiale/weinan/pc/CheckPlan.vue +57 -0
  849. package/src/filiale/weinan/pc/CheckPlanAreaList.vue +472 -0
  850. package/src/filiale/weinan/pc/CheckPlanAreaManage.vue +111 -0
  851. package/src/filiale/weinan/pc/CheckPlanOutHelp.vue +57 -0
  852. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -0
  853. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -0
  854. package/src/filiale/weinan/pc/DefectPaperNew.vue +1059 -0
  855. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -0
  856. package/src/filiale/weinan/pc/NewCheckpaper.vue +1459 -0
  857. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -0
  858. package/src/filiale/weinan/pc/PaperList.vue +674 -0
  859. package/src/filiale/weinan/pc/PersonTrack.vue +246 -0
  860. package/src/filiale/weinan/pc/PlanManage.vue +986 -0
  861. package/src/filiale/weinan/pc/PrintMaterialBillNoplan.vue +161 -0
  862. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -0
  863. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -0
  864. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -0
  865. package/src/filiale/weinan/pc/checkPlanList.vue +456 -0
  866. package/src/filiale/weinan/pc/checkScreen.vue +1094 -0
  867. package/src/filiale/weinan/pc/checkUserList.vue +776 -0
  868. package/src/filiale/weinan/pc.js +44 -0
  869. package/src/filiale/weinanct/android/SafecheckDevices.vue +1225 -0
  870. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -0
  871. package/src/filiale/weinanct/android.js +14 -0
  872. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -0
  873. package/src/filiale/weinanct/pc/PaperList.vue +593 -0
  874. package/src/filiale/weinanct/pc/checkmsg.vue +248 -0
  875. package/src/filiale/weinanct/pc.js +14 -0
  876. package/src/filiale/wensu/android/AddPlanItem.vue +495 -0
  877. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -0
  878. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  879. package/src/filiale/wensu/android/CurrentCreate.vue +998 -0
  880. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -0
  881. package/src/filiale/wensu/android/PhoneUpUserinfo.vue +314 -0
  882. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -0
  883. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -0
  884. package/src/filiale/wensu/android.js +16 -0
  885. package/src/filiale/wensu/pc/CheckDetail.vue +205 -0
  886. package/src/filiale/wensu/pc/CheckSearchUser.vue +1231 -0
  887. package/src/filiale/wensu/pc/DefectListNew.vue +735 -0
  888. package/src/filiale/wensu/pc/DefectMainNew.vue +63 -0
  889. package/src/filiale/wensu/pc/DefectPaperNew.vue +1142 -0
  890. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  891. package/src/filiale/wensu/pc/PrintMaterialBill.vue +155 -0
  892. package/src/filiale/wensu/pc/RoleSelector.vue +150 -0
  893. package/src/filiale/wensu/pc/SelectCheckPlan.vue +302 -0
  894. package/src/filiale/wensu/pc/checkUserList.vue +646 -0
  895. package/src/filiale/wensu/pc.js +19 -0
  896. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -0
  897. package/src/filiale/wenxi/android/AndroidDefectDealHY.vue +606 -0
  898. package/src/filiale/wenxi/android/AndroidDefectDealWX.vue +502 -0
  899. package/src/filiale/wenxi/android/AreaPlan.vue +519 -0
  900. package/src/filiale/wenxi/android/CurrentCreate.vue +36 -28
  901. package/src/filiale/wenxi/android/DailyworkloadQuery.vue +398 -0
  902. package/src/filiale/wenxi/android/PaperFeedback.vue +1173 -944
  903. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -0
  904. package/src/filiale/wenxi/android/SafecheckDevices.vue +1066 -780
  905. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2320 -2135
  906. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +109 -42
  907. package/src/filiale/wenxi/android/UploadPage.vue +13 -13
  908. package/src/filiale/wenxi/android.js +10 -2
  909. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -0
  910. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -0
  911. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -0
  912. package/src/filiale/wenxi/pc/DefectList.vue +653 -0
  913. package/src/filiale/wenxi/pc/DefectPaper.vue +136 -135
  914. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1194 -1005
  915. package/src/filiale/wenxi/pc/PaperDefectMain.vue +365 -209
  916. package/src/filiale/wenxi/pc/PaperList.vue +243 -154
  917. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -0
  918. package/src/filiale/wenxi/pc/checkUserList.vue +695 -0
  919. package/src/filiale/wenxi/pc/checkmsg.vue +9 -9
  920. package/src/filiale/wenxi/pc/checkmsgdeal.vue +132 -0
  921. package/src/filiale/wenxi/pc.js +9 -2
  922. package/src/filiale/wuan/android/AreaPlan.vue +6 -6
  923. package/src/filiale/wuan/android/CurrentCreate.vue +25 -25
  924. package/src/filiale/wuan/android/CurrentCreateSheBei.vue +25 -25
  925. package/src/filiale/wuan/android/PaperFeedback.vue +1433 -0
  926. package/src/filiale/wuan/android/SafecheckDevices.vue +101 -101
  927. package/src/filiale/wuan/android/SafecheckOrderV.vue +216 -216
  928. package/src/filiale/wuan/android/SafecheckUserInfo.vue +85 -65
  929. package/src/filiale/wuan/android.js +3 -2
  930. package/src/filiale/wuan/pc/DefectListWeixiu.vue +8 -8
  931. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +11 -10
  932. package/src/filiale/wuan/pc/NewCheckpaper.vue +54 -54
  933. package/src/filiale/wuan/pc/PaperList.vue +12 -78
  934. package/src/filiale/wuhai/android/AreaPlan.vue +7 -7
  935. package/src/filiale/wuhai/android/CurrentCreate.vue +1005 -0
  936. package/src/filiale/wuhai/android/PaperFeedback.vue +67 -67
  937. package/src/filiale/wuhai/android/PhoneUpUserinfo.vue +926 -0
  938. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -0
  939. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -0
  940. package/src/filiale/wuhai/android.js +4 -1
  941. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -0
  942. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -0
  943. package/src/filiale/wuhai/pc/checkUserList.vue +48 -31
  944. package/src/filiale/wuhai/pc.js +4 -1
  945. package/src/filiale/xinkang/android/AndroidDefectDeal.vue +449 -0
  946. package/src/filiale/xinkang/android/CurrentCreate.vue +997 -0
  947. package/src/filiale/xinkang/android/OrderBacklog.vue +997 -0
  948. package/src/filiale/xinkang/android/SafecheckDevices.vue +1183 -0
  949. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -0
  950. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -0
  951. package/src/filiale/xinkang/android.js +14 -0
  952. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -0
  953. package/src/filiale/xinkang/pc/CheckPlanAreaManage.vue +111 -0
  954. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -0
  955. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -0
  956. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -0
  957. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -0
  958. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -0
  959. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -0
  960. package/src/filiale/xinkang/pc/PaperList.vue +603 -0
  961. package/src/filiale/xinkang/pc/checkUserList.vue +639 -0
  962. package/src/filiale/xinkang/pc.js +22 -0
  963. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +451 -0
  964. package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +238 -0
  965. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1150 -0
  966. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +477 -0
  967. package/src/filiale/yangchunboneng/android/DailyworkloadQueryNew.vue +480 -0
  968. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -0
  969. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -0
  970. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -0
  971. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2832 -0
  972. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +869 -0
  973. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +477 -0
  974. package/src/filiale/yangchunboneng/android.js +20 -0
  975. package/src/filiale/yangchunboneng/pc/AddToCheckBook.vue +237 -0
  976. package/src/filiale/yangchunboneng/pc/CheckBook.vue +301 -0
  977. package/src/filiale/yangchunboneng/pc/CheckBookAll.vue +66 -0
  978. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +213 -0
  979. package/src/filiale/yangchunboneng/pc/CheckBookEntry.vue +61 -0
  980. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +347 -0
  981. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +603 -0
  982. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +198 -0
  983. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +576 -0
  984. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1018 -0
  985. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -0
  986. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1077 -0
  987. package/src/filiale/yangchunboneng/pc/NewCheckpaper.vue +1816 -0
  988. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +849 -0
  989. package/src/filiale/yangchunboneng/pc/PaperList.vue +727 -0
  990. package/src/filiale/yangchunboneng/pc.js +26 -0
  991. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -0
  992. package/src/filiale/yongzhou/android/PhoneUpUserinfo.vue +1257 -0
  993. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1294 -0
  994. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2809 -0
  995. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -0
  996. package/src/filiale/yongzhou/android.js +16 -0
  997. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  998. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  999. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  1000. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  1001. package/src/filiale/yongzhou/pc/PlanManage.vue +842 -0
  1002. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  1003. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  1004. package/src/filiale/yongzhou/pc/RoleSelector.vue +161 -0
  1005. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -0
  1006. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -0
  1007. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +207 -0
  1008. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +207 -0
  1009. package/src/filiale/yongzhou/pc/safeDetail.vue +248 -0
  1010. package/src/filiale/yongzhou/pc/safeStatistics.vue +124 -0
  1011. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -0
  1012. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -0
  1013. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +110 -0
  1014. package/src/filiale/yongzhou/pc/safeTable.vue +136 -0
  1015. package/src/filiale/yongzhou/pc.js +28 -0
  1016. package/src/filiale/yuansheng/android/PaperFeedback.vue +1488 -0
  1017. package/src/filiale/yuansheng/android/PaperState.vue +403 -0
  1018. package/src/filiale/yuansheng/android/PhoneUpUserinfo.vue +942 -0
  1019. package/src/filiale/yuansheng/android/SafecheckDevices.vue +1248 -0
  1020. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -0
  1021. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -0
  1022. package/src/filiale/yuansheng/android.js +15 -0
  1023. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -0
  1024. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1363 -0
  1025. package/src/filiale/yuansheng/pc/PaperList.vue +621 -0
  1026. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -0
  1027. package/src/filiale/yuansheng/pc.js +15 -0
  1028. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -0
  1029. package/src/filiale/yunchengminsheng/android/LdapHelper.js +75 -0
  1030. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1508 -0
  1031. package/src/filiale/yunchengminsheng/android/PhoneUpUserinfo.vue +1198 -0
  1032. package/src/filiale/yunchengminsheng/android/RightTree.vue +217 -0
  1033. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1267 -0
  1034. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2849 -0
  1035. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +784 -0
  1036. package/src/filiale/yunchengminsheng/android.js +14 -0
  1037. package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +1538 -0
  1038. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +736 -0
  1039. package/src/filiale/yunchengminsheng/pc.js +14 -0
  1040. package/src/filiale/zhongsheng/android/AreaPlan.vue +526 -0
  1041. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -0
  1042. package/src/filiale/zhongsheng/android/CurrentCreate.vue +994 -0
  1043. package/src/filiale/zhongsheng/android/IgnitionInformation.vue +170 -0
  1044. package/src/filiale/zhongsheng/android/PaperFeedback.vue +96 -96
  1045. package/src/filiale/zhongsheng/android/PhoneSellInfoXin.vue +68 -0
  1046. package/src/filiale/zhongsheng/android/PhoneUpUserinfo.vue +53 -53
  1047. package/src/filiale/zhongsheng/android/SafecheckDevices.vue +1214 -0
  1048. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +253 -239
  1049. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +177 -78
  1050. package/src/filiale/zhongsheng/android.js +8 -2
  1051. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +463 -0
  1052. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +9 -9
  1053. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +7 -7
  1054. package/src/filiale/zhongsheng/pc/InfoModifyModal.vue +2 -2
  1055. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +68 -54
  1056. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -0
  1057. package/src/filiale/zhongsheng/pc/UserInfoAudit.vue +10 -10
  1058. package/src/filiale/zhongsheng/pc.js +4 -1
  1059. package/src/filiale/zhongyi/android/CurrentCreate.vue +988 -0
  1060. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -0
  1061. package/src/filiale/zhongyi/android.js +14 -0
  1062. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -0
  1063. package/src/filiale/zhongyi/pc/checkScreen.vue +781 -0
  1064. package/src/filiale/zhongyi/pc.js +14 -0
  1065. package/src/filiale/zhoukou/android/AndroidDefectDeal.vue +11 -11
  1066. package/src/filiale/zhoukou/android/AreaPlan.vue +6 -6
  1067. package/src/filiale/zhoukou/android/CurrentCreate.vue +26 -26
  1068. package/src/filiale/zhoukou/android/PaperFeedback.vue +66 -66
  1069. package/src/filiale/zhoukou/android/PhoneUpUserinfo.vue +51 -51
  1070. package/src/filiale/zhoukou/android/SafecheckDevices.vue +95 -95
  1071. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +210 -210
  1072. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +27 -27
  1073. package/src/filiale/zhoukou/android/UploadPage.vue +15 -15
  1074. package/src/filiale/zhoukou/android.js +1 -1
  1075. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +14 -14
  1076. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +11 -77
  1077. package/src/main.js +4 -4
  1078. package/src/plugins/EmojiData.js +4 -4
  1079. package/src/plugins/GerJsonObjectConfig.js +1 -1
  1080. package/src/plugins/GetCheckParams.js +45 -0
  1081. package/src/plugins/LoadCheckParams.js +59 -0
  1082. package/src/plugins/LocalPagedList.js +3 -3
  1083. package/src/plugins/LocalPathList.js +2 -2
  1084. package/src/rongcheng-android.js +14 -2
  1085. package/src/rongcheng.js +12 -2
  1086. package/src/safecheck-android.js +67 -2
  1087. package/src/safecheck.js +189 -20
  1088. package/src/shaoguan.js +2 -2
  1089. package/src/tongchengsafe-android.js +2 -2
  1090. package/src/tongchengsafecheck.js +2 -2
  1091. package/src/utils/GerJsonObjectConfig.js +1 -1
  1092. package/src/utils/LdapHelper.js +1 -1
  1093. package/src/utils/htmlToPdf.js +40 -0
  1094. package/static/images/DownLoadQRCode.png +0 -0
  1095. package/static/images/meterBook/down.png +0 -0
  1096. package/static/images/meterBook/drag.png +0 -0
  1097. package/static/images/meterBook/up.png +0 -0
  1098. package/static/images//346/204/237/345/217/271/345/217/267.png +0 -0
  1099. package/static/images//347/272/242/345/217/211/345/217/211.png +0 -0
  1100. package/static/layui/css/layui.css +1 -0
  1101. package/static/layui/css/modules/code.css +1 -0
  1102. package/static/layui/css/modules/laydate/default/laydate.css +1 -0
  1103. package/static/layui/css/modules/layer/default/icon-ext.png +0 -0
  1104. package/static/layui/css/modules/layer/default/icon.png +0 -0
  1105. package/static/layui/css/modules/layer/default/layer.css +1 -0
  1106. package/static/layui/css/modules/layer/default/loading-0.gif +0 -0
  1107. package/static/layui/css/modules/layer/default/loading-1.gif +0 -0
  1108. package/static/layui/css/modules/layer/default/loading-2.gif +0 -0
  1109. package/static/layui/font/iconfont.eot +0 -0
  1110. package/static/layui/font/iconfont.svg +554 -0
  1111. package/static/layui/font/iconfont.ttf +0 -0
  1112. package/static/layui/font/iconfont.woff +0 -0
  1113. package/static/layui/font/iconfont.woff2 +0 -0
  1114. package/static/layui/layui.js +1 -0
  1115. package/src/components/cockpit/Splash.vue +0 -85
  1116. package/src/components/cockpit/SplashDetail.vue +0 -66
  1117. package/src/components/pc/CheckBookManage.vue +0 -903
@@ -52,6 +52,11 @@
52
52
  上传
53
53
  </button>
54
54
  </div>
55
+ <div v-if="show_torepair">
56
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="showmod">
57
+ 转维修
58
+ </button>
59
+ </div>
55
60
  </div>
56
61
  </div>
57
62
  </div>
@@ -60,492 +65,686 @@
60
65
  </div>
61
66
  </ul>
62
67
  </div>
63
-
68
+ <modal :show.sync="showModal2" :backdrop="false" style="font-size: 15px">
69
+ <div slot="modal-header" class="modal-header upuserinfo_sel">
70
+ <h4 class="modal-title">
71
+ 转维修
72
+ </h4>
73
+ </div>
74
+ <div slot="modal-body" class="modal-body">
75
+ <div class="row">
76
+ <ol style="border: 1px solid green;padding: 15px 0 15px 20px">
77
+ <li v-for="row in repairDefect.data" >{{row}}</li>
78
+ </ol>
79
+ </div>
80
+ <div class="row" style="margin-top: 10px">
81
+ <label class="font_normal_body">派发类型</label>
82
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
83
+ :options='dispatchTypeOptions' placeholder='派发类型'
84
+ close-on-select>
85
+ </v-select>
86
+ </div>
87
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
88
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
89
+ <v-select
90
+ :value.sync="selectData.f_repairman"
91
+ :value-single="true"
92
+ :options='repairers'
93
+ placeholder='请选择维修员'
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
97
+ <label class="font_normal_body">站&ensp;&ensp;&ensp;&ensp;点</label>
98
+ <right-tree
99
+ islist
100
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
101
+ @re-res="getSiteRes"></right-tree>
102
+ </div>
103
+ <!--<div class="row" style="margin-top: 10px">
104
+ <label class="font_normal_body">报修类型</label>
105
+ <v-select :value.sync="selectData.f_repairtype"
106
+ class="select select_list"
107
+ :value-single="true"
108
+ :options='repairTypeOptions'
109
+ close-on-select>
110
+ </v-select>
111
+ </div>-->
112
+ <div class="row" style="margin-top: 10px">
113
+ <label class="font_normal_body" >备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
114
+ <div class="btn-group" style="width:60%">
115
+ <textarea style="width:100%;height: 100px" v-model="selectData.f_remarks"></textarea>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
120
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="rectification">转维修</button>
121
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel1">取消</button>
122
+ </div>
123
+ </modal>
64
124
  </div>
65
125
  </template>
66
126
 
67
127
  <script>
68
- // 户内维修
69
- import Vue from 'vue'
70
- import * as Util from '../Util'
71
- // import DoorService from './DoorService'
72
- // import Pipeline from './Pipeline'
73
- // import DeviceService from './DeviceService'
74
- // import TroubleRemoval from './TroubleRemoval'
75
- // import FirstGasCheck from './FirstGasCheck'
76
- // import RepairMatterInfo from './RepairMatterInfo'
77
- // import TelChangeMatter from './TelChangeMatter'
78
- import { HttpResetClass } from 'vue-client'
79
- import co from 'co'
80
- import $ from "jquery";
81
- let loadParamGem = async function (self) {
82
- await self.$LoadParams.loadParam()
83
- }
128
+ // 户内维修
129
+ import Vue from 'vue'
130
+ import * as Util from '../Util'
131
+ // import DoorService from './DoorService'
132
+ // import Pipeline from './Pipeline'
133
+ // import DeviceService from './DeviceService'
134
+ // import TroubleRemoval from './TroubleRemoval'
135
+ // import FirstGasCheck from './FirstGasCheck'
136
+ // import RepairMatterInfo from './RepairMatterInfo'
137
+ // import TelChangeMatter from './TelChangeMatter'
138
+ import { HttpResetClass } from 'vue-client'
139
+ import co from 'co'
140
+ import $ from "jquery";
141
+ let loadParamGem = async function (self) {
142
+ await self.$LoadParams.loadParam()
143
+ }
84
144
 
85
- export default {
86
- title: '安检单',
87
- props: ['f_plan_id', 'item', 'role','parentPage','source'],
88
- // props: ['f_plan_id', 'role'],
89
- data() {
90
- return {
91
- //测试数据
92
- // f_plan_id:'',
93
- // role:'inspect',
94
- // item:{"f_approved_time":null,"f_user_family_remarks":null,"f_street":"测试街道","f_repair_approved_time":null,
95
- // "f_user_type":null,"f_approved_by":null,"f_card_id":null,"f_remark":null,"f_building":"1","f_batch_number":null,
96
- // "f_idnumber":null,"f_state":"未检","id":"0EFE0EE2-B155-46F9-8DE0-38C022664A4D","f_complete":null,"f_check_state":null,"f_last_check_state":"拒检",
97
- // "f_user_inhome_time":null,"f_residential_area":"测试小区1","version":1,"f_processid":null,"f_last_check_result":"{\"result\":\"正常\",\"data\":[]}",
98
- // "f_area":null,"f_usegas":null,"f_user_phone":"16566546548","f_slice_area":"营业大区","f_approved":"未审核","f_upload_state":"未传","f_user_check_time":null,
99
- // "f_unit":"1","f_user_spare_phone":null,"f_last_check_date":null,"f_userproperties":null,"f_userfile_id":null,"f_prearranged_date":null,"f_filialeid":"453",
100
- // "f_branch":null,"f_orgstr":null,"f_plan_year":2020,"f_orgid":null,"f_approval_notified":null,"f_plan_month":4,"f_approved_note":null,"f_filialeids":null,
101
- // "f_floor":"1","f_flag":null,"f_repair_approved_note":null,"f_userinfo_code":"00000002","f_create_time":"2020-05-10 18:56:03","f_meter_no":"","f_station":null,
102
- // "f_repair_approved":"未审核","f_no_checkplan":"有计划安检","f_plan_name":"关于","f_repair_approved_by":null,"f_room":"1","f_office":null,"f_comments":null,
103
- // "f_address":"兰山街道泰盛小区1栋1单元1层1室","id_back":null,"f_userinfoid":"2","f_subcompany":null,"f_addressid":null,"f_user_phone2":null,
104
- // "f_user_equipment_remarks":null,"f_plan_id":"0819ea6707ad4d9dad217c06a87f4227","f_user_name":"用户二",
105
- // "f_plan_meters":[{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
106
- // },
145
+ export default {
146
+ title: '安检单',
147
+ props: ['f_plan_id', 'item', 'role','parentPage','source'],
148
+ // props: ['f_plan_id', 'role'],
149
+ data() {
150
+ return {
151
+ //测试数据
152
+ // f_plan_id:'',
153
+ // role:'inspect',
154
+ // item:{"f_approved_time":null,"f_user_family_remarks":null,"f_street":"测试街道","f_repair_approved_time":null,
155
+ // "f_user_type":null,"f_approved_by":null,"f_card_id":null,"f_remark":null,"f_building":"1","f_batch_number":null,
156
+ // "f_idnumber":null,"f_state":"未检","id":"0EFE0EE2-B155-46F9-8DE0-38C022664A4D","f_complete":null,"f_check_state":null,"f_last_check_state":"拒检",
157
+ // "f_user_inhome_time":null,"f_residential_area":"测试小区1","version":1,"f_processid":null,"f_last_check_result":"{\"result\":\"正常\",\"data\":[]}",
158
+ // "f_area":null,"f_usegas":null,"f_user_phone":"16566546548","f_slice_area":"营业大区","f_approved":"未审核","f_upload_state":"未传","f_user_check_time":null,
159
+ // "f_unit":"1","f_user_spare_phone":null,"f_last_check_date":null,"f_userproperties":null,"f_userfile_id":null,"f_prearranged_date":null,"f_filialeid":"453",
160
+ // "f_branch":null,"f_orgstr":null,"f_plan_year":2020,"f_orgid":null,"f_approval_notified":null,"f_plan_month":4,"f_approved_note":null,"f_filialeids":null,
161
+ // "f_floor":"1","f_flag":null,"f_repair_approved_note":null,"f_userinfo_code":"00000002","f_create_time":"2020-05-10 18:56:03","f_meter_no":"","f_station":null,
162
+ // "f_repair_approved":"未审核","f_no_checkplan":"有计划安检","f_plan_name":"关于","f_repair_approved_by":null,"f_room":"1","f_office":null,"f_comments":null,
163
+ // "f_address":"兰山街道泰盛小区1栋1单元1层1室","id_back":null,"f_userinfoid":"2","f_subcompany":null,"f_addressid":null,"f_user_phone2":null,
164
+ // "f_user_equipment_remarks":null,"f_plan_id":"0819ea6707ad4d9dad217c06a87f4227","f_user_name":"用户二",
165
+ // "f_plan_meters":[{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
166
+ // },
107
167
 
108
- data: {
109
- f_devices: [],
110
- f_defect_content:'',
111
- f_recording1_path:''
112
- },
113
- updateuserphone:false, //安检时是否更新用户电话
114
- beforephone:'',
115
- isUpload:false,
116
- onlySave:true, //判断保存还是保存并上传
117
- livedispose:'',
118
- startClick:false, //开始安检按钮是否可点击
119
- isStrat: false, //是否开始安检
120
- checkResult:{},//查询结果
121
- newcheckResult:{},
122
- timer: null,
123
- showModal: false,
124
- pic_to_be_viewed: '',
125
- showBack:true,
126
- devices: [],
127
- f_devices : [],
128
- isToRepair:false,
129
- clickBack:true, //是否点击返回按钮
130
- isSafeCheckToRepair:false,//是否转维修
131
- Url:this.$androidUtil.getProxyUrl(),
132
- detail:{},
133
- defectDevice:{},
134
- user:{},
135
- model: { //转维修数据
136
- // 一次派单
137
- serviceacitivity: [{
138
- f_service_acitivity_type: '派单'
139
- }],
140
- f_source:'安检',
141
- f_service_id: '',
142
- f_contact_phone: '',
143
- f_meetunit: '',
144
- f_phone: '',
145
- f_user_name: '',
146
- f_address: '',
147
- f_repair_date: Util.toStandardTimeString(),
148
- f_card_id: '',
149
- // f_department: '', 站点选择
150
- f_reciever:'',
151
- f_remarks: '',
152
- f_user_type: '',
153
- f_area: '',
154
- f_unit_name:'',
155
- f_street: '',
156
- f_residential_area: '',
157
- f_building: '',
158
- f_unit: '',
159
- f_floor: '',
160
- f_room: '',
161
- aState: null,
162
- f_repairtype: '',
163
- f_repairitems:{},
164
- },
165
- repairitems:[],
166
- meading:'转站点',
167
- config: {
168
- "燃气表":{
169
- "checkmust":true,
170
- "index":1,
171
- "items":{
172
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
173
- "基表编号":{"index":1,"type":"string","readonly":true},
174
- "气表型号":{"index":2,"type":"string","readonly":true},
175
- "气表品牌":{"index":3,"type":"string","readonly":true},
176
- "进气方向":{"index":4,"type":"string","readonly":true},
177
- "初始表底":{"index":5,"type":"number",isshow:false,"readonly":true},
178
- "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
179
- "累购气量":{"index":7,"type":"number","readonly":true,isshow:false},
180
- "累购金额":{"index":7,"type":"number","readonly":true,isshow:false},
181
- "已用气量":{"index":8,"type":"number","checkmust": false,isshow:false},//基表数
182
- "已用金额":{"index":8,"type":"number","checkmust": false,isshow:false},
183
- "剩余气量":{"index":9,"type":"number","checkmust": false,isshow:false},//累购-已用
184
- //显示屏数 --实际剩余气量
185
- "剩余金额":{"index":9,"type":"number","checkmust": false,isshow:false},
186
- "气量异常差值":{"index":10,"type":"number","readonly": true,isshow:false},
187
- "金额异常差值":{"index":10,"type":"number","readonly": true,isshow:false},
188
- "表封号":{"index":11,"type":"string","readonly": true}
189
- }
190
- // 注意,配置项的index必须与上面的固定配置保持'顺序'
168
+ data: {
169
+ f_devices: [],
170
+ f_defect_content:'',
171
+ f_recording1_path:'',
172
+ f_visit_number:'',
173
+ f_remark:''
191
174
  },
192
- // "燃气表2":{
193
- // "checkmust":true,
194
- // "index":2,src
195
- // "items":{
196
- // "燃气表照片":{"index":1,"type":"picture"},
197
- // "表品牌":{"index":2,"type":"string","readonly":true},
198
- // "表号":{"index":3,"type":"string","readonly":true},
199
- // "表封号":{"index":4,"type":"number","readonly":true},
200
- // "表型号":{"index":5,"type":"string","readonly":true},
201
- // "位置":{"index":6,"type":"string","readonly":true},
202
- // "表底数":{"index":7,"type":"number","readonly":true},
203
- // "累购气量":{"index":8,"type":"number","readonly":true},
204
- // "累购金额":{"index":8,"type":"number","readonly":true}
205
- // }
206
- // }
207
- },
208
- // 维修项
209
- isneedDate:'',
210
- routeShow:true,
211
- number:0,
212
- shupingshow:false,
213
- pipeline: {},
214
- details: [],
215
- ids: '',
216
- savevalid: {
217
- uservalid: false,
218
- doorvalid: true,
219
- changetable: false
220
- },
221
- doordetails: {},
222
- devicedetails: {},
223
- cookdetails: {},
224
- componentName: 'safecheck-userinfo',
225
- header:'客户信息',
226
- tabs: [
227
- // 参数全部设置成空,在ready时,等model处理好了,再添加
228
- {
229
- header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
175
+ imgsnum:this.$appdata.getSingleValue('安检总体照片数量') ? this.$appdata.getSingleValue('安检总体照片数量'):1, // 安检整体照片默认必须拍1张
176
+ updateuserphone:false, //安检时是否更新用户电话
177
+ updatemetermodel:false, //安检时是否更新表型号
178
+ updatemeternumber:false, //安检时是否更新表号
179
+ beforephone:'',
180
+ isUpload:false,
181
+ show_torepair: false,
182
+ onlySave:true, //判断保存还是保存并上传
183
+ livedispose:'',
184
+ refuseinspection:'', // 拒捡拍照是否提示
185
+ notencountered:'', // 到访不遇拍照是否提示
186
+ startClick:false, //开始安检按钮是否可点击
187
+ isStrat: false, //是否开始安检
188
+ checkResult:{},//查询结果
189
+ newcheckResult:{},
190
+ repairDefect : {
191
+ result: '正常',
192
+ data: []
193
+ },
194
+ rowCodata:{},
195
+ repairers: [],
196
+ timer: null,
197
+ showModal: false,
198
+ showModal2:false,
199
+ pic_to_be_viewed: '',
200
+ showBack:true,
201
+ devices: [],
202
+ f_devices : [],
203
+ isToRepair:false,
204
+ clickBack:true, //是否点击返回按钮
205
+ isSafeCheckToRepair:false,//是否转维修
206
+ Url:this.$androidUtil.getProxyUrl(),
207
+ detail:{},
208
+ defectDevice:{},
209
+ user:{},
210
+ is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
211
+ dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'},{label: '派发给站点', value: '派发给站点'}],
212
+ selectData:{
213
+ dispatchType:'派发给维修员',
214
+ f_repairman:'',
215
+ f_remarks:'',
216
+ f_repairtype:'整改'
217
+ },
218
+ model: { //转维修数据
219
+ // 一次派单
220
+ serviceacitivity: [{
221
+ f_service_acitivity_type: '派单'
222
+ }],
223
+ f_source:'安检',
224
+ f_service_id: '',
225
+ f_contact_phone: '',
226
+ f_meetunit: '',
227
+ f_phone: '',
228
+ f_user_name: '',
229
+ f_address: '',
230
+ f_repair_date: Util.toStandardTimeString(),
231
+ f_card_id: '',
232
+ // f_department: '', 站点选择
233
+ f_reciever:'',
234
+ f_remarks: '',
235
+ f_user_type: '',
236
+ f_area: '',
237
+ f_unit_name:'',
238
+ f_street: '',
239
+ f_residential_area: '',
240
+ f_building: '',
241
+ f_unit: '',
242
+ f_floor: '',
243
+ f_room: '',
244
+ aState: null,
245
+ f_repairtype: '',
246
+ f_repairitems:{},
247
+ },
248
+ repairitems:[],
249
+ meading:'转站点',
250
+ config: {
251
+ "燃气表":{
252
+ "checkmust":true,
253
+ "index":1,
254
+ "items":{
255
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
256
+ "基表编号":{"index":1,"type":"string","readonly":true},
257
+ "气表型号":{"index":2,"type":"string","readonly":true},
258
+ "气表品牌":{"index":3,"type":"string","readonly":true},
259
+ "进气方向":{"index":4,"type":"string","readonly":true},
260
+ "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
261
+ "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
262
+ "累购气量":{"index":7,"type":"number","readonly":true},
263
+ "累购金额":{"index":7,"type":"number","readonly":true},
264
+ "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
265
+ "已用金额":{"index":8,"type":"number","checkmust": false},
266
+ "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
267
+ //显示屏数 --实际剩余气量
268
+ "剩余金额":{"index":9,"type":"number","checkmust": false},
269
+ "气量异常差值":{"index":10,"type":"number","readonly": true},
270
+ "金额异常差值":{"index":10,"type":"number","readonly": true},
271
+ "系统余额":{"index":10,"type":"number","readonly": true},
272
+ "表箱号":{"index":11,"type":"string","readonly": true},
273
+ "燃气表照片":{"index":12,"type":"picture","checkmust": false}
274
+ }
275
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
276
+ },
277
+ // "燃气表2":{
278
+ // "checkmust":true,
279
+ // "index":2,src
280
+ // "items":{
281
+ // "燃气表照片":{"index":1,"type":"picture"},
282
+ // "表品牌":{"index":2,"type":"string","readonly":true},
283
+ // "表号":{"index":3,"type":"string","readonly":true},
284
+ // "表封号":{"index":4,"type":"number","readonly":true},
285
+ // "表型号":{"index":5,"type":"string","readonly":true},
286
+ // "位置":{"index":6,"type":"string","readonly":true},
287
+ // "表底数":{"index":7,"type":"number","readonly":true},
288
+ // "累购气量":{"index":8,"type":"number","readonly":true},
289
+ // "累购金额":{"index":8,"type":"number","readonly":true}
290
+ // }
291
+ // }
230
292
  },
231
- {
232
- header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
293
+ // 维修项
294
+ isneedDate:'',
295
+ routeShow:true,
296
+ number:0,
297
+ shupingshow:false,
298
+ pipeline: {},
299
+ details: [],
300
+ ids: '',
301
+ savevalid: {
302
+ uservalid: false,
303
+ doorvalid: true,
304
+ changetable: false
305
+ },
306
+ doordetails: {},
307
+ devicedetails: {},
308
+ cookdetails: {},
309
+ componentName: 'safecheck-userinfo',
310
+ header:'客户信息',
311
+ tabs: [
312
+ // 参数全部设置成空,在ready时,等model处理好了,再添加
313
+ {
314
+ header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
315
+ },
316
+ {
317
+ header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
318
+ }
319
+ ],
320
+ faultshow:{
321
+ number : 8
322
+ } // 控制 故障汇总 在 菜单里显示与否,
323
+ }
324
+ },
325
+ computed: {
326
+ actionEnabled: {
327
+ get() {
328
+ return this.role == 'inspect'
233
329
  }
234
- ],
235
- faultshow:{
236
- number : 8
237
- } // 控制 故障汇总 在 菜单里显示与否,
238
- }
239
- },
240
- computed: {
241
- actionEnabled: {
242
- get() {
243
- return this.role == 'inspect'
244
330
  }
245
- }
246
- },
247
- methods: {
248
- closely(isdelete){
249
- try {
250
- var startOrStopAudioClipStr;
251
- if (isdelete===true) {
252
- console.log("停止并删除录音")
253
- startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止并删除录音') //停止并删除录音
331
+ },
332
+ methods: {
333
+ showmod(){
334
+ // this.saveNoclick()
335
+ let errString = this.errorVerify()
336
+ if (errString) {
337
+ console.log(errString)
338
+ console.log('Vue.android',Vue.android)
339
+ console.log('this.isUpload',this.isUpload)
340
+ if (Vue.android){
341
+ this.$showMessage(errString)
342
+ }
343
+ return
344
+ }
345
+ //清空转维修列表重新进行数据组织
346
+ this.repairDefect = {
347
+ result: '正常',
348
+ data: []
349
+ }
350
+ this.data.f_complete = '已完成'
351
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
352
+ this.assemblyCodata()
353
+ if(this.repairDefect.result=='正常'){
354
+ this.$showMessage("未发现有选择需要转维修的隐患,请检查填写的数据。如需转维修请在处理方式中选择 '转维修' !")
355
+ return
356
+ }
357
+ console.log("准备保存!")
358
+ this.disableTimer()
359
+ this.getEmp()
360
+ this.showModal2=true
361
+ },
362
+ cancel1(){
363
+ this.showModal2=false
364
+ this.selectData={
365
+ dispatchType:'派发给维修员',
366
+ f_repairman:'',
367
+ f_remarks:'',
368
+ f_repairtype:'整改'
369
+ }
370
+ },
371
+ getSiteRes(obj) {
372
+ console.log('siteRes ---> ')
373
+ console.log(obj)
374
+ if(obj.resids[0]){
375
+ this.selectData.f_meetunit = obj.res.join('.')
376
+ this.selectData.f_reciever = obj.resids.join('.')
377
+ this.selectData.f_outlets = obj.res[obj.res.length - 1]
254
378
  }else {
255
- console.log("停止录音")
256
- startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止录音') //停止录音
379
+ this.selectData.f_meetunit = ''
380
+ this.selectData.f_reciever = ''
381
+ this.selectData.f_outlets = ''
257
382
  }
258
- if (startOrStopAudioClipStr.code == 200) {
259
- console.log("停止或停止删除录音成功")
260
- return true;
383
+ },
384
+ rectification(){
385
+ if(this.selectData.dispatchType){
386
+ if(this.selectData.dispatchType=='派发给站点'){
387
+ if(!this.selectData.f_reciever){
388
+ this.$showMessage('请选择部门!')
389
+ return
390
+ }
391
+ }else{
392
+ if(!this.selectData.f_repairman){
393
+ this.$showMessage('请选择维修员!')
394
+ return
395
+ }
396
+ }
261
397
  }else {
262
- return false;
398
+ this.$showMessage('请选择派发类型!')
399
+ return
263
400
  }
264
- } catch (e) {
265
- console.error("关闭录音方法异常")
266
- console.error(e)
267
- return false;
268
- }
269
- },
270
- // 录音方法
271
- record() {
272
- console.log("进入开始录音record方法")
273
- if (this.role != 'inspect') {
274
- if (this.data.f_recording1_path != '') {
275
- window.location = "/rs/file"+this.data.f_recording1_path
401
+ /*if(!this.selectData.f_repairtype){
402
+ this.$showMessage('请选择报修类型!')
403
+ return
404
+ }*/
405
+ //关闭录音
406
+ this.closely(false) // 保存本地,不删除录音文件暂停录音
407
+ let act={}
408
+ let toRepair=''
409
+ if(this.selectData.dispatchType=='派发给站点'){
410
+ act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
411
+ toRepair=null
412
+ }else{
413
+ console.log('派发给维修员---------'+this.selectData.f_repairman)
414
+ act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
415
+ toRepair='一级派单'
276
416
  }
277
- } else {
278
- console.log("录音 record的 else")
279
- let fileName
280
- if (!this.data.f_recording1_path) {
281
- fileName = Util.guid() + '.amr'
282
- } else {
283
- fileName = Util.getFileName(this.data.f_recording1_path)
417
+ let repData={
418
+ toRepair:toRepair,
419
+ activity:act,
420
+ deps:Vue.user.deps,
421
+ depids:Vue.user.depids,
422
+ f_remarks:this.selectData.f_remarks,
423
+ f_repairtype:this.selectData.f_repairtype,
424
+ f_attendant: Vue.user.name,
425
+ loginUser:{name:Vue.user.name,ename:Vue.user.id,id:Vue.user.id},
284
426
  }
285
- //HostApp.__this__ = this
286
- /*调用无限制录音模块*/
287
- let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
288
- console.log("开始录音返回:"+ startOrStopState)
289
- if (startOrStopState.code == 200) {
290
- this.data.f_recording1_path = "file:///storage/emulated/0/safecheck/" + fileName
291
- console.log("开始录音成功" + startOrStopState.code)
292
- return true;
293
- }else {
427
+ this.rowCodata.istoRepair='转维修'
428
+ this.rowCodata.repData=repData
429
+ console.log("当前组装好的转维修数据--"+JSON.stringify(repData))
430
+ this.onlySave = false
431
+ this.save()
432
+ },
433
+ // 获取维修员
434
+ getEmp() {
435
+ this.repairers=[]
436
+ let per = {source: 'this.getRights().where(row.getType()==$user$).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${Vue.user.id}`}
437
+ let http = new HttpResetClass()
438
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: per}, {resolveMsg: null, rejectMsg: null}).then((res) => {
439
+ res.data.forEach((user)=>{
440
+ this.repairers.push({label:user.name, value: user.name})
441
+ })
442
+ })
443
+ },
444
+ closely(isdelete){
445
+ try {
446
+ var startOrStopAudioClipStr;
447
+ if (isdelete===true) {
448
+ //tag
449
+ startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止并删除录音') //停止并删除录音
450
+ }else {
451
+ //tag
452
+ startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止录音') //停止录音
453
+ }
454
+ if (startOrStopAudioClipStr.code == 200) {
455
+ //tag
456
+ return true;
457
+ }else {
458
+ return false;
459
+ }
460
+ } catch (e) {
461
+ console.error("关闭录音方法异常")
462
+ console.error(e)
294
463
  return false;
295
464
  }
296
- }
297
- },
298
- saveNoclick() {
299
- // 禁用点击事件
300
- $("#savebut").addClass("noclickbut");
301
- console.log("进入禁用按钮事件")
465
+ },
466
+ // 录音方法
467
+ record() {
468
+ //tag
469
+ if (this.role != 'inspect') {
470
+ if (this.data.f_recording1_path != '') {
471
+ window.location = "/rs/file"+this.data.f_recording1_path
472
+ }
473
+ } else {
474
+ //tag
475
+ let fileName
476
+ if (!this.data.f_recording1_path) {
477
+ fileName = Util.guid() + '.amr'
478
+ } else {
479
+ fileName = Util.getFileName(this.data.f_recording1_path)
480
+ }
481
+ //HostApp.__this__ = this
482
+ /*调用无限制录音模块*/
483
+ let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
484
+ //tag
485
+ if (startOrStopState.code == 200) {
486
+ this.data.f_recording1_path = "file:///storage/emulated/0/safecheck/" + fileName
487
+ //tag
488
+ return true;
489
+ }else {
490
+ return false;
491
+ }
492
+ }
493
+ },
494
+ saveNoclick() {
495
+ // 禁用点击事件
496
+ $("#savebut").addClass("noclickbut");
497
+ //tag
302
498
 
303
- // 5秒后启用点击事件
304
- setTimeout(function(){
305
- $("#savebut").removeClass("noclickbut");
306
- },5000);
307
- },
308
- timeSet(val){
309
- if (!val){
310
- return
311
- }
312
- let time =new Date(val).getTime()
313
- let time2=new Date().getTime()
314
- if (time2>time) {
315
- return true
316
- }
317
- },
318
- imgback(val,isheader){
319
- if(val && this.routeShow && isheader){
320
- return require('../../assets/xiangxia1.png')
321
- }else{
322
- return require('../../assets/xiangyou1.png')
323
- }
324
- },
325
- changediv(val){
326
- console.log(val)
327
- return val
328
- },
329
- // 选择tab
330
- tabSelect (item,number) {
331
- this.header = item.header
332
- console.log('item',item)
333
- console.log('number',number)
334
- console.log('this.routeShow',this.routeShow)
335
- console.log('this.number',this.number)
336
- // 处理关闭/显示 内容
337
- if(this.number == number && !this.routeShow ){
338
- this.routeShow = true
339
- }else if(this.number == number && this.routeShow){
340
- this.routeShow = false
341
- }else if(this.number != item.complete){
342
- this.routeShow = true
343
- }
344
- this.number = number
345
- this.componentName = item.complete
346
- console.log('跳转前this.routeShow',this.routeShow)
347
- if(item.complete == 'safecheck-devices'){
348
- console.log('this.data', this.data)
349
- if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
350
- this.data['device' + item.number].push({})
499
+ // 5秒后启用点击事件
500
+ setTimeout(function(){
501
+ $("#savebut").removeClass("noclickbut");
502
+ },5000);
503
+ },
504
+ timeSet(val){
505
+ if (!val){
506
+ return
351
507
  }
352
- console.log('length', this.data['device' + item.number])
353
- console.log('this.data[\'device\' + item.number] ===> ' + JSON.stringify(this.data['device' + item.number]))
354
- let idx=this.data['device' + item.number].length - 1
355
- let itemprops = {
356
- config:this.config,
357
- device:this.devices[item.number-1],
358
- idx:idx,
359
- role:'inspect'
508
+ let time =new Date(val).getTime()
509
+ let time2=new Date().getTime()
510
+ if (time2>time) {
511
+ return true
360
512
  }
361
- console.log('tabSelect函数中赋值')
362
- console.log(JSON.stringify(itemprops))
363
- console.log('itemprops.device ===> ' + JSON.stringify(itemprops.device))
364
- console.log('item.complete',item.complete)
365
- if(this.routeShow){
366
- this.$goto(item.complete, itemprops, 'repair')
367
- console.log('跳转完成')
513
+ },
514
+ imgback(val,isheader){
515
+ if(val && this.routeShow && isheader){
516
+ return require('../../assets/xiangxia1.png')
517
+ }else{
518
+ return require('../../assets/xiangyou1.png')
368
519
  }
369
- }else{
370
- console.log('页面跳转==》',this.tabs[number])
371
- if(this.routeShow){
372
- this.$goto(item.complete, {userinfo:this.data}, 'repair')
520
+ },
521
+ changediv(val){
522
+ //tag
523
+ return val
524
+ },
525
+ // 选择tab
526
+ tabSelect (item,number) {
527
+ this.header = item.header
528
+ //tag
529
+ //tag
530
+ //tag
531
+ //tag
532
+ // 处理关闭/显示 内容
533
+ if(this.number == number && !this.routeShow ){
534
+ this.routeShow = true
535
+ }else if(this.number == number && this.routeShow){
536
+ this.routeShow = false
537
+ }else if(this.number != item.complete){
538
+ this.routeShow = true
373
539
  }
374
- }
375
- this.shupingshow = true
376
- },
377
- // 给组件添加参数
378
- getImgPath() {
379
- for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
380
- this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
381
- }
382
- this.ids = this.ids.substring(0, this.ids.length - 1)
383
- if(this.ids){
384
- this.getImgGen();
385
- }
386
- },
387
- getImgGen(){
388
- let http = new HttpResetClass()
389
- http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
390
- items: '*',
391
- tablename: 't_files',
392
- condition: `id in (${this.ids})`,
393
- orderitem: 'id'
394
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
395
- for (let i = 0; i < res.data.length; i++) {
396
- for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
397
- console.log(res.data[i].id.toString())
398
- console.log(this.model.serviceacitivity[0].imgs[j].imgid)
399
- if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
400
- this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
401
- }
540
+ this.number = number
541
+ this.componentName = item.complete
542
+ //tag
543
+ if(item.complete == 'safecheck-devices'){
544
+ //tag
545
+ if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
546
+ this.data['device' + item.number].push({})
547
+ }
548
+ //tag
549
+ //tag)
550
+ let idx=this.data['device' + item.number].length - 1
551
+ let itemprops = {
552
+ config:this.config,
553
+ device:this.devices[item.number-1],
554
+ idx:idx,
555
+ role:'inspect'
556
+ }
557
+ //tag
558
+ //tag)
559
+ //tag)
560
+ //tag
561
+ if(this.routeShow){
562
+ this.$goto(item.complete, itemprops, 'repair')
563
+ //tag
564
+ }
565
+ }else{
566
+ //tag
567
+ if(this.routeShow){
568
+ this.$goto(item.complete, {userinfo:this.data}, 'repair')
402
569
  }
403
-
404
570
  }
405
- })
406
- },
407
-
408
- sortDetails(){
409
- for (let i = 0; i < this.details.length; i++) {
410
- if (this.details[i].details.length) {
411
- for (let j = 0; j < this.details[i].details.length; j++) {
412
- if (this.details[i].details[j].f_type === 'a') {
413
- this.doordetails = {details: this.details[i].details}
414
- break
415
- }
416
- if (this.details[i].details[j].f_type === 'b') {
417
- this.devicedetails = {details: this.details[i].details}
418
- break
571
+ this.shupingshow = true
572
+ },
573
+ // 给组件添加参数
574
+ getImgPath() {
575
+ for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
576
+ this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
577
+ }
578
+ this.ids = this.ids.substring(0, this.ids.length - 1)
579
+ if(this.ids){
580
+ this.getImgGen();
581
+ }
582
+ },
583
+ getImgGen(){
584
+ let http = new HttpResetClass()
585
+ http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
586
+ items: '*',
587
+ tablename: 't_files',
588
+ condition: `id in (${this.ids})`,
589
+ orderitem: 'id'
590
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
591
+ for (let i = 0; i < res.data.length; i++) {
592
+ for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
593
+ //tag)
594
+ //tag
595
+ if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
596
+ this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
597
+ }
419
598
  }
420
- if (this.details[i].details[j].f_type === 'c') {
421
- this.cookdetails = {details: this.details[i].details}
422
- break
599
+
600
+ }
601
+ })
602
+ },
603
+
604
+ sortDetails(){
605
+ for (let i = 0; i < this.details.length; i++) {
606
+ if (this.details[i].details.length) {
607
+ for (let j = 0; j < this.details[i].details.length; j++) {
608
+ if (this.details[i].details[j].f_type === 'a') {
609
+ this.doordetails = {details: this.details[i].details}
610
+ break
611
+ }
612
+ if (this.details[i].details[j].f_type === 'b') {
613
+ this.devicedetails = {details: this.details[i].details}
614
+ break
615
+ }
616
+ if (this.details[i].details[j].f_type === 'c') {
617
+ this.cookdetails = {details: this.details[i].details}
618
+ break
619
+ }
423
620
  }
424
621
  }
425
622
  }
426
- }
427
- },
428
- // 复制数据
429
- back () {
430
- let _this = this
431
- if(this.issee){
432
- _this.$back()
433
- return
434
- }
435
- this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
436
- if (res === 'confirm') {
437
- this.closely()
623
+ },
624
+ // 复制数据
625
+ back () {
626
+ let _this = this
627
+ if(this.issee){
438
628
  _this.$back()
629
+ return
439
630
  }
440
- })
441
- },
442
- confirm(){
443
- this.$dispatch('confirm')
444
- },
445
- tick() {
446
- this.timer = null
447
- this.data.f_offsite_time = Util.toStandardTimeString()
448
- this.timer = window.setTimeout(this.tick, 1000)
449
- },
450
- getRepairState() {
451
- let repaired = true
452
- this.data.f_defects.forEach((defect) => {
453
- repaired = repaired & (defect.f_ratification == '已处理')
454
- })
455
- return repaired
456
- },
457
- verifyRepairDefects() {
458
- this.data.f_repair_date = Util.toStandardTimeString()
459
- this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
460
- },
461
- errorVerify() {
462
- let hasError = this.verifyState()
463
- if(hasError)
464
- return hasError
631
+ this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
632
+ if (res === 'confirm') {
633
+ this.closely()
634
+ _this.$back()
635
+ }
636
+ })
637
+ },
638
+ confirm(){
639
+ this.$dispatch('confirm')
640
+ },
641
+ tick() {
642
+ this.timer = null
643
+ this.data.f_offsite_time = Util.toStandardTimeString()
644
+ this.timer = window.setTimeout(this.tick, 1000)
645
+ },
646
+ getRepairState() {
647
+ let repaired = true
648
+ this.data.f_defects.forEach((defect) => {
649
+ repaired = repaired & (defect.f_ratification == '已处理')
650
+ })
651
+ return repaired
652
+ },
653
+ verifyRepairDefects() {
654
+ this.data.f_repair_date = Util.toStandardTimeString()
655
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
656
+ },
657
+ errorVerify() {
658
+ let hasError = this.verifyState()
659
+ if(hasError)
660
+ return hasError
465
661
 
466
- if(this.data.f_entry_status != '入户')
467
- return null
468
- hasError = this.verifyUser()
469
- if(hasError)
470
- return hasError
471
- hasError = this.verifyDevices()
472
- if(hasError)
473
- return hasError
474
- hasError = this.verifyFeedback()
475
- if(hasError)
476
- return hasError
477
- },
478
- verifyState() {
479
- if(Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
480
- return '未使用天然气则必须拍照'
481
- if(Vue.android && this.data.f_entry_status == '到访不遇' && this.data.f_noanswer_path == Vue.nopic)
482
- return '到访不遇必须拍照'
483
- },
484
- verifyUser() {
485
- console.log('走了校验')
486
- console.log(this.data.f_user_phone)
487
- console.log(/^\d{11}$/.test(this.data.f_user_phone))
488
- let prefix = '用户基本信息:'
489
- if(Util.required(this.data.f_user_name))
490
- return prefix + '用户名必须输入'
491
- if(!(/^\d{11}$/.test(this.data.f_user_phone))) {
662
+ if(this.data.f_entry_status != '入户' || this.data.f_usegas == '未用气')
663
+ return null
664
+ hasError = this.verifyUser()
665
+ if(hasError)
666
+ return hasError
667
+ hasError = this.verifyDevices()
668
+ if(hasError)
669
+ return hasError
670
+ hasError = this.verifyFeedback()
671
+ if(hasError)
672
+ return hasError
673
+ },
674
+ verifyState() {
675
+ if(Vue.android && this.data.f_usegas == '未用气' && (this.data.f_nongasuser_path == Vue.nopic || this.data.f_nongasuser_path == ''))
676
+ return '未使用天然气则必须拍照'
677
+ if(Vue.android && this.data.f_entry_status == '到访不遇' && this.notencountered && (this.data.f_noanswer_path == Vue.nopic || this.data.f_noanswer_path == ''))
678
+ return '到访不遇必须拍照'
679
+ if(Vue.android && this.data.f_entry_status == '拒检' && this.refuseinspection && (this.data.f_rejectcheck_path == Vue.nopic || this.data.f_rejectcheck_path == ''))
680
+ return '拒捡必须拍照'
681
+ },
682
+ verifyUser() {
683
+ //tag
684
+ //tag
685
+ //tag)
686
+ let prefix = '用户基本信息:'
687
+ if(Util.required(this.data.f_user_name))
688
+ return prefix + '用户名必须输入'
689
+ if(!(/^\d{11}$/.test(this.data.f_user_phone.trim()))) {
492
690
 
493
- return '请输入正确的电话号码'
494
- }
495
- // if(Util.required(this.data.f_residential_area))
496
- // return prefix + '小区名称必须输入'
497
- if(Util.required(this.data.f_address))
498
- return prefix + '地址必须输入'
499
- },
500
- verifyDevices() {
501
- for (let dev in this.config) {
502
- if (this.config[dev].checkmust == true) {
503
- let error = true
504
- for(let device in this.data) {
505
- if (device.startsWith("device")) {
506
- for (let item in this.data[device]) {
507
- if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
508
- error = false
691
+ return '请输入正确的电话号码'
692
+ }
693
+ // if(Util.required(this.data.f_residential_area))
694
+ // return prefix + '小区名称必须输入'
695
+ // if(Util.required(this.data.f_address))
696
+ // return prefix + '地址必须输入'
697
+ },
698
+ verifyDevices() {
699
+ for (let dev in this.config) {
700
+ if (this.config[dev].checkmust == true) {
701
+ let error = true
702
+ for(let device in this.data) {
703
+ if (device.startsWith("device")) {
704
+ for (let item in this.data[device]) {
705
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
706
+ error = false
707
+ }
509
708
  }
510
709
  }
511
710
  }
512
- }
513
- if (error) {
514
- return "请检查" + dev
711
+ if (error) {
712
+ return "请检查" + dev
713
+ }
515
714
  }
516
715
  }
517
- }
518
716
 
519
- for (let dev in this.config) {
520
- for(let device in this.data) {
521
- if (device.startsWith("device")) {
522
- for (let item in this.data[device]) {
523
- //检查每一条安检结果
524
- if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
525
- for (let i in this.data[device][item].f_items) {
526
- for (let it in this.config[dev].items) {
527
- if (it == this.data[device][item].f_items[i].f_item_name) {
528
- let check=false
529
- if (!this.data[device][item].f_items[i].f_item_value){
530
- check=true
531
- }else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)){
532
- if (this.data[device][item].f_items[i].f_item_value.length==0){
717
+ for (let dev in this.config) {
718
+ for(let device in this.data) {
719
+ if (device.startsWith("device")) {
720
+ for (let item in this.data[device]) {
721
+ //检查每一条安检结果
722
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
723
+ for (let i in this.data[device][item].f_items) {
724
+ for (let it in this.config[dev].items) {
725
+ if (it == this.data[device][item].f_items[i].f_item_name) {
726
+ let check=false
727
+ if (!this.data[device][item].f_items[i].f_item_value){
533
728
  check=true
729
+ }else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)){
730
+ if (this.data[device][item].f_items[i].f_item_value.length==0){
731
+ check=true
732
+ }
534
733
  }
535
- }
536
734
 
537
- if(this.config[dev].items[it].type=='picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path){
538
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
539
- }
540
- if (this.config[dev].items[it].type !='picture' && this.config[dev].items[it].checkmust == true && check) {
541
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
735
+ if(this.config[dev].items[it].type=='picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path){
736
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
737
+ }
738
+ if (this.config[dev].items[it].type !='picture' && this.config[dev].items[it].checkmust == true && check) {
739
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
740
+ }
542
741
  }
543
742
  }
544
- }
545
- //检查安检下拉结果
546
- if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
547
- if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
548
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + this.data[device][item].f_items[i].f_item_value + "选中必须拍照"
743
+ //检查安检下拉结果
744
+ if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
745
+ if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
746
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + this.data[device][item].f_items[i].f_item_value + "选中必须拍照"
747
+ }
549
748
  }
550
749
  }
551
750
  }
@@ -553,779 +752,622 @@ export default {
553
752
  }
554
753
  }
555
754
  }
556
- }
557
- },
558
-
559
-
560
- verifyFeedback() {
561
- let prefix = '拍照签名:'
562
- console.log('this.data.f_overall_imgs==>'+JSON.stringify(this.data.f_overall_imgs))
563
- if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length == 0) && this.data.f_entry_status == '入户')
564
- return prefix + '必须有安检总体照片'
565
- if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
566
- return prefix + '必须有用户签名'
567
- if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
568
- return prefix + '下发安检通知书则必须给通知书拍照'
569
- if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
570
- return prefix + '请填写拉黑原因'
571
- if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
572
- return prefix + '请选择服务评价'
573
- },
574
-
575
- getAllDefect() {
576
- let checkResults = {
577
- result: '正常',
578
- data: []
579
- }
580
- let value = ''
581
- let codata = JSON.parse(JSON.stringify(this.data))
582
- console.log('config =====> ' + JSON.stringify(this.config))
583
- console.log('codata =====> ' + JSON.stringify(codata))
584
- codata.f_devices = []
585
- this.f_devices = []
586
- for (let device in codata) {
587
- let f_device_type
588
- if (device.startsWith("device")) {
589
- console.log('codata[device] =====> ' + JSON.stringify(codata[device]))
590
- let hasOther = ''
591
- let otherValue = null
592
- for (let item in codata[device]) {
593
- if(typeof codata[device][item]=='function'){
594
- continue
595
- }
596
- codata[device][item].f_create_time = Util.toStandardTimeString()
597
- // if (codata[device].length > 1) {
598
- // let j = Number.parseInt(item) + 1
599
- // f_device_type = `${codata[device][item].f_device_type}${j}`
600
- // } else {
601
- // f_device_type = codata[device][item].f_device_type
602
- // }
603
- console.log("aaaaaaaaa"+device)
604
- console.log("bbbbbbbbbb"+item)
605
- console.log("ccccccccccc"+JSON.stringify(codata[device]))
606
- console.log('codata[device][item]=>',JSON.stringify(codata[device][item]))
607
- if(item == 'sum' || item == 'removeEmpty'){
608
- continue
609
- }
610
- for (let i = 0; i < codata[device][item].f_items.length ; i++) {
611
- console.log('i' + i)
612
- if(i == 'sum' || i == 'removeEmpty'){
755
+ },
756
+ verifyFeedback() {
757
+ let prefix = '拍照签名:'
758
+ //tag)
759
+ if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length < this.imgsnum) && this.data.f_entry_status == '入户')
760
+ return prefix + `必须有${this.imgsnum}安检总体照片`
761
+ if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
762
+ return prefix + '必须有用户签名'
763
+ if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
764
+ return prefix + '下发安检通知书则必须给通知书拍照'
765
+ if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
766
+ return prefix + '请填写拉黑原因'
767
+ if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
768
+ return prefix + '请选择服务评价'
769
+ },
770
+ getAllDefect() {
771
+ let checkResults = {
772
+ result: '正常',
773
+ data: []
774
+ }
775
+ let value = ''
776
+ let codata = JSON.parse(JSON.stringify(this.data))
777
+ //tag)
778
+ //tag)
779
+ codata.f_devices = []
780
+ this.f_devices = []
781
+ for (let device in codata) {
782
+ let f_device_type
783
+ if (device.startsWith("device")) {
784
+ //tag)
785
+ let hasOther = ''
786
+ let otherValue = null
787
+ for (let item in codata[device]) {
788
+ if(typeof codata[device][item]=='function'){
613
789
  continue
614
790
  }
615
- console.log('codata[device][item].f_items' + JSON.stringify(codata[device][item].f_items))
616
- var items = codata[device][item].f_items[i]
617
- items.f_create_time = Util.toStandardTimeString()
618
- console.log('之前items' + JSON.stringify(items))
619
- items.f_item_lists = []
620
- console.log('之后items' + JSON.stringify(items))
621
- // console.log('items' + JSON.stringify(items))
622
- // console.log(`type => ${JSON.stringify(codata[device][item].f_device_type)} name => ${JSON.stringify(items.f_item_name)} value => ${JSON.stringify(items.f_item_value)}`)
623
- // console.log(`f_is_defect => ${this.config[codata[device][item]
624
- // .f_device_type]
625
- // .items[items.f_item_name]
626
- // .options
627
- // .find((option)=>option.data === items.f_item_value)
628
- // .map((option)=>option.f_is_defect)}`)
629
- // if (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true')) {
630
- // console.log('进入有隐患')
631
- // checkResults.result = '有隐患'
632
- // console.log('有隐患items.f_item_name==》' + JSON.stringify(items.f_item_name))
633
- // console.log('有隐患items.f_item_value==》' + JSON.stringify(items.f_item_value))
634
- // // this.$set('checkResult.' + items.f_item_name, items.f_item_value)
635
- // this.checkResult[items.f_item_name] = items.f_item_value
636
- // console.log('有隐患checkResult==》' + JSON.stringify(this.checkResult))
637
- // // this.$set('checkResultsss.' + items.f_item_name, `${f_device_type}${items.f_item_value}`)
638
- // // console.log('有隐患checkResultsss==》' + JSON.stringify(this.checkResultsss))
639
- // }
640
- if (items.type == 'selector') {
641
- items.selected = []
642
- } else if (items.type == 'inputSelector') {
643
- items.selected = ''
791
+ codata[device][item].f_create_time = Util.toStandardTimeString()
792
+ if (codata[device].length > 1) {
793
+ let j = Number.parseInt(item) + 1
794
+ f_device_type = `${codata[device][item].f_device_type}${j}`
795
+ } else {
796
+ f_device_type = codata[device][item].f_device_type
644
797
  }
645
- //遍历配置项 将所选隐患项的配置信息放入保存的数据中
646
- let f_is_defect //是否是隐患
647
- let f_defect_level //是否是隐患
648
- let f_item_name = items.f_item_name
649
- let f_item_value
650
- let f_is_eliminate //隐患是否消除
651
- let f_meternumber = ''
652
- let f_user_defects = [] // 用户所有隐患
653
- console.log('f_item_name=====>' + f_item_name)
654
- console.log('items.type=====>' + items.type)
655
- if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
656
- for (let i in items.f_item_value) {
657
- if(typeof items.f_item_value[i]=='function'){
658
- continue
659
- }
660
- let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
661
- console.log('configItems=====>' + JSON.stringify(configItems))
662
- for (let k in configItems.options) {
663
- if(typeof configItems.options[k]=='function'){
798
+ //tag
799
+ //tag
800
+ //tag)
801
+ //tag)
802
+ if(item == 'sum' || item == 'removeEmpty'){
803
+ continue
804
+ }
805
+ for (let i = 0; i < codata[device][item].f_items.length ; i++) {
806
+ //tag
807
+ if(i == 'sum' || i == 'removeEmpty'){
808
+ continue
809
+ }
810
+ //tag)
811
+ var items = codata[device][item].f_items[i]
812
+ items.f_create_time = Util.toStandardTimeString()
813
+ //tag)
814
+ items.f_item_lists = []
815
+ //tag)
816
+ // //tag)
817
+ // //tag} name => ${JSON.stringify(items.f_item_name)} value => ${JSON.stringify(items.f_item_value)}`)
818
+ // console.log(`f_is_defect => ${this.config[codata[device][item]
819
+ // .f_device_type]
820
+ // .items[items.f_item_name]
821
+ // .options
822
+ // .find((option)=>option.data === items.f_item_value)
823
+ // .map((option)=>option.f_is_defect)}`)
824
+ // if (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true')) {
825
+ // //tag
826
+ // checkResults.result = '有隐患'
827
+ // //tag)
828
+ // //tag)
829
+ // // this.$set('checkResult.' + items.f_item_name, items.f_item_value)
830
+ // this.checkResult[items.f_item_name] = items.f_item_value
831
+ // //tag)
832
+ // // this.$set('checkResultsss.' + items.f_item_name, `${f_device_type}${items.f_item_value}`)
833
+ // // //tag)
834
+ // }
835
+ if (items.type == 'selector') {
836
+ items.selected = []
837
+ } else if (items.type == 'inputSelector') {
838
+ items.selected = ''
839
+ }
840
+ //遍历配置项 将所选隐患项的配置信息放入保存的数据中
841
+ let f_is_defect //是否是隐患
842
+ let f_defect_level //是否是隐患
843
+ let f_item_name = items.f_item_name
844
+ let f_item_value
845
+ let f_is_eliminate //隐患是否消除
846
+ let f_meternumber = ''
847
+ let f_user_defects = [] // 用户所有隐患
848
+ //tag
849
+ //tag
850
+ if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
851
+ for (let i in items.f_item_value) {
852
+ if(typeof items.f_item_value[i]=='function'){
664
853
  continue
665
854
  }
666
- console.log('configItems.options[k]==>' + JSON.stringify(configItems.options[k]))
667
- if (items.f_item_value[i] === configItems.options[k].data) {
855
+ let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
856
+ //tag)
857
+ for (let k in configItems.options) {
858
+ if(typeof configItems.options[k]=='function'){
859
+ continue
860
+ }
861
+ //tag)
862
+ if (items.f_item_value[i] === configItems.options[k].data) {
668
863
 
669
- f_is_defect = configItems.options[k].isdefect
670
- f_item_value = items.f_item_value[i]
671
- f_defect_level = configItems.options[k].level
864
+ f_is_defect = configItems.options[k].isdefect
865
+ f_item_value = items.f_item_value[i]
866
+ f_defect_level = configItems.options[k].level
672
867
 
673
- console.log('f_is_defect=====>' + f_is_defect)
674
- console.log('f_item_value=====>' + f_item_value)
675
- console.log('f_defect_level=====>' + f_defect_level)
868
+ //tag
869
+ //tag
870
+ //tag
676
871
 
677
- if (f_is_defect) {
678
- if (checkResults.result !== '有隐患') {
679
- checkResults.result = '有隐患'
680
- }
681
- if (!this.checkResult.hasOwnProperty(f_item_name)) {
682
- console.log(`The ${f_item_name} initialized`)
683
- this.checkResult[f_item_name] = []
684
- }
872
+ if (f_is_defect) {
873
+ if (checkResults.result !== '有隐患') {
874
+ checkResults.result = '有隐患'
875
+ }
876
+ console.log('items'+items)
877
+ if(items.f_deal_dispose=='报修'){
878
+ console.log("检测到需要转维修++++++++++++")
879
+ this.repairDefect.result='未处理'
880
+ this.repairDefect.data.push(`${f_item_name} : ${f_item_value}`)
881
+ }
882
+ if (!this.checkResult.hasOwnProperty(f_device_type+'-'+f_item_name)) {
883
+ //tag
884
+ this.checkResult[f_device_type+'-'+f_item_name] = []
885
+ }
685
886
 
686
- console.log(`The ${f_item_name} was pushed ${f_item_value}`)
687
- this.checkResult[f_item_name].push(f_item_value)
887
+ //tag
888
+ this.checkResult[f_device_type+'-'+f_item_name].push(f_item_value)
688
889
 
689
- }
890
+ }
690
891
 
691
- let items_list = {
692
- f_is_defect: f_is_defect,
693
- f_item_value: f_item_value,
694
- f_defect_level: f_defect_level,
695
- f_is_eliminate: null,
696
- f_create_time: Util.toStandardTimeString()
697
- }
698
- if (!items.f_item_lists) {
699
- console.log('f_item_lists未定义')
700
- items.f_item_lists = []
701
- console.log('items_list=========>' + JSON.stringify(items_list))
702
- if (JSON.stringify(items_list) !== '{}') {
703
- console.log('放了')
704
- items.f_item_lists.push(items_list)
892
+ let items_list = {
893
+ f_is_defect: f_is_defect,
894
+ f_item_value: f_item_value,
895
+ f_defect_level: f_defect_level,
896
+ f_is_eliminate: null,
897
+ f_create_time: Util.toStandardTimeString()
705
898
  }
706
- } else {
707
- console.log('items_list=========>' + JSON.stringify(items_list))
708
- if (JSON.stringify(items_list) !== '{}') {
709
- console.log('也放了')
710
- items.f_item_lists.push(items_list)
899
+ if (!items.f_item_lists) {
900
+ //tag
901
+ items.f_item_lists = []
902
+ //tag)
903
+ if (JSON.stringify(items_list) !== '{}') {
904
+ //tag
905
+ items.f_item_lists.push(items_list)
906
+ }
907
+ } else {
908
+ //tag)
909
+ if (JSON.stringify(items_list) !== '{}') {
910
+ //tag
911
+ items.f_item_lists.push(items_list)
912
+ }
711
913
  }
712
914
  }
713
915
  }
714
916
  }
715
- }
716
- } else {
717
- let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
718
- console.log('configItems===>' + JSON.stringify(configItems))
719
- f_is_defect = configItems.isdefect
720
- f_defect_level = configItems.level
721
- f_item_value = items.f_item_value
722
- console.log('else f_is_defect=====>' + f_is_defect)
723
- console.log('else f_defect_level=====>' + f_defect_level)
724
- console.log('items.f_item_value==>' + items.f_item_value)
725
- let items_list = {
726
- f_is_defect: f_is_defect,
727
- f_item_value: f_item_value,
728
- f_defect_level: f_defect_level,
729
- f_create_time: Util.toStandardTimeString()
730
- }
731
- if (f_is_defect && f_item_value) {
732
- items.f_is_defect = true
733
- if (checkResults.result !== '有隐患') {
734
- checkResults.result = '有隐患'
735
- }
736
- if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
737
- console.log(`The ${items.f_item_name} initialized`)
738
- this.checkResult[items.f_item_name] = []
917
+ } else {
918
+ let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
919
+ f_is_defect = items.f_is_defect
920
+ f_defect_level = items.level
921
+ f_item_value = items.f_item_value
922
+ let items_list = {
923
+ f_is_defect: f_is_defect,
924
+ f_item_value: f_item_value,
925
+ f_defect_level: f_defect_level,
926
+ f_create_time: Util.toStandardTimeString()
739
927
  }
928
+ if (f_is_defect && f_item_value) {
929
+ items.f_is_defect = true
930
+ if (checkResults.result !== '有隐患') {
931
+ checkResults.result = '有隐患'
932
+ }
933
+ if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
934
+ //tag
935
+ this.checkResult[items.f_item_name] = []
936
+ }
740
937
 
741
- console.log(`The ${items.f_item_name} was pushed ${f_item_value}`)
742
- this.checkResult[items.f_item_name].push(f_item_value)
938
+ //tag
939
+ this.checkResult[items.f_item_name].push(f_item_value)
743
940
 
744
- }
745
- console.log('items_list=========>' + JSON.stringify(items_list))
746
- console.log('items.f_item_lists' + JSON.stringify(items.f_item_lists))
747
- if (!items.f_item_lists) {
748
- console.log('f_item_lists未定义')
749
- items.f_item_lists = []
750
- if (JSON.stringify(items_list) != '{}') {
751
- console.log('else放了')
752
- items.f_item_lists.push(items_list)
753
941
  }
754
- } else {
755
- // items.f_item_lists[0].f_item_value = f_item_value
756
- if (JSON.stringify(items_list) != '{}') {
757
- console.log('else也放了')
758
- console.log('放之后items_list=========>' + JSON.stringify(items_list))
759
- console.log('放之后items.f_item_lists' + JSON.stringify(items.f_item_lists))
760
- console.log('type=>items.f_item_lists' + typeof items.f_item_lists)
761
- items.f_item_lists.push(items_list)
942
+ //tag)
943
+ //tag)
944
+ if (!items.f_item_lists) {
945
+ //tag
946
+ items.f_item_lists = []
947
+ if (JSON.stringify(items_list) != '{}') {
948
+ //tag
949
+ items.f_item_lists.push(items_list)
950
+ }
951
+ } else {
952
+ // items.f_item_lists[0].f_item_value = f_item_value
953
+ if (JSON.stringify(items_list) != '{}') {
954
+ //tag
955
+ //tag)
956
+ //tag)
957
+ //tag
958
+ items.f_item_lists.push(items_list)
959
+ }
762
960
  }
763
961
  }
962
+ if (hasOther !== '' && otherValue !== null) {
963
+ //tag
964
+ this.checkResult[hasOther].push(otherValue)
965
+ hasOther = ''
966
+ otherValue = null
967
+ }
968
+ items.f_item_value = ''
764
969
  }
765
- if (hasOther !== '' && otherValue !== null) {
766
- console.log(`The other value was pushed.`)
767
- this.checkResult[hasOther].push(otherValue)
768
- hasOther = ''
769
- otherValue = null
770
- }
771
- items.f_item_value = ''
970
+ //tag)
971
+ this.f_devices.push(codata[device][item])
772
972
  }
773
- console.log('安检结果checkResult' + JSON.stringify(this.checkResult))
774
- this.f_devices.push(codata[device][item])
775
973
  }
776
974
  }
777
- }
778
- if (this.checkResult) {
779
- for (let key in this.checkResult) {
780
- if(typeof this.checkResult[key]=='function'){
781
- continue
975
+ if (this.checkResult) {
976
+ for (let key in this.checkResult) {
977
+ if(typeof this.checkResult[key]=='function'){
978
+ continue
979
+ }
980
+ // 上次安检结果数据组织
981
+ //tag
982
+ //tag
983
+ let temp = {}
984
+ temp[key] = this.checkResult[key].join(',')
985
+ checkResults.data.push(temp)
986
+ // this.newcheckResult[key] = this.checkResult[key]
987
+ // checkResults.data.push(this.newcheckResult)
988
+ //tag)
989
+ // this.newcheckResult = {}
782
990
  }
783
- // 上次安检结果数据组织
784
- console.log('key=>' + key)
785
- console.log('value=>' + this.checkResult[key])
786
- let temp = {}
787
- temp[key] = this.checkResult[key].join(',')
788
- checkResults.data.push(temp)
789
- // this.newcheckResult[key] = this.checkResult[key]
790
- // checkResults.data.push(this.newcheckResult)
791
- console.log('checkResults.data==>' + JSON.stringify(checkResults))
792
- // this.newcheckResult = {}
991
+ this.checkResult = {}
793
992
  }
794
- this.checkResult = {}
795
- }
796
- console.log(`typeof-checkResults-->${typeof checkResults}`)
797
- console.log('checkResults ==> ' + JSON.stringify(checkResults))
798
- codata.f_defect_content = JSON.stringify(checkResults)
799
- this.data.f_defect_content = JSON.stringify(checkResults)
800
- console.log('f_defect_content' + codata.f_defect_content)
801
- return codata
802
- },
803
- uploadCheckPaper(){
804
- this.saveNoclick()
805
- console.log('禁用事件完成')
806
- console.log('进入上传')
807
- this.closely(false) // 保存本地,不删除录音文件停止录音
808
- let errString = this.errorVerify()
809
- if (errString) {
810
- console.log(errString)
811
- console.log('Vue.android',Vue.android)
812
- console.log('this.isUpload',this.isUpload)
813
- if (Vue.android){
814
- // if(this.isUpload){
815
- // this.isUpload = false
816
- // }
817
- this.$showMessage(errString)
993
+ if (checkResults.data.length > 0) {
994
+ let msg = ''
995
+ for (let a = 0; a < checkResults.data.length; a++) {
996
+ for (let datumKey in checkResults.data[a]) {
997
+ msg += datumKey + ':' + checkResults.data[a][datumKey] + ';'
998
+ }
999
+ }
1000
+ this.data.f_defect_text = msg
1001
+ codata.f_defect_text = msg
818
1002
  }
819
- return
820
- } else {
821
- this.$set('data.f_offsite_time', Util.toStandardTimeString())
822
- this.$set('data.f_upload_time', Util.toStandardTimeString())
823
- this.$set('data.f_upload_date', Util.toStandardTimeString())
824
- console.log('赋值后',this.data)
825
- this.data.f_complete = '已完成'
826
- this.disableTimer()
827
- }
828
- console.log('uploadCheckPaper-->isUpload'+this.isUpload)
829
- this.onlySave = false
830
- let res = this.save()
831
- // if(res) {
832
- // try {
833
- // let codata = this.getAllDefect()
834
- // //获取微信推送内容
835
- // let WxResult = this.getWeixin(codata)
836
- // let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
837
- // f_check_item_id: this.data.f_check_item_id
838
- // })
839
- // //如果是转维修上传,则不做校验,上传完成后自动转维修
840
- // console.log('this.isToRepair=======》'+this.isToRepair)
841
- // console.log('this.livedispose=======》'+this.livedispose)
842
- // if(!this.isToRepair){
843
- // if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
844
- // console.log('是否已转维修')
845
- // console.log(this.isSafeCheckToRepair)
846
- // if(!this.isSafeCheckToRepair){
847
- // this.$showMessage('有未处理的隐患,请前往拍照上传中将安检转为维修单!')
848
- // return
849
- // }
850
- // }
851
- // }
852
- // console.log(`codata类型-->${typeof codata}`)
853
- // for (let key in codata){
854
- // if(key.startsWith("device")){
855
- // codata[key] = []
856
- // }
857
- // }
858
- // console.log(`codata内容-->${JSON.stringify(codata)}`)
859
- //
860
- // console.log('遮挡上传')
861
- // let isStart = true
862
- // let res
863
- // for (let i in this.f_devices){
864
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
865
- // if(res.code == 200){
866
- // isStart = false
867
- // }else{
868
- // this.$showMessage("保存失败!")
869
- // }
870
- // }
871
- // let result = HostApp.organizeJSON({
872
- // isStart:false,
873
- // isJSON:true,
874
- // jsonstr:{
875
- // f_check_item_id: this.data.f_check_item_id,
876
- // f_checker_id: this.data.f_checker_id,
877
- // row: codata
878
- // }
879
- // })
880
- // if(result.code == 200){
881
- // HostApp.__this__ = this
882
- // this.runSyncLogic('上传安检信息','javascript:HostApp.__this__.uploadCallBack()',1)
883
- // }
884
- //
885
- //
886
- // // let response = this.$androidUtil.bzLogic('上传安检信息', {
887
- // // f_check_item_id: this.data.f_check_item_id,
888
- // // f_checker_id: this.data.f_checker_id,
889
- // // row: codata
890
- // // })
891
- // // if (response.code == 200) {
892
- // // console.log('=============response.data==================')
893
- // // console.log(JSON.stringify(response.data))
894
- // // let f_paper_id
895
- // // if(response.data != '' && response.data != null){
896
- // // f_paper_id = JSON.parse(response.data).id
897
- // // }
898
- // // this.$set('data.f_paper_id', f_paper_id)
899
- // // console.log('=============f_paper_id==================')
900
- // // console.log(JSON.stringify(f_paper_id))
901
- // // console.log(this.data.f_paper_id)
902
- // // console.log("===data"+JSON.stringify(this.data))
903
- // // for (let device in this.data){
904
- // // console.log("上传设备信息device=======>"+device)
905
- // // console.log("上传设备信息device=======>"+JSON.stringify(this.data[device]))
906
- // // if(device.startsWith("device")){
907
- // // for(let devices of this.data[device]) {
908
- // // devices.f_paper_id = f_paper_id
909
- // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
910
- // // row: devices
911
- // // })
912
- // // console.log(`上传设备信息结果res======${JSON.stringify(ret.data)}`)
913
- // // if(ret.code == 200){
914
- // // console.log(`设备信息id======${ret.data.f_device_id}`)
915
- // // devices.f_device_id = JSON.parse(ret.data.f_device_id).id
916
- // // }
917
- // // console.log('上传设备信息device======')
918
- // // console.log(JSON.stringify(devices))
919
- // // if (ret.code != 200) {
920
- // // //TODO 失败后处理
921
- // // // this.isUpload = false
922
- // // this.$showMessage("上传失败!")
923
- // // return false
924
- // // }
925
- // // }
926
- // // }
927
- // // }
928
- // // // for (let device of this.f_devices) {
929
- // // // device.f_paper_id = f_paper_id
930
- // // // console.log('上传设备信息device======')
931
- // // // console.log(JSON.stringify(device))
932
- // // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
933
- // // // row: device
934
- // // // })
935
- // // // console.log(`上传设备信息结果res======${ret}`)
936
- // // // if (ret.code != 200) {
937
- // // // //TODO 失败后处理
938
- // // // HostApp.alert("上传失败!")
939
- // // // return false
940
- // // // }
941
- // // // }
942
- // // let result = this.$androidUtil.bzLogic('FinishUpload',
943
- // // {
944
- // // f_check_item_id: this.data.f_check_item_id,
945
- // // f_userinfo_id: codata.f_userinfoid,
946
- // // f_last_check_result: codata.f_defect_content
947
- // // })
948
- // // if(result.code == 200){
949
- // // // this.$showAlert('上传成功!', 'success', 2000)
950
- // // this.$showMessage('上传成功!')
951
- // // this.isStrat=false
952
- // // if(url != "" ){
953
- // // this.$resetpost(`${url}`,{data:WxResult})
954
- // // }
955
- // // return true
956
- // // }else{
957
- // // // this.isUpload = false
958
- // // this.$showMessage("上传失败!")
959
- // // return false
960
- // // }
961
- // // }else{
962
- // // // this.isUpload = false
963
- // // this.$showMessage("上传失败!")
964
- // // return false
965
- // // }
966
- // }catch (e) {
967
- // console.log('上传失败==='+JSON.stringify(e))
968
- // // this.isUpload = false
969
- // this.$showMessage("上传失败!")
970
- // }
971
- // }
972
- },
973
- save(type) {
974
- //禁用事件
975
- this.saveNoclick()
976
- console.log('禁用事件完成')
977
- console.log('进入保存')
978
- if(type == 'temp'){
979
- this.data.f_complete = '未完成'
980
- // 关闭录音方法
981
- this.closely(true) //临时保存,删除录音文件并暂停录音
982
- this.disableTimer()
983
- }else {
984
- // 关闭录音方法
985
- this.closely(false) // 保存本地,不删除录音文件暂停录音
1003
+ codata.f_defect_content = JSON.stringify(checkResults)
1004
+ this.data.f_defect_content = JSON.stringify(checkResults)
1005
+ //tag
1006
+ return codata
1007
+ },
1008
+ uploadCheckPaper(){
1009
+ this.saveNoclick()
1010
+ this.closely(false) // 保存本地,不删除录音文件停止录音
986
1011
  let errString = this.errorVerify()
987
1012
  if (errString) {
988
- console.log(errString)
989
- console.log('Vue.android',Vue.android)
990
- console.log('this.isUpload',this.isUpload)
991
1013
  if (Vue.android){
992
1014
  this.$showMessage(errString)
993
1015
  }
994
1016
  return
995
1017
  } else {
996
- this.data.f_complete = '已完成'
997
1018
  this.$set('data.f_offsite_time', Util.toStandardTimeString())
1019
+ this.$set('data.f_upload_time', Util.toStandardTimeString())
1020
+ this.$set('data.f_upload_date', Util.toStandardTimeString())
1021
+ //tag
1022
+ this.data.f_complete = '已完成'
998
1023
  this.disableTimer()
999
1024
  }
1000
- }
1001
- console.log("是否被拉黑-"+this.data.f_blacklist)
1002
- if(this.data.f_blacklist!='是'){
1003
- delete this.data.f_blocking_cause
1004
- }
1005
- // try {
1006
- let codata = this.getAllDefect()
1007
- console.log(`codata类型-->${typeof codata}`)
1008
- console.log(`codata内容-->${JSON.stringify(codata)}`)
1009
- for (let key in codata) {
1010
- if (key.startsWith("device")) {
1011
- console.log('this.data.' + key + JSON.stringify(codata[key]))
1012
- codata[key] = []
1025
+ //tag
1026
+ this.onlySave = false
1027
+ this.assemblyCodata()
1028
+ if (this.repairDefect.result != '正常') {
1029
+ return this.$showMessage('有隐患的处理方式为转维修,请点击转维修')
1013
1030
  }
1014
- }
1015
- console.log(`codata内容-->${JSON.stringify(codata)}`)
1016
- console.log(`codata内容-->${JSON.stringify(codata.f_user_defects)}`)
1017
- console.log('安卓环境?=》' + Vue.android)
1018
- if (Vue.android) {
1019
- console.log('Vue.android is true')
1020
- let value = this.$androidUtil.path({
1021
- alias: 'getUserinfomation',
1022
- data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1023
- })
1024
- console.log('getUserinfomation value ==> ' + JSON.stringify(value))
1025
- if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
1026
- // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1027
- // f_check_item_id: this.data.f_check_item_id,
1028
- // f_checker_id: this.data.f_checker_id,
1029
- // f_upload_state:'未传',
1030
- // row: codata
1031
- // })
1032
- console.log('无计划安检保存')
1033
- let isStart = true
1034
- // let res
1035
- // for (let i in this.f_devices) {
1036
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1037
- // if (res.code == 200) {
1038
- // isStart = false
1039
- // } else {
1040
- // this.$showMessage("保存失败!")
1041
- // }
1042
- // }
1043
- // let result = HostApp.organizeJSON({
1044
- // isStart: false,
1045
- // isJSON: true,
1046
- // jsonstr: {
1047
- // f_check_item_id: this.data.f_check_item_id,
1048
- // f_checker_id: this.data.f_checker_id,
1049
- // f_upload_state: '未传',
1050
- // row: codata
1051
- // }
1052
- // })
1053
- codata.f_devices = this.f_devices
1054
- let param = {
1055
- f_check_item_id: this.data.f_check_item_id,
1056
- f_checker_id: this.data.f_checker_id,
1057
- f_upload_state: '未传',
1058
- row: codata
1059
- }
1060
- console.log('codata ===> ' + JSON.stringify(codata))
1061
- let paramStr = JSON.stringify(param)
1062
- // 多长截断一次
1063
- let subLength = 800
1064
- for (let i = 0; i < paramStr.length; i += subLength) {
1065
- HostApp.param_cache(paramStr.substr(i, subLength))
1031
+ let res = this.save()
1032
+ // if(res) {
1033
+ // try {
1034
+ // let codata = this.getAllDefect()
1035
+ // //获取微信推送内容
1036
+ // let WxResult = this.getWeixin(codata)
1037
+ // let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1038
+ // f_check_item_id: this.data.f_check_item_id
1039
+ // })
1040
+ // //如果是转维修上传,则不做校验,上传完成后自动转维修
1041
+ // //tag
1042
+ // //tag
1043
+ // if(!this.isToRepair){
1044
+ // if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1045
+ // //tag
1046
+ // //tag
1047
+ // if(!this.isSafeCheckToRepair){
1048
+ // this.$showMessage('有未处理的隐患,请前往拍照上传中将安检转为维修单!')
1049
+ // return
1050
+ // }
1051
+ // }
1052
+ // }
1053
+ // //tag
1054
+ // for (let key in codata){
1055
+ // if(key.startsWith("device")){
1056
+ // codata[key] = []
1057
+ // }
1058
+ // }
1059
+ // //tag}`)
1060
+ //
1061
+ // //tag
1062
+ // let isStart = true
1063
+ // let res
1064
+ // for (let i in this.f_devices){
1065
+ // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1066
+ // if(res.code == 200){
1067
+ // isStart = false
1068
+ // }else{
1069
+ // this.$showMessage("保存失败!")
1070
+ // }
1071
+ // }
1072
+ // let result = HostApp.organizeJSON({
1073
+ // isStart:false,
1074
+ // isJSON:true,
1075
+ // jsonstr:{
1076
+ // f_check_item_id: this.data.f_check_item_id,
1077
+ // f_checker_id: this.data.f_checker_id,
1078
+ // row: codata
1079
+ // }
1080
+ // })
1081
+ // if(result.code == 200){
1082
+ // HostApp.__this__ = this
1083
+ // this.runSyncLogic('上传安检信息','javascript:HostApp.__this__.uploadCallBack()',1)
1084
+ // }
1085
+ //
1086
+ //
1087
+ // // let response = this.$androidUtil.bzLogic('上传安检信息', {
1088
+ // // f_check_item_id: this.data.f_check_item_id,
1089
+ // // f_checker_id: this.data.f_checker_id,
1090
+ // // row: codata
1091
+ // // })
1092
+ // // if (response.code == 200) {
1093
+ // // //tag
1094
+ // // //tag)
1095
+ // // let f_paper_id
1096
+ // // if(response.data != '' && response.data != null){
1097
+ // // f_paper_id = JSON.parse(response.data).id
1098
+ // // }
1099
+ // // this.$set('data.f_paper_id', f_paper_id)
1100
+ // // //tag
1101
+ // // //tag)
1102
+ // // //tag
1103
+ // // //tag)
1104
+ // // for (let device in this.data){
1105
+ // // //tag
1106
+ // // //tag)
1107
+ // // if(device.startsWith("device")){
1108
+ // // for(let devices of this.data[device]) {
1109
+ // // devices.f_paper_id = f_paper_id
1110
+ // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
1111
+ // // row: devices
1112
+ // // })
1113
+ // // //tag}`)
1114
+ // // if(ret.code == 200){
1115
+ // // //tag
1116
+ // // devices.f_device_id = JSON.parse(ret.data.f_device_id).id
1117
+ // // }
1118
+ // // //tag
1119
+ // // //tag)
1120
+ // // if (ret.code != 200) {
1121
+ // // //TODO 失败后处理
1122
+ // // // this.isUpload = false
1123
+ // // this.$showMessage("上传失败!")
1124
+ // // return false
1125
+ // // }
1126
+ // // }
1127
+ // // }
1128
+ // // }
1129
+ // // // for (let device of this.f_devices) {
1130
+ // // // device.f_paper_id = f_paper_id
1131
+ // // // //tag
1132
+ // // // //tag)
1133
+ // // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
1134
+ // // // row: device
1135
+ // // // })
1136
+ // // // //tag
1137
+ // // // if (ret.code != 200) {
1138
+ // // // //TODO 失败后处理
1139
+ // // // HostApp.alert("上传失败!")
1140
+ // // // return false
1141
+ // // // }
1142
+ // // // }
1143
+ // // let result = this.$androidUtil.bzLogic('FinishUpload',
1144
+ // // {
1145
+ // // f_check_item_id: this.data.f_check_item_id,
1146
+ // // f_userinfo_id: codata.f_userinfoid,
1147
+ // // f_last_check_result: codata.f_defect_content
1148
+ // // })
1149
+ // // if(result.code == 200){
1150
+ // // // this.$showAlert('上传成功!', 'success', 2000)
1151
+ // // this.$showMessage('上传成功!')
1152
+ // // this.isStrat=false
1153
+ // // if(url != "" ){
1154
+ // // this.$resetpost(`${url}`,{data:WxResult})
1155
+ // // }
1156
+ // // return true
1157
+ // // }else{
1158
+ // // // this.isUpload = false
1159
+ // // this.$showMessage("上传失败!")
1160
+ // // return false
1161
+ // // }
1162
+ // // }else{
1163
+ // // // this.isUpload = false
1164
+ // // this.$showMessage("上传失败!")
1165
+ // // return false
1166
+ // // }
1167
+ // }catch (e) {
1168
+ // //tag)
1169
+ // // this.isUpload = false
1170
+ // this.$showMessage("上传失败!")
1171
+ // }
1172
+ // }
1173
+ },
1174
+ //将数据组装提出
1175
+ assemblyCodata(){
1176
+ let codata = this.getAllDefect()
1177
+ console.log(`codata类型 开始组装codeta数据-->${typeof codata}`)
1178
+ console.log(`codata内容-->${JSON.stringify(codata)}`)
1179
+ for (let key in codata) {
1180
+ if (key.startsWith("device")) {
1181
+ console.log('this.data.' + key + JSON.stringify(codata[key]))
1182
+ codata[key] = []
1066
1183
  }
1067
- HostApp.__this__ = this
1068
- HostApp.syncLogic({
1069
- // logic别名,key必须为logic
1070
- 'logic': 'SafeSaveNoPaper',
1071
- // 回调执行方法名,key必须为callback
1072
- 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1073
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1074
- // 执行回调方法传入key为backresult
1075
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1076
- 'backresult': 1
1077
- })
1078
- } else {
1079
- console.log('非无计划安检保存')
1080
- let isStart = true
1081
- let res
1082
- console.log('this.f_devices' + JSON.stringify(this.f_devices))
1083
- // for (let i in this.f_devices) {
1084
- // console.log('this.f_devices[i] ====>' + JSON.stringify(this.f_devices[i]))
1085
- // for (let j = 0; j < this.f_devices[i].f_items.length; j++) {
1086
- // console.log(`this.f_devices[i].f_items[${j}] ===> ` + JSON.stringify(this.f_devices[i].f_items[j]))
1087
- // }
1088
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1089
- // console.log('f_devices organizeJSON ==> ' + JSON.stringify(res))
1090
- // if (res.code == 200) {
1091
- // isStart = false
1092
- // } else {
1093
- // this.$showMessage("保存失败!")
1094
- // }
1095
- // }
1096
- console.log('this.data ==> ' + JSON.stringify(this.data))
1097
- console.log('f_check_item_id ==> ' + JSON.stringify(this.data.f_check_item_id))
1098
- console.log('f_checker_id ==> ' + JSON.stringify(this.data.f_checker_id))
1099
- // let result = HostApp.organizeJSON({
1100
- // isStart: false,
1101
- // isJSON: true,
1102
- // jsonstr: {
1103
- // f_check_item_id: this.data.f_check_item_id,
1104
- // f_checker_id: this.data.f_checker_id,
1105
- // row: codata
1106
- // }
1107
- // })
1108
- codata.f_devices = this.f_devices
1109
- let param = {
1110
- f_check_item_id: this.data.f_check_item_id,
1111
- f_checker_id: this.data.f_checker_id,
1112
- row: codata
1184
+ }
1185
+ codata.f_devices = this.f_devices
1186
+ this.rowCodata=codata
1187
+ },
1188
+ save(type) {
1189
+ if (type == 'temp' || type == 'finish') {
1190
+ this.assemblyCodata()
1191
+ }
1192
+ //禁用事件
1193
+ this.saveNoclick()
1194
+ //tag
1195
+ //tag
1196
+ if(type == 'temp'){
1197
+ this.data.f_complete = '未完成'
1198
+ this.rowCodata.f_complete = '未完成'
1199
+ // 关闭录音方法
1200
+ this.closely(true) //临时保存,删除录音文件并暂停录音
1201
+ this.disableTimer()
1202
+ }else {
1203
+ // 关闭录音方法
1204
+ this.closely(false) // 保存本地,不删除录音文件暂停录音
1205
+ let errString = this.errorVerify()
1206
+ if (errString) {
1207
+ //tag
1208
+ //tag
1209
+ //tag
1210
+ if (Vue.android){
1211
+ this.$showMessage(errString)
1212
+ }
1213
+ return
1214
+ } else {
1215
+ this.data.f_complete = '已完成'
1216
+ this.rowCodata.f_complete = '已完成'
1217
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
1218
+ this.$set('rowCodata.f_offsite_time', Util.toStandardTimeString())
1219
+ this.disableTimer()
1113
1220
  }
1114
- console.log('codata ===> ' + JSON.stringify(codata))
1115
- let paramStr = JSON.stringify(param)
1116
- // 多长截断一次
1117
- let subLength = 800
1118
- for (let i = 0; i < paramStr.length; i += subLength) {
1119
- HostApp.param_cache(paramStr.substr(i, subLength))
1221
+ }
1222
+ //tag
1223
+ if(this.data.f_blacklist!='是'){
1224
+ delete this.data.f_blocking_cause
1225
+ }
1226
+ if (this.data.f_entry_status == '入户') {
1227
+ this.data.f_rejectchecks_path = []
1228
+ this.data.f_rejectcheck_path = null
1229
+ this.data.f_rejectcheck1_path = null
1230
+ this.data.f_rejectcheck2_path = null
1231
+ this.data.f_noanswers_path=[]
1232
+ this.data.f_noanswer_path = null
1233
+ this.data.f_noanswer1_path = null
1234
+ this.data.f_noanswer2_path = null
1235
+ }else if (this.data.f_entry_status == '到访不遇') {
1236
+ this.data.f_rejectchecks_path = []
1237
+ this.data.f_rejectcheck_path = null
1238
+ this.data.f_rejectcheck1_path = null
1239
+ this.data.f_rejectcheck2_path = null
1240
+ }else if (this.data.f_entry_status == '拒检') {
1241
+ this.data.f_noanswers_path=[]
1242
+ this.data.f_noanswer_path = null
1243
+ this.data.f_noanswer1_path = null
1244
+ this.data.f_noanswer2_path = null
1245
+ }
1246
+ // try {
1247
+ let codata = this.rowCodata
1248
+ //tag
1249
+ //tag}`)
1250
+ for (let key in codata) {
1251
+ if (key.startsWith("device")) {
1252
+ //tag)
1253
+ codata[key] = []
1120
1254
  }
1121
- HostApp.__this__ = this
1122
- HostApp.syncLogic({
1123
- // logic别名,key必须为logic
1124
- 'logic': '保存安检单信息',
1125
- // 回调执行方法名,key必须为callback
1126
- 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1127
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1128
- // 执行回调方法传入key为backresult
1129
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1130
- 'backresult': 1
1131
- })
1132
1255
  }
1133
-
1134
- } else {
1135
- console.log("保存的值", codata)
1136
- let value = this.$androidUtil.path({
1137
- alias: 'getUserinfomation',
1138
- data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1139
- })
1140
-
1141
- if (this.item.f_no_checkplan == '无计划安检' && value.data.length == 0 && this.item.f_no_checkplan != '打回') {
1142
- this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1143
- f_check_item_id: this.data.f_check_item_id,
1144
- f_checker_id: this.data.f_checker_id,
1145
- f_upload_state: '未传',
1146
- row: codata
1147
- }).then((res) => {
1148
- if (res.data.code == 200) {
1149
- //保存devices
1150
- this.$androidUtil.bzLogic('getPaperInfo', {
1151
- f_check_item_id: this.data.f_check_item_id
1152
- }).then((res) => {
1153
- console.log(`查询paper结果res======${res}`)
1154
- if (res.data.code == 200) {
1155
-
1156
- let f_paper_id = res.data.data[0].id
1157
- for (let device of this.f_devices) {
1158
- device.f_paper_id = f_paper_id
1159
- console.log('设备信息device======', device)
1160
- this.$androidUtil.bzLogic('saveDevice', {
1161
- row: device
1162
- }).then((ret) => {
1163
- console.log(`保存设备信息结果res======`, ret)
1164
- if (ret.code != 200) {
1165
- // if(this.isUpload){
1166
- // this.isUpload = false
1167
- // }
1168
- //TODO 失败后处理
1169
- this.$showMessage("保存失败!")
1170
- return false
1171
- }
1172
- })
1173
- }
1174
- }
1175
- })
1176
- // this.$showAlert('保存成功!', 'success', 2000)
1177
- this.$showMessage('保存成功!')
1178
- return true
1179
- } else {
1180
- // if(this.isUpload){
1181
- // this.isUpload = false
1182
- // }
1183
- this.$showMessage("保存失败!")
1184
- return false
1185
- }
1256
+ codata.f_complete = this.data.f_complete
1257
+ //tag}`)
1258
+ //tag}`)
1259
+ //tag
1260
+ if (Vue.android) {
1261
+ //tag
1262
+ let value = this.$androidUtil.path({
1263
+ alias: 'getUserinfomation',
1264
+ data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
1186
1265
  })
1187
- } else {
1188
- this.$androidUtil.bzLogic('保存安检单信息', {
1189
- f_check_item_id: this.data.f_check_item_id,
1190
- f_checker_id: this.data.f_checker_id,
1191
- row: codata
1192
- }).then((res) => {
1193
- console.log('asdddddddddddddddddddddddddddddd')
1194
- if (res.data.code == 200) {
1195
- //保存devices
1196
- this.$androidUtil.bzLogic('getPaperInfo', {
1197
- f_check_item_id: this.data.f_check_item_id
1198
- }).then((res) => {
1199
- console.log(`查询paper结果res======${res}`)
1200
- if (res.data.code == 200) {
1201
-
1202
- let f_paper_id = res.data.data[0].id
1203
- for (let device of this.f_devices) {
1204
- device.f_paper_id = f_paper_id
1205
- console.log(`设备信息device======${device}`)
1206
- this.$androidUtil.bzLogic('saveDevice', {
1207
- row: device
1208
- }).then((ret) => {
1209
- console.log(`保存设备信息结果res======${ret}`)
1210
- if (ret.code != 200) {
1211
- // if(this.isUpload){
1212
- // this.isUpload = false
1213
- // }
1214
- //TODO 失败后处理
1215
- this.$showMessage("保存失败!")
1216
- return false
1217
- }
1218
- })
1219
- }
1220
- }
1221
- })
1222
- // this.$showAlert('保存成功!', 'success', 2000)
1223
- this.$showMessage('保存成功!')
1224
- return true
1266
+ //tag)
1267
+ if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') && this.item.f_no_checkplan != '打回') {
1268
+ // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1269
+ // f_check_item_id: this.data.f_check_item_id,
1270
+ // f_checker_id: this.data.f_checker_id,
1271
+ // f_upload_state:'未传',
1272
+ // row: codata
1273
+ // })
1274
+ //tag
1275
+ let isStart = true
1276
+ // let res
1277
+ // for (let i in this.f_devices) {
1278
+ // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1279
+ // if (res.code == 200) {
1280
+ // isStart = false
1281
+ // } else {
1282
+ // this.$showMessage("保存失败!")
1283
+ // }
1284
+ // }
1285
+ // let result = HostApp.organizeJSON({
1286
+ // isStart: false,
1287
+ // isJSON: true,
1288
+ // jsonstr: {
1289
+ // f_check_item_id: this.data.f_check_item_id,
1290
+ // f_checker_id: this.data.f_checker_id,
1291
+ // f_upload_state: '未传',
1292
+ // row: codata
1293
+ // }
1294
+ // })
1295
+ codata.f_devices = this.f_devices
1296
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1297
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1225
1298
  } else {
1226
- // if(this.isUpload){
1227
- // this.isUpload = false
1228
- // }
1229
- this.$showMessage("保存失败!")
1230
- return false
1299
+ this.rowCodata = codata
1231
1300
  }
1232
- })
1233
- }
1234
- }
1235
- // }catch (e) {
1236
- // console.log('保存失败==='+JSON.stringify(e))
1237
- // // this.isUpload = false
1238
- // this.$showMessage("保存失败!")
1239
- // }
1240
- },
1241
- runSyncLogic(logic,callback,backresult){
1242
- HostApp.runSyncLogic({
1243
- // logic别名,key必须为logic
1244
- 'logic': logic,
1245
- // 回调执行方法名,key必须为callback
1246
- 'callback': callback,
1247
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1248
- // 执行回调方法传入key为backresult
1249
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1250
- 'backresult':backresult
1251
- })
1252
- },
1253
- logicWithHint(logic,data,callback,backresult){
1254
- HostApp.logicWithHint({
1255
- // logic别名,key必须为logic
1256
- 'logic': logic,
1257
- // 回调执行方法名,key必须为callback
1258
- 'callback': callback,
1259
- // logic执行需要的业务参数
1260
- 'data': data,
1261
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1262
- // 执行回调方法传入key为backresult
1263
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1264
- 'backresult':backresult
1265
- })
1266
- },
1267
- saveCallBack(jo){
1268
- console.log(JSON.stringify(jo))
1269
- if(jo.state == 'ok'){
1270
- let res = JSON.parse(jo.result)
1271
- console.log('保存结果===》'+JSON.stringify(res))
1272
- if(res.code == 200){
1273
- console.log('onlySave=====>'+this.onlySave)
1274
- if(!this.onlySave){
1275
- let codata = this.getAllDefect()
1276
- //获取微信推送内容
1277
- // let WxResult = this.getWeixin(codata)
1278
- let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1279
- f_check_item_id: this.data.f_check_item_id
1280
- })
1281
- //如果是转维修上传,则不做校验,上传完成后自动转维修
1282
- console.log('this.isToRepair=======》'+this.isToRepair)
1283
- console.log('this.livedispose=======》'+this.livedispose)
1284
- if(!this.isToRepair){
1285
- if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1286
- console.log('是否已转维修')
1287
- console.log(this.isSafeCheckToRepair)
1288
- if(!this.isSafeCheckToRepair){
1289
-
1290
- }
1291
- }
1301
+ let param = {
1302
+ f_check_item_id: this.data.f_check_item_id,
1303
+ f_checker_id: this.data.f_checker_id,
1304
+ f_upload_state: '未传',
1305
+ // row: codata
1306
+ row: this.rowCodata
1292
1307
  }
1293
- console.log(`codata类型-->${typeof codata}`)
1294
- for (let key in codata){
1295
- if(key.startsWith("device")){
1296
- codata[key] = []
1297
- }
1308
+ //tag)
1309
+ let paramStr = JSON.stringify(param)
1310
+ // 多长截断一次
1311
+ let subLength = 800
1312
+ for (let i = 0; i < paramStr.length; i += subLength) {
1313
+ HostApp.param_cache(paramStr.substr(i, subLength))
1298
1314
  }
1299
- console.log(`codata内容-->${JSON.stringify(codata)}`)
1300
-
1301
- console.log('遮挡上传')
1302
- // let isStart = true
1303
- // let res
1304
- // for (let i in this.f_devices){
1305
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1306
- // if(res.code == 200){
1315
+ HostApp.__this__ = this
1316
+ HostApp.syncLogic({
1317
+ // logic别名,key必须为logic
1318
+ 'logic': 'SafeSaveNoPaper',
1319
+ // 回调执行方法名,key必须为callback
1320
+ 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1321
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1322
+ // 执行回调方法传入key为backresult
1323
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1324
+ 'backresult': 1
1325
+ })
1326
+ } else {
1327
+ // console.log("dddddddd")
1328
+ //tag
1329
+ let isStart = true
1330
+ let res
1331
+ //tag)
1332
+ // for (let i in this.f_devices) {
1333
+ // //tag)
1334
+ // for (let j = 0; j < this.f_devices[i].f_items.length; j++) {
1335
+ // //tag)
1336
+ // }
1337
+ // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1338
+ // //tag)
1339
+ // if (res.code == 200) {
1307
1340
  // isStart = false
1308
- // }else{
1309
- // this.$showMessage("上传失败!")
1310
- // return
1341
+ // } else {
1342
+ // this.$showMessage("保存失败!")
1311
1343
  // }
1312
1344
  // }
1345
+ //tag)
1346
+ //tag)
1347
+ //tag)
1313
1348
  // let result = HostApp.organizeJSON({
1314
- // isStart:false,
1315
- // isJSON:true,
1316
- // jsonstr:{
1349
+ // isStart: false,
1350
+ // isJSON: true,
1351
+ // jsonstr: {
1317
1352
  // f_check_item_id: this.data.f_check_item_id,
1318
1353
  // f_checker_id: this.data.f_checker_id,
1319
1354
  // row: codata
1320
1355
  // }
1321
1356
  // })
1322
1357
  codata.f_devices = this.f_devices
1358
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1359
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1360
+ } else {
1361
+ this.rowCodata = codata
1362
+ }
1323
1363
  let param = {
1324
1364
  f_check_item_id: this.data.f_check_item_id,
1325
1365
  f_checker_id: this.data.f_checker_id,
1326
- row: codata
1366
+ // row: codata
1367
+ row: this.rowCodata
1327
1368
  }
1328
- console.log('codata ===> ' + JSON.stringify(codata))
1369
+ //tag)
1370
+ // console.log("ni"+JSON.stringify(param))
1329
1371
  let paramStr = JSON.stringify(param)
1330
1372
  // 多长截断一次
1331
1373
  let subLength = 800
@@ -1335,571 +1377,984 @@ export default {
1335
1377
  HostApp.__this__ = this
1336
1378
  HostApp.syncLogic({
1337
1379
  // logic别名,key必须为logic
1338
- 'logic': '上传安检信息',
1380
+ 'logic': '保存安检单信息',
1339
1381
  // 回调执行方法名,key必须为callback
1340
- 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1382
+ 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1341
1383
  // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1342
1384
  // 执行回调方法传入key为backresult
1343
1385
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1344
1386
  'backresult': 1
1345
1387
  })
1346
- }else{
1347
- this.$showMessage('保存成功!')
1348
- if(this.clickBack){
1349
- this.isStrat = false
1350
- this.$dispatch('confirm')
1351
- //this.$back()
1388
+ }
1389
+
1390
+ } else {
1391
+ //tag
1392
+ let value = this.$androidUtil.path({
1393
+ alias: 'getUserinfomation',
1394
+ data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
1395
+ })
1396
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1397
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1398
+ } else {
1399
+ this.rowCodata = codata
1400
+ }
1401
+ if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') && value.data.length == 0 && this.item.f_no_checkplan != '打回') {
1402
+ this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1403
+ f_check_item_id: this.data.f_check_item_id,
1404
+ f_checker_id: this.data.f_checker_id,
1405
+ f_upload_state: '未传',
1406
+ // row: codata
1407
+ row: this.rowCodata
1408
+ }).then((res) => {
1409
+ if (res.data.code == 200) {
1410
+ //保存devices
1411
+ this.$androidUtil.bzLogic('getPaperInfo', {
1412
+ f_check_item_id: this.data.f_check_item_id
1413
+ }).then((res) => {
1414
+ //tag
1415
+ if (res.data.code == 200) {
1416
+
1417
+ let f_paper_id = res.data.data[0].id
1418
+ for (let device of this.f_devices) {
1419
+ device.f_paper_id = f_paper_id
1420
+ //tag
1421
+ this.$androidUtil.bzLogic('saveDevice', {
1422
+ row: device
1423
+ }).then((ret) => {
1424
+ //tag
1425
+ if (ret.code != 200) {
1426
+ // if(this.isUpload){
1427
+ // this.isUpload = false
1428
+ // }
1429
+ //TODO 失败后处理
1430
+ this.$showMessage("保存失败!")
1431
+ return false
1432
+ }
1433
+ })
1434
+ }
1435
+ }
1436
+ })
1437
+ // this.$showAlert('保存成功!', 'success', 2000)
1438
+ this.$showMessage('保存成功!')
1439
+ return true
1440
+ } else {
1441
+ // if(this.isUpload){
1442
+ // this.isUpload = false
1443
+ // }
1444
+ this.$showMessage("保存失败!")
1445
+ return false
1446
+ }
1447
+ })
1448
+ }
1449
+ else {
1450
+ this.$androidUtil.bzLogic('保存安检单信息', {
1451
+ f_check_item_id: this.data.f_check_item_id,
1452
+ f_checker_id: this.data.f_checker_id,
1453
+ row: this.rowCodata
1454
+ }).then((res) => {
1455
+ //tag
1456
+ if (res.data.code == 200) {
1457
+ //保存devices
1458
+ this.$androidUtil.bzLogic('getPaperInfo', {
1459
+ f_check_item_id: this.data.f_check_item_id
1460
+ }).then((res) => {
1461
+ //tag
1462
+ if (res.data.code == 200) {
1463
+
1464
+ let f_paper_id = res.data.data[0].id
1465
+ for (let device of this.f_devices) {
1466
+ device.f_paper_id = f_paper_id
1467
+ //tag
1468
+ this.$androidUtil.bzLogic('saveDevice', {
1469
+ row: device
1470
+ }).then((ret) => {
1471
+ //tag
1472
+ if (ret.code != 200) {
1473
+ // if(this.isUpload){
1474
+ // this.isUpload = false
1475
+ // }
1476
+ //TODO 失败后处理
1477
+ this.$showMessage("保存失败!")
1478
+ return false
1479
+ }
1480
+ })
1481
+ }
1482
+ }
1483
+ })
1484
+ // this.$showAlert('保存成功!', 'success', 2000)
1485
+ this.$showMessage('保存成功!')
1486
+ return true
1487
+ } else {
1488
+ // if(this.isUpload){
1489
+ // this.isUpload = false
1490
+ // }
1491
+ this.$showMessage("保存失败!")
1492
+ return false
1493
+ }
1494
+ })
1495
+ }
1496
+ }
1497
+ // }catch (e) {
1498
+ // //tag)
1499
+ // // this.isUpload = false
1500
+ // this.$showMessage("保存失败!")
1501
+ // }
1502
+ },
1503
+ runSyncLogic(logic,callback,backresult){
1504
+ HostApp.runSyncLogic({
1505
+ // logic别名,key必须为logic
1506
+ 'logic': logic,
1507
+ // 回调执行方法名,key必须为callback
1508
+ 'callback': callback,
1509
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1510
+ // 执行回调方法传入key为backresult
1511
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1512
+ 'backresult':backresult
1513
+ })
1514
+ },
1515
+ logicWithHint(logic,data,callback,backresult){
1516
+ HostApp.logicWithHint({
1517
+ // logic别名,key必须为logic
1518
+ 'logic': logic,
1519
+ // 回调执行方法名,key必须为callback
1520
+ 'callback': callback,
1521
+ // logic执行需要的业务参数
1522
+ 'data': data,
1523
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1524
+ // 执行回调方法传入key为backresult
1525
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1526
+ 'backresult':backresult
1527
+ })
1528
+ },
1529
+ saveCallBack(jo){
1530
+ //tag)
1531
+ // console.log("jjjj"+JSON.stringify(jo))
1532
+ if(jo.state == 'ok'){
1533
+ let res = JSON.parse(jo.result)
1534
+ //tag)
1535
+ if(res.code == 200){
1536
+ //tag
1537
+ if(!this.onlySave){
1538
+ let codata = this.getAllDefect()
1539
+ //获取微信推送内容
1540
+ // let WxResult = this.getWeixin(codata)
1541
+ let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1542
+ f_check_item_id: this.data.f_check_item_id
1543
+ })
1544
+ //如果是转维修上传,则不做校验,上传完成后自动转维修
1545
+ //tag
1546
+ //tag
1547
+ if(!this.isToRepair){
1548
+ if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1549
+ //tag
1550
+ //tag
1551
+ if(!this.isSafeCheckToRepair){
1552
+
1553
+ }
1554
+ }
1555
+ }
1556
+ //tag
1557
+ for (let key in codata){
1558
+ if(key.startsWith("device")){
1559
+ codata[key] = []
1560
+ }
1561
+ }
1562
+ //tag}`)
1563
+
1564
+ //tag
1565
+ // let isStart = true
1566
+ // let res
1567
+ // for (let i in this.f_devices){
1568
+ // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1569
+ // if(res.code == 200){
1570
+ // isStart = false
1571
+ // }else{
1572
+ // this.$showMessage("上传失败!")
1573
+ // return
1574
+ // }
1575
+ // }
1576
+ // let result = HostApp.organizeJSON({
1577
+ // isStart:false,
1578
+ // isJSON:true,
1579
+ // jsonstr:{
1580
+ // f_check_item_id: this.data.f_check_item_id,
1581
+ // f_checker_id: this.data.f_checker_id,
1582
+ // row: codata
1583
+ // }
1584
+ // })
1585
+ codata.f_devices = this.f_devices
1586
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1587
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1588
+ } else {
1589
+ this.rowCodata = codata
1590
+ }
1591
+ let param = {
1592
+ f_check_item_id: this.data.f_check_item_id,
1593
+ f_checker_id: this.data.f_checker_id,
1594
+ // row: codata
1595
+ row: this.rowCodata
1596
+ }
1597
+ //tag)
1598
+ let paramStr = JSON.stringify(param)
1599
+ // 多长截断一次
1600
+ let subLength = 800
1601
+ for (let i = 0; i < paramStr.length; i += subLength) {
1602
+ HostApp.param_cache(paramStr.substr(i, subLength))
1603
+ }
1604
+ HostApp.__this__ = this
1605
+ HostApp.syncLogic({
1606
+ // logic别名,key必须为logic
1607
+ 'logic': '上传安检信息',
1608
+ // 回调执行方法名,key必须为callback
1609
+ 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1610
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1611
+ // 执行回调方法传入key为backresult
1612
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1613
+ 'backresult': 1
1614
+ })
1615
+ }else{
1616
+ this.$showMessage('保存成功!')
1617
+ if(this.clickBack){
1618
+ this.isStrat = false
1619
+ this.$dispatch('confirm')
1620
+ //this.$back()
1621
+ }
1352
1622
  }
1623
+ }else{
1624
+ this.$showMessage('保存失败!')
1625
+ return
1353
1626
  }
1354
1627
  }else{
1355
- this.$showMessage('保存失败!')
1628
+ this.$showMessage('服务器内部错误,保存失败!')
1356
1629
  return
1357
1630
  }
1358
- }else{
1359
- this.$showMessage('服务器内部错误,保存失败!')
1360
- return
1361
- }
1362
- },
1363
- uploadCallBack(jo){
1364
- //获取微信推送路径
1365
- let url = ""
1366
- if(Vue.config.safecheck != undefined) {
1367
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1368
- if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1369
- url = Vue.config.safecheck.ApproveConfig.weixinurl
1631
+ },
1632
+ uploadCallBack(jo){
1633
+ //获取微信推送路径
1634
+ let url = ""
1635
+ if(Vue.config.safecheck != undefined) {
1636
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1637
+ if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1638
+ url = Vue.config.safecheck.ApproveConfig.weixinurl
1639
+ }
1370
1640
  }
1371
1641
  }
1372
- }
1373
- console.log(JSON.stringify(jo))
1374
- console.log('jo ===> ' + JSON.stringify(jo))
1375
- if(jo.state == 'ok'){
1376
- let res = JSON.parse(jo.result)
1377
- console.log('上传结果===》'+JSON.stringify(res))
1378
- console.log('上传结果的f_paper_id===》'+JSON.stringify(res.id))
1379
- if(res.code == 200){
1380
- this.$set('data.f_paper_id', res.id)
1381
- this.isStrat=false
1382
- if(url != ""){
1383
- this.$resetpost(`${url}`,{data:WxResult})
1384
- }
1385
- console.log('this.isToRepair==============>'+this.isToRepair)
1386
- if(this.isToRepair){
1387
- for (let device in this.data){
1388
- if(device.startsWith("device")){
1389
- this.data[device] = []
1390
- if(res.data.length > 0){
1391
- for(let i in res.data[0].f_devices){
1392
- if(this.data[device].length > 0){
1393
- if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1642
+ //tag)
1643
+ //tag)
1644
+ if(jo.state == 'ok'){
1645
+ let res = JSON.parse(jo.result)
1646
+ //tag)
1647
+ //tag)
1648
+ if(res.code == 200){
1649
+ this.$set('data.f_paper_id', res.id)
1650
+ this.isStrat=false
1651
+ if(url != ""){
1652
+ this.$resetpost(`${url}`,{data:WxResult})
1653
+ }
1654
+ // 预约安检回更预约安检单
1655
+ if(this.data.isupdateplanitem == 'true' && this.data.f_SafeToRepair_id){
1656
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/ReturnSafeService`, {data:{
1657
+ f_paper_id:this.data.f_paper_id,
1658
+ f_service_id:this.data.f_SafeToRepair_id
1659
+ }
1660
+ }).then((ret) => {
1661
+ if(ret.data && ret.data.code == 200){
1662
+ console.log('预约安检回更成功')
1663
+ }
1664
+ })
1665
+ }
1666
+ //tag
1667
+ if(this.isToRepair){
1668
+ for (let device in this.data){
1669
+ if(device.startsWith("device")){
1670
+ this.data[device] = []
1671
+ if(res.data.length > 0){
1672
+ for(let i in res.data[0].f_devices){
1673
+ if(this.data[device].length > 0){
1674
+ if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1675
+ this.data[device].push(res.data[0].f_devices[i])
1676
+ res.data[0].f_devices.splice(i,1)
1677
+ }
1678
+ }else{
1394
1679
  this.data[device].push(res.data[0].f_devices[i])
1395
1680
  res.data[0].f_devices.splice(i,1)
1396
1681
  }
1397
- }else{
1398
- this.data[device].push(res.data[0].f_devices[i])
1399
- res.data[0].f_devices.splice(i,1)
1400
1682
  }
1401
1683
  }
1402
1684
  }
1403
1685
  }
1686
+ this.todo()
1687
+ }else{
1688
+ this.$showMessage('上传成功!')
1689
+ //tag
1690
+ this.$dispatch('confirm')
1691
+ // this.$back()
1404
1692
  }
1405
- this.todo()
1406
- }else{
1407
- this.$showMessage('上传成功!')
1408
- console.log('上传结束back')
1693
+ }else if(res.code == 309){
1694
+ this.$showMessage('该安检单已作废!')
1695
+ //tag
1409
1696
  this.$dispatch('confirm')
1410
- // this.$back()
1697
+ }else if(res.code == 710){
1698
+ this.$showMessage('上传照片失败,请检查网络是否正常!'+res.msg)
1699
+ this.onlySave = true
1700
+ return
1701
+ }else if(res.code == 711){
1702
+ this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1703
+ this.onlySave = true
1704
+ return
1705
+ }else if(res.code == 712){
1706
+ this.$showMessage('网络异常,请缓存后重新尝试上传,多次上传失败请联系管理员!')
1707
+ this.onlySave = true
1708
+ return
1411
1709
  }
1412
- }else if(res.code == 309){
1413
- this.$showMessage('该安检单已作废!')
1414
- console.log('该安检单已作废')
1415
- this.$dispatch('confirm')
1416
- }else if(res.code == 710){
1417
- this.$showMessage('上传照片失败,请检查用户签名或安检照片缺失,如无问题请检查手机当前网络是否正常(多次上传失败请先点击*本地缓存*按钮,在网络通畅情况下统一上传)!')
1418
- return
1419
- }else if(res.code == 711){
1420
- this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1421
- return
1422
- }else if(res.code == 712){
1423
- this.$showMessage('网络异常,请重新上传,多次上传失败请联系管理员!')
1424
- return
1425
- }
1426
- else{
1427
- this.$showMessage('上传失败!')
1710
+ else{
1711
+ this.$showMessage('上传失败!')
1712
+ }
1713
+ }else {
1714
+ this.$showMessage('网络异常,上传失败!')
1428
1715
  }
1429
- }else {
1430
- this.$showMessage('网络异常,上传失败!')
1431
- }
1432
- this.onlySave = true
1433
- },
1434
- safecheckToRepairCallBack(jo){
1435
- //获取微信推送路径
1436
- if(jo.state == 'ok'){
1437
- let res = JSON.parse(jo.result)
1438
- console.log('安检转维修===》'+JSON.stringify(res))
1439
- if(res.code == 200){
1440
- console.log('安检转维修成功')
1441
- if(res.data.code == 200){
1442
- this.$showMessage('上传并转维修成功!')
1716
+ this.onlySave = true
1717
+ },
1718
+ safecheckToRepairCallBack(jo){
1719
+ //获取微信推送路径
1720
+ if(jo.state == 'ok'){
1721
+ let res = JSON.parse(jo.result)
1722
+ //tag)
1723
+ if(res.code == 200){
1724
+ //tag
1725
+ if(res.data.code == 200){
1726
+ this.$showMessage('上传并转维修成功!')
1727
+ }else{
1728
+ this.$showMessage('上传并转维修成功,回写安检单失败!')
1729
+ }
1730
+ this.$dispatch('confirm')
1731
+ // this.$back()
1443
1732
  }else{
1444
- this.$showMessage('上传并转维修成功,回写安检单失败!')
1733
+ this.$showMessage('上传失败!')
1734
+ this.onlySave = true
1445
1735
  }
1446
- this.$dispatch('confirm')
1447
- // this.$back()
1448
1736
  }else{
1449
- this.$showMessage('上传失败!')
1737
+ this.$showMessage('网络异常,上传失败!')
1450
1738
  this.onlySave = true
1451
1739
  }
1452
- }else{
1453
- this.$showMessage('网络异常,上传失败!')
1454
- this.onlySave = true
1455
- }
1456
- },
1457
- todo(){
1458
- let gen = getRepairParam(this)
1459
- co(gen)
1460
- },
1461
- undo(){
1462
- this.showCheckToRepair = !this.showCheckToRepair
1463
- this.model.serviceacitivity[0].f_reciever = ''
1464
- this.model.serviceacitivity[0].f_meetunit = ''
1465
- this.model.f_repairtype = ''
1466
- this.meading = '转站点'
1467
- },
1468
- disableTimer() {
1469
- if(this.timer) {
1470
- window.clearTimeout(this.timer)
1471
- this.timer = null
1472
- }
1473
- },
1474
- loaded(paper) {
1475
- if(!paper.hasOwnProperty('id')) {
1476
- this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1477
- this.init()
1478
- } else {
1479
- Util.booleanFilter(paper)
1480
- HostApp.__this__.$set('data', paper)
1481
- HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1482
- // 如果打回重检则重新计时
1483
- console.log('HostApp.__this__.role' + HostApp.__this__.role + ' HostApp.__this__.f_approved:' + HostApp.__this__.data.f_approved)
1484
- if(HostApp.__this__.role == 'inspect'
1485
- && HostApp.__this__.data.f_approved
1486
- && HostApp.__this__.data.f_approved == '打回') {
1487
- console.log('打回')
1488
- HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1489
- HostApp.__this__.tick()
1740
+ },
1741
+ todo(){
1742
+ let gen = getRepairParam(this)
1743
+ co(gen)
1744
+ },
1745
+ undo(){
1746
+ this.showCheckToRepair = !this.showCheckToRepair
1747
+ this.model.serviceacitivity[0].f_reciever = ''
1748
+ this.model.serviceacitivity[0].f_meetunit = ''
1749
+ this.model.f_repairtype = ''
1750
+ this.meading = '转站点'
1751
+ },
1752
+ disableTimer() {
1753
+ if(this.timer) {
1754
+ window.clearTimeout(this.timer)
1755
+ this.timer = null
1490
1756
  }
1491
- }
1492
- HostApp.__callback__ = null
1493
- HostApp.__this__ = null
1494
- },
1495
- S4() {
1496
- return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1497
- },
1498
- extend(initalObj, finalObj) {
1499
- var obj = finalObj || {};
1500
- for (var i in initalObj) {
1501
- var prop = initalObj[i];
1502
-
1503
- // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1504
- if (prop === obj) {
1505
- continue;
1757
+ },
1758
+ loaded(paper) {
1759
+ if(!paper.hasOwnProperty('id')) {
1760
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1761
+ this.init()
1762
+ } else {
1763
+ Util.booleanFilter(paper)
1764
+ HostApp.__this__.$set('data', paper)
1765
+ HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1766
+ // 如果打回重检则重新计时
1767
+ //tag
1768
+ if(HostApp.__this__.role == 'inspect'
1769
+ && HostApp.__this__.data.f_approved
1770
+ && HostApp.__this__.data.f_approved == '打回') {
1771
+ //tag
1772
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1773
+ HostApp.__this__.tick()
1774
+ }
1506
1775
  }
1776
+ HostApp.__callback__ = null
1777
+ HostApp.__this__ = null
1778
+ },
1779
+ S4() {
1780
+ return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1781
+ },
1782
+ extend(initalObj, finalObj) {
1783
+ var obj = finalObj || {};
1784
+ for (var i in initalObj) {
1785
+ var prop = initalObj[i];
1507
1786
 
1508
- if (typeof prop === 'object') {
1509
- if (obj[i]) {
1510
- this.extend(obj[i], prop)
1511
- } else {
1512
- obj[i] = prop;
1787
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1788
+ if (prop === obj) {
1789
+ continue;
1513
1790
  }
1514
- }
1515
- }
1516
- return obj;
1517
- },
1518
- // async isoverDate(){
1519
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
1520
- // condition:"f_plan_item_id='"+this.item.id+"'"
1521
- // }
1522
- // })
1523
- // this.isneedDate=res.data[0]["f_subscribe_date"]
1524
- // },
1525
- putDevices() {
1526
- console.log('Vue.config => ' + JSON.stringify(Vue.config))
1527
- console.log('Vue.config.DevicesConfig => ' + JSON.stringify(Vue.config.DevicesConfig))
1528
- this.$set('data.approve', "true")
1529
- this.$set('data.writeback', "false")
1530
- if (Vue.config.safecheck != undefined) {
1531
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1532
- if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1533
- this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1791
+
1792
+ if (typeof prop === 'object') {
1793
+ if (obj[i]) {
1794
+ this.extend(obj[i], prop)
1795
+ } else {
1796
+ obj[i] = prop;
1797
+ }
1534
1798
  }
1535
- if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1536
- this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1799
+ }
1800
+ return obj;
1801
+ },
1802
+ // async isoverDate(){
1803
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
1804
+ // condition:"f_plan_item_id='"+this.item.id+"'"
1805
+ // }
1806
+ // })
1807
+ // this.isneedDate=res.data[0]["f_subscribe_date"]
1808
+ // },
1809
+ putDevices() {
1810
+ //tag)
1811
+ //tag)
1812
+ this.$set('data.approve', "true")
1813
+ this.$set('data.writeback', "false")
1814
+ if (Vue.config.safecheck != undefined) {
1815
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1816
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1817
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1818
+ }
1819
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1820
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1821
+ }
1822
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1823
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1824
+ }
1825
+ if (Vue.config.safecheck.ApproveConfig.showtorepair) {
1826
+ this.show_torepair = Vue.config.safecheck.ApproveConfig.showtorepair
1827
+ }
1828
+ if (Vue.config.safecheck.ApproveConfig.notencountered != undefined){
1829
+ this.notencountered = Vue.config.safecheck.ApproveConfig.notencountered
1830
+ }
1831
+ if (Vue.config.safecheck.ApproveConfig.refuseinspection != undefined){
1832
+ this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
1833
+ }
1537
1834
  }
1538
- if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1539
- this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1835
+ //tag
1836
+ //tag)
1837
+ //tag)
1838
+ //tag
1839
+ if(this.item.f_user_type == '非民用'){
1840
+ // 非民用
1841
+ if (Vue.config.safecheck.DevicesSetConfig != undefined){
1842
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1843
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1844
+ }else{
1845
+ //tag
1846
+ //tag
1847
+ //tag
1848
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1849
+ }
1850
+ //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1851
+ }
1852
+
1853
+ }else{
1854
+ // 民用户
1855
+ if (Vue.config.safecheck.DevicesConfig != undefined){
1856
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1857
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1858
+ }else{
1859
+ //tag
1860
+ //tag
1861
+ //tag
1862
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type?this.item.f_user_type:'民用']])
1863
+ }
1864
+ // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1865
+ }
1540
1866
  }
1867
+
1868
+ }
1869
+ //tag)
1870
+ // 预留设备项位置
1871
+ for (let i in this.config) {
1872
+ this.tabs.splice(1,0,null)
1541
1873
  }
1542
- console.log(Vue.config)
1543
- console.log('Vue.config.safecheck.DevicesConfig=>' + JSON.stringify(Vue.config.safecheck.DevicesConfig))
1544
- console.log('赋值前的config=>' + JSON.stringify(this.config))
1545
- console.log("当前用户类型"+this.item.f_user_type)
1546
- if(this.item.f_user_type == '民用'){
1547
- // 民用户
1874
+ //遍历安检项配置
1875
+ for (let i in this.config) {
1876
+ //取得安检项索引值
1877
+ let n = this.config[i].index
1878
+ //tag
1879
+ this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1880
+ this.$set('data.' + 'device' + n, [])
1881
+ //tag
1882
+ // this.tabs.splice(2 + n - 1, 0,
1883
+ // {
1884
+ // header:i,
1885
+ // complete:'safecheck-devices',
1886
+ // class:'repair-details-class',
1887
+ // number:n
1888
+ // })
1889
+ this.tabs[n] = {
1890
+ header: i,
1891
+ complete: 'safecheck-devices',
1892
+ class: 'repair-details-class',
1893
+ number: n
1894
+ }
1548
1895
 
1549
- if (Vue.config.safecheck.DevicesConfig != undefined){
1550
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1551
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1552
- }else{
1553
- console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1554
- console.log("当前用户类型-Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type])
1555
- console.log("当前用户类型"+Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1556
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1896
+ if(this.config[i].quantity && this.config[i].quantity >0){
1897
+ let items = []
1898
+ for (let it in this.config[i].items) {
1899
+ //赋值下拉选项
1900
+ if (this.config[i].items[it].type == 'selector') {
1901
+ for (let op in this.config[i].items[it].options) {
1902
+ if (this.config[i].items[it].options[op].isdefault == true) {
1903
+ items.push({
1904
+ f_defect_level: this.config[i].items[it].options[op].level,
1905
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
1906
+ f_item_name: it,
1907
+ f_item_value: this.config[i].items[it].options[op].data,
1908
+ f_path: "",
1909
+ type: "selector"
1910
+ })
1911
+ }
1912
+ }
1913
+ }
1557
1914
  }
1558
- // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1559
- }
1560
- }else {
1561
- // 非民用
1562
- if (Vue.config.safecheck.DevicesSetConfig != undefined){
1563
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1564
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1565
- }else{
1566
- console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1567
- console.log("当前用户类型-Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type])
1568
- console.log("当前用户类型"+Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1569
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1915
+ for(let q =0;q<this.config[i].quantity;q++) {
1916
+ this.data['device' + n].push(
1917
+ {f_device_type: i, f_items:items}
1918
+ )
1570
1919
  }
1571
- //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1572
1920
  }
1921
+ // this.data['device' + n].push(
1922
+ // {f_device_type: i, f_items: items}
1923
+ // )
1924
+ n = n + 1
1573
1925
  }
1574
-
1575
- }
1576
- console.log('赋值后的config=>' + JSON.stringify(this.config))
1577
- // 预留设备项位置
1578
- for (let i in this.config) {
1579
- this.tabs.splice(1,0,null)
1580
- }
1581
- //遍历安检项配置
1582
- for (let i in this.config) {
1583
- //取得安检项索引值
1584
- let n = this.config[i].index
1585
- console.log('type '+ typeof n)
1586
- this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1587
- this.$set('data.' + 'device' + n, [])
1588
- console.log('data.device'+ n,this.data)
1589
- // this.tabs.splice(2 + n - 1, 0,
1590
- // {
1591
- // header:i,
1592
- // complete:'safecheck-devices',
1593
- // class:'repair-details-class',
1594
- // number:n
1595
- // })
1596
- this.tabs[n] = {
1597
- header: i,
1598
- complete: 'safecheck-devices',
1599
- class: 'repair-details-class',
1600
- number: n
1926
+ //tag
1927
+ this.faultshow.number = this.tabs.length
1928
+ },
1929
+ init () {
1930
+ //tag
1931
+ // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1932
+ // 无计划安检是否回更待办计划
1933
+ this.data.isupdateplanitem = this.$appdata.getSingleValue('在线安检回更有计划') ? this.$appdata.getSingleValue('在线安检回更有计划') : 'false'
1934
+ // 预约安检单工单编号
1935
+ this.data.f_SafeToRepair_id = this.item.f_service_id
1936
+ this.data.ename = Vue.user.ename
1937
+ this.data.f_outlets = Vue.user.f_parentname
1938
+ this.data.f_meetunit = Vue.user.orgpathnames
1939
+ this.data.orgpathstr = Vue.user.orgpathstr
1940
+ this.data.f_check_item_id = this.item.id
1941
+ this.data.f_check_plan_id = this.f_plan_id
1942
+ this.data.f_checker_id = Vue.user.id
1943
+ this.data.f_checker_name = Vue.user.name
1944
+ this.data.f_check_type = this.item.f_user_type
1945
+ this.data.f_safecheck_type = this.item.f_safecheck_type
1946
+ //this.data.f_exceed_reason = ''//存放送气超期原因
1947
+ //tag
1948
+ this.data.f_subcompany = this.item.f_subcompany
1949
+ this.data.f_approved = this.item.f_approvedf_read_instructions
1950
+ this.data.f_repair_approved = this.item.f_repair_approved
1951
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1952
+ this.data.f_approved = this.item.f_approved
1953
+ this.data.f_filialeid = this.item.f_filialeid || Vue.user.orgid
1954
+ this.data.f_orgstr = this.item.f_orgstr
1955
+ this.data.version = this.item.version
1956
+ this.data.f_check_version=this.item.f_check_version
1957
+ this.$set('data.f_meters', this.item.f_plan_meters)
1958
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1959
+ // 安检状态
1960
+ this.$set('data.f_entry_status', '入户')
1961
+ this.$set('data.f_safe_type', '年度安检')
1962
+ this.$set('data.f_usegas', '已使用')
1963
+ this.$set('data.f_state',this.item.f_state)
1964
+ this.$set('data.f_source', this.source?this.source:'安检')
1965
+ this.$set('data.f_other_checker_name', '')
1966
+ //tag
1967
+ // 用户信息
1968
+ this.$set('data.f_user_name', this.item.f_user_name)
1969
+ this.$set('data.f_rent_phone', this.item.f_rent_phone)
1970
+ this.$set('data.f_user_phone', this.item.f_user_phone || this.item.f_plan_meters[0].f_user_phone)
1971
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1972
+ this.$set('data.f_address', this.item.f_address)
1973
+ this.$set('data.f_card_id', this.item.f_card_id)
1974
+ this.$set('data.f_slice_area', this.item.f_slice_area)
1975
+ this.$set('data.f_recheck_id', this.item.id)
1976
+ this.$set('rowCodata.f_recheck_id', this.item.id)
1977
+ this.$set('data.f_street', this.item.f_street)
1978
+ this.$set('data.f_room', this.item.f_room)
1979
+ this.$set('data.f_building', this.item.f_building)
1980
+ this.$set('data.f_unit', this.item.f_unit)
1981
+ //tag
1982
+ this.$set('data.f_floor', this.item.f_floor)
1983
+ this.$set('data.f_residential_area' , this.item.f_residential_area)
1984
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1985
+ this.$set('data.f_comments', this.item.f_comments)
1986
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1987
+ this.$set('data.f_client_evaluation', '满意')
1988
+ this.$set('data.f_userfiles_id', this.item.f_plan_meters[0].f_userfiles_id)
1989
+ this.$set('data.f_valve_state', this.item.f_plan_meters[0].f_valve_state)
1990
+ this.$set('data.f_off_valve_reason', this.item.f_plan_meters[0].f_off_valve_reason)
1991
+ // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1992
+ // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1993
+ // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
1994
+ // this.$set('data.f_user_family_remarks', this.item.f_user_family_remarks)
1995
+ // this.$set('data.f_user_equipment_remarks', this.item.f_user_equipment_remarks)
1996
+ // 处置方式
1997
+ //tag
1998
+ this.$set('data.f_gas_guidelines', true)
1999
+ this.$set('data.f_safety_warning', true)
2000
+ this.$set('data.f_gas_manual', true)
2001
+ this.$set('data.f_no_gas_device', false)
2002
+ this.$set('data.f_close_valve', false)
2003
+ this.$set('data.f_unload_battery', false)
2004
+ //tag
2005
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检' ) {
2006
+ this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1601
2007
  }
1602
-
1603
- if(this.config[i].quantity && this.config[i].quantity >0){
1604
- let items = []
1605
- for (let it in this.config[i].items) {
1606
- //赋值下拉选项
1607
- if (this.config[i].items[it].type == 'selector') {
1608
- for (let op in this.config[i].items[it].options) {
1609
- if (this.config[i].items[it].options[op].isdefault == true) {
1610
- items.push({
1611
- f_defect_level: this.config[i].items[it].options[op].level,
1612
- f_is_defect: this.config[i].items[it].options[op].isdefect,
1613
- f_item_name: it,
1614
- f_item_value: this.config[i].items[it].options[op].data,
1615
- f_path: "",
1616
- type: "selector"
2008
+ if(this.item.f_no_checkplan == '复检'){
2009
+ this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
2010
+ }
2011
+ //tag
2012
+ if(this.item.f_plan_meters) {
2013
+ for (let de in this.devices) {
2014
+ if(typeof this.devices[de]=='function'){
2015
+ continue
2016
+ }
2017
+ this.$set('data.device' + this.devices[de].n, [])
2018
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
2019
+ if (this.item.f_plan_meters[i].f_meter_type) {
2020
+ this.data.f_meter_type=this.item.f_plan_meters[i].f_meter_type
2021
+ //tag)
2022
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') >= 0) {
2023
+ this.data['device' + this.devices[de].n].push({
2024
+ f_device_type: "燃气表",
2025
+ f_items: [
2026
+ {
2027
+ f_defect_level: null,
2028
+ f_device_id: "",
2029
+ f_is_defect: "",
2030
+ f_item_name: "基表编号",
2031
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
2032
+ f_path: "",
2033
+ type: "number"
2034
+ },
2035
+ {
2036
+ f_defect_level: null,
2037
+ f_device_id: "",
2038
+ f_is_defect: "",
2039
+ f_item_name: "气表型号",
2040
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
2041
+ f_path: "",
2042
+ type: "string"
2043
+ },
2044
+ {
2045
+ f_defect_level: null,
2046
+ f_device_id: "",
2047
+ f_is_defect: "",
2048
+ f_item_name: "气表品牌",
2049
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
2050
+ f_path: "",
2051
+ type: "string"
2052
+ },
2053
+ {
2054
+ f_defect_level: null,
2055
+ f_device_id: "",
2056
+ f_is_defect: "",
2057
+ f_item_name: "进气方向",
2058
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2059
+ f_path: "",
2060
+ type: "string"
2061
+ },
2062
+ {
2063
+ f_defect_level: null,
2064
+ f_device_id: "",
2065
+ f_is_defect: "",
2066
+ f_item_name: "上期表读数",
2067
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
2068
+ f_path: "",
2069
+ type: "number"
2070
+ },
2071
+ {
2072
+ f_defect_level: null,
2073
+ f_device_id: "",
2074
+ f_is_defect: "",
2075
+ f_item_name: "表箱号",
2076
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
2077
+ f_path: "",
2078
+ type: "string"
2079
+ }
2080
+ ]
2081
+ })
2082
+ }
2083
+ else if (this.devices[de].device == "燃气表") {
2084
+ // delete this.config['燃气表']['items']['表底数']
2085
+ this.data['device' + this.devices[de].n].push({
2086
+ f_device_type: "燃气表",
2087
+ f_items: [
2088
+ {
2089
+ f_defect_level: null,
2090
+ f_device_id: "",
2091
+ f_is_defect: "",
2092
+ f_item_name: "基表编号",
2093
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
2094
+ f_path: "",
2095
+ type: "number"
2096
+ },
2097
+ {
2098
+ f_defect_level: null,
2099
+ f_device_id: "",
2100
+ f_is_defect: "",
2101
+ f_item_name: "气表型号",
2102
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
2103
+ f_path: "",
2104
+ type: "string"
2105
+ },
2106
+ {
2107
+ f_defect_level: null,
2108
+ f_device_id: "",
2109
+ f_is_defect: "",
2110
+ f_item_name: "气表品牌",
2111
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
2112
+ f_path: "",
2113
+ type: "string"
2114
+ },
2115
+ {
2116
+ f_defect_level: null,
2117
+ f_device_id: "",
2118
+ f_is_defect: "",
2119
+ f_item_name: "进气方向",
2120
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2121
+ f_path: "",
2122
+ type: "string"
2123
+ },
2124
+ {
2125
+ f_defect_level: null,
2126
+ f_device_id: "",
2127
+ f_is_defect: "",
2128
+ f_item_name: "上期表读数",
2129
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
2130
+ f_path: "",
2131
+ type: "number"
2132
+ },
2133
+ {
2134
+ f_defect_level: null,
2135
+ f_device_id: "",
2136
+ f_is_defect: "",
2137
+ f_item_name: "表箱号",
2138
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
2139
+ f_path: "",
2140
+ type: "string"
2141
+ }
2142
+ ]
1617
2143
  })
1618
2144
  }
1619
- }
1620
- }
1621
- }
1622
- for(let q =0;q<this.config[i].quantity;q++) {
1623
- this.data['device' + n].push(
1624
- {f_device_type: i, f_items:items}
1625
- )
1626
- }
1627
- }
1628
- // this.data['device' + n].push(
1629
- // {f_device_type: i, f_items: items}
1630
- // )
1631
- n = n + 1
1632
- }
1633
- console.log('tbs合并数组')
1634
- this.faultshow.number = this.tabs.length
1635
- },
1636
- init () {
1637
- console.log("123456789")
1638
- // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1639
- this.data.ename = Vue.user.ename
1640
- this.data.f_outlets = Vue.user.f_parentname
1641
- this.data.f_meetunit = Vue.user.orgpathnames
1642
- this.data.orgpathstr = Vue.user.orgpathstr
1643
- this.data.f_check_item_id = this.item.id
1644
- this.data.f_check_plan_id = this.f_plan_id
1645
- this.data.f_checker_id = Vue.user.id
1646
- this.data.f_checker_name = Vue.user.name
1647
- this.data.f_check_type = this.item.f_user_type
1648
- this.data.f_safecheck_type = this.item.f_safecheck_type
1649
- //this.data.f_exceed_reason = ''//存放送气超期原因
1650
- console.log('设置参数2')
1651
- this.data.f_subcompany = this.item.f_subcompany
1652
- this.data.f_approved = this.item.f_approvedf_read_instructions
1653
- this.data.f_repair_approved = this.item.f_repair_approved
1654
- this.data.f_no_checkplan = this.item.f_no_checkplan
1655
- this.data.f_approved = this.item.f_approved
1656
- this.data.f_filialeid = this.item.f_filialeid
1657
- this.data.f_orgstr = this.item.f_orgstr
1658
- this.data.version = this.item.version
1659
- this.data.f_check_version=this.item.f_check_version
1660
- this.$set('data.f_meters', this.item.f_plan_meters)
1661
- this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1662
- // 安检状态
1663
- this.$set('data.f_entry_status', '入户')
1664
- this.$set('data.f_usegas', '已使用')
1665
- this.$set('data.f_state',this.item.f_state)
1666
- this.$set('data.f_source', this.source?this.source:'安检')
1667
- console.log('设置参数3')
1668
- // 用户信息
1669
- this.$set('data.f_user_name', this.item.f_user_name)
1670
- this.$set('data.f_user_phone', this.item.f_user_phone)
1671
- this.$set('data.f_userinfoid', this.item.f_userinfoid)
1672
- this.$set('data.f_address', this.item.f_address)
1673
- this.$set('data.f_card_id', this.item.f_card_id)
1674
- this.$set('data.f_area', this.item.f_area)
1675
- this.$set('data.f_street', this.item.f_street)
1676
- this.$set('data.f_room', this.item.f_room)
1677
- this.$set('data.f_building', this.item.f_building)
1678
- this.$set('data.f_unit', this.item.f_unit)
1679
- console.log('设置参数4')
1680
- this.$set('data.f_floor', this.item.f_floor)
1681
- this.$set('data.f_residential_area' , this.item.f_residential_area)
1682
- this.$set('data.f_idnumber', this.item.f_idnumber)
1683
- this.$set('data.f_comments', this.item.f_comments)
1684
- this.$set('data.f_userproperties', this.item.f_userproperties)
1685
- // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1686
- // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1687
- // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
1688
- // this.$set('data.f_user_family_remarks', this.item.f_user_family_remarks)
1689
- // this.$set('data.f_user_equipment_remarks', this.item.f_user_equipment_remarks)
1690
- // 处置方式
1691
- console.log('设置参数5')
1692
- this.$set('data.f_gas_guidelines', true)
1693
- this.$set('data.f_safety_warning', true)
1694
- this.$set('data.f_gas_manual', true)
1695
- this.$set('data.f_no_gas_device', false)
1696
- this.$set('data.f_close_valve', false)
1697
- this.$set('data.f_unload_battery', false)
1698
- console.log('设置参数6')
1699
- if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1700
- this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1701
- }
1702
- console.log("item.f_plan_meters",this.item.f_plan_meters)
1703
- if(this.item.f_plan_meters) {
1704
- for (let de in this.devices) {
1705
- if(typeof this.devices[de]=='function'){
1706
- continue
1707
- }
1708
- this.$set('data.device' + this.devices[de].n, [])
1709
- for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1710
- if (this.item.f_plan_meters[i].f_meter_type) {
1711
- console.log('this.item.f_plan_meters[i] ===> ' + JSON.stringify(this.item.f_plan_meters[i]))
1712
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1713
- this.data['device' + this.devices[de].n].push({
1714
- f_device_type: "燃气表",
1715
- f_items: [
1716
- {
1717
- f_defect_level: null,
1718
- f_device_id: "",
1719
- f_is_defect: "",
1720
- f_item_name: "基表编号",
1721
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1722
- f_path: "",
1723
- type: "number"
1724
- },
1725
- {
1726
- f_defect_level: null,
1727
- f_device_id: "",
1728
- f_is_defect: "",
1729
- f_item_name: "气表型号",
1730
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1731
- f_path: "",
1732
- type: "string"
1733
- },
1734
- {
1735
- f_defect_level: null,
1736
- f_device_id: "",
1737
- f_is_defect: "",
1738
- f_item_name: "气表品牌",
1739
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1740
- f_path: "",
1741
- type: "string"
1742
- },
1743
- {
1744
- f_defect_level: null,
1745
- f_device_id: "",
1746
- f_is_defect: "",
1747
- f_item_name: "进气方向",
1748
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1749
- f_path: "",
1750
- type: "string"
1751
- },
1752
- {
1753
- f_defect_level: null,
1754
- f_device_id: "",
1755
- f_is_defect: "",
1756
- f_item_name: "上期表读数",
1757
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1758
- f_path: "",
1759
- type: "number"
1760
- }
1761
- ]
1762
- })
1763
- }
1764
- else if (this.devices[de].device == "燃气表") {
1765
- // delete this.config['燃气表']['items']['表底数']
1766
- this.data['device' + this.devices[de].n].push({
1767
- f_device_type: "燃气表",
1768
- f_items: [
1769
- {
1770
- f_defect_level: null,
1771
- f_device_id: "",
1772
- f_is_defect: "",
1773
- f_item_name: "基表编号",
1774
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1775
- f_path: "",
1776
- type: "number"
1777
- },
1778
- {
1779
- f_defect_level: null,
1780
- f_device_id: "",
1781
- f_is_defect: "",
1782
- f_item_name: "气表型号",
1783
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1784
- f_path: "",
1785
- type: "string"
1786
- },
1787
- {
1788
- f_defect_level: null,
1789
- f_device_id: "",
1790
- f_is_defect: "",
1791
- f_item_name: "气表品牌",
1792
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1793
- f_path: "",
1794
- type: "string"
1795
- },
1796
- {
1797
- f_defect_level: null,
1798
- f_device_id: "",
1799
- f_is_defect: "",
1800
- f_item_name: "进气方向",
1801
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1802
- f_path: "",
1803
- type: "string"
1804
- },
1805
- {
1806
- f_defect_level: null,
1807
- f_device_id: "",
1808
- f_is_defect: "",
1809
- f_item_name: "上期表读数",
1810
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1811
- f_path: "",
1812
- type: "number"
1813
- }
1814
- ]
1815
- })
1816
- }
1817
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
1818
- this.data['device' + this.devices[de].n].forEach(device => {
1819
- console.log('device ===> ' + JSON.stringify(device))
1820
- console.log('this.item.f_plan_meters[i].f_collection_type ===> ' + JSON.stringify(this.item.f_plan_meters[i].f_collection_type))
1821
- /*
1822
- "累购气量":{"index":8,"type":"number","readonly":true},
1823
- "累购金额":{"index":8,"type":"number","readonly":true},
1824
- "字轮读数":{"index":9,"type":"number","checkmust": true},
1825
- "已用金额":{"index":9,"type":"number","checkmust": true},
1826
- "剩余气量":{"index":10,"type":"number","checkmust": true},
1827
- "剩余金额":{"index":10,"type":"number","checkmust": true},
1828
- "气量异常差值":{"index":11,"type":"number","readonly": true},
1829
- "金额异常差值":{"index":11,"type":"number","readonly": true}
1830
- */
1831
- if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
1832
- if (!this.data.f_collection_type) {
1833
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1834
- delete this.config['燃气表']['items']['累购气量']
1835
- delete this.config['燃气表']['items']['已用气量']
1836
- delete this.config['燃气表']['items']['剩余气量']
1837
- delete this.config['燃气表']['items']['气量异常差值']
1838
- device.f_items.push(
1839
- {
1840
- f_defect_level: null,
1841
- f_device_id: "",
1842
- f_is_defect: "",
1843
- f_item_name: "初始表底",
1844
- isshow: false,
1845
- f_item_value: '',
1846
- f_path: "",
1847
- type: "number"
1848
- },
1849
- {
1850
- f_defect_level: null,
1851
- f_device_id: "",
1852
- f_is_defect: "",
1853
- f_item_name: "累购金额",
1854
- f_item_value: this.item.f_plan_meters[i].f_total_fee,
1855
- f_path: "",
1856
- type: "number"
1857
- },
1858
- {
1859
- f_defect_level: null,
1860
- f_device_id: "",
1861
- f_is_defect: "",
1862
- f_item_name: "已用金额",
1863
- f_item_value: null,
1864
- f_path: "",
1865
- type: "number"
1866
- },
1867
- {
1868
- f_defect_level: null,
1869
- f_device_id: "",
1870
- f_is_defect: "",
1871
- f_item_name: "剩余金额",
1872
- f_item_value: null,
1873
- f_path: "",
1874
- type: "number"
1875
- },
1876
- {
1877
- f_defect_level: null,
1878
- f_device_id: "",
1879
- f_is_defect: "",
1880
- f_item_name: "金额异常差值",
1881
- f_item_value: null,
1882
- f_path: "",
1883
- type: "number"
1884
- }
1885
- )
1886
- console.log('this.config[\'燃气表\'][\'items\'] ===> ' + JSON.stringify(this.config['燃气表']['items']))
1887
- }
1888
- } else
2145
+ if(this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('物联网表') >= 0){
2146
+ //tag
2147
+ this.data['device' + this.devices[de].n].forEach(device => {
2148
+ //tag)
2149
+ if (!this.data.f_collection_type) {
2150
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2151
+ delete this.config['燃气表']['items']['累购气量']
2152
+ delete this.config['燃气表']['items']['已用金额']
2153
+ delete this.config['燃气表']['items']['剩余气量']
2154
+ delete this.config['燃气表']['items']['气量异常差值']
2155
+ delete this.config['燃气表']['items']['金额异常差值']
2156
+ device.f_items.push(
2157
+ {
2158
+ f_defect_level: null,
2159
+ f_device_id: "",
2160
+ f_is_defect: "",
2161
+ f_item_name: "初始表底",
2162
+ isshow: true,
2163
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
2164
+ f_path: "",
2165
+ type: "number"
2166
+ },
2167
+ {
2168
+ f_defect_level: null,
2169
+ f_device_id: "",
2170
+ f_is_defect: "",
2171
+ f_item_name: "累购金额",
2172
+ f_item_value: this.item.f_plan_meters[i].f_total_fee,
2173
+ f_path: "",
2174
+ type: "number"
2175
+ },
2176
+ {
2177
+ f_defect_level: null,
2178
+ f_device_id: "",
2179
+ f_is_defect: "",
2180
+ f_item_name: "已用气量",
2181
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
2182
+ f_path: "",
2183
+ type: "number"
2184
+ },
2185
+ {
2186
+ f_defect_level: null,
2187
+ f_device_id: "",
2188
+ f_is_defect: "",
2189
+ f_item_name: "剩余金额",
2190
+ f_item_value: '',
2191
+ f_path: "",
2192
+ type: "number"
2193
+ },
2194
+ {
2195
+ f_defect_level: null,
2196
+ f_device_id: "",
2197
+ f_is_defect: "",
2198
+ f_item_name: "系统余额",
2199
+ f_item_value: this.item.f_plan_meters[i].f_balance_amount,
2200
+ f_path: "",
2201
+ type: "number"
2202
+ }
2203
+ )
2204
+ //tag)
2205
+ }
2206
+ })
2207
+ } else if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
2208
+ this.data['device' + this.devices[de].n].forEach(device => {
2209
+ //tag)
2210
+ //tag)
2211
+ /*
2212
+ "累购气量":{"index":8,"type":"number","readonly":true},
2213
+ "累购金额":{"index":8,"type":"number","readonly":true},
2214
+ "字轮读数":{"index":9,"type":"number","checkmust": true},
2215
+ "已用金额":{"index":9,"type":"number","checkmust": true},
2216
+ "剩余气量":{"index":10,"type":"number","checkmust": true},
2217
+ "剩余金额":{"index":10,"type":"number","checkmust": true},
2218
+ "气量异常差值":{"index":11,"type":"number","readonly": true},
2219
+ "金额异常差值":{"index":11,"type":"number","readonly": true}
2220
+ */
2221
+ if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
2222
+ if (!this.data.f_collection_type) {
2223
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2224
+ delete this.config['燃气表']['items']['累购气量']
2225
+ delete this.config['燃气表']['items']['已用气量']
2226
+ delete this.config['燃气表']['items']['剩余气量']
2227
+ delete this.config['燃气表']['items']['气量异常差值']
2228
+ delete this.config['燃气表']['items']['系统余额']
2229
+ device.f_items.push(
2230
+ {
2231
+ f_defect_level: null,
2232
+ f_device_id: "",
2233
+ f_is_defect: "",
2234
+ f_item_name: "初始表底",
2235
+ isshow: false,
2236
+ f_item_value: '',
2237
+ f_path: "",
2238
+ type: "number"
2239
+ },
2240
+ {
2241
+ f_defect_level: null,
2242
+ f_device_id: "",
2243
+ f_is_defect: "",
2244
+ f_item_name: "累购金额",
2245
+ f_item_value: this.item.f_plan_meters[i].f_total_fee,
2246
+ f_path: "",
2247
+ type: "number"
2248
+ },
2249
+ {
2250
+ f_defect_level: null,
2251
+ f_device_id: "",
2252
+ f_is_defect: "",
2253
+ f_item_name: "已用金额",
2254
+ f_item_value: null,
2255
+ f_path: "",
2256
+ type: "number"
2257
+ },
2258
+ {
2259
+ f_defect_level: null,
2260
+ f_device_id: "",
2261
+ f_is_defect: "",
2262
+ f_item_name: "剩余金额",
2263
+ f_item_value: null,
2264
+ f_path: "",
2265
+ type: "number"
2266
+ },
2267
+ {
2268
+ f_defect_level: null,
2269
+ f_device_id: "",
2270
+ f_is_defect: "",
2271
+ f_item_name: "金额异常差值",
2272
+ f_item_value: null,
2273
+ f_path: "",
2274
+ type: "number"
2275
+ }
2276
+ )
2277
+ //tag)
2278
+ }
2279
+ } else
1889
2280
  if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
2281
+ if (!this.data.f_collection_type) {
2282
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2283
+ delete this.config['燃气表']['items']['累购金额']
2284
+ delete this.config['燃气表']['items']['已用金额']
2285
+ delete this.config['燃气表']['items']['剩余金额']
2286
+ delete this.config['燃气表']['items']['金额异常差值']
2287
+ delete this.config['燃气表']['items']['系统余额']
2288
+ device.f_items.push(
2289
+ {
2290
+ f_defect_level: null,
2291
+ f_device_id: "",
2292
+ f_is_defect: "",
2293
+ f_item_name: "初始表底",
2294
+ isshow: true,
2295
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
2296
+ f_path: "",
2297
+ type: "number"
2298
+ },
2299
+ {
2300
+ f_defect_level: null,
2301
+ f_device_id: "",
2302
+ f_is_defect: "",
2303
+ f_item_name: "累购气量",
2304
+ f_item_value: this.item.f_plan_meters[i].f_total_gas,
2305
+ f_path: "",
2306
+ type: "number"
2307
+ },
2308
+ {
2309
+ f_defect_level: null,
2310
+ f_device_id: "",
2311
+ f_is_defect: "",
2312
+ f_item_name: "已用气量",
2313
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
2314
+ f_path: "",
2315
+ type: "number"
2316
+ },
2317
+ {
2318
+ f_defect_level: null,
2319
+ f_device_id: "",
2320
+ f_is_defect: "",
2321
+ f_item_name: "剩余气量",
2322
+ f_item_value: "",
2323
+ f_path: "",
2324
+ type: "number"
2325
+ },
2326
+ {
2327
+ f_defect_level: null,
2328
+ f_device_id: "",
2329
+ f_is_defect: "",
2330
+ f_item_name: "气量异常差值",
2331
+ f_item_value: null,
2332
+ f_path: "",
2333
+ type: "number"
2334
+ }
2335
+ )
2336
+ //tag)
2337
+ }
2338
+ }
2339
+ })
2340
+ } else if(this.devices[de].device == "燃气表"){
2341
+ //tag
2342
+ this.data['device' + this.devices[de].n].forEach(device => {
2343
+ //tag)
1890
2344
  if (!this.data.f_collection_type) {
1891
2345
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1892
2346
  delete this.config['燃气表']['items']['累购金额']
1893
2347
  delete this.config['燃气表']['items']['已用金额']
1894
2348
  delete this.config['燃气表']['items']['剩余金额']
1895
2349
  delete this.config['燃气表']['items']['金额异常差值']
2350
+ delete this.config['燃气表']['items']['系统余额']
1896
2351
  device.f_items.push(
1897
2352
  {
1898
2353
  f_defect_level: null,
1899
2354
  f_device_id: "",
1900
2355
  f_is_defect: "",
1901
2356
  f_item_name: "初始表底",
1902
- isshow: false,
2357
+ isshow: true,
1903
2358
  f_item_value: this.item.f_plan_meters[i].f_initial_base,
1904
2359
  f_path: "",
1905
2360
  type: "number"
@@ -1927,7 +2382,7 @@ export default {
1927
2382
  f_device_id: "",
1928
2383
  f_is_defect: "",
1929
2384
  f_item_name: "剩余气量",
1930
- f_item_value: "",
2385
+ f_item_value: '',
1931
2386
  f_path: "",
1932
2387
  type: "number"
1933
2388
  },
@@ -1936,473 +2391,413 @@ export default {
1936
2391
  f_device_id: "",
1937
2392
  f_is_defect: "",
1938
2393
  f_item_name: "气量异常差值",
2394
+ isshow:false,
1939
2395
  f_item_value: null,
1940
2396
  f_path: "",
1941
2397
  type: "number"
1942
2398
  }
1943
2399
  )
1944
- console.log('this.config[\'燃气表\'][\'items\'] ---> ' + JSON.stringify(this.config['燃气表']['items']))
2400
+ //tag)
1945
2401
  }
1946
- }
1947
- })
1948
- }else if(this.devices[de].device == "燃气表"){
1949
- console.log("没有this.item.f_plan_meters[i].f_collection_type")
1950
- this.data['device' + this.devices[de].n].forEach(device => {
1951
- console.log('device ===> ' + JSON.stringify(device))
1952
- if (!this.data.f_collection_type) {
1953
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1954
- delete this.config['燃气表']['items']['累购金额']
1955
- delete this.config['燃气表']['items']['已用金额']
1956
- delete this.config['燃气表']['items']['剩余金额']
1957
- delete this.config['燃气表']['items']['金额异常差值']
1958
- device.f_items.push(
1959
- {
1960
- f_defect_level: null,
1961
- f_device_id: "",
1962
- f_is_defect: "",
1963
- f_item_name: "初始表底",
1964
- isshow: false,
1965
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
1966
- f_path: "",
1967
- type: "number"
1968
- },
1969
- {
1970
- f_defect_level: null,
1971
- f_device_id: "",
1972
- f_is_defect: "",
1973
- f_item_name: "累购气量",
1974
- f_item_value: this.item.f_plan_meters[i].f_total_gas,
1975
- f_path: "",
1976
- type: "number"
1977
- },
1978
- {
1979
- f_defect_level: null,
1980
- f_device_id: "",
1981
- f_is_defect: "",
1982
- f_item_name: "已用气量",
1983
- f_item_value: this.item.f_plan_meters[i].f_meter_base,
1984
- f_path: "",
1985
- type: "number"
1986
- },
1987
- {
1988
- f_defect_level: null,
1989
- f_device_id: "",
1990
- f_is_defect: "",
1991
- f_item_name: "剩余气量",
1992
- f_item_value: '',
1993
- f_path: "",
1994
- type: "number"
1995
- },
1996
- {
1997
- f_defect_level: null,
1998
- f_device_id: "",
1999
- f_is_defect: "",
2000
- f_item_name: "气量异常差值",
2001
- isshow:false,
2002
- f_item_value: null,
2003
- f_path: "",
2004
- type: "number"
2005
- }
2006
- )
2007
- console.log('this.config[\'燃气表\'][\'items\'] ---> ' + JSON.stringify(this.config['燃气表']['items']))
2008
- }
2009
- })
2402
+ })
2403
+ }
2010
2404
  }
2011
2405
  }
2012
2406
  }
2013
2407
  }
2408
+ var pardate = {
2409
+ _this:this,
2410
+ tittle:'安检详情',
2411
+ safe:true
2412
+ }
2413
+ // this.$dispatch('gotoson',pardate)
2414
+ //tag
2415
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2014
2416
  }
2015
- var pardate = {
2016
- _this:this,
2017
- tittle:'安检详情',
2018
- safe:true
2417
+ },
2418
+ watch: {
2419
+ 'row' () {
2420
+ //tag
2421
+ this.copy()
2019
2422
  }
2020
- // this.$dispatch('gotoson',pardate)
2021
- console.log('页面跳转')
2022
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2023
- }
2024
- },
2025
- watch: {
2026
- 'row' () {
2027
- console.log('row changed')
2028
- this.copy()
2029
- }
2030
- },
2031
- async ready () {
2032
- //送气超期功能
2033
- //await this.isoverDate()
2034
- this.putDevices()
2035
- //如果已检,则提取安检单
2036
- if (this.item.f_state != '未检') {
2037
- if (this.role == 'inspect' || this.role == 'androidview') {
2038
- HostApp.__callback__ = this.loaded
2039
- HostApp.__this__ = this
2040
- let that = this
2041
- let value = {}
2042
- console.log('this.item.f_no_checkplan',this.item.f_no_checkplan)
2043
- if (this.role == 'inspect') {
2044
- console.log('this.item.f_no_checkplan', this.item.f_no_checkplan)
2045
- if (this.item.f_no_checkplan == '无计划安检') {
2046
- value = this.$androidUtil.path({
2047
- alias: 'getUserinfomation',
2048
- data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
2049
- })
2423
+ },
2424
+ async ready () {
2425
+ //送气超期功能
2426
+ //await this.isoverDate()
2427
+ this.putDevices()
2428
+ //如果已检,则提取安检单
2429
+ if (this.item.f_state != '未检') {
2430
+ if (this.role == 'inspect' || this.role == 'androidview') {
2431
+ HostApp.__callback__ = this.loaded
2432
+ HostApp.__this__ = this
2433
+ let that = this
2434
+ let value = {}
2435
+ //tag
2436
+ if (this.role == 'inspect') {
2437
+ //tag
2438
+ if (this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {
2439
+ value = this.$androidUtil.path({
2440
+ alias: 'getUserinfomation',
2441
+ data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan in ('无计划安检','复检')"}
2442
+ })
2443
+ } else {
2444
+ value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2445
+ }
2050
2446
  } else {
2051
- value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2052
- }
2053
- } else {
2054
- value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2055
- }
2056
- Util.replaceFalse(value)
2057
- console.log("value:" + JSON.stringify(value))
2058
- if (value.data.length != 0) {
2059
- that.$set('data', value.data[0])
2060
- console.log("this.data.f_collection_type:" + JSON.stringify(this.data.f_collection_type))
2061
- if (this.data.f_collection_type == '按气量') {
2062
- delete this.config['燃气表']['items']['累购金额']
2063
- delete this.config['燃气表']['items']['已用金额']
2064
- delete this.config['燃气表']['items']['剩余金额']
2065
- delete this.config['燃气表']['items']['金额异常差值']
2066
- } else if (this.data.f_collection_type == '按金额') {
2067
- delete this.config['燃气表']['items']['累购气量']
2068
- delete this.config['燃气表']['items']['已用气量']
2069
- delete this.config['燃气表']['items']['剩余气量']
2070
- delete this.config['燃气表']['items']['气量异常差值']
2447
+ value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2071
2448
  }
2072
- console.log("f_devices:" + JSON.stringify(value.data[0].f_devices))
2073
- if (value.data[0].f_devices) {
2074
- for (let da in that.devices) {
2075
- if(typeof that.devices[da]=='function'){
2076
- continue
2077
- }
2078
- that.$set('data.device' + that.devices[da].n, [])
2449
+ Util.replaceFalse(value)
2450
+ //tag)
2451
+ if (value.data.length != 0) {
2452
+ that.$set('data', value.data[0])
2453
+ //tag)
2454
+ if (this.data.f_collection_type == '按气量') {
2455
+ delete this.config['燃气表']['items']['累购金额']
2456
+ delete this.config['燃气表']['items']['已用金额']
2457
+ delete this.config['燃气表']['items']['剩余金额']
2458
+ delete this.config['燃气表']['items']['金额异常差值']
2459
+ delete this.config['燃气表']['items']['系统余额']
2460
+ } else if (this.data.f_collection_type == '按金额') {
2461
+ delete this.config['燃气表']['items']['累购气量']
2462
+ delete this.config['燃气表']['items']['已用气量']
2463
+ delete this.config['燃气表']['items']['剩余气量']
2464
+ delete this.config['燃气表']['items']['气量异常差值']
2465
+ delete this.config['燃气表']['items']['系统余额']
2079
2466
  }
2080
- value.data[0].f_devices.forEach((item) => {
2081
- console.log('回写数据=>' + JSON.stringify(item))
2082
- for (let i in item.f_items) {
2083
- if(typeof item.f_items[i]=='function'){
2467
+ //tag)
2468
+ if (value.data[0].f_devices) {
2469
+ for (let da in that.devices) {
2470
+ if(typeof that.devices[da]=='function'){
2084
2471
  continue
2085
2472
  }
2086
- // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
2087
- // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
2088
- // }
2089
- for (let de in that.config[item.f_device_type].items) {
2090
- if(typeof that.config[item.f_device_type].items[de]=='function'){
2473
+ that.$set('data.device' + that.devices[da].n, [])
2474
+ }
2475
+ value.data[0].f_devices.forEach((item) => {
2476
+ //tag)
2477
+ for (let i in item.f_items) {
2478
+ if(typeof item.f_items[i]=='function'){
2091
2479
  continue
2092
2480
  }
2093
- if (item.f_items[i].f_item_name == de) {
2094
- if (that.config[item.f_device_type].items[de].type == 'selector' || that.config[item.f_device_type].items[de].type == 'checkbox') {
2095
- item.f_items[i].f_item_value = []
2096
- } else {
2097
- item.f_items[i].f_item_value = ''
2481
+ // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
2482
+ // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
2483
+ // }
2484
+ for (let de in that.config[item.f_device_type].items) {
2485
+ if(typeof that.config[item.f_device_type].items[de]=='function'){
2486
+ continue
2487
+ }
2488
+ if (item.f_items[i].f_item_name == de) {
2489
+ if (that.config[item.f_device_type].items[de].type == 'selector' || that.config[item.f_device_type].items[de].type == 'checkbox') {
2490
+ item.f_items[i].f_item_value = []
2491
+ } else {
2492
+ item.f_items[i].f_item_value = ''
2493
+ }
2098
2494
  }
2099
2495
  }
2100
- }
2101
- console.log('回写数据item.f_items[i]=======>' + JSON.stringify(item.f_items[i]))
2496
+ //tag)
2102
2497
 
2103
- // if (item.f_items[i].f_item_name=='累购气量'){
2104
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
2105
- // }else if (item.f_items[i].f_item_name=='累购金额'){
2106
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
2107
- // }else if (item.f_items[i].f_item_name=='基表编号'){
2108
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
2109
- // }else if (item.f_items[i].f_item_name=='气表品牌'){
2110
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
2111
- // }else if (item.f_items[i].f_item_name=='进气方向'){
2112
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
2113
- // }else if (item.f_items[i].f_item_name=='气表型号'){
2114
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
2115
- // }else if (item.f_items[i].f_item_name=='表箱号'){
2116
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
2117
- // }
2118
- // else{
2498
+ // if (item.f_items[i].f_item_name=='累购气量'){
2499
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
2500
+ // }else if (item.f_items[i].f_item_name=='累购金额'){
2501
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
2502
+ // }else if (item.f_items[i].f_item_name=='基表编号'){
2503
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
2504
+ // }else if (item.f_items[i].f_item_name=='气表品牌'){
2505
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
2506
+ // }else if (item.f_items[i].f_item_name=='进气方向'){
2507
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
2508
+ // }else if (item.f_items[i].f_item_name=='气表型号'){
2509
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
2510
+ // }else if (item.f_items[i].f_item_name=='表箱号'){
2511
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
2512
+ // }
2513
+ // else{
2119
2514
  for (let j in item.f_items[i].f_item_lists) {
2120
2515
  if(typeof item.f_items[i].f_item_lists[j]=='function'){
2121
2516
  continue
2122
2517
  }
2123
- console.log('回写数据item.f_items.f_item_lists[j]=======>' + JSON.stringify(item.f_items[i].f_item_lists[j]))
2518
+ //tag)
2124
2519
  if (item.f_items[i].f_item_value instanceof Array) {
2125
2520
  item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
2126
2521
  } else {
2127
2522
  item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
2128
2523
  }
2129
2524
  }
2130
- // }
2525
+ // }
2131
2526
 
2132
- }
2133
- for (let de in that.devices) {
2134
- if(typeof that.devices[de]=='function'){
2135
- continue
2136
2527
  }
2137
- if (that.devices[de].device == item.f_device_type) {
2138
- that.data['device' + that.devices[de].n].push({
2139
- f_device_type: item.f_device_type,
2140
- f_items: item.f_items
2141
- })
2142
- console.log("device:" + JSON.stringify(that.data['device' + that.devices[de].n]))
2528
+ for (let de in that.devices) {
2529
+ if(typeof that.devices[de]=='function'){
2530
+ continue
2531
+ }
2532
+ if (that.devices[de].device == item.f_device_type) {
2533
+ that.data['device' + that.devices[de].n].push({
2534
+ f_device_type: item.f_device_type,
2535
+ f_items: item.f_items
2536
+ })
2537
+ //tag)
2538
+ }
2143
2539
  }
2540
+ })
2541
+ if (this.role == 'androidview') {
2542
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2543
+ Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
2544
+ Util.booleanFilter(that.data)
2545
+ }
2546
+ //tag)
2547
+ }
2548
+ } else {
2549
+ //tag
2550
+ this.init()
2551
+ }
2552
+ if(this.parentPage && this.parentPage=='CurrentCreate'){
2553
+ //tag
2554
+ let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2555
+ if (isRecodr) {
2556
+ if (isRecodr=='true') {
2557
+ this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2558
+ // 初始化录音
2559
+ let resse = this.record()
2144
2560
  }
2145
- })
2146
- if (this.role == 'androidview') {
2147
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2148
- Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
2149
- Util.booleanFilter(that.data)
2150
2561
  }
2151
- console.log('回写数据完成后'+JSON.stringify(that.data))
2152
2562
  }
2563
+ //tag
2564
+ var pardate = {
2565
+ _this:this,
2566
+ tittle:'安检详情',
2567
+ safe:true
2568
+ }
2569
+ // this.$dispatch('gotoson',pardate)getImgPath
2570
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2153
2571
  } else {
2154
- console.log("该安检单可能已不在本地!")
2155
- this.init()
2572
+ let that = this
2573
+ let id
2574
+ if (this.role == 'view') {
2575
+ id = this.item.id
2576
+ }
2577
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2578
+ if (respanse.data.length != 0) {
2579
+ that.data = Object.assign(that.data,respanse.data[0])
2580
+ if(respanse.data[0].f_devices) {
2581
+ for (let da in that.devices) {
2582
+ that.$set('data.device' + that.devices[da].n, [])
2583
+ }
2584
+ respanse.data[0].f_devices.forEach((item) => {
2585
+ for (let de in that.devices) {
2586
+ if (that.devices[de].device == item.f_device_type) {
2587
+ that.data['device' + that.devices[de].n].push({
2588
+ f_device_type: item.f_device_type,
2589
+ f_items: item.f_items
2590
+ })
2591
+ }
2592
+ }
2593
+ })
2594
+ }
2595
+ Util.replaceFalse(that.data)
2596
+ Util.booleanFilter(that.data)
2597
+ if(this.role == 'view'){
2598
+ Util.ratifyPics(that.data)
2599
+ }else{
2600
+ Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2601
+ }
2602
+ //tag
2603
+ } else {
2604
+ alert("该安检单可能已不在本地!")
2605
+ this.init()
2606
+ }
2607
+ var pardate = {
2608
+ _this:this,
2609
+ tittle:'安检详情',
2610
+ safe:true
2611
+ }
2612
+ // this.$dispatch('gotoson',pardate)
2613
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2614
+ }
2615
+ ).catch(
2616
+ (respanse) => {
2617
+ alert('查找安检单失败')
2618
+ })
2156
2619
  }
2620
+ }else{
2157
2621
  if(this.parentPage && this.parentPage=='CurrentCreate'){
2158
- console.log("开始录音--------------------------")
2622
+ //tag
2159
2623
  let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2160
2624
  if (isRecodr) {
2161
2625
  if (isRecodr=='true') {
2162
- this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2626
+ // this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2163
2627
  // 初始化录音
2164
2628
  let resse = this.record()
2165
2629
  }
2166
2630
  }
2167
2631
  }
2168
- console.log('页面跳转')
2169
- var pardate = {
2170
- _this:this,
2171
- tittle:'安检详情',
2172
- safe:true
2173
- }
2174
- // this.$dispatch('gotoson',pardate)getImgPath
2175
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2176
- } else {
2177
- let that = this
2178
- let id
2179
- if (this.role == 'view') {
2180
- id = this.item.id
2181
- }
2182
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2183
- if (respanse.data.length != 0) {
2184
- that.data = Object.assign(that.data,respanse.data[0])
2185
- if(respanse.data[0].f_devices) {
2186
- for (let da in that.devices) {
2187
- that.$set('data.device' + that.devices[da].n, [])
2188
- }
2189
- respanse.data[0].f_devices.forEach((item) => {
2190
- for (let de in that.devices) {
2191
- if (that.devices[de].device == item.f_device_type) {
2192
- that.data['device' + that.devices[de].n].push({
2193
- f_device_type: item.f_device_type,
2194
- f_items: item.f_items
2195
- })
2196
- }
2197
- }
2198
- })
2199
- }
2200
- Util.replaceFalse(that.data)
2201
- Util.booleanFilter(that.data)
2202
- if(this.role == 'view'){
2203
- Util.ratifyPics(that.data)
2204
- }else{
2205
- Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2206
- }
2207
- console.log("that.data:", that.data)
2208
- } else {
2209
- alert("该安检单可能已不在本地!")
2210
- this.init()
2211
- }
2212
- var pardate = {
2213
- _this:this,
2214
- tittle:'安检详情',
2215
- safe:true
2216
- }
2217
- // this.$dispatch('gotoson',pardate)
2218
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2219
- }
2220
- ).catch(
2221
- (respanse) => {
2222
- alert('查找安检单失败')
2223
- })
2632
+ this.init()
2224
2633
  }
2225
- }else{
2226
- if(this.parentPage && this.parentPage=='CurrentCreate'){
2227
- console.log("开始录音--------------------------")
2228
- let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2229
- if (isRecodr) {
2230
- if (isRecodr=='true') {
2231
- this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2232
- // 初始化录音
2233
- let resse = this.record()
2234
- }
2235
- }
2634
+ // tbs合并数组
2635
+ // if( this.model.serviceacitivity[0].servicerepair.length > 0){
2636
+ // for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
2637
+ //
2638
+ // }
2639
+ // }
2640
+ },
2641
+ components: {
2642
+ // 'door-service': DoorService,
2643
+ // 'repair-info': RepairInfo,
2644
+ // 'repair-user-info': RepairUserInfo,
2645
+ // 'outlay': Outlay,
2646
+ // 'fault-all': FaultAll,
2647
+ // 'repair-details':RepairDetails
2648
+ // 'pipeline': Pipeline,
2649
+ // 'device-service': DeviceService,
2650
+ // 'trouble-removal': TroubleRemoval,
2651
+ // 'cooking-utensils': CookingUtensils,
2652
+ // 'repair-matter-info': RepairMatterInfo,
2653
+ // 'first-gas-check': FirstGasCheck,
2654
+ // 'tel-change-matter': TelChangeMatter/
2655
+ },
2656
+ events: {
2657
+ 'tijiao': function () {
2658
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
2659
+ this.confirm()
2236
2660
  }
2237
- this.init()
2238
- }
2239
- // tbs合并数组
2240
- // if( this.model.serviceacitivity[0].servicerepair.length > 0){
2241
- // for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
2242
- //
2243
- // }
2244
- // }
2245
- },
2246
- components: {
2247
- // 'door-service': DoorService,
2248
- // 'repair-info': RepairInfo,
2249
- // 'repair-user-info': RepairUserInfo,
2250
- // 'outlay': Outlay,
2251
- // 'fault-all': FaultAll,
2252
- // 'repair-details':RepairDetails
2253
- // 'pipeline': Pipeline,
2254
- // 'device-service': DeviceService,
2255
- // 'trouble-removal': TroubleRemoval,
2256
- // 'cooking-utensils': CookingUtensils,
2257
- // 'repair-matter-info': RepairMatterInfo,
2258
- // 'first-gas-check': FirstGasCheck,
2259
- // 'tel-change-matter': TelChangeMatter/
2260
- },
2261
- events: {
2262
- 'tijiao': function () {
2263
- // 事件回调内的 `this` 自动绑定到注册它的实例上
2264
- this.confirm()
2265
2661
  }
2266
2662
  }
2267
- }
2268
2663
  </script>
2269
2664
  <style lang="less">
2270
- @import "../../../src/bootstrap/less/variables.less";
2271
- .noclickbut {
2272
- pointer-events: none;
2273
- }
2274
- .tab-befor-img (@url) {
2275
- content: '';
2276
- background-image: url("@{url}");
2277
- background-size: 20px;
2278
- display: inline-block;
2279
- margin-right: 8px;
2280
- margin-top: 0.3em;
2281
- height: 1.3em;
2282
- width: 1.3em;
2283
- vertical-align: -35%;
2284
- }
2665
+ @import "../../../src/bootstrap/less/variables.less";
2666
+ .noclickbut {
2667
+ pointer-events: none;
2668
+ }
2669
+ .tab-befor-img (@url) {
2670
+ content: '';
2671
+ background-image: url("@{url}");
2672
+ background-size: 20px;
2673
+ display: inline-block;
2674
+ margin-right: 8px;
2675
+ margin-top: 0.3em;
2676
+ height: 1.3em;
2677
+ width: 1.3em;
2678
+ vertical-align: -35%;
2679
+ }
2285
2680
 
2286
- @media screen and (min-width: 768px) {
2287
- .android-repair-order > div > ul a {
2288
- font-size: @font-size-h2;
2289
- margin: 0.3em 0;
2681
+ @media screen and (min-width: 768px) {
2682
+ .android-repair-order > div > ul a {
2683
+ font-size: @font-size-h2;
2684
+ margin: 0.3em 0;
2685
+ }
2290
2686
  }
2291
- }
2292
- .repair-details-class{
2293
- &::before {
2294
- .tab-befor-img("../../assets/huneiweixiu1.png");
2687
+ .repair-details-class{
2688
+ &::before {
2689
+ .tab-befor-img("../../assets/huneiweixiu1.png");
2690
+ }
2295
2691
  }
2296
- }
2297
- .repair-info-class {
2298
- &::before {
2299
- .tab-befor-img("../../assets/baoxiuxinxi1.png");
2692
+ .repair-info-class {
2693
+ &::before {
2694
+ .tab-befor-img("../../assets/baoxiuxinxi1.png");
2695
+ }
2300
2696
  }
2301
- }
2302
- .repair-user-info-class {
2303
- &::before {
2304
- .tab-befor-img("../../assets/jibenxinxi1.png")
2697
+ .repair-user-info-class {
2698
+ &::before {
2699
+ .tab-befor-img("../../assets/jibenxinxi1.png")
2700
+ }
2305
2701
  }
2306
- }
2307
2702
 
2308
- .door-service-class {
2309
- &::before {
2310
- .tab-befor-img("../../assets/huneiweixiu1.png")
2703
+ .door-service-class {
2704
+ &::before {
2705
+ .tab-befor-img("../../assets/huneiweixiu1.png")
2706
+ }
2311
2707
  }
2312
- }
2313
2708
 
2314
- .pipeline-class {
2315
- &::before {
2316
- .tab-befor-img("../../assets/guandao1.png")
2709
+ .pipeline-class {
2710
+ &::before {
2711
+ .tab-befor-img("../../assets/guandao1.png")
2712
+ }
2317
2713
  }
2318
- }
2319
2714
 
2320
- .device-service-class {
2321
- &::before {
2322
- .tab-befor-img("../../assets/shebeiweixiu1.png")
2715
+ .device-service-class {
2716
+ &::before {
2717
+ .tab-befor-img("../../assets/shebeiweixiu1.png")
2718
+ }
2323
2719
  }
2324
- }
2325
2720
 
2326
- .trouble-removal-class {
2327
- &::before {
2328
- .tab-befor-img("../../assets/shiguchuli.png")
2721
+ .trouble-removal-class {
2722
+ &::before {
2723
+ .tab-befor-img("../../assets/shiguchuli.png")
2724
+ }
2329
2725
  }
2330
- }
2331
2726
 
2332
- .cooking-utensils-class {
2333
- &::before {
2334
- .tab-befor-img("../../assets/zaoju1.png")
2727
+ .cooking-utensils-class {
2728
+ &::before {
2729
+ .tab-befor-img("../../assets/zaoju1.png")
2730
+ }
2335
2731
  }
2336
- }
2337
2732
 
2338
- .outlay-class {
2339
- &::before {
2340
- .tab-befor-img("../../assets/feiyong1.png")
2733
+ .outlay-class {
2734
+ &::before {
2735
+ .tab-befor-img("../../assets/feiyong1.png")
2736
+ }
2341
2737
  }
2342
- }
2343
2738
 
2344
- .fault-all-class {
2345
- &::before {
2346
- .tab-befor-img("../../assets/guzhanghuizong1.png")
2739
+ .fault-all-class {
2740
+ &::before {
2741
+ .tab-befor-img("../../assets/guzhanghuizong1.png")
2742
+ }
2347
2743
  }
2348
- }
2349
- .photo-write-class {
2350
- &::before {
2351
- .tab-befor-img("../../assets/zaoju.png")
2744
+ .photo-write-class {
2745
+ &::before {
2746
+ .tab-befor-img("../../assets/zaoju.png")
2747
+ }
2352
2748
  }
2353
- }
2354
- .delay-apply-class {
2355
- &::before {
2356
- .tab-befor-img("../../assets/yonghubaoxiu.png")
2749
+ .delay-apply-class {
2750
+ &::before {
2751
+ .tab-befor-img("../../assets/yonghubaoxiu.png")
2752
+ }
2357
2753
  }
2358
- }
2359
2754
 
2360
- .repair-back-class {
2361
- &::before {
2362
- .tab-befor-img("../../assets/fanhui.png")
2755
+ .repair-back-class {
2756
+ &::before {
2757
+ .tab-befor-img("../../assets/fanhui.png")
2758
+ }
2363
2759
  }
2364
- }
2365
- .butt2 {
2366
- display: inline;
2367
- float: right;
2368
- width: 10px;
2369
- text-align: center;
2370
- align-items:center;
2371
- position: absolute;
2372
- top:50%;
2760
+ .butt2 {
2761
+ display: inline;
2762
+ float: right;
2763
+ width: 10px;
2764
+ text-align: center;
2765
+ align-items:center;
2766
+ position: absolute;
2767
+ top:50%;
2373
2768
 
2374
- left:90%;
2375
- transform: translate(-50%,-50%);
2376
- }
2377
- .linesty{
2378
- display: inline-block;
2379
- height:1px;
2380
- width:100%;
2381
- background:#d0d0d0;
2382
- overflow:hidden;
2383
- vertical-align: middle;
2384
- }
2385
- .spanboder{
2386
- border-bottom:2px solid #499edf;
2387
- padding-bottom: 8px
2388
- }
2389
- .app-botton {
2390
- position:fixed;
2391
- background: #87b2dd;
2392
- right:8px;
2393
- color: #FFF;
2394
- padding: 8px;
2395
- text-align: center;
2396
- font-size: 1.2em;
2397
- z-index: 10;
2398
- opacity:0.5;
2399
- bottom: 50px;
2400
- margin-top: -10px;
2401
- height: 40px;
2402
- }
2403
- .android-repair-order > div > ul a {
2404
- font-size: 12px;
2405
- color: #333333;
2406
- padding: 13px 16px;
2407
- }
2769
+ left:90%;
2770
+ transform: translate(-50%,-50%);
2771
+ }
2772
+ .linesty{
2773
+ display: inline-block;
2774
+ height:1px;
2775
+ width:100%;
2776
+ background:#d0d0d0;
2777
+ overflow:hidden;
2778
+ vertical-align: middle;
2779
+ }
2780
+ .spanboder{
2781
+ border-bottom:2px solid #499edf;
2782
+ padding-bottom: 8px
2783
+ }
2784
+ .app-botton {
2785
+ position:fixed;
2786
+ background: #87b2dd;
2787
+ right:8px;
2788
+ color: #FFF;
2789
+ padding: 8px;
2790
+ text-align: center;
2791
+ font-size: 1.2em;
2792
+ z-index: 10;
2793
+ opacity:0.5;
2794
+ bottom: 50px;
2795
+ margin-top: -10px;
2796
+ height: 40px;
2797
+ }
2798
+ .android-repair-order > div > ul a {
2799
+ font-size: 12px;
2800
+ color: #333333;
2801
+ padding: 13px 16px;
2802
+ }
2408
2803
  </style>