safecheck-client 4.0.1-44 → 4.0.1-45

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 (240) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  4. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  5. package/src/components/android/AddPlanItem.vue +447 -447
  6. package/src/components/android/AddPlanItemYy.vue +451 -451
  7. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  8. package/src/components/android/AndroidDefectDetails.vue +769 -769
  9. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  10. package/src/components/android/DailyworkloadQuery.vue +473 -473
  11. package/src/components/android/Devices.vue +327 -327
  12. package/src/components/android/Devicesm.vue +327 -327
  13. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1343
  14. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  15. package/src/components/android/PhoneRecordInfo.vue +113 -113
  16. package/src/components/android/PhoneSellInfo.vue +113 -113
  17. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  18. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  19. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  20. package/src/components/android/SafePlanItem.vue +509 -509
  21. package/src/components/android/examples/SafeListExamples.vue +296 -296
  22. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  23. package/src/components/android/recheck/Recheck.vue +402 -402
  24. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  25. package/src/components/checkplan/checkmsg.vue +459 -459
  26. package/src/components/defect/DefectList.vue +507 -507
  27. package/src/components/defect/DefectListWeixiu.vue +484 -484
  28. package/src/components/filialCircle/CircleList.vue +139 -139
  29. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  30. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  31. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  32. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  33. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  34. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  35. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  36. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  37. package/src/components/map/PersonTrack.vue +226 -226
  38. package/src/components/paper/RegionalList.vue +220 -220
  39. package/src/components/pc/AnnouncementPC.vue +524 -524
  40. package/src/components/pc/DefectList.vue +742 -742
  41. package/src/components/pc/DeviceChange.vue +1068 -1068
  42. package/src/components/pc/SafeVisitInfo.vue +261 -261
  43. package/src/components/querycheckpaper/CheckPaperList.vue +133 -133
  44. package/src/components/querycheckpaper/CheckSearchUser.vue +1072 -1072
  45. package/src/components/report/HiddenSituation.vue +165 -165
  46. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  47. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  48. package/src/components/rongcheng/DefectList.vue +560 -560
  49. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  50. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  51. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  52. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  53. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  54. package/src/components/shaoguan/DefectList.vue +473 -473
  55. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  56. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  57. package/src/components/userfile/SecurityAudit.vue +243 -243
  58. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  59. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  60. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  61. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  62. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  63. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  64. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  65. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  66. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  67. package/src/filiale/bayan/android/Edit.vue +132 -132
  68. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  69. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  70. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  71. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  72. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  73. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  74. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  75. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  76. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  77. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  78. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  79. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  80. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  81. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  82. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  83. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  84. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  85. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  86. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  87. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  88. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  89. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  90. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  91. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  92. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  93. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  94. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  95. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  96. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  97. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  98. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  99. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  100. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  101. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  102. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  103. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  104. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  105. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  106. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  107. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  108. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  109. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  110. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  111. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  112. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  113. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  114. package/src/filiale/meihekou/android/CurrentCreate.vue +1038 -1038
  115. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  116. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  117. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  118. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2027 -2027
  119. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  120. package/src/filiale/meihekou/pc/PaperList.vue +1136 -831
  121. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  122. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  123. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  124. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  125. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  126. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  127. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  128. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  129. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  130. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  131. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  132. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  133. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  134. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  135. package/src/filiale/qingjian/pc.js +15 -15
  136. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  137. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  138. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  139. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  140. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  141. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  142. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  143. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  144. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  145. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  146. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  147. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  148. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  149. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  150. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  151. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  152. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  153. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  154. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  155. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  156. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  157. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  158. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  159. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  160. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  161. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  162. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  163. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  164. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  165. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -1033
  166. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  167. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  168. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  169. package/src/filiale/taiyuan/pc.js +15 -15
  170. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  171. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  172. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  173. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  174. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  175. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  176. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  177. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  178. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  179. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  180. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  181. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  182. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  183. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  184. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  185. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  186. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  187. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  188. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  189. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  190. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  191. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  192. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  193. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  194. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  195. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  196. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  197. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  198. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  199. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  200. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  201. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  202. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  203. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  204. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  205. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  206. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  207. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  208. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  209. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  210. package/src/filiale/xinkang/android/AddPlanItem.vue +414 -414
  211. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  212. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  213. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  214. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  215. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  216. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  217. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  218. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  219. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  220. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  221. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  222. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  223. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  224. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  225. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  226. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  227. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  228. package/src/filiale/yunchengminsheng/android.js +15 -15
  229. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  230. package/src/filiale/yunchengminsheng/pc.js +15 -15
  231. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  232. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  233. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  234. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  235. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  236. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  237. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  238. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  239. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  240. package/src/main.js +2 -1
