safecheck-client 3.0.39-8 → 3.0.39-80

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 (312) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  34. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +5 -5
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/Widget.vue +13 -13
  49. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  50. package/src/android-bootstrap/less/.csscomb.json +304 -304
  51. package/src/android-bootstrap/less/.csslintrc +19 -19
  52. package/src/android-bootstrap/less/alerts.less +73 -73
  53. package/src/android-bootstrap/less/badges.less +66 -66
  54. package/src/android-bootstrap/less/bootstrap.less +56 -56
  55. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  56. package/src/android-bootstrap/less/button-groups.less +247 -247
  57. package/src/android-bootstrap/less/buttons.less +173 -173
  58. package/src/android-bootstrap/less/carousel.less +269 -269
  59. package/src/android-bootstrap/less/close.less +34 -34
  60. package/src/android-bootstrap/less/code.less +69 -69
  61. package/src/android-bootstrap/less/component-animations.less +33 -33
  62. package/src/android-bootstrap/less/grid.less +84 -84
  63. package/src/android-bootstrap/less/input-groups.less +167 -167
  64. package/src/android-bootstrap/less/jumbotron.less +52 -52
  65. package/src/android-bootstrap/less/labels.less +64 -64
  66. package/src/android-bootstrap/less/list-group.less +141 -141
  67. package/src/android-bootstrap/less/media.less +66 -66
  68. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  69. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  70. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  71. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  72. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  73. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  74. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  75. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  76. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  77. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  78. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  79. package/src/android-bootstrap/less/mixins/image.less +33 -33
  80. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  81. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  82. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  83. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  84. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  85. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  86. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  87. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  88. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  89. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  90. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  91. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  92. package/src/android-bootstrap/less/mixins/size.less +10 -10
  93. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  94. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  95. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  96. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  97. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  98. package/src/android-bootstrap/less/mixins.less +40 -40
  99. package/src/android-bootstrap/less/modals.less +151 -151
  100. package/src/android-bootstrap/less/navbar.less +660 -660
  101. package/src/android-bootstrap/less/navs.less +290 -290
  102. package/src/android-bootstrap/less/normalize.less +424 -424
  103. package/src/android-bootstrap/less/pager.less +76 -76
  104. package/src/android-bootstrap/less/pagination.less +89 -89
  105. package/src/android-bootstrap/less/panels.less +274 -274
  106. package/src/android-bootstrap/less/popovers.less +131 -131
  107. package/src/android-bootstrap/less/print.less +101 -101
  108. package/src/android-bootstrap/less/progress-bars.less +87 -87
  109. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  110. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  111. package/src/android-bootstrap/less/scaffolding.less +161 -161
  112. package/src/android-bootstrap/less/tables.less +262 -262
  113. package/src/android-bootstrap/less/theme.less +291 -291
  114. package/src/android-bootstrap/less/thumbnails.less +36 -36
  115. package/src/android-bootstrap/less/tooltip.less +102 -102
  116. package/src/android-bootstrap/less/type.less +303 -303
  117. package/src/android-bootstrap/less/utilities.less +55 -55
  118. package/src/android-bootstrap/less/variables.less +896 -896
  119. package/src/android-bootstrap/less/wells.less +29 -29
  120. package/src/assets//345/256/232/344/275/215.png +0 -0
  121. package/src/bootstrap/less/.csscomb.json +304 -304
  122. package/src/bootstrap/less/.csslintrc +19 -19
  123. package/src/bootstrap/less/alerts.less +73 -73
  124. package/src/bootstrap/less/badges.less +66 -66
  125. package/src/bootstrap/less/breadcrumbs.less +26 -26
  126. package/src/bootstrap/less/button-groups.less +247 -247
  127. package/src/bootstrap/less/buttons.less +172 -172
  128. package/src/bootstrap/less/carousel.less +269 -269
  129. package/src/bootstrap/less/close.less +34 -34
  130. package/src/bootstrap/less/code.less +69 -69
  131. package/src/bootstrap/less/component-animations.less +33 -33
  132. package/src/bootstrap/less/dropdowns.less +216 -216
  133. package/src/bootstrap/less/grid.less +84 -84
  134. package/src/bootstrap/less/input-groups.less +167 -167
  135. package/src/bootstrap/less/jumbotron.less +52 -52
  136. package/src/bootstrap/less/labels.less +64 -64
  137. package/src/bootstrap/less/list-group.less +141 -141
  138. package/src/bootstrap/less/media.less +66 -66
  139. package/src/bootstrap/less/mixins/alerts.less +14 -14
  140. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  141. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  142. package/src/bootstrap/less/mixins/buttons.less +69 -69
  143. package/src/bootstrap/less/mixins/center-block.less +7 -7
  144. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  145. package/src/bootstrap/less/mixins/forms.less +90 -90
  146. package/src/bootstrap/less/mixins/gradients.less +59 -59
  147. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  148. package/src/bootstrap/less/mixins/grid.less +122 -122
  149. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  150. package/src/bootstrap/less/mixins/image.less +33 -33
  151. package/src/bootstrap/less/mixins/labels.less +12 -12
  152. package/src/bootstrap/less/mixins/list-group.less +30 -30
  153. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  154. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  155. package/src/bootstrap/less/mixins/opacity.less +8 -8
  156. package/src/bootstrap/less/mixins/pagination.less +24 -24
  157. package/src/bootstrap/less/mixins/panels.less +24 -24
  158. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  159. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  160. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  161. package/src/bootstrap/less/mixins/resize.less +6 -6
  162. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  163. package/src/bootstrap/less/mixins/size.less +10 -10
  164. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  165. package/src/bootstrap/less/mixins/table-row.less +44 -44
  166. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  167. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  168. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  169. package/src/bootstrap/less/mixins.less +40 -40
  170. package/src/bootstrap/less/modals.less +151 -151
  171. package/src/bootstrap/less/navbar.less +660 -660
  172. package/src/bootstrap/less/normalize.less +424 -424
  173. package/src/bootstrap/less/pagination.less +89 -89
  174. package/src/bootstrap/less/panels.less +275 -275
  175. package/src/bootstrap/less/popovers.less +131 -131
  176. package/src/bootstrap/less/print.less +101 -101
  177. package/src/bootstrap/less/progress-bars.less +87 -87
  178. package/src/bootstrap/less/responsive-embed.less +35 -35
  179. package/src/bootstrap/less/responsive-utilities.less +194 -194
  180. package/src/bootstrap/less/scaffolding.less +161 -161
  181. package/src/bootstrap/less/theme.less +291 -291
  182. package/src/bootstrap/less/thumbnails.less +36 -36
  183. package/src/bootstrap/less/tooltip.less +102 -102
  184. package/src/bootstrap/less/type.less +303 -303
  185. package/src/bootstrap/less/utilities.less +55 -55
  186. package/src/bootstrap/less/wells.less +29 -29
  187. package/src/components/FileUpload.vue +696 -696
  188. package/src/components/Hello.vue +39 -39
  189. package/src/components/LeftTree.vue +27 -27
  190. package/src/components/Util/ImgSelfSafePlus.vue +2 -2
  191. package/src/components/android/AndroidDefectDeal.vue +2 -2
  192. package/src/components/android/AttendanceTally.vue +116 -116
  193. package/src/components/android/Blank.vue +10 -10
  194. package/src/components/android/CheckUnplanPage.vue +56 -56
  195. package/src/components/android/Checker.vue +12 -12
  196. package/src/components/android/CheckerAnnual.vue +81 -81
  197. package/src/components/android/CheckerAvarta.vue +82 -82
  198. package/src/components/android/EquipmentInspection.vue +348 -348
  199. package/src/components/android/FootprintMap.vue +120 -120
  200. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  201. package/src/components/android/MasterMain.vue +77 -77
  202. package/src/components/android/Menu.vue +132 -132
  203. package/src/components/android/NewCheckpaperAndroid.vue +2 -2
  204. package/src/components/android/PaperAlarm.vue +85 -85
  205. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  206. package/src/components/android/PhoneUpUserinfo.vue +11 -0
  207. package/src/components/android/PlumberAnnual.vue +83 -83
  208. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  209. package/src/components/android/PlumberMonthly.vue +84 -84
  210. package/src/components/android/PostMap.vue +83 -83
  211. package/src/components/android/QueryCheckHistory.vue +122 -122
  212. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  213. package/src/components/android/RepairMain.vue +60 -60
  214. package/src/components/android/Repairman.vue +12 -12
  215. package/src/components/android/StationMaster.vue +12 -12
  216. package/src/components/android/rejectInspecCheck.vue +322 -0
  217. package/src/components/defects/DefectModal.vue +101 -101
  218. package/src/components/defects/DevicesAndItem.vue +39 -39
  219. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  220. package/src/components/notice/NoticeForm.vue +100 -100
  221. package/src/components/notice/NoticeIssue.vue +20 -20
  222. package/src/components/paper/PicViewer.vue +18 -18
  223. package/src/components/pc/AddPlanItemYyChange.vue +5 -1
  224. package/src/components/pc/NewCheckpaper.vue +108 -14
  225. package/src/components/pc/PaperDefectMain.vue +1 -1
  226. package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
  227. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  228. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  229. package/src/components/phonestate/PostMap.vue +82 -82
  230. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  231. package/src/components/rongcheng/PaperStatem.vue +6 -6
  232. package/src/components/rongcheng/PhoneUpUserinfo.vue +1 -0
  233. package/src/components/userfile/MeterFile.vue +145 -145
  234. package/src/components/userfile/MeterModify.vue +46 -46
  235. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  236. package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -0
  237. package/src/filiale/BFshiye/android/PhoneUpUserinfo.vue +3 -1
  238. package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +861 -861
  239. package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -0
  240. package/src/filiale/BFshiye/pc/NewCheckpaper.vue +18 -56
  241. package/src/filiale/BFshiye/pc.js +3 -2
  242. package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -0
  243. package/src/filiale/baiyin/android.js +1 -0
  244. package/src/filiale/bayan/pc/NewCheckpaper.vue +2 -2
  245. package/src/filiale/bayan/pc/SelectAreaReport.vue +1 -0
  246. package/src/filiale/bayan/pc/SummaryOfSecurityInspectionProgress.vue +7 -7
  247. package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
  248. package/src/filiale/dexin/android/SafecheckOrderVTemp.vue +4 -1
  249. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +2 -2
  250. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +1 -1
  251. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +6 -1
  252. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  253. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +1 -1
  254. package/src/filiale/huatong/android/SafecheckOrderV.vue +2 -2
  255. package/src/filiale/jiaocheng/pc/NewCheckpaper.vue +64 -4
  256. package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
  257. package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +183 -145
  258. package/src/filiale/jinhuang/android.js +2 -1
  259. package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1550
  260. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1 -1
  261. package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
  262. package/src/filiale/kelai/android/SafecheckUserInfo.vue +1 -1
  263. package/src/filiale/kelai/pc/PaperList.vue +13 -0
  264. package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
  265. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +4 -6
  266. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
  267. package/src/filiale/liaoyuan/pc/checkPlanList.vue +2 -3
  268. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +125 -38
  269. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  270. package/src/filiale/qingjian/android/SafecheckOrderV.vue +3 -0
  271. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +42 -19
  272. package/src/filiale/rongchuang/android/AddPlanItemVisitingWithoutMeeting.vue +454 -0
  273. package/src/filiale/rongchuang/android/AddPlanItemYy.vue +498 -0
  274. package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
  275. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
  276. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +3 -2
  277. package/src/filiale/rongchuang/android.js +3 -0
  278. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +13 -1
  279. package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
  280. package/src/filiale/rongchuang/pc.js +1 -0
  281. package/src/filiale/shanxian/pc/NewCheckpaper.vue +4 -4
  282. package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +58 -24
  283. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +888 -889
  284. package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
  285. package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
  286. package/src/filiale/tongchuan/pc/CheckPlanCountChartAreaByWangGeYuan.vue +137 -0
  287. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +47 -1
  288. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +46 -0
  289. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +34 -0
  290. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +34 -0
  291. package/src/filiale/tongchuan/pc/PaperList.vue +44 -10
  292. package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -0
  293. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +42 -2
  294. package/src/filiale/tongchuan/pc.js +3 -0
  295. package/src/filiale/wenxi/pc/PaperList.vue +9 -3
  296. package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
  297. package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
  298. package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +2 -1
  299. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
  300. package/src/plugins/LoadData.js +10 -10
  301. package/src/plugins/LoadParams.js +24 -24
  302. package/src/safecheck-android.js +1 -0
  303. package/src/stores/wxconfig.js +10 -10
  304. package/src/utils/getNowDate.js +33 -33
  305. package/test/e2e/custom-assertions/elementCount.js +26 -26
  306. package/test/e2e/nightwatch.conf.js +40 -40
  307. package/test/e2e/runner.js +30 -30
  308. package/test/e2e/specs/test.js +13 -13
  309. package/test/unit/.eslintrc +5 -5
  310. package/test/unit/TestUtil.js +62 -62
  311. package/test/unit/context.html +20 -20
  312. package/test/unit/index.js +13 -13
