safecheck-client 4.0.0-84 → 4.0.0-86

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 (226) hide show
  1. package/package.json +132 -132
  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 +740 -740
  9. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  10. package/src/components/android/Devices.vue +327 -327
  11. package/src/components/android/Devicesm.vue +327 -327
  12. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  13. package/src/components/android/PhoneRecordInfo.vue +113 -113
  14. package/src/components/android/PhoneSellInfo.vue +113 -113
  15. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  16. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  17. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  18. package/src/components/android/SafePlanItem.vue +509 -509
  19. package/src/components/android/examples/SafeListExamples.vue +296 -296
  20. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  21. package/src/components/android/recheck/Recheck.vue +402 -402
  22. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  23. package/src/components/checkplan/checkmsg.vue +459 -459
  24. package/src/components/defect/DefectList.vue +507 -507
  25. package/src/components/defect/DefectListWeixiu.vue +484 -484
  26. package/src/components/filialCircle/CircleList.vue +139 -139
  27. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  28. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  29. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  30. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  31. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  32. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  33. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  34. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  35. package/src/components/pc/AnnouncementPC.vue +524 -524
  36. package/src/components/pc/DefectList.vue +742 -742
  37. package/src/components/pc/DeviceChange.vue +1068 -1068
  38. package/src/components/pc/SafeVisitInfo.vue +261 -261
  39. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  40. package/src/components/report/HiddenSituation.vue +165 -165
  41. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  42. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  43. package/src/components/rongcheng/DefectList.vue +560 -560
  44. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  45. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  46. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  47. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  48. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  49. package/src/components/shaoguan/DefectList.vue +473 -473
  50. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  51. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  52. package/src/components/userfile/SecurityAudit.vue +243 -243
  53. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  54. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  55. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  56. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  57. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  58. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  59. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  60. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  61. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  62. package/src/filiale/bayan/android/Edit.vue +132 -132
  63. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  64. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  65. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  66. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  67. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  68. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  69. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  70. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  71. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  72. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  73. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  74. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  75. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  76. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  77. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  78. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  79. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  80. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  81. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  82. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  83. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  84. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  85. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  86. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  87. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  88. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  89. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  90. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  91. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  92. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  93. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  94. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  95. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  96. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  97. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  98. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  99. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  100. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  101. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  102. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  103. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  104. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  105. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  106. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  107. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  108. package/src/filiale/meihekou/android/AreaPlan.vue +577 -571
  109. package/src/filiale/meihekou/android/CurrentCreate.vue +1097 -1092
  110. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1306 -1306
  111. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2409 -2409
  112. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -787
  113. package/src/filiale/meihekou/pc/NewCheckpaper.vue +1959 -1960
  114. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  115. package/src/filiale/meihekou/pc.js +13 -13
  116. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  117. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  118. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  119. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  120. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  121. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  122. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  123. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  124. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  125. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  126. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  127. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  128. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  129. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  130. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  131. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  132. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  133. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  134. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  135. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  136. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  137. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  138. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  139. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  140. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  141. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  142. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  143. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  144. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  145. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  146. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  147. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  148. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  149. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  150. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  151. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  152. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  153. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  154. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  155. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  156. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  157. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  158. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  159. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  160. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  161. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  162. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  163. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  164. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  165. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  166. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  167. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  168. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  169. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  170. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  171. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  172. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  173. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  174. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  175. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  176. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  177. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  178. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  179. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  180. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  181. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  182. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  183. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  184. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  185. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  186. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  187. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  188. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  189. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  190. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  191. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  192. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  193. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  194. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  195. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  196. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  197. package/src/filiale/xiangyuanzhongai/android.js +13 -13
  198. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  199. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  200. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  201. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  202. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  203. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  204. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  205. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  206. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  207. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  208. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  209. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  210. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  211. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  212. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  213. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  214. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  215. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  216. package/src/filiale/yunchengminsheng/android.js +15 -15
  217. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  218. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  219. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  220. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  221. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  222. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  223. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  224. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  225. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  226. package/src/main.js +32 -33