@@ -1,535 +1,535 @@
1
- <template>
2
- <div>
3
- <!-- <div :style="{'height':needRepair?'60%':'100%'}">-->
4
- <div :style="{'height': '100%'}">
5
- <criteria-paged :model="model" :pager="false" v-ref:paged>
6
- <criteria partial='criteria'>
7
- <div partial>
8
- <ul class="nav nav-tabs">
9
- <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">隐患明细</a></li>
10
- </ul>
11
- </div>
12
- </criteria>
13
- <data-grid :model="model" partial='list' class="table_sy">
14
- <template partial='head'>
15
- <tr>
16
- <!-- <th>-->
17
- <!-- <nobr>隐患设备</nobr>-->
18
- <!-- </th>-->
19
- <th>
20
- <nobr>隐患项</nobr>
21
- </th>
22
- <th>
23
- <nobr>隐患原因</nobr>
24
- </th>
25
- <th>
26
- <nobr>隐患处理方式</nobr>
27
- </th>
28
- <!-- <th>-->
29
- <!-- <nobr>审核结果</nobr>-->
30
- <!-- </th>-->
31
- <th>
32
- <nobr>备注</nobr>
33
- </th>
34
- <th>
35
- <nobr>操作</nobr>
36
- </th>
37
- </tr>
38
- </template>
39
- <template partial='body'>
40
- <!-- <td style="text-align: center">-->
41
- <!-- <nobr>{{row.f_device_type}}</nobr>-->
42
- <!-- </td>-->
43
- <td style="text-align: center">
44
- <nobr>{{row.f_item_name}}</nobr>
45
- </td>
46
- <td style="text-align: center">
47
- <nobr>{{row.f_item_value}}</nobr>
48
- </td>
49
- <td style="text-align: center">
50
- <nobr>{{row.f_repaire_type}}</nobr>
51
- </td>
52
- <td style="text-align: center">
53
- <nobr>{{row.f_deal_remark ? row.f_deal_remark : ' '}}</nobr>
54
- </td>
55
- <!-- <td style="text-align: center">-->
56
- <!-- <nobr>{{row.f_audit_results?row.f_audit_results:'暂无审核结果'}}</nobr>-->
57
- <!-- </td>-->
58
- <td style="text-align: center">
59
- <img-button v-if="row.f_repaire_type != '无隐患' && row.f_repaire_type != '已处理' && row.f_path" :src="'/rs/image/file/'+row.f_path" :value="'隐患图片'"></img-button>
60
- <button v-if="row.f_repaire_type == '已处理'" class="button_new-1 button_spacing" @click="$parent.$parent.$parent.solveDefect( row, 'view')">处理详情</button>
61
- <button v-if="row.f_repaire_type == '未处理' || !row.f_repaire_type" class="button_spacing button_search-1" @click="$parent.$parent.$parent.solveDefect( row, 'solve')">处理隐患</button>
62
- </td>
63
- </template>
64
- </data-grid>
65
- </criteria-paged>
66
- </div>
67
-
68
- <!-- <div style="overflow-y: scroll;height: 40%" v-if="needRepair">-->
69
- <!-- <div class="form-horizontal auto">-->
70
- <!-- <ul class="nav nav-tabs">-->
71
- <!-- <li role="presentation" class="active"><a style=" color: #000 !important;font-size: 14px">转维修</a></li>-->
72
- <!-- </ul>-->
73
- <!-- <validator name='v' @valid="valid = true" @invalid="valid = false">-->
74
- <!-- <div class="row">-->
75
- <!-- <div class="col-sm-4" :class="[$v.dispatchtype.required ? 'select-error' : '']">-->
76
- <!-- <label for="dispatchtype" class="font_normal_body">派发类型</label>-->
77
- <!-- <input id="dispatchtype" type="text" v-show="false" v-model="$refs.dispatchtype.selectedItems" v-validate:dispatchtype='{required: true }'>-->
78
- <!-- <v-select :value.sync="toRepairModal.preData.dispatchType" v-model="toRepairModal.preData.dispatchType"-->
79
- <!-- :options='toRepairModal.preData.dispatchTypeOptions' placeholder='派发类型'-->
80
- <!-- close-on-select v-ref:dispatchtype>-->
81
- <!-- </v-select>-->
82
- <!-- </div>-->
83
- <!-- <div class="col-sm-4 " v-if="toRepairModal.preData.dispatchType == '派发给站点'">-->
84
- <!-- <label class="font_normal_body">站&nbsp;&nbsp;点</label>-->
85
- <!-- <right-tree-->
86
- <!-- islist-->
87
- <!-- :userid="$login.f.id"-->
88
- <!-- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"-->
89
- <!-- @re-res="getSiteRes">-->
90
- <!-- </right-tree>-->
91
- <!-- </div>-->
92
- <!-- <div class="col-sm-4 " v-if="toRepairModal.preData.dispatchType == '派发给维修员'" :class="[$v.f_repairman.required ? 'select-error' : '']">-->
93
- <!-- <input type="text" v-show="false" v-model="toRepairModal.preData.f_repairman" v-validate:f_repairman='{required: true }'>-->
94
- <!-- <label class="font_normal_body">维修员</label>-->
95
- <!-- <v-select-->
96
- <!-- :value.sync="toRepairModal.preData.f_repairman"-->
97
- <!-- :value-single="true"-->
98
- <!-- :options='toRepairModal.preData.repairers'-->
99
- <!-- placeholder='请选择维修员'-->
100
- <!-- close-on-select></v-select>-->
101
- <!-- </div>-->
102
- <!-- <div class="col-sm-4" :class="[$v.f_repairtype.required ? 'select-error' : '']">-->
103
- <!-- <input type="text" v-show="false" v-model="toRepairModal.preData.f_repairtype" v-validate:f_repairtype='{required: true }'>-->
104
- <!-- <label class="font_normal_body">报修类型</label>-->
105
- <!-- <v-select :value.sync="toRepairModal.preData.f_repairtype" style="width:60%"-->
106
- <!-- class="select select_list"-->
107
- <!-- :value-single="true"-->
108
- <!-- :options='toRepairModal.preData.repairTypeOptions'-->
109
- <!-- close-on-select>-->
110
- <!-- </v-select>-->
111
- <!-- </div>-->
112
- <!-- </div>-->
113
- <!-- <div class="row">-->
114
- <!-- <div class="col-sm-8 form-group">-->
115
- <!-- <label class="font_normal_body" >备&emsp;&emsp;注</label>-->
116
- <!-- <input class="input_search" style="width: 60%" type="text" v-model="toRepairModal.preData.f_remarks" placeholder="备注">-->
117
-
118
- <!-- </div>-->
119
- <!-- <div class="col-sm-4" style="margin-top: 1%">-->
120
- <!-- <button class="button_search" :disabled="!valid" @click="confirm">转维修</button>-->
121
- <!-- </div>-->
122
- <!-- </div>-->
123
- <!-- </validator>-->
124
- <!-- </div>-->
125
- <!-- </div>-->
126
- <modal :show.sync="showSolveModal" v-ref:solveModal>
127
- <div slot="modal-header" class="modal-header">
128
- <h4 class="modal-title">
129
- {{solveModal.preData.type == 'view'?'处理详情':'处理隐患'}}
130
- </h4>
131
- </div>
132
- <div slot="modal-body" class="modal-body">
133
- <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
134
- <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
135
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
136
- </div>
137
-
138
- <div class="col-sm-6" style="margin-top: 10px">
139
- <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
140
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_checker_name" placeholder="安检员">
141
- </div>
142
- <div class="col-sm-6" style="margin-top: 10px">
143
- <label class="font_normal_body">安检时间</label>
144
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_offsite_time" placeholder="安检时间">
145
- </div>
146
- <div class="col-sm-12" style="margin-bottom: 10px" v-show="solveModal.preData.defectImg">
147
- <label class="font_normal_body">隐患图片</label>
148
- <img-self :width="200" :height="200" :src="solveModal.preData.defectImg"></img-self>
149
- </div>
150
-
151
- <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
152
- <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
153
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理后</p></div>
154
- </div>
155
- <div class="col-sm-6" style="margin-top: 10px">
156
- <label class="font_normal_body">处&nbsp;理&nbsp;人</label>
157
- <input v-if="solveModal.preData.type != 'solve'" class="input_search" style="width: 60%" disabled="true" type="text" v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
158
- <v-select
159
- v-if="solveModal.preData.type == 'solve'"
160
- :value.sync="solveModal.uploadData.f_repairman"
161
- :value-single="true"
162
- :options='toRepairModal.preData.repairers'
163
- placeholder='请选择维修员'
164
- close-on-select></v-select>
165
- </div>
166
- <div class="col-sm-6" style="margin-top: 10px">
167
- <label class="font_normal_body">处理时间</label>
168
- <datepicker
169
- :disabled="solveModal.preData.type == 'view'"
170
- placeholder='处理时间' style="width:60%"
171
- :disabled-days-of-week="[]"
172
- :format="'yyyy-MM-dd'"
173
- :show-rest-button="reset"
174
- :value.sync="solveModal.uploadData.f_repair_date">
175
- </datepicker>
176
- </div>
177
- <div v-if="solveModal.preData.type == 'solve'" class="col-sm-12" style="margin-bottom: 10px">
178
- <label class="font_normal_body">处理后图片</label>
179
- <avatar-upload style="float: left" :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc" :filename.sync="solveModal.uploadData.filename" v-ref:imginfo></avatar-upload>
180
- <avatar-upload style="float: left" :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc2" :filename.sync="solveModal.uploadData.filename2" v-ref:imginfo></avatar-upload>
181
- <avatar-upload style="float: left" :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc3" :filename.sync="solveModal.uploadData.filename3" v-ref:imginfo></avatar-upload>
182
- </div>
183
- <div v-if="solveModal.preData.type == 'view'" v-show="solveModal.preData.repairedImg" class="col-sm-12" style="margin-bottom: 10px">
184
- <label class="font_normal_body">处理后图片</label>
185
- <img-self style="float: left" :width="200" :height="200" :src="solveModal.preData.repairedImg"></img-self>
186
- <img-self style="float: left" v-if="solveModal.preData.repairedImg2" :width="200" :height="200" :src="solveModal.preData.repairedImg2"></img-self>
187
- <img-self style="float: left" v-if="solveModal.preData.repairedImg3" :width="200" :height="200" :src="solveModal.preData.repairedImg3"></img-self>
188
- </div>
189
- </div>
190
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
191
- <!-- <button class="button_search" @click="auditsure('通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核通过</button>-->
192
- <!-- <button class="button_search" @click="auditsure('不通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核不通过</button>-->
193
- <button class="button_search" v-if="solveModal.preData.type == 'solve'" @click="ok">确认</button>
194
- <button class="button_search" @click="cancel">取消</button>
195
- </div>
196
- </modal>
197
-
198
- </div>
199
- </template>
200
-
201
- <script>
202
- import {PagedList, HttpResetClass} from 'vue-client'
203
- import * as Util from '../../../components/Util'
204
- import co from 'co'
205
-
206
- const upSolveDefect = function * (self) {
207
- let uploadData = self.solveModal.uploadData
208
- //tag)
209
- self.$resetpost('/api/af-safecheck/logic/pcRepairDefectNew', self.solveModal.uploadData, {resolveMsg: null, rejectMsg: null})
210
- .then(res => {
211
- if (res.data.code === 200) {
212
- self.$showMessage('隐患已处理。')
213
- self.showSolveModal = false
214
- self.model.search('f_repaire_type != \'无隐患\'', {})
215
- }
216
- })
217
- }
218
-
219
- const sendRepair = function* (self) {
220
- let preData = self.toRepairModal.preData
221
- let uploadData = self.toRepairModal.uploadData
222
-
223
- if (preData.dispatchType == '派发给站点') {
224
- uploadData.model.serviceacitivity[0].f_meetunit = preData.f_meetunit
225
- uploadData.model.serviceacitivity[0].f_reciever = preData.f_reciever
226
- uploadData.model.f_meetunit = preData.f_meetunit
227
- uploadData.model.f_orgstr = preData.f_reciever
228
- uploadData.model.f_outlets = preData.f_outlets
229
- } else if (preData.dispatchType == '派发给维修员') {
230
- uploadData.model.serviceacitivity[0].f_reciever = preData.f_repairman
231
- // uploadData.model.f_meetunit = self.$login.f.orgpathnames
232
- // uploadData.model.f_orgstr = self.$login.f.orgpathstr
233
- // uploadData.model.f_outlets = self.$login.f.f_parentname
234
- uploadData.model.f_meetunit = self.$login.f.deps
235
- uploadData.model.f_orgid = self.$login.f.orgid
236
- uploadData.model.f_filiale = self.$login.f.org
237
- uploadData.model.f_outlets = self.$login.f.deps
238
- uploadData.model.f_filiale_id = self.$login.f.orgid
239
- uploadData.toRepair = '一级派单'
240
- }
241
- let res = yield self.$resetpost('/api/af-safecheck/sql/GetUserForRepaireNew2', {data: {f_userinfo_id: self.check.f_userinfo_id}})
242
- preData.userInfo = res.data[0]
243
- uploadData.model = Object.assign(uploadData.model, preData.userInfo)
244
- uploadData.user.f_userinfo_id = preData.userInfo.f_userinfo_id
245
- uploadData.model.f_repair_date = Util.getNowDate()
246
- uploadData.model.f_repairtype = preData.f_repairtype
247
- uploadData.model.f_remarks = preData.f_remarks
248
- // 拼接failure
249
- let failure = []
250
- self.model.rows.forEach(row => {
251
- if (row.f_repaire_type == '未处理') {
252
- failure.push({
253
- f_failure_type: row.f_item_name,
254
- failurecase: row.f_item_value?row.f_item_value.split(','):''
255
- })
256
- }
257
- })
258
- uploadData.model.failure = failure
259
- // 拼接repairitems
260
- let rows = JSON.parse(JSON.stringify(self.model.rows))
261
- let repairitems = {
262
- data: []
263
- }
264
- let safecheckOptions = [{"data": "已处理"}, {"data": "未处理"}]
265
- // 取未处理的
266
- rows = rows.filter(row => row.f_repaire_type == '未处理')
267
- //tag)
268
- // 开始拼接
269
- rows.forEach(row => {
270
- let existIndex = -1
271
- // 判断该设备是否已经存在
272
- for (let i = 0; i < repairitems.data.length; i++) {
273
- if (repairitems.data[i].f_type == row.f_device_type) {
274
- existIndex = i
275
- break
276
- }
277
- }
278
- if (existIndex == -1) {
279
- // 不存在则新建
280
- let newItem = {
281
- f_type: row.f_device_type,
282
- details: [{
283
- f_defect_id: row.id,
284
- f_project: `${row.f_item_name}:${row.f_item_value}`,
285
- type: 'selector',
286
- options: safecheckOptions
287
- }]
288
- }
289
- repairitems.data.push(newItem)
290
- } else {
291
- // 存在则追加
292
- repairitems.data[existIndex].details.push({
293
- f_defect_id: row.id,
294
- f_project: `${row.f_item_name}:${row.f_item_value}`,
295
- type: 'selector',
296
- options: safecheckOptions
297
- })
298
- }
299
- })
300
- uploadData.model.f_repairitems = repairitems
301
- //tag)
302
- // 调工单接口
303
- let result = yield self.$resetpost('/api/af-safecheck/logic/callerSend', uploadData)
304
- //tag)
305
- if (result.data.f_service_id) {
306
- const data = {
307
- f_paper_id: rows[0].f_paper_id,
308
- f_service_id: result.data.f_service_id,
309
- itemsId: self.$login.convertToIn(rows.map(row => row.id))
310
- }
311
- //tag
312
- let updateRes = yield self.$resetpost('/api/af-safecheck/logic/updateDefectStateNew', data)
313
- if (updateRes.data.code == 200) {
314
- self.$showMessage('隐患已转维修。')
315
- self.model.search(`f_repaire_type != '无隐患'`, {})
316
- }
317
- }
318
- }
319
-
320
- export default {
321
- title: '隐患项列表',
322
- data() {
323
- return {
324
- model: new PagedList('api/af-safecheck/sql/GetDefectByPaperIdNew2', 100, {
325
- f_paper_id: 'this.f_paper_id',f_item_value: 'this.f_item_value'
326
- }),
327
- showSolveModal: false,
328
- showToRepairModal: false,
329
- showDefectModal: false,
330
- valid: false,
331
- needRepair: true,
332
- solveModal: {
333
- preData: {
334
- type: 'view',
335
- defectImg: '',
336
- repairedImg: ''
337
- },
338
- uploadData: {
339
- id: '',
340
- f_repairman: this.$login.f.name,
341
- f_repair_date: Util.getNowDate().substr(0, 10),
342
- f_repair_path: '',
343
- imgSrc: '',
344
- filename: '',
345
- filename3:'',
346
- imgSrc3:'',
347
- filename2:'',
348
- imgSrc2:''
349
- }
350
- },
351
- toRepairModal: {
352
- preData: {
353
- dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'}, {label: '派发给维修员', value: '派发给维修员'}],
354
- repairTypeOptions: this.$appdata.getParam('报修类型'),
355
- dispatchType: '',
356
- f_repairman: '',
357
- f_repairtype: '',
358
- f_remarks: '',
359
- f_meetunit: '',
360
- f_reciever: '',
361
- f_outlets: '',
362
- userInfo: {},
363
- repairers: []
364
- },
365
- uploadData: {
366
- model: {
367
- serviceacitivity: [{
368
- f_service_acitivity_type: '派单'
369
- }],
370
- f_repairitems: {},
371
- failure: '',
372
- f_source: '安检',
373
- f_service_id: '',
374
- f_contact_phone: '',
375
- f_meetunit: '',
376
- f_phone: '',
377
- f_user_name: '',
378
- f_address: '',
379
- f_repair_date: '',
380
- f_reciever: '',
381
- f_remarks: '',
382
- f_user_type: '',
383
- f_area: '',
384
- f_unit_name: '',
385
- f_street: '',
386
- f_residential_area: '',
387
- f_building: '',
388
- f_unit: '',
389
- f_floor: '',
390
- f_room: '',
391
- aState: '',
392
- f_repairtype: '',
393
- f_userinfo_id: '',
394
- f_userinfo_code: '',
395
- f_orgstr: '',
396
- f_outlets: '',
397
- f_attendant: this.$login.f.name
398
- },
399
- loginUser: {
400
- name: this.$login.f.name,
401
- ename: this.$login.f.ename
402
- },
403
- user: {
404
- f_userinfo_id: ''
405
- },
406
- callObj: null
407
- }
408
- }
409
- }
410
- },
411
- props: ['check'],
412
- ready() {
413
- this.model.f_item_value = `(SELECT stuff(( SELECT ',' + f_item_value FROM t_devices_items_lists WHERE ( f_is_defect = 'true' OR di.f_is_defect = 'true') AND f_item_id = di.id FOR xml path ( '' ) ),1,1,'' ) )`
414
- if (this.check) {
415
- this.model.f_paper_id = this.check.id
416
- this.model.search(`f_repaire_type != '无隐患'`, {})
417
- }
418
- this.getEmp()
419
- },
420
- methods: {
421
- //审核通过
422
- auditsure(info){
423
- // 拿到t_devices_items 的ID,给f_audit_results中存入通过 如果未通过,需要可以再次派单,对隐患进行处理
424
- var data = {
425
- id: this.solveModal.uploadData.id,
426
- info:info
427
- }
428
- let http = new HttpResetClass()
429
- http.load('POST', 'api/af-safecheck/logic/DefectAuditUpdate', data, {resolveMsg: null, rejectMsg: null}).then((res) => {
430
- if(res.data.code == 200){
431
- this.model.search(`f_repaire_type != '无隐患'`, {})
432
- this.showSolveModal = false
433
- this.showToRepairModal = false
434
- this.$showMessage('提交成功')
435
- }else{
436
- this.$showMessage('提交失败,请重试')
437
- }
438
- })
439
- },
440
- solveDefect(row, type) {
441
- this.solveModal.preData.defectImg = row.f_path?'/rs/image/file/' + row.f_path:''
442
- this.solveModal.preData.repairedImg = '/rs/image/file/' + row.f_repair_path
443
- this.solveModal.preData.repairedImg2 = '/rs/image/file/' + row.f_repair_path2
444
- this.solveModal.preData.repairedImg3 = '/rs/image/file/' + row.f_repair_path3
445
- this.solveModal.uploadData.id = row.id
446
- this.solveModal.preData.type = type
447
- if (type == 'view') {
448
- this.solveModal.preData.f_repair_path = '/rs/image/file/' + row.f_repair_path
449
- this.solveModal.uploadData.f_repairman = row.f_repairman
450
- this.solveModal.uploadData.f_repair_date = row.f_repair_date
451
- this.$set('solveModal.f_audit_results',row.f_audit_results)
452
- } else {
453
- this.solveModal.uploadData.f_repairman = this.$login.f.name
454
- this.solveModal.uploadData.f_repair_date = Util.getNowDate().substr(0, 10)
455
- }
456
- this.showSolveModal = !this.showSolveModal
457
- },
458
- ok() {
459
- if (!(this.solveModal.uploadData.filename && this.solveModal.uploadData.filename.length > 0)) {
460
- this.$showMessage('请录入处理后照片')
461
- return
462
- }
463
- co(upSolveDefect(this))
464
- },
465
- cancel() {
466
- this.showSolveModal = false
467
- this.showToRepairModal = false
468
- },
469
- toRepair() {
470
- this.showToRepairModal = !this.showToRepairModal
471
- },
472
- getSiteRes(obj) {
473
- //tag
474
- //tag
475
- if(obj.resids[0]){
476
- this.toRepairModal.preData.f_meetunit = obj.res.join('.')
477
- this.toRepairModal.preData.f_reciever = obj.resids.join('.')
478
- }else {
479
- this.toRepairModal.preData.f_meetunit = ''
480
- this.toRepairModal.preData.f_reciever = ''
481
- this.toRepairModal.preData.f_outlets = ''
482
- }
483
- },
484
- // 获取维修员
485
- getEmp() {
486
- let val = {source: 'this.getParentByType($organization$).getChildByName($维修员$).getUsers()', userid: `${this.$login.f.id}`}
487
- let http = new HttpResetClass()
488
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
489
- res.data.forEach((item) => {
490
- let http1 = new HttpResetClass()
491
- http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
492
- data: {
493
- items: 'f_user_telephone',
494
- tablename: 't_user',
495
- condition: `id = ${item.id}`,
496
- orderitem: 'id'
497
- }
498
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
499
- this.toRepairModal.preData.repairers.push({label: `${item.name}:${ress.data[0].f_user_telephone}`, value: item.name})
500
- })
501
- })
502
- })
503
- },
504
- confirm() {
505
- if (this.toRepairModal.preData.dispatchType == '派发给站点' && !this.toRepairModal.preData.f_meetunit) {
506
- this.$showMessage('请选择站点。')
507
- return
508
- }
509
- co(sendRepair(this))
510
- }
511
- },
512
- watch: {
513
- 'check'() {
514
- this.model.f_paper_id = this.check.id
515
- this.model.search(`f_repaire_type != '无隐患'`, {})
516
- },
517
- 'model.rows'() {
518
- if (this.model.rows.length > 0) {
519
- if (this.model.rows[0].f_repaire_type == '未处理') {
520
- this.needRepair = true
521
- return
522
- }
523
- }
524
- this.needRepair = false
525
- }
526
- }
527
- }
528
- </script>
529
- <style lang="less" scoped>
530
- .select-error {
531
- button {
532
- border-bottom: 1px solid #a94442 !important;
533
- }
534
- }
535
- </style>
1
+ <template>
2
+ <div>
3
+ <!-- <div :style="{'height':needRepair?'60%':'100%'}">-->
4
+ <div :style="{'height': '100%'}">
5
+ <criteria-paged :model="model" :pager="false" v-ref:paged>
6
+ <criteria partial='criteria'>
7
+ <div partial>
8
+ <ul class="nav nav-tabs">
9
+ <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">隐患明细</a></li>
10
+ </ul>
11
+ </div>
12
+ </criteria>
13
+ <data-grid :model="model" partial='list' class="table_sy">
14
+ <template partial='head'>
15
+ <tr>
16
+ <!-- <th>-->
17
+ <!-- <nobr>隐患设备</nobr>-->
18
+ <!-- </th>-->
19
+ <th>
20
+ <nobr>隐患项</nobr>
21
+ </th>
22
+ <th>
23
+ <nobr>隐患原因</nobr>
24
+ </th>
25
+ <th>
26
+ <nobr>隐患处理方式</nobr>
27
+ </th>
28
+ <!-- <th>-->
29
+ <!-- <nobr>审核结果</nobr>-->
30
+ <!-- </th>-->
31
+ <th>
32
+ <nobr>备注</nobr>
33
+ </th>
34
+ <th>
35
+ <nobr>操作</nobr>
36
+ </th>
37
+ </tr>
38
+ </template>
39
+ <template partial='body'>
40
+ <!-- <td style="text-align: center">-->
41
+ <!-- <nobr>{{row.f_device_type}}</nobr>-->
42
+ <!-- </td>-->
43
+ <td style="text-align: center">
44
+ <nobr>{{row.f_item_name}}</nobr>
45
+ </td>
46
+ <td style="text-align: center">
47
+ <nobr>{{row.f_item_value}}</nobr>
48
+ </td>
49
+ <td style="text-align: center">
50
+ <nobr>{{row.f_repaire_type}}</nobr>
51
+ </td>
52
+ <td style="text-align: center">
53
+ <nobr>{{row.f_deal_remark ? row.f_deal_remark : ' '}}</nobr>
54
+ </td>
55
+ <!-- <td style="text-align: center">-->
56
+ <!-- <nobr>{{row.f_audit_results?row.f_audit_results:'暂无审核结果'}}</nobr>-->
57
+ <!-- </td>-->
58
+ <td style="text-align: center">
59
+ <img-button v-if="row.f_repaire_type != '无隐患' && row.f_repaire_type != '已处理' && row.f_path" :src="'/rs/image/file/'+row.f_path" :value="'隐患图片'"></img-button>
60
+ <button v-if="row.f_repaire_type == '已处理'" class="button_new-1 button_spacing" @click="$parent.$parent.$parent.solveDefect( row, 'view')">处理详情</button>
61
+ <button v-if="row.f_repaire_type == '未处理' || !row.f_repaire_type" class="button_spacing button_search-1" @click="$parent.$parent.$parent.solveDefect( row, 'solve')">处理隐患</button>
62
+ </td>
63
+ </template>
64
+ </data-grid>
65
+ </criteria-paged>
66
+ </div>
67
+
68
+ <!-- <div style="overflow-y: scroll;height: 40%" v-if="needRepair">-->
69
+ <!-- <div class="form-horizontal auto">-->
70
+ <!-- <ul class="nav nav-tabs">-->
71
+ <!-- <li role="presentation" class="active"><a style=" color: #000 !important;font-size: 14px">转维修</a></li>-->
72
+ <!-- </ul>-->
73
+ <!-- <validator name='v' @valid="valid = true" @invalid="valid = false">-->
74
+ <!-- <div class="row">-->
75
+ <!-- <div class="col-sm-4" :class="[$v.dispatchtype.required ? 'select-error' : '']">-->
76
+ <!-- <label for="dispatchtype" class="font_normal_body">派发类型</label>-->
77
+ <!-- <input id="dispatchtype" type="text" v-show="false" v-model="$refs.dispatchtype.selectedItems" v-validate:dispatchtype='{required: true }'>-->
78
+ <!-- <v-select :value.sync="toRepairModal.preData.dispatchType" v-model="toRepairModal.preData.dispatchType"-->
79
+ <!-- :options='toRepairModal.preData.dispatchTypeOptions' placeholder='派发类型'-->
80
+ <!-- close-on-select v-ref:dispatchtype>-->
81
+ <!-- </v-select>-->
82
+ <!-- </div>-->
83
+ <!-- <div class="col-sm-4 " v-if="toRepairModal.preData.dispatchType == '派发给站点'">-->
84
+ <!-- <label class="font_normal_body">站&nbsp;&nbsp;点</label>-->
85
+ <!-- <right-tree-->
86
+ <!-- islist-->
87
+ <!-- :userid="$login.f.id"-->
88
+ <!-- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"-->
89
+ <!-- @re-res="getSiteRes">-->
90
+ <!-- </right-tree>-->
91
+ <!-- </div>-->
92
+ <!-- <div class="col-sm-4 " v-if="toRepairModal.preData.dispatchType == '派发给维修员'" :class="[$v.f_repairman.required ? 'select-error' : '']">-->
93
+ <!-- <input type="text" v-show="false" v-model="toRepairModal.preData.f_repairman" v-validate:f_repairman='{required: true }'>-->
94
+ <!-- <label class="font_normal_body">维修员</label>-->
95
+ <!-- <v-select-->
96
+ <!-- :value.sync="toRepairModal.preData.f_repairman"-->
97
+ <!-- :value-single="true"-->
98
+ <!-- :options='toRepairModal.preData.repairers'-->
99
+ <!-- placeholder='请选择维修员'-->
100
+ <!-- close-on-select></v-select>-->
101
+ <!-- </div>-->
102
+ <!-- <div class="col-sm-4" :class="[$v.f_repairtype.required ? 'select-error' : '']">-->
103
+ <!-- <input type="text" v-show="false" v-model="toRepairModal.preData.f_repairtype" v-validate:f_repairtype='{required: true }'>-->
104
+ <!-- <label class="font_normal_body">报修类型</label>-->
105
+ <!-- <v-select :value.sync="toRepairModal.preData.f_repairtype" style="width:60%"-->
106
+ <!-- class="select select_list"-->
107
+ <!-- :value-single="true"-->
108
+ <!-- :options='toRepairModal.preData.repairTypeOptions'-->
109
+ <!-- close-on-select>-->
110
+ <!-- </v-select>-->
111
+ <!-- </div>-->
112
+ <!-- </div>-->
113
+ <!-- <div class="row">-->
114
+ <!-- <div class="col-sm-8 form-group">-->
115
+ <!-- <label class="font_normal_body" >备&emsp;&emsp;注</label>-->
116
+ <!-- <input class="input_search" style="width: 60%" type="text" v-model="toRepairModal.preData.f_remarks" placeholder="备注">-->
117
+
118
+ <!-- </div>-->
119
+ <!-- <div class="col-sm-4" style="margin-top: 1%">-->
120
+ <!-- <button class="button_search" :disabled="!valid" @click="confirm">转维修</button>-->
121
+ <!-- </div>-->
122
+ <!-- </div>-->
123
+ <!-- </validator>-->
124
+ <!-- </div>-->
125
+ <!-- </div>-->
126
+ <modal :show.sync="showSolveModal" v-ref:solveModal>
127
+ <div slot="modal-header" class="modal-header">
128
+ <h4 class="modal-title">
129
+ {{solveModal.preData.type == 'view'?'处理详情':'处理隐患'}}
130
+ </h4>
131
+ </div>
132
+ <div slot="modal-body" class="modal-body">
133
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
134
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
135
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
136
+ </div>
137
+
138
+ <div class="col-sm-6" style="margin-top: 10px">
139
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
140
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_checker_name" placeholder="安检员">
141
+ </div>
142
+ <div class="col-sm-6" style="margin-top: 10px">
143
+ <label class="font_normal_body">安检时间</label>
144
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_offsite_time" placeholder="安检时间">
145
+ </div>
146
+ <div class="col-sm-12" style="margin-bottom: 10px" v-show="solveModal.preData.defectImg">
147
+ <label class="font_normal_body">隐患图片</label>
148
+ <img-self :width="200" :height="200" :src="solveModal.preData.defectImg"></img-self>
149
+ </div>
150
+
151
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
152
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
153
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理后</p></div>
154
+ </div>
155
+ <div class="col-sm-6" style="margin-top: 10px">
156
+ <label class="font_normal_body">处&nbsp;理&nbsp;人</label>
157
+ <input v-if="solveModal.preData.type != 'solve'" class="input_search" style="width: 60%" disabled="true" type="text" v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
158
+ <v-select
159
+ v-if="solveModal.preData.type == 'solve'"
160
+ :value.sync="solveModal.uploadData.f_repairman"
161
+ :value-single="true"
162
+ :options='toRepairModal.preData.repairers'
163
+ placeholder='请选择维修员'
164
+ close-on-select></v-select>
165
+ </div>
166
+ <div class="col-sm-6" style="margin-top: 10px">
167
+ <label class="font_normal_body">处理时间</label>
168
+ <datepicker
169
+ :disabled="solveModal.preData.type == 'view'"
170
+ placeholder='处理时间' style="width:60%"
171
+ :disabled-days-of-week="[]"
172
+ :format="'yyyy-MM-dd'"
173
+ :show-rest-button="reset"
174
+ :value.sync="solveModal.uploadData.f_repair_date">
175
+ </datepicker>
176
+ </div>
177
+ <div v-if="solveModal.preData.type == 'solve'" class="col-sm-12" style="margin-bottom: 10px">
178
+ <label class="font_normal_body">处理后图片</label>
179
+ <avatar-upload style="float: left" :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc" :filename.sync="solveModal.uploadData.filename" v-ref:imginfo></avatar-upload>
180
+ <avatar-upload style="float: left" :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc2" :filename.sync="solveModal.uploadData.filename2" v-ref:imginfo></avatar-upload>
181
+ <avatar-upload style="float: left" :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc3" :filename.sync="solveModal.uploadData.filename3" v-ref:imginfo></avatar-upload>
182
+ </div>
183
+ <div v-if="solveModal.preData.type == 'view'" v-show="solveModal.preData.repairedImg" class="col-sm-12" style="margin-bottom: 10px">
184
+ <label class="font_normal_body">处理后图片</label>
185
+ <img-self style="float: left" :width="200" :height="200" :src="solveModal.preData.repairedImg"></img-self>
186
+ <img-self style="float: left" v-if="solveModal.preData.repairedImg2" :width="200" :height="200" :src="solveModal.preData.repairedImg2"></img-self>
187
+ <img-self style="float: left" v-if="solveModal.preData.repairedImg3" :width="200" :height="200" :src="solveModal.preData.repairedImg3"></img-self>
188
+ </div>
189
+ </div>
190
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
191
+ <!-- <button class="button_search" @click="auditsure('通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核通过</button>-->
192
+ <!-- <button class="button_search" @click="auditsure('不通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核不通过</button>-->
193
+ <button class="button_search" v-if="solveModal.preData.type == 'solve'" @click="ok">确认</button>
194
+ <button class="button_search" @click="cancel">取消</button>
195
+ </div>
196
+ </modal>
197
+
198
+ </div>
199
+ </template>
200
+
201
+ <script>
202
+ import {PagedList, HttpResetClass} from 'vue-client'
203
+ import * as Util from '../../../components/Util'
204
+ import co from 'co'
205
+
206
+ const upSolveDefect = function * (self) {
207
+ let uploadData = self.solveModal.uploadData
208
+ //tag)
209
+ self.$resetpost('/api/af-safecheck/logic/pcRepairDefectNew', self.solveModal.uploadData, {resolveMsg: null, rejectMsg: null})
210
+ .then(res => {
211
+ if (res.data.code === 200) {
212
+ self.$showMessage('隐患已处理。')
213
+ self.showSolveModal = false
214
+ self.model.search('f_repaire_type != \'无隐患\'', {})
215
+ }
216
+ })
217
+ }
218
+
219
+ const sendRepair = function* (self) {
220
+ let preData = self.toRepairModal.preData
221
+ let uploadData = self.toRepairModal.uploadData
222
+
223
+ if (preData.dispatchType == '派发给站点') {
224
+ uploadData.model.serviceacitivity[0].f_meetunit = preData.f_meetunit
225
+ uploadData.model.serviceacitivity[0].f_reciever = preData.f_reciever
226
+ uploadData.model.f_meetunit = preData.f_meetunit
227
+ uploadData.model.f_orgstr = preData.f_reciever
228
+ uploadData.model.f_outlets = preData.f_outlets
229
+ } else if (preData.dispatchType == '派发给维修员') {
230
+ uploadData.model.serviceacitivity[0].f_reciever = preData.f_repairman
231
+ // uploadData.model.f_meetunit = self.$login.f.orgpathnames
232
+ // uploadData.model.f_orgstr = self.$login.f.orgpathstr
233
+ // uploadData.model.f_outlets = self.$login.f.f_parentname
234
+ uploadData.model.f_meetunit = self.$login.f.deps
235
+ uploadData.model.f_orgid = self.$login.f.orgid
236
+ uploadData.model.f_filiale = self.$login.f.org
237
+ uploadData.model.f_outlets = self.$login.f.deps
238
+ uploadData.model.f_filiale_id = self.$login.f.orgid
239
+ uploadData.toRepair = '一级派单'
240
+ }
241
+ let res = yield self.$resetpost('/api/af-safecheck/sql/GetUserForRepaireNew2', {data: {f_userinfo_id: self.check.f_userinfo_id}})
242
+ preData.userInfo = res.data[0]
243
+ uploadData.model = Object.assign(uploadData.model, preData.userInfo)
244
+ uploadData.user.f_userinfo_id = preData.userInfo.f_userinfo_id
245
+ uploadData.model.f_repair_date = Util.getNowDate()
246
+ uploadData.model.f_repairtype = preData.f_repairtype
247
+ uploadData.model.f_remarks = preData.f_remarks
248
+ // 拼接failure
249
+ let failure = []
250
+ self.model.rows.forEach(row => {
251
+ if (row.f_repaire_type == '未处理') {
252
+ failure.push({
253
+ f_failure_type: row.f_item_name,
254
+ failurecase: row.f_item_value?row.f_item_value.split(','):''
255
+ })
256
+ }
257
+ })
258
+ uploadData.model.failure = failure
259
+ // 拼接repairitems
260
+ let rows = JSON.parse(JSON.stringify(self.model.rows))
261
+ let repairitems = {
262
+ data: []
263
+ }
264
+ let safecheckOptions = [{"data": "已处理"}, {"data": "未处理"}]
265
+ // 取未处理的
266
+ rows = rows.filter(row => row.f_repaire_type == '未处理')
267
+ //tag)
268
+ // 开始拼接
269
+ rows.forEach(row => {
270
+ let existIndex = -1
271
+ // 判断该设备是否已经存在
272
+ for (let i = 0; i < repairitems.data.length; i++) {
273
+ if (repairitems.data[i].f_type == row.f_device_type) {
274
+ existIndex = i
275
+ break
276
+ }
277
+ }
278
+ if (existIndex == -1) {
279
+ // 不存在则新建
280
+ let newItem = {
281
+ f_type: row.f_device_type,
282
+ details: [{
283
+ f_defect_id: row.id,
284
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
285
+ type: 'selector',
286
+ options: safecheckOptions
287
+ }]
288
+ }
289
+ repairitems.data.push(newItem)
290
+ } else {
291
+ // 存在则追加
292
+ repairitems.data[existIndex].details.push({
293
+ f_defect_id: row.id,
294
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
295
+ type: 'selector',
296
+ options: safecheckOptions
297
+ })
298
+ }
299
+ })
300
+ uploadData.model.f_repairitems = repairitems
301
+ //tag)
302
+ // 调工单接口
303
+ let result = yield self.$resetpost('/api/af-safecheck/logic/callerSend', uploadData)
304
+ //tag)
305
+ if (result.data.f_service_id) {
306
+ const data = {
307
+ f_paper_id: rows[0].f_paper_id,
308
+ f_service_id: result.data.f_service_id,
309
+ itemsId: self.$login.convertToIn(rows.map(row => row.id))
310
+ }
311
+ //tag
312
+ let updateRes = yield self.$resetpost('/api/af-safecheck/logic/updateDefectStateNew', data)
313
+ if (updateRes.data.code == 200) {
314
+ self.$showMessage('隐患已转维修。')
315
+ self.model.search(`f_repaire_type != '无隐患'`, {})
316
+ }
317
+ }
318
+ }
319
+
320
+ export default {
321
+ title: '隐患项列表',
322
+ data() {
323
+ return {
324
+ model: new PagedList('api/af-safecheck/sql/GetDefectByPaperIdNew2', 100, {
325
+ f_paper_id: 'this.f_paper_id',f_item_value: 'this.f_item_value'
326
+ }),
327
+ showSolveModal: false,
328
+ showToRepairModal: false,
329
+ showDefectModal: false,
330
+ valid: false,
331
+ needRepair: true,
332
+ solveModal: {
333
+ preData: {
334
+ type: 'view',
335
+ defectImg: '',
336
+ repairedImg: ''
337
+ },
338
+ uploadData: {
339
+ id: '',
340
+ f_repairman: this.$login.f.name,
341
+ f_repair_date: Util.getNowDate().substr(0, 10),
342
+ f_repair_path: '',
343
+ imgSrc: '',
344
+ filename: '',
345
+ filename3:'',
346
+ imgSrc3:'',
347
+ filename2:'',
348
+ imgSrc2:''
349
+ }
350
+ },
351
+ toRepairModal: {
352
+ preData: {
353
+ dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'}, {label: '派发给维修员', value: '派发给维修员'}],
354
+ repairTypeOptions: this.$appdata.getParam('报修类型'),
355
+ dispatchType: '',
356
+ f_repairman: '',
357
+ f_repairtype: '',
358
+ f_remarks: '',
359
+ f_meetunit: '',
360
+ f_reciever: '',
361
+ f_outlets: '',
362
+ userInfo: {},
363
+ repairers: []
364
+ },
365
+ uploadData: {
366
+ model: {
367
+ serviceacitivity: [{
368
+ f_service_acitivity_type: '派单'
369
+ }],
370
+ f_repairitems: {},
371
+ failure: '',
372
+ f_source: '安检',
373
+ f_service_id: '',
374
+ f_contact_phone: '',
375
+ f_meetunit: '',
376
+ f_phone: '',
377
+ f_user_name: '',
378
+ f_address: '',
379
+ f_repair_date: '',
380
+ f_reciever: '',
381
+ f_remarks: '',
382
+ f_user_type: '',
383
+ f_area: '',
384
+ f_unit_name: '',
385
+ f_street: '',
386
+ f_residential_area: '',
387
+ f_building: '',
388
+ f_unit: '',
389
+ f_floor: '',
390
+ f_room: '',
391
+ aState: '',
392
+ f_repairtype: '',
393
+ f_userinfo_id: '',
394
+ f_userinfo_code: '',
395
+ f_orgstr: '',
396
+ f_outlets: '',
397
+ f_attendant: this.$login.f.name
398
+ },
399
+ loginUser: {
400
+ name: this.$login.f.name,
401
+ ename: this.$login.f.ename
402
+ },
403
+ user: {
404
+ f_userinfo_id: ''
405
+ },
406
+ callObj: null
407
+ }
408
+ }
409
+ }
410
+ },
411
+ props: ['check'],
412
+ ready() {
413
+ this.model.f_item_value = `(SELECT stuff(( SELECT ',' + f_item_value FROM t_devices_items_lists WHERE ( f_is_defect = 'true' OR di.f_is_defect = 'true') AND f_item_id = di.id FOR xml path ( '' ) ),1,1,'' ) )`
414
+ if (this.check) {
415
+ this.model.f_paper_id = this.check.id
416
+ this.model.search(`f_repaire_type != '无隐患'`, {})
417
+ }
418
+ this.getEmp()
419
+ },
420
+ methods: {
421
+ //审核通过
422
+ auditsure(info){
423
+ // 拿到t_devices_items 的ID,给f_audit_results中存入通过 如果未通过,需要可以再次派单,对隐患进行处理
424
+ var data = {
425
+ id: this.solveModal.uploadData.id,
426
+ info:info
427
+ }
428
+ let http = new HttpResetClass()
429
+ http.load('POST', 'api/af-safecheck/logic/DefectAuditUpdate', data, {resolveMsg: null, rejectMsg: null}).then((res) => {
430
+ if(res.data.code == 200){
431
+ this.model.search(`f_repaire_type != '无隐患'`, {})
432
+ this.showSolveModal = false
433
+ this.showToRepairModal = false
434
+ this.$showMessage('提交成功')
435
+ }else{
436
+ this.$showMessage('提交失败,请重试')
437
+ }
438
+ })
439
+ },
440
+ solveDefect(row, type) {
441
+ this.solveModal.preData.defectImg = row.f_path?'/rs/image/file/' + row.f_path:''
442
+ this.solveModal.preData.repairedImg = '/rs/image/file/' + row.f_repair_path
443
+ this.solveModal.preData.repairedImg2 = '/rs/image/file/' + row.f_repair_path2
444
+ this.solveModal.preData.repairedImg3 = '/rs/image/file/' + row.f_repair_path3
445
+ this.solveModal.uploadData.id = row.id
446
+ this.solveModal.preData.type = type
447
+ if (type == 'view') {
448
+ this.solveModal.preData.f_repair_path = '/rs/image/file/' + row.f_repair_path
449
+ this.solveModal.uploadData.f_repairman = row.f_repairman
450
+ this.solveModal.uploadData.f_repair_date = row.f_repair_date
451
+ this.$set('solveModal.f_audit_results',row.f_audit_results)
452
+ } else {
453
+ this.solveModal.uploadData.f_repairman = this.$login.f.name
454
+ this.solveModal.uploadData.f_repair_date = Util.getNowDate().substr(0, 10)
455
+ }
456
+ this.showSolveModal = !this.showSolveModal
457
+ },
458
+ ok() {
459
+ if (!(this.solveModal.uploadData.filename && this.solveModal.uploadData.filename.length > 0)) {
460
+ this.$showMessage('请录入处理后照片')
461
+ return
462
+ }
463
+ co(upSolveDefect(this))
464
+ },
465
+ cancel() {
466
+ this.showSolveModal = false
467
+ this.showToRepairModal = false
468
+ },
469
+ toRepair() {
470
+ this.showToRepairModal = !this.showToRepairModal
471
+ },
472
+ getSiteRes(obj) {
473
+ //tag
474
+ //tag
475
+ if(obj.resids[0]){
476
+ this.toRepairModal.preData.f_meetunit = obj.res.join('.')
477
+ this.toRepairModal.preData.f_reciever = obj.resids.join('.')
478
+ }else {
479
+ this.toRepairModal.preData.f_meetunit = ''
480
+ this.toRepairModal.preData.f_reciever = ''
481
+ this.toRepairModal.preData.f_outlets = ''
482
+ }
483
+ },
484
+ // 获取维修员
485
+ getEmp() {
486
+ let val = {source: 'this.getParentByType($organization$).getChildByName($维修员$).getUsers()', userid: `${this.$login.f.id}`}
487
+ let http = new HttpResetClass()
488
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
489
+ res.data.forEach((item) => {
490
+ let http1 = new HttpResetClass()
491
+ http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
492
+ data: {
493
+ items: 'f_user_telephone',
494
+ tablename: 't_user',
495
+ condition: `id = ${item.id}`,
496
+ orderitem: 'id'
497
+ }
498
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
499
+ this.toRepairModal.preData.repairers.push({label: `${item.name}:${ress.data[0].f_user_telephone}`, value: item.name})
500
+ })
501
+ })
502
+ })
503
+ },
504
+ confirm() {
505
+ if (this.toRepairModal.preData.dispatchType == '派发给站点' && !this.toRepairModal.preData.f_meetunit) {
506
+ this.$showMessage('请选择站点。')
507
+ return
508
+ }
509
+ co(sendRepair(this))
510
+ }
511
+ },
512
+ watch: {
513
+ 'check'() {
514
+ this.model.f_paper_id = this.check.id
515
+ this.model.search(`f_repaire_type != '无隐患'`, {})
516
+ },
517
+ 'model.rows'() {
518
+ if (this.model.rows.length > 0) {
519
+ if (this.model.rows[0].f_repaire_type == '未处理') {
520
+ this.needRepair = true
521
+ return
522
+ }
523
+ }
524
+ this.needRepair = false
525
+ }
526
+ }
527
+ }
528
+ </script>
529
+ <style lang="less" scoped>
530
+ .select-error {
531
+ button {
532
+ border-bottom: 1px solid #a94442 !important;
533
+ }
534
+ }
535
+ </style>