@@ -253,7 +253,7 @@ export default {
253
253
  page:{},
254
254
  selectindex:null,
255
255
  lives:[{label: '是', value: '是'},{label: '否', value: '否'}],
256
- deals:[{label: '现场处理', value: '现场处理'},{label: '自行处理', value: '自行处理'}],
256
+ deals:[{label: '自行处理', value: '自行处理'},{label: '现场整改', value: '现场整改'}],
257
257
  f_live_dispose:'否',
258
258
  f_deal_dispose:'未处理',
259
259
  // 初始表底
@@ -30,7 +30,7 @@
30
30
  <div class="panel-body ">
31
31
  <div class="row auto">
32
32
  <div class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
33
- <div class="col-xs-3 col-sm-3 col-md-3" v-if="parentPage=='CurrentCreate'">
33
+ <div class="col-xs-3 col-sm-3 col-md-3" v-if="parentPage=='CurrentCreate' || parentPage=='AddPlanItemYy'">
34
34
  <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="save('temp')">
35
35
  临时保存
36
36
  </button>
@@ -160,6 +160,7 @@ import AppInstallationMaterial from './AppInstallationMaterial'
160
160
  data: {
161
161
  f_devices: [],
162
162
  f_defect_content:'',
163
+ f_repair_approved_note:'',
163
164
  f_recording1_path:'',
164
165
  f_visit_number:'',
165
166
  f_remark:''
@@ -1035,7 +1036,7 @@ import AppInstallationMaterial from './AppInstallationMaterial'
1035
1036
  alias: 'getUserinfomation',
1036
1037
  data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
1037
1038
  })