@@ -1,130 +1,130 @@
1
- <template>
2
- <div style="height: 100%;width: 100%;padding:10px 0px 10px 0px;">
3
- <div class="auto">
4
- <partial-view v-ref:pv>
5
- <div class="row text-left" style="padding-bottom: 10px">
6
- <label class="col-sm-3 control-label">用户编号:</label>
7
- <span class="col-sm-9">{{ rowdata.f_userinfo_code }}</span>
8
- </div>
9
- <div class="row text-left" style="padding-bottom: 10px">
10
- <label class="col-sm-3 control-label">用户姓名:</label>
11
- <span class="col-sm-9">{{ rowdata.f_user_name }}</span>
12
- </div>
13
- <div class="row text-left" style="padding-bottom: 10px">
14
- <label class="col-sm-3 control-label">用户类型:</label>
15
- <span class="col-sm-9">{{ rowdata.f_user_type }}</span>
16
- </div>
17
- <div class="row text-left" style="padding-bottom: 10px">
18
- <label class="col-sm-3 control-label">用户地址:</label>
19
- <span class="col-sm-9">{{ rowdata.f_address }}</span>
20
- </div>
21
- </partial-view>
22
- </div>
23
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
24
- <template partial='head'>
25
- <tr>
26
- <th>安检人</th>
27
- <!-- <th>安检开始时间</th>-->
28
- <th>安检结束时间</th>
29
- <th>安检上传时间</th>
30
- <th>安检状态</th>
31
- <!-- <th>隐患情况</th>-->
32
- <th>操作</th>
33
- </tr>
34
- </template>
35
- <template partial='body'>
36
- <tr style="text-align: center">
37
- <td style="text-align: center">{{ row.f_checker_name }}</td>
38
- <!-- <td>{{row.f_onsite_time}}</td>-->
39
- <td style="text-align: center">{{ row.f_offsite_time }}</td>
40
- <td style="text-align: center">{{ row.f_upload_date }}</td>
41
- <td style="text-align: center">{{ row.f_entry_status }}</td>
42
- <!-- <td>{{$parent.$parent.getDefect(row.f_defect_content)}}</td>-->
43
- <td style="text-align: center">
44
- <button class="button_spacing button_search-1" @click='$parent.$parent.goDetail(row)'>查看</button>
45
- </td>
46
- </tr>
47
- </template>
48
- </data-grid>
49
- </div>
50
- </template>
51
-
52
- <script>
53
- import {PagedList} from 'vue-client'
54
- import Vue from "vue";
55
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
56
-
57
- let asyncReady = async function (self) {
58
- // 获取配置信息
59
- try {
60
- let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
61
- self.delConfigKey(res.data)
62
- Vue.config.safecheck=res.data
63
- console.log('获取配置结果===', res.data)
64
- } catch (error) {
65
- // 忽略704,文件找不到异常R
66
- if (error.status !== 704) {
67
- throw error
68
- }
69
- }
70
- }
71
-
72
- export default {
73
- title: '安检记录列表',
74
- props: ['row'],
75
- data() {
76
- return {
77
- rowdata: this.row,
78
- model: new PagedList('api/af-safecheck/sql/查找安检单', 10, {
79
- f_filialeid: "''",
80
- f_plan_id: "''",
81
- f_approved: "''",
82
- f_entry_status: "''",
83
- f_no_checkplan: "''",
84
- orderitem: "'f_offsite_time desc'"
85
- })
86
- }
87
- },
88
- ready() {
89
- //tag
90
- this.rowdata = this.row
91
- var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
92
- if (this.row.filialeCon){
93
- condition += ` and ${this.row.filialeCon}`
94
- }
95
- this.model.params.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
96
- this.model.search(condition)
97
- },
98
- watch: {
99
- 'row'(val) {
100
- if (val) {
101
- this.rowdata = val
102
- var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
103
- if (this.row.filialeCon){
104
- condition += ` and ${this.row.filialeCon}`
105
- }
106
- this.model.search(condition)
107
-
108
- }
109
- }
110
- },
111
- methods: {
112
- getDefect(val) {
113
- if (val) {
114
- try {
115
- var defect = JSON.parse(val)
116
- return defect.result
117
- } catch (e) {
118
- //tag
119
- return '正常'
120
- }
121
- }
122
- return '正常'
123
- },
124
- goDetail(row) {
125
- row.f_upload_state = '已传'
126
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
127
- }
128
- }
129
- }
130
- </script>
1
+ <template>
2
+ <div style="height: 100%;width: 100%;padding:10px 0px 10px 0px;">
3
+ <div class="auto">
4
+ <partial-view v-ref:pv>
5
+ <div class="row text-left" style="padding-bottom: 10px">
6
+ <label class="col-sm-3 control-label">用户编号:</label>
7
+ <span class="col-sm-9">{{ rowdata.f_userinfo_code }}</span>
8
+ </div>
9
+ <div class="row text-left" style="padding-bottom: 10px">
10
+ <label class="col-sm-3 control-label">用户姓名:</label>
11
+ <span class="col-sm-9">{{ rowdata.f_user_name }}</span>
12
+ </div>
13
+ <div class="row text-left" style="padding-bottom: 10px">
14
+ <label class="col-sm-3 control-label">用户类型:</label>
15
+ <span class="col-sm-9">{{ rowdata.f_user_type }}</span>
16
+ </div>
17
+ <div class="row text-left" style="padding-bottom: 10px">
18
+ <label class="col-sm-3 control-label">用户地址:</label>
19
+ <span class="col-sm-9">{{ rowdata.f_address }}</span>
20
+ </div>
21
+ </partial-view>
22
+ </div>
23
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
24
+ <template partial='head'>
25
+ <tr>
26
+ <th>安检人</th>
27
+ <!-- <th>安检开始时间</th>-->
28
+ <th>安检结束时间</th>
29
+ <th>安检上传时间</th>
30
+ <th>安检状态</th>
31
+ <!-- <th>隐患情况</th>-->
32
+ <th>操作</th>
33
+ </tr>
34
+ </template>
35
+ <template partial='body'>
36
+ <tr style="text-align: center">
37
+ <td style="text-align: center">{{ row.f_checker_name }}</td>
38
+ <!-- <td>{{row.f_onsite_time}}</td>-->
39
+ <td style="text-align: center">{{ row.f_offsite_time }}</td>
40
+ <td style="text-align: center">{{ row.f_upload_date }}</td>
41
+ <td style="text-align: center">{{ row.f_entry_status }}</td>
42
+ <!-- <td>{{$parent.$parent.getDefect(row.f_defect_content)}}</td>-->
43
+ <td style="text-align: center">
44
+ <button class="button_spacing button_search-1" @click='$parent.$parent.goDetail(row)'>查看</button>
45
+ </td>
46
+ </tr>
47
+ </template>
48
+ </data-grid>
49
+ </div>
50
+ </template>
51
+
52
+ <script>
53
+ import {PagedList} from 'vue-client'
54
+ import Vue from "vue";
55
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
56
+
57
+ let asyncReady = async function (self) {
58
+ // 获取配置信息
59
+ try {
60
+ let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
61
+ self.delConfigKey(res.data)
62
+ Vue.config.safecheck=res.data
63
+ console.log('获取配置结果===', res.data)
64
+ } catch (error) {
65
+ // 忽略704,文件找不到异常R
66
+ if (error.status !== 704) {
67
+ throw error
68
+ }
69
+ }
70
+ }
71
+
72
+ export default {
73
+ title: '安检记录列表',
74
+ props: ['row'],
75
+ data() {
76
+ return {
77
+ rowdata: this.row,
78
+ model: new PagedList('api/af-safecheck/sql/查找安检单', 10, {
79
+ f_filialeid: "''",
80
+ f_plan_id: "''",
81
+ f_approved: "''",
82
+ f_entry_status: "''",
83
+ f_no_checkplan: "''",
84
+ orderitem: "'f_offsite_time desc'"
85
+ })
86
+ }
87
+ },
88
+ ready() {
89
+ //tag
90
+ this.rowdata = this.row
91
+ var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
92
+ if (this.row.filialeCon){
93
+ condition += ` and ${this.row.filialeCon}`
94
+ }
95
+ this.model.params.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
96
+ this.model.search(condition)
97
+ },
98
+ watch: {
99
+ 'row'(val) {
100
+ if (val) {
101
+ this.rowdata = val
102
+ var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
103
+ if (this.row.filialeCon){
104
+ condition += ` and ${this.row.filialeCon}`
105
+ }
106
+ this.model.search(condition)
107
+
108
+ }
109
+ }
110
+ },
111
+ methods: {
112
+ getDefect(val) {
113
+ if (val) {
114
+ try {
115
+ var defect = JSON.parse(val)
116
+ return defect.result
117
+ } catch (e) {
118
+ //tag
119
+ return '正常'
120
+ }
121
+ }
122
+ return '正常'
123
+ },
124
+ goDetail(row) {
125
+ row.f_upload_state = '已传'
126
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
127
+ }
128
+ }
129
+ }
130
+ </script>
@@ -1,165 +1,165 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" :pager='false'>
4
- <criteria partial='criteria' @condition-changed='search' class="search_area">
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-4 form-group">
8
- <role-selector-safe
9
- role-name="安检员"
10
- role-lable="安&ensp;检&ensp;员"
11
- @re-res="$parent.$parent.getRes"
12
- :value.sync="model.f_checker_id"
13
- v-model="model.f_checker_id"
14
- condition="f_checker_name like '%{}%'">
15
- </role-selector-safe>
16
- </div>
17
- <div class="col-sm-2 form-group">
18
- <label for="startDate" class="font_normal_body">开始日期:</label>
19
- <datepicker id="startDate" placeholder="开始日期"
20
- v-model="model.startDate"
21
- :value.sync="model.startDate"
22
- style="width: 60%;"
23
- :disabled-days-of-Week="[]"
24
- :format="'yyyy-MM-dd 00:00:00'"
25
- :show-reset-button="reset">
26
- </datepicker>
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label for="endDate" class="font_normal_body">结束日期:</label>
30
- <datepicker id="endDate" placeholder="结束日期"
31
- v-model="model.endDate"
32
- :value.sync="model.endDate"
33
- :disabled-days-of-Week="[]"
34
- style="width: 60%;"
35
- :format="'yyyy-MM-dd 23:59:59'"
36
- :show-reset-button="reset">
37
- </datepicker>
38
- </div>
39
- <div class="col-sm-4 form-group" style="margin-top: 8px">
40
- <button class="button_search button_spacing" @click="search()">查询</button>
41
- <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
42
- <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
43
- </div>
44
- </div>
45
- <div class="row">
46
- <div class="col-sm-2 form-group" >
47
- <label class="font_normal_body">用气性质</label>
48
- <v-select
49
- class="select_list select"
50
- placeholder='用气性质' style="width: 60%"
51
- v-model='model.userType'
52
- :value.sync="model.userType"
53
- :options='$parent.$parent.userTypes'
54
- condition="tuf.f_gasproperties in {} "
55
- :multiple="true"
56
- ></v-select>
57
- </div>
58
- <div class="col-sm-2 form-group" >
59
- <label class="font_normal_body">气表类型</label>
60
- <v-select
61
- class="select_list select"
62
- placeholder='气表类型' style="width: 60%"
63
- v-model='model.tableType'
64
- :value.sync="model.tableType"
65
- :options='$parent.$parent.tableTypes'
66
- condition="tuf.f_meter_classify = '{}'"
67
- :value-single="true"
68
- close-on-select clear-button></v-select>
69
- </div>
70
- <div class="col-sm-2 form-group" >
71
- <label class="font_normal_body">气表品牌</label>
72
- <v-select
73
- class="select_list select"
74
- placeholder='气表类型' style="width: 60%"
75
- v-model='model.tableBrand'
76
- :value.sync="model.tableBrand"
77
- :options='$parent.$parent.tableBrands'
78
- condition="gb.f_meter_brand = '{}'"
79
- :value-single="true"
80
- close-on-select clear-button></v-select>
81
- </div>
82
- </div>
83
- </div>
84
- </criteria>
85
- <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
86
- <table class='tableprint' style="margin: 0px auto">
87
- <thead>
88
- <tr>
89
- <th colspan='5' style="font-weight: normal; text-align: left;">
90
- <h3 style="text-align: center">隐患报表</h3>
91
- </th>
92
- </tr>
93
- <tr>
94
- <th colspan='5' style="font-weight: normal; text-align: center;">
95
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
96
- 结束时间:{{ model.model.endDate }}
97
- </th>
98
- </tr>
99
- </thead>
100
- <tr>
101
- <th colspan='5' style="font-weight: normal;">
102
- {{{ model.data.substring(26,model.data.length-8) }}}
103
- </th>
104
- </tr>
105
- </table>
106
- </div>
107
- </criteria-paged>
108
- </div>
109
-
110
- </template>
111
-
112
- <script>
113
- import {DataModel, HttpResetClass} from 'vue-client'
114
-
115
- export default {
116
- title: '隐患报表',
117
- data () {
118
-
119
- let model = new DataModel('/api/af-safecheck/report/hiddensituation', {
120
- startDate: 'this.model.startDate',
121
- endDate: 'this.model.endDate',
122
- f_filialeid: 'this.f_filialeid'
123
- })
124
- model.f_filialeid = '(' + this.$login.f.orgid + ')'
125
- return {
126
- userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
127
- tableTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
128
- tableBrands: [{label: '全部', value: ''}],
129
- filialeNameStr: '',
130
- filialeCodeStr: '',
131
- userid: this.$login.f.id,
132
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
133
- model: model
134
- }
135
- },
136
- methods: {
137
- getRes (obj) {
138
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
139
- },
140
- getTableBrands() {
141
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
142
- {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
143
- {resolveMsg: null, rejectMsg: null}).then((resp) => {
144
- resp.data.forEach((result) => {
145
- this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
146
- })
147
- })
148
- },
149
- },
150
- ready () {
151
- this.getTableBrands()
152
- },
153
- computed: {
154
- selected () {
155
- return this.$refs.grid.selected
156
- }
157
- // outlets () {
158
- // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
159
- // },
160
- // operator () {
161
- // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
162
- // }
163
- }
164
- }
165
- </script>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false'>
4
+ <criteria partial='criteria' @condition-changed='search' class="search_area">
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-4 form-group">
8
+ <role-selector-safe
9
+ role-name="安检员"
10
+ role-lable="安&ensp;检&ensp;员"
11
+ @re-res="$parent.$parent.getRes"
12
+ :value.sync="model.f_checker_id"
13
+ v-model="model.f_checker_id"
14
+ condition="f_checker_name like '%{}%'">
15
+ </role-selector-safe>
16
+ </div>
17
+ <div class="col-sm-2 form-group">
18
+ <label for="startDate" class="font_normal_body">开始日期:</label>
19
+ <datepicker id="startDate" placeholder="开始日期"
20
+ v-model="model.startDate"
21
+ :value.sync="model.startDate"
22
+ style="width: 60%;"
23
+ :disabled-days-of-Week="[]"
24
+ :format="'yyyy-MM-dd 00:00:00'"
25
+ :show-reset-button="reset">
26
+ </datepicker>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label for="endDate" class="font_normal_body">结束日期:</label>
30
+ <datepicker id="endDate" placeholder="结束日期"
31
+ v-model="model.endDate"
32
+ :value.sync="model.endDate"
33
+ :disabled-days-of-Week="[]"
34
+ style="width: 60%;"
35
+ :format="'yyyy-MM-dd 23:59:59'"
36
+ :show-reset-button="reset">
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-4 form-group" style="margin-top: 8px">
40
+ <button class="button_search button_spacing" @click="search()">查询</button>
41
+ <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
42
+ <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
43
+ </div>
44
+ </div>
45
+ <div class="row">
46
+ <div class="col-sm-2 form-group" >
47
+ <label class="font_normal_body">用气性质</label>
48
+ <v-select
49
+ class="select_list select"
50
+ placeholder='用气性质' style="width: 60%"
51
+ v-model='model.userType'
52
+ :value.sync="model.userType"
53
+ :options='$parent.$parent.userTypes'
54
+ condition="tuf.f_gasproperties in {} "
55
+ :multiple="true"
56
+ ></v-select>
57
+ </div>
58
+ <div class="col-sm-2 form-group" >
59
+ <label class="font_normal_body">气表类型</label>
60
+ <v-select
61
+ class="select_list select"
62
+ placeholder='气表类型' style="width: 60%"
63
+ v-model='model.tableType'
64
+ :value.sync="model.tableType"
65
+ :options='$parent.$parent.tableTypes'
66
+ condition="tuf.f_meter_classify = '{}'"
67
+ :value-single="true"
68
+ close-on-select clear-button></v-select>
69
+ </div>
70
+ <div class="col-sm-2 form-group" >
71
+ <label class="font_normal_body">气表品牌</label>
72
+ <v-select
73
+ class="select_list select"
74
+ placeholder='气表类型' style="width: 60%"
75
+ v-model='model.tableBrand'
76
+ :value.sync="model.tableBrand"
77
+ :options='$parent.$parent.tableBrands'
78
+ condition="gb.f_meter_brand = '{}'"
79
+ :value-single="true"
80
+ close-on-select clear-button></v-select>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </criteria>
85
+ <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
86
+ <table class='tableprint' style="margin: 0px auto">
87
+ <thead>
88
+ <tr>
89
+ <th colspan='5' style="font-weight: normal; text-align: left;">
90
+ <h3 style="text-align: center">隐患报表</h3>
91
+ </th>
92
+ </tr>
93
+ <tr>
94
+ <th colspan='5' style="font-weight: normal; text-align: center;">
95
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
96
+ 结束时间:{{ model.model.endDate }}
97
+ </th>
98
+ </tr>
99
+ </thead>
100
+ <tr>
101
+ <th colspan='5' style="font-weight: normal;">
102
+ {{{ model.data.substring(26,model.data.length-8) }}}
103
+ </th>
104
+ </tr>
105
+ </table>
106
+ </div>
107
+ </criteria-paged>
108
+ </div>
109
+
110
+ </template>
111
+
112
+ <script>
113
+ import {DataModel, HttpResetClass} from 'vue-client'
114
+
115
+ export default {
116
+ title: '隐患报表',
117
+ data () {
118
+
119
+ let model = new DataModel('/api/af-safecheck/report/hiddensituation', {
120
+ startDate: 'this.model.startDate',
121
+ endDate: 'this.model.endDate',
122
+ f_filialeid: 'this.f_filialeid'
123
+ })
124
+ model.f_filialeid = '(' + this.$login.f.orgid + ')'
125
+ return {
126
+ userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
127
+ tableTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
128
+ tableBrands: [{label: '全部', value: ''}],
129
+ filialeNameStr: '',
130
+ filialeCodeStr: '',
131
+ userid: this.$login.f.id,
132
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
133
+ model: model
134
+ }
135
+ },
136
+ methods: {
137
+ getRes (obj) {
138
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
139
+ },
140
+ getTableBrands() {
141
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
142
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
143
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
144
+ resp.data.forEach((result) => {
145
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
146
+ })
147
+ })
148
+ },
149
+ },
150
+ ready () {
151
+ this.getTableBrands()
152
+ },
153
+ computed: {
154
+ selected () {
155
+ return this.$refs.grid.selected
156
+ }
157
+ // outlets () {
158
+ // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
159
+ // },
160
+ // operator () {
161
+ // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
162
+ // }
163
+ }
164
+ }
165
+ </script>