1038
- if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') && this.item.f_no_checkplan != '打回') {
1039
+ if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检' || this.item.f_no_checkplan == '预约安检') && this.item.f_no_checkplan != '打回') {
1039
1040
  codata.f_devices = this.f_devices
1040
1041
  if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1041
1042
  this.rowCodata = Object.assign({},this.rowCodata,codata)
@@ -9,6 +9,9 @@ let specialComp = {
9
9
  'checkpapermsg': (resolve) => { require(['./android/checkpapermsg'], resolve) },
10
10
  'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
11
11
  'switch-valve': (resolve) => { require(['./android/SwitchValve'], resolve) },
12
+ 'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo'], resolve) },
13
+ 'add-plan-item-yy': (resolve) => { require(['./android/AddPlanItemYy'], resolve) },
14
+ 'add-plan-item-vwm': (resolve) => { require(['./android/AddPlanItemVisitingWithoutMeeting'], resolve) },
12
15
  }
13
16
 
14
17
  exports.specialComp = specialComp
@@ -212,7 +212,12 @@ div {
212
212
  </button-link>
213
213
  </td>
214
214
  </tr>
215
-
215
+ <tr>
216
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">备注:</td>
217
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
218
+ {{ data.f_repair_approved_note }}
219
+ </td>
220
+ </tr>
216
221
  </tbody>
217
222
  </table>
218
223
  <table class="table table-striped table-bordered" style="margin-top: 40px"
@@ -617,6 +622,13 @@ div {
617
622
  </button-link>
618
623
  </td>
619
624
  </tr>
625
+ <tr>
626
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
627
+ <td colspan="3"
628
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
629
+ {{ paperdata.f_repair_approved_note }}
630
+ </td>
631
+ </tr>
620
632
 
621
633
  </tbody>
622
634
  </table>
@@ -0,0 +1,398 @@
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <div class="row">
7
+ <label class="form-group font_normal_body"><b>计划信息</b></label>
8
+ <div class="form-group col-sm-1" v-show="false">
9
+ <!--隐藏条件-->
10
+ <input type="text" class="input_search" v-model="model.f_plan_id"
11
+ style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
15
+ style="width: 95%" placeholder="客户编号" condition="i.f_userinfo_code='{}'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_user_name"
19
+ style="width: 95%" placeholder="客户名称" condition="i.f_user_name like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1" >
22
+ <input type="text" class="input_search" v-model="model.f_address"
23
+ style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
+ </div>
25
+ <!--<div class="form-group col-sm-1" >
26
+ <v-select :width="'95%'"
27
+ class="select select_list"
28
+ :value.sync="$parent.$parent.f_state"
29
+ v-model="$parent.$parent.f_state"
30
+ :options='$parent.$parent.checkState'
31
+ placeholder='安检状态'
32
+ close-on-select
33
+ value-single
34
+ >
35
+ </v-select>
36
+ </div>-->
37
+ <div class="form-group col-sm-3" >
38
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
40
+ <!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
41
+ <export-excel-safe :data="$parent.$parent.exportParameter"
42
+ :field="$parent.$parent.exportExcelField"
43
+ style="margin-left: 0px"
44
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
45
+ :template-name="$parent.$parent.selectplan.f_plan_name + '安检计划导出'" :choose-col="true">
46
+ </export-excel-safe>
47
+ </div>
48
+ <div class="form-group col-sm-2 safe_p">
49
+ <label class="font_normal_body" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
50
+ </div>
51
+ <div class="form-group col-sm-2" style="float: right">
52
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
53
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
54
+ </div>
55
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
56
+ <div slot="modal-header" class="modal-header">
57
+ <h4 class="modal-title">
58
+ 计划内用户查询条件
59
+ </h4>
60
+ </div>
61
+ <div slot="modal-body" class="modal-body">
62
+ <div class="row">
63
+ <div class="form-group col-sm-4" >
64
+ <label class="font_normal_body">是否已检:</label>
65
+ <v-select
66
+ class="select select_list"
67
+ :value.sync="model.f_state"
68
+ v-model="model.f_state"
69
+ :options='$parent.$parent.checkState'
70
+ @change="$parent.$parent.checkStateChange(model.f_state)"
71
+ placeholder='请选择'
72
+ condition="i.f_state='{}'"
73
+ close-on-select
74
+ value-single
75
+ >
76
+ </v-select>
77
+ </div>
78
+ <div class="form-group col-sm-4" >
79
+ <label class="font_normal_body">安检结果:</label>
80
+ <v-select
81
+ class="select select_list"
82
+ :value.sync="model.f_check_state"
83
+ v-model="model.f_check_state"
84
+ :options='$parent.$parent.checkResults'
85
+ placeholder='请选择'
86
+ condition="i.f_last_check_state='{}'"
87
+ close-on-select
88
+ value-single
89
+ >
90
+ </v-select>
91
+ </div>
92
+ <div class="form-group col-sm-4" >
93
+ <label class="font_normal_body">安检起始:</label>
94
+ <datepicker
95
+ placeholder='请选择'
96
+ style="width:60%"
97
+ :disabled-days-of-week="[]"
98
+ :format="'yyyy-MM-dd'"
99
+ :show-rest-button="reset"
100
+ :value.sync="model.f_startfile_time"
101
+ v-model="model.f_startfile_time"
102
+ condition="i.f_last_check_date >='{} 00:00:00'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="form-group col-sm-4" >
106
+ <label class="font_normal_body">安检截止:</label>
107
+ <datepicker
108
+ placeholder='请选择'
109
+ :disabled-days-of-week="[]"
110
+ style="width:60%"
111
+ :format="'yyyy-MM-dd'"
112
+ :show-rest-button="reset"
113
+ :value.sync="model.f_endfile_time"
114
+ v-model="model.f_endfile_time"
115
+ condition="i.f_last_check_date <='{} 00:00:00'">
116
+ </datepicker>
117
+ </div>
118
+ <div class="form-group col-sm-4" >
119
+ <label class="font_normal_body">小区名称:</label>
120
+ <v-select
121
+ class="select select_list"
122
+ :value.sync="model.f_residential_area"
123
+ v-model="model.f_residential_area"
124
+ :options='$parent.$parent.area'
125
+ placeholder='请选择'
126
+ condition="i.f_residential_area='{}'"
127
+ close-on-select
128
+ value-single
129
+ >
130
+ </v-select>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
135
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
136
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
137
+ </div>
138
+ </modal>
139
+ </div>
140
+ </div>
141
+ </criteria>
142
+ <data-grid :model="model" partial='list' class="table_sy">
143
+
144
+ <template partial='head'>
145
+ <tr>
146
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
147
+ <th><nobr>用户编号</nobr></th>
148
+ <th><nobr>用户名称</nobr></th>
149
+ <th><nobr>用户电话</nobr></th>
150
+ <th><nobr>用户类型</nobr></th>
151
+ <th><nobr>小区名称</nobr></th>
152
+ <th><nobr>安检状态</nobr></th>
153
+ <th><nobr>地址</nobr></th>
154
+ </tr>
155
+ </template>
156
+ <template partial='body'>
157
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
158
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
159
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
160
+ <td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
161
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
162
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
163
+ <td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
164
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
165
+ </template>
166
+ </data-grid>
167
+ </criteria-paged>
168
+ <modal :show.sync="showPlanModal" v-ref:modalp>
169
+ <div slot="modal-header" class="modal-header">
170
+ <h4 class="modal-title">
171
+ 计划内用户调整
172
+ </h4>
173
+ </div>
174
+ <div slot="modal-body" class="modal-body">
175
+ <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
176
+ </div>
177
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
178
+ <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
179
+ <button class="button_search" @click="cancel">取消</button>
180
+ </div>
181
+ </modal>
182
+ </div>
183
+ </template>
184
+
185
+ <script>
186
+ import {HttpResetClass, PagedList} from "vue-client";
187
+ import Vue from "vue";
188
+
189
+ export default {
190
+ name: "PlanManage",
191
+ title: '计划管理',
192
+ data() {
193
+ return {
194
+ model:new PagedList('/rs/sql/planItem', 100, {}),
195
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
196
+ a:'1',
197
+ opt:[{label:"测试",value:"测试"}],
198
+ showCondtion:false,
199
+ checkAll:false,
200
+ checkes:[],
201
+ checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
202
+ checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
203
+ showPlanModal:false,
204
+ exportExcelField: {
205
+ 'f_userinfo_code':'用户编号',
206
+ 'f_user_name':'用户名称',
207
+ 'f_user_type':'用户类型',
208
+ 'f_residential_area':'小区名称',
209
+ 'f_state':'安检状态',
210
+ 'f_address':'地址',
211
+ 'f_user_phone':'用户电话',
212
+ 'f_newfile_date':'建档日期'
213
+ },
214
+ area:[]
215
+ }
216
+ },
217
+ props:["selectplan","userlogin"],
218
+ ready(){
219
+ this.getarea()
220
+ },
221
+ computed:{
222
+ exportParameter(){
223
+ // excel 导出条件拼接
224
+ return {
225
+ condition: this.$refs.paged.model.condition,
226
+ groupName: this.groupNameForSql
227
+ }
228
+ }
229
+ },
230
+ methods:{
231
+ async getarea() {
232
+ this.area = []
233
+ let res = await new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`, {
234
+ data: {
235
+ items: "*",
236
+ tablename: "t_area",
237
+ orderitem: "id",
238
+ condition: `f_orgid = '${this.$login.f.orgid}'`
239
+ }
240
+ }, {resolveMsg: null, rejectMsg: null})
241
+ res.data.forEach((result) => {
242
+ this.area.push({label: result.f_residential_area, value: result.f_residential_area})
243
+ })
244
+ },
245
+ clear(){
246
+ this.model.f_plan_id = '';
247
+ this.model.f_userinfo_code = '';
248
+ this.model.f_user_name = '';
249
+ this.model.f_address='';
250
+
251
+ },
252
+ //将某个计划下的一项拖到另一个计划
253
+ async dragtoOtherPlanIteem() {
254
+ //tag)
255
+
256
+ if (!this.$refs.modalp.$children[0].selectedRow.id) {
257
+ this.$showMessage("请选择需要调整到那个计划中!")
258
+ return
259
+ }
260
+ this.$parent.isSend=true
261
+ try{
262
+ let res=await new HttpResetClass().load("POST", "/rs/logic/UpCheckPlanItem", {
263
+ data:{
264
+ f_operator:this.userlogin.name,
265
+ f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
266
+ condition:this.model.condition,
267
+ switchCheckAll:true,
268
+ checkAll:this.checkAll,
269
+ param:this.checkes,
270
+ columnName: "i.id"
271
+ }
272
+ }, {resolveMsg: null, rejectMsg: null})
273
+ this.$parent.isSend=false
274
+ if(res.data.code==200){
275
+ this.$showMessage("更换安检计划成功!")
276
+ this.$parent.refreshPlan()
277
+ }else{
278
+ this.$showMessage("更换安检计划失败!")
279
+ }
280
+ }catch (e) {
281
+ this.$parent.isSend=false
282
+ this.$showMessage("更换安检计划失败!")
283
+ }
284
+ },
285
+ showplanModal(){
286
+ if(!this.selectplan || !this.selectplan.id){
287
+ this.$showMessage("请先打开一个计划再进行操作")
288
+ return
289
+ }
290
+ if(!this.checkAll && this.checkes.length==0){
291
+ this.$showMessage("请先在计划中勾选你要调整的用户!")
292
+ return
293
+ }
294
+ this.showPlanModal=true
295
+ },
296
+ showUserCondition(){
297
+ this.showCondtion=true
298
+ },
299
+ isChecked(v) {
300
+ // 如果全选,不在的按选中算,否则,在的按选中算
301
+ if (this.checkAll) {
302
+ return this.checkes.indexOf(v) == -1
303
+ } else {
304
+ return this.checkes.indexOf(v) != -1
305
+ }
306
+ },
307
+ setCheckAll() {
308
+ this.checkAll=this.checkAll?false:true;
309
+ // 全选改变后,清空选中数据
310
+ this.checkes = []
311
+ },
312
+ setCheckes(id) {
313
+ let index=this.checkes.indexOf(id)
314
+ if(index<0){
315
+ this.checkes.push(id)
316
+ }else{
317
+ this.checkes.splice(index,1)
318
+ }
319
+ },
320
+ cancel(){
321
+ this.showCondtion=false
322
+ this.showPlanModal=false
323
+ },
324
+ selfSearch (args) {
325
+ if(!this.selectplan.id){
326
+ this.$showMessage("请先选择一个计划!")
327
+ return
328
+ }
329
+ this.cancel()
330
+ this.checkes=[]
331
+ this.checkAll=false
332
+ args.condition+= ` and i.f_state!= '作废'`
333
+ this.model.search(args.condition, args.model, args.condValue)
334
+ },
335
+ checkStateChange(val){
336
+ if(val=='未检'){
337
+ this.checkResults=[]
338
+ this.$refs.paged.$refs.criteria.model.f_check_state=''
339
+ }else{
340
+ this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
341
+ }
342
+ },
343
+ //修改计划项状态为作废
344
+ async delPlanItem() {
345
+ if(!this.selectplan || !this.selectplan.id){
346
+ this.$showMessage("请先打开一个计划再进行操作")
347
+ return
348
+ }
349
+ if(!this.checkAll && this.checkes.length==0){
350
+ this.$showMessage("请先在计划中勾选你要作废的用户!")
351
+ return
352
+ }
353
+ this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
354
+ if(button=='confirm'){
355
+ let resu=new HttpResetClass().load("POST", "/rs/logic/UpCheckPlanItemState", {
356
+ data: {
357
+ f_operator:this.userlogin.name,
358
+ condition:this.model.condition,
359
+ switchCheckAll:true,
360
+ checkAll:this.checkAll,
361
+ param:this.checkes,
362
+ columnName: "i.id"
363
+ }
364
+ }, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
365
+
366
+ //tag)
367
+ if(resu.data.code==200){
368
+ this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
369
+ //this.checkes=[]
370
+ //this.checkAll=false
371
+ this.$parent.refresh()
372
+ }else{
373
+ this.$showMessage("取消安检计划失败!")
374
+ }
375
+ })
376
+ }
377
+ })
378
+ }
379
+ },
380
+ watch:{
381
+ 'selectplan.id' (){
382
+ //tag
383
+ if(this.selectplan.id){
384
+ this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
385
+ this.$refs.paged.$refs.criteria.search()
386
+ }
387
+ }
388
+ }
389
+ }
390
+ </script>
391
+
392
+ <style scoped>
393
+ .safe_p{
394
+ white-space: nowrap;
395
+ overflow: hidden;
396
+ text-overflow: ellipsis;
397
+ }
398
+ </style>
@@ -6,6 +6,7 @@ let specialComp = {
6
6
  // 计划管理用户
7
7
  'check-user-list': (resolve) => { require(['./pc/checkUserList'], resolve) },
8
8
  'check-search-user': (resolve) => { require(['./pc/CheckSearchUser'], resolve) },
9
+ 'check-plan-list': (resolve) => { require(['./pc/checkPlanList'], resolve) },
9
10
  // 'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
10
11
  // 'new-check-paper': (resolve) => { require(['./pc/NewCheckpaper'], resolve) },
11
12
 
@@ -86,7 +86,7 @@ div {
86
86
  <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
87
87
  <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
88
88
  <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
89
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
89
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ item.f_slice_area }}</td>
90
90
  </tr>
91
91
  <tr>
92
92
  <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
@@ -104,7 +104,7 @@ div {
104
104
  <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
105
105
  <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
106
106
  <td style="text-align: center;border: #E9E9E9 solid 1px">用气性质:</td>
107
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_gasproperties }}</td>
107
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ item.f_gasproperties }}</td>
108
108
  </tr>
109
109
  <tr>
110
110
  <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
@@ -154,7 +154,7 @@ div {
154
154
  </td>
155
155
  </tr>
156
156
  <tr>
157
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
157
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检内容:</td>
158
158
  <td colspan="3"
159
159
  style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
160
160
  <span v-for="deviceCollect in deviceCollects">
@@ -216,7 +216,7 @@ div {
216
216
  <td style="margin: auto;text-align: center">
217
217
  <div class="container" style="max-width: 550px;background: #FFFFFF">
218
218
  <div class="img" v-for="img in paperdata.f_overall_imgs">
219
- <img-self-plus :src="img.f_overall_path" style="float: left" width="150"
219
+ <img-self-plus :src="img.f_overall_path" style="float: left" width="150" :list="paperdata.f_overall_imgs"
220
220
  height="200"></img-self-plus>
221
221
  </div>
222
222
  </div>
@@ -210,7 +210,8 @@ export default {
210
210
  showmOrder:false,
211
211
  zfCode:false,
212
212
  isSubmitting: false, // 添加防重复提交标志
213
- isSaveing:false // 添加防重复提交标志
213
+ isSaveing:false, // 添加防重复提交标志
214
+ isCheckingOrder: false,
214
215
  }
215
216
  },
216
217
  props: {
@@ -248,6 +249,7 @@ export default {
248
249
  Vue.set(this.model, 'f_ins_start_date', Util.toStandardDateString())
249
250
  Vue.set(this.model, 'f_expiration_date', '')
250
251
  Vue.set(this.model, 'f_payment', 'app二维码收款')
252
+ Vue.set(this.model, 'f_sale_person', Vue.user.name)
251
253
  this.getType()
252
254
  this.getEmp()
253
255
  },
@@ -282,6 +284,10 @@ export default {
282
284
  closeModel(){
283
285
  this.showmOrder = false
284
286
  this.isSubmitting = false
287
+ if (this.orderInterval) {
288
+ clearTimeout(this.orderInterval)
289
+ this.orderInterval = null
290
+ }
285
291
  },
286
292
  commitBefore(){
287
293
  if (!this.model.f_money) {
@@ -333,29 +339,57 @@ export default {
333
339
  },
334
340
  async getOrderInformation() {
335
341
  console.log('查询订单信息!!!')
336
- let http = new HttpResetClass()
337
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/microPayOrderStatus`, {
338
- "filiale": "siyang",
339
- "flag": "microPayRongHaoJsbc",
340
- "f_out_trade_no": `${this.f_out_trade_no}`,
341
- "posid": this.$androidUtil.getDeviceIEMI()
342
- }, {
343
- resolveMsg: null,
344
- rejectMsg: '订单查询失败!!!'
345
- })
346
- // 支付成功
347
- if (res.data.trade_state.includes('已支付')) {
348
- this.orderinfo = res.data
349
- clearTimeout(this.orderInterval)
350
- this.$showMessage('支付成功!!!')
351
- await this.commit()
352
- this.clearQrCode()
353
- this.closeModel()
354
- }else{
355
- //重新查询订单状态
356
- this.orderInterval = setTimeout(() => {
357
- this.getOrderInformation()
358
- }, 3000)
342
+ // 添加标志位,防止重复执行
343
+ if (this.isCheckingOrder) {
344
+ return;
345
+ }
346
+ try {
347
+ this.isCheckingOrder = true;
348
+ let http = new HttpResetClass()
349
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/microPayOrderStatus`, {
350
+ "filiale": "siyang",
351
+ "flag": "microPayRongHaoJsbc",
352
+ "f_out_trade_no": `${this.f_out_trade_no}`,
353
+ "posid": this.$androidUtil.getDeviceIEMI()
354
+ }, {
355
+ resolveMsg: null,
356
+ rejectMsg: '订单查询失败!!!'
357
+ })
358
+ // 支付成功
359
+ if (res.data.trade_state.includes('已支付')) {
360
+ this.orderinfo = res.data
361
+ clearTimeout(this.orderInterval)
362
+ this.$showMessage('支付成功!!!')
363
+ await this.commit()
364
+ this.clearQrCode()
365
+ this.closeModel()
366
+ } else if (res.data.trade_state.includes("已退款")) {
367
+ this.$showMessage("已退款,请重新下单支付!!!");
368
+ this.clearQrCode();
369
+ this.closeModel()
370
+ if (this.orderInterval) {
371
+ clearTimeout(this.orderInterval);
372
+ this.orderInterval = null
373
+ }
374
+ }else{
375
+ this.isCheckingOrder = false
376
+ //重新查询订单状态
377
+ this.orderInterval = setTimeout(() => {
378
+ this.getOrderInformation()
379
+ }, 3000)
380
+ }
381
+ } catch (error) {
382
+ console.error("查询订单状态失败:", error);
383
+ if (this.orderInterval) {
384
+ clearTimeout(this.orderInterval);
385
+ this.orderInterval = null
386
+ }
387
+ this.isCheckingOrder = false; // 发生错误时重置标志位
388
+ } finally {
389
+ // 确保在非轮询状态下重置标志位
390
+ if (!this.orderInterval) {
391
+ this.isCheckingOrder = false;
392
+ }
359
393
  }
360
394
  },
361
395
  async openQrcode() {