safecheck-client 3.0.34-6 → 3.0.34-61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/docs/FormPrint.md +18 -18
  2. package/docs/GridTree.md +47 -47
  3. package/docs/PrintFile.md +38 -38
  4. package/docs/tree.md +40 -40
  5. package/package.json +1 -1
  6. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  7. package/src/assets/123.png +0 -0
  8. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  9. package/src/components/LoadData.vue +62 -0
  10. package/src/components/NewDefectList/DefectListNew.vue +617 -616
  11. package/src/components/android/AddGas.vue +147 -147
  12. package/src/components/android/AndroidDefectDeal.vue +1 -0
  13. package/src/components/android/AreaPlan.vue +566 -566
  14. package/src/components/android/AreaSelect.vue +208 -0
  15. package/src/components/android/BuildingSelect.vue +217 -0
  16. package/src/components/android/CheckPlanSelect.vue +248 -0
  17. package/src/components/android/CheckerMonthly.vue +84 -84
  18. package/src/components/android/LcheckUnplan.vue +108 -108
  19. package/src/components/android/PaperFeedback.vue +33 -0
  20. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  21. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  22. package/src/components/android/SafecheckDevices.vue +2 -2
  23. package/src/components/android/SafecheckOrderV.vue +8 -12
  24. package/src/components/android/SwitchValve.vue +323 -323
  25. package/src/components/android/examples/SafeListExamples.vue +96 -0
  26. package/src/components/android/examples/UserExamples.vue +130 -0
  27. package/src/components/checkerphonestate/Checker.vue +32 -32
  28. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  29. package/src/components/defects/AddDefectModal.vue +120 -120
  30. package/src/components/defects/AddDevice.vue +95 -95
  31. package/src/components/defects/DevicesSeting.vue +106 -106
  32. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  33. package/src/components/metterfiles/MetterFiles.vue +104 -104
  34. package/src/components/notice/NoticeQuery.vue +76 -76
  35. package/src/components/paper/RepairVerifyForm.vue +76 -76
  36. package/src/components/phonestate/DailyTraffic.vue +57 -57
  37. package/src/components/phonestate/LastKnownState.vue +74 -74
  38. package/src/components/rongcheng/AddPlanItem.vue +4 -0
  39. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  40. package/src/components/rongcheng/CheckSearchUser.vue +40 -14
  41. package/src/components/rongcheng/PaperStatem.vue +6 -1
  42. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  43. package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
  44. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  45. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  46. package/src/components/task/RepairAnnual.vue +79 -79
  47. package/src/components/task/RepairAnnualDetail.vue +49 -49
  48. package/src/components/task/RepairMonthly.vue +91 -91
  49. package/src/components/task/TaskAnnual.vue +77 -77
  50. package/src/components/task/TaskAnnualDetail.vue +47 -47
  51. package/src/components/task/TaskMonthly.vue +89 -89
  52. package/src/components/userfile/UserfileChange.vue +277 -277
  53. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
  54. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  55. package/src/filiale/baiyin/android.js +1 -0
  56. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  57. package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
  58. package/src/filiale/baiyin/pc/PaperList.vue +7 -7
  59. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  60. package/src/filiale/baiyin/pc.js +21 -21
  61. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  62. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  63. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  64. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  65. package/src/filiale/huaran/android.js +12 -0
  66. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  67. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  68. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  69. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  70. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  71. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  72. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  73. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  74. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  75. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  76. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  77. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  78. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  79. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  80. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  81. package/src/filiale/huaran/pc.js +27 -0
  82. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  83. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  84. package/src/filiale/jiaxian/android/SafecheckDevices.vue +6 -6
  85. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  86. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  87. package/src/filiale/jiaxian/android.js +4 -0
  88. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  89. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  90. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  91. package/src/filiale/ruihua/android.js +11 -0
  92. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  93. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
  94. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  95. package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
  96. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  97. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  98. package/src/filiale/siyang/pc/checkUserList.vue +22 -18
  99. package/src/filiale/siyang/pc.js +5 -0
  100. package/src/filiale/tongchuan/android/Select.vue +421 -0
  101. package/src/filiale/tongchuan/android.js +1 -0
  102. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  103. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  104. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  105. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  106. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  107. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  108. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  109. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  110. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  111. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  112. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -722
  113. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  114. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  115. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  116. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  117. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  118. package/src/filiale/weinan/pc/checkUserList.vue +712 -776
  119. package/src/filiale/weinan/pc.js +47 -46
  120. package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
  121. package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
  122. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1192
  123. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -472
  124. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -473
  125. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
  126. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
  127. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
  128. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
  129. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +6 -6
  130. package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
  131. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  132. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  133. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  134. package/src/safecheck-android.js +7 -0
  135. package/src/safecheck-page.js +10 -0
@@ -1,473 +1,473 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
- .app-row {
8
- background-color: white;
9
- padding: 10px 10px 0 10px;
10
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
- }
12
- .search_input {
13
- border: 0;
14
- outline: none;
15
- }
16
- .font{
17
- font: 15px PingFang-SC-Medium;
18
- color: #666666;
19
- }
20
- .input-font{
21
- font: 15px PingFang-SC-Medium;
22
- color: #333333;
23
- }
24
- .btn-font{
25
- font:600 16px PingFang-SC-Bold;
26
- color: #499EDF;
27
- }
28
- .btn-color{
29
- background-color: #FFFFFF;
30
- border-radius: 10px ;
31
- border: 1px solid #499EDF;
32
- }
33
- .app-text {
34
- font-size: 12px;
35
- }
36
- .panel-self{
37
- border-radius: 10px;
38
- border:1px solid #499EDF;
39
- background-color: #F8F8F8;
40
- }
41
- .yybtn-color{
42
- background-color:#499edf;
43
- border-radius: 4px ;
44
- border: 1px solid #499EDF;
45
- color: #FFFFFF;
46
- font: 14px PingFang-SC-Bold;
47
- }
48
- .qxbtn-color{
49
- background-color: #FFFFFF;
50
- border-radius: 4px ;
51
- color: #499edf;
52
- font: 14px PingFang-SC-Bold;
53
- border: 1px solid #499EDF;
54
- }
55
-
56
- .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
57
- .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
58
- .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
59
- .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
60
- </style>
61
-
62
- <template>
63
- <div style="height: auto;width: 100%">
64
- <criteria-paged :model="model" v-ref:paged>
65
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
66
- <div partial>
67
- <form>
68
- <div class="row app-row">
69
- <div class="col-xs-4">
70
- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
71
- <label class="font text-left">用户姓名:</label>
72
- </div>
73
- <div class="col-xs-8" >
74
- <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
75
- </div>
76
- </div>
77
- <div class="row app-row">
78
- <div class="col-xs-4">
79
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
80
- <label for="f_userinfo_code" class="font text-left">用户编号:</label>
81
- </div>
82
- <div class="col-xs-8" >
83
- <input id="f_userinfo_code" class="search_input input-font"
84
- v-model=model.f_userinfo_code condition="f_userinfo_code = '%{}%'" />
85
- </div>
86
- </div>
87
- <div class="row app-row" >
88
- <div class="col-xs-4">
89
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
90
- <label class="font text-left">用户地址:</label>
91
- </div>
92
- <div class="col-xs-8" >
93
- <input class="search_input input-font"
94
- v-model=model.f_address condition="f_address like '%{}%'" />
95
- </div>
96
- </div>
97
- <div class="row app-row">
98
- <div class="col-xs-4">
99
- <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
100
- <label for="f_state" class="font text-left">起始时间:</label>
101
- </div>
102
- <datepicker id="f_start_date"
103
- placeholder= '起始时间'
104
- :value.sync="model.f_start_date"
105
- :disabled-days-of-Week="[]"
106
- v-model="model.f_start_date"
107
- class="input-font"
108
- style="width:60%"
109
- :format="'yyyy-MM-dd 00:00:00'"
110
- :show-reset-button="reset" readonly="readonly">
111
- </datepicker>
112
- </div>
113
- <div class="row app-row">
114
- <div class="col-xs-4">
115
- <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
116
- <label for="f_state" class="font text-left">结束时间:</label>
117
- </div>
118
- <datepicker id="f_end_date"
119
- placeholder= '结束时间'
120
- :value.sync="model.f_end_date"
121
- :disabled-days-of-Week="[]"
122
- v-model="model.f_end_date"
123
- class="input-font"
124
- style="width:60%"
125
- :format="'yyyy-MM-dd 23:59:00'"
126
- :show-reset-button="reset" readonly="readonly">
127
- </datepicker>
128
- </div>
129
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
130
- <div class="col-xs-4">
131
- <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
132
- <label for="f_state" class="font text-left">安检结果:</label>
133
- </div>
134
- <v-select id="f_state"
135
- :value.sync="model.f_state"
136
- class="input-font"
137
- :options='$parent.$parent.check_states'
138
- placeholder='安检结果'
139
- style="width:60%"
140
- :multiple="true"
141
- v-model="model.f_state"
142
- condition="f_state in {}"
143
- close-on-select clear-button>
144
- </v-select>
145
- </div>
146
-
147
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
148
- <div class="col-xs-4">
149
- <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
150
- <label for="f_user_type" class="font text-left">用户类型:</label>
151
- </div>
152
- <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
153
- :width="'60%'"
154
- :options='$parent.$parent.user_types' placeholder='请选择用户类型'
155
- v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
156
- </div>
157
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
158
- <div class="col-xs-4">
159
- <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
160
- <label for="safechecktype" class="font text-left">安检类型:</label>
161
- </div>
162
- <v-select id="safechecktype" :value.sync="model.f_safecheck_type" class="input-font"
163
- :width="'60%'"
164
- :options='$parent.$parent.safechecktypes' placeholder='请选择安检类型'
165
- v-model="model.f_safecheck_type" condition="f_safecheck_type ='{}'" close-on-select clear-button></v-select>
166
- </div>
167
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
168
- <div class="col-xs-4">
169
- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
170
- <label for="checker" class="font text-left">安检员:</label>
171
- </div>
172
- <v-select id="checker" :value.sync="$parent.$parent.f_checker_id" class="input-font"
173
- :width="'60%'"
174
- :options='$parent.$parent.checkerOptions' placeholder='请选择安检员'
175
- v-model="$parent.$parent.f_checker_id" close-on-select clear-button></v-select>
176
- </div>
177
- <div class="row app-row" >
178
- <div v-for="row in $parent.$parent.ruhu">
179
- <div class="col-xs-6" style="text-align: center">
180
- <span class="font text-left">{{ row.f_entry_status }}{{row.number}}条</span>
181
- </div>
182
- </div>
183
- <div class="col-xs-6" style="text-align: center">
184
- <span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
185
- </div>
186
- </div>
187
- <div class="row text-center" style="margin-top: 20px;">
188
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
189
- <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
190
- </div>
191
-
192
- <div class="col-sm-12">
193
-
194
- </div>
195
-
196
- <div style="height:30px;"></div>
197
- </form>
198
- </div>
199
- </criteria>
200
- <list :model="model" partial='list'>
201
- <div partial>
202
- <div class="auto app-text" style="margin-top: 5px;" @click="$parent.$parent.$parent.gotocheckpaper(row)">
203
- <div class="panel" style="padding: 10px 10px 5px 10px;">
204
- <div class="panel-body panel-self">
205
-
206
- <div class="col-xs-12">
207
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
208
- <p class="panel-title col-xs-5 text-left input-font" v-if="$parent.$parent.$parent.upUserinfoSta=='是'" style="width: 74%;color: #00b3ee" @click="$parent.$parent.$parent.upuserinfo(row.f_userinfoid)">{{ row.f_userinfo_code }}</p>
209
- <p class="panel-title col-xs-5 text-left input-font" v-if="$parent.$parent.$parent.upUserinfoSta!='是'" style="width: 74%">{{ row.f_userinfo_code }}</p>
210
- </div>
211
- <div class="col-xs-12">
212
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
213
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
214
- </div>
215
- <div class="col-xs-6">
216
- <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
217
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_type }}
218
- </p>
219
- </div>
220
- <!-- <div class="col-xs-6">-->
221
- <!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
222
- <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
223
- <!-- </div>-->
224
- <div class="col-xs-12">
225
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
226
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
227
- <!--<img src="../../assets/phone.png" style="width: 6%" v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone)'></img>-->
228
- </p>
229
- </div>
230
-
231
- <div class="col-xs-12">
232
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
233
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
234
- </div>
235
-
236
- <!-- <div class="row">-->
237
- <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
238
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
239
- <!-- </div>-->
240
- <!-- <div class="row">-->
241
- <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
242
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
243
- <!-- </div>-->
244
- <!-- <div class="row">-->
245
- <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
246
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
247
- <!-- </div>-->
248
- <!--<div class="row">-->
249
- <!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
250
- <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
251
- <!--</div>-->
252
- <div class="col-xs-6">
253
- <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
254
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_entry_status }}</p>
255
- </div>
256
- <div class="col-xs-6">
257
- <p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
258
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
259
- </div>
260
- <div class="col-xs-12">
261
- <p class="panel-title col-xs-5 text-left font"><b>上传时间:</b></p>
262
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_date }}</p>
263
- </div>
264
- </div>
265
- </div>
266
- </div>
267
- </div>
268
- </list>
269
- </criteria-paged>
270
- </div>
271
-
272
- </template>
273
-
274
- <script>
275
- import LocalPagedList from '../../../plugins/LocalPagedList'
276
- import Vue from 'vue'
277
- import { PagedList,HttpResetClass } from 'vue-client'
278
- import * as Util from '../../Util'
279
- import co from 'co'
280
- import {isEmpty} from '../../../components/Util'
281
-
282
- export default {
283
- title: '无计划安检查询',
284
- data() {
285
- return {
286
- //f_filialeids:`('${Vue.user.orgid}')`,
287
- f_filialeids:'',
288
- planparam:[],
289
- getSafeInfo:'',
290
- check:'',
291
- plan:'',
292
- planid:'',//http://ssl.odc.hk:8300
293
- model:new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/GetSafetHistory`,20,{condition:'this.condition',f_filialeids:`'${Vue.user.orgid}'`}),
294
- criteriaShow: false,
295
- planoption:[],
296
- condition:'',
297
- checkers:[],
298
- upUserinfoSta:'',
299
- param: null,
300
- f_preset_dt : Util.to3339TimeString(),
301
- flow_direction:[
302
- {label: '请选择挂表方式', value: ''},
303
- {label: '左表', value: '左表'},
304
- {label: '右表', value: '右表'}
305
- ],
306
- check_states: Vue.$appdata.getParam('安检状态'),
307
- last_check_states: [
308
- {label: '请选择上次安检状态', value: ''},
309
- {label: '入户', value: '入户'},
310
- {label: '拒检', value: '拒检'},
311
- {label: '到访不遇', value: '到访不遇'},
312
- {label: '未使用天然气', value: '未使用天然气'}
313
- ],
314
- upload_states: [
315
- {label: '请选择上传状态', value: ''},
316
- {label: '未传', value: '未传'},
317
- {label: '已传', value: '已传'}
318
- ],
319
- user_types: [
320
- {label: '请选择用户类型', value: ''},
321
- {label: '民用', value: '民用'},
322
- {label: '非民用', value: '非民用'},
323
- ],
324
- safechecktypes: [
325
- {label: '请选择安检类型', value: ''},
326
- {label: '年度普检', value: '年度普检'},
327
- {label: '散户安检', value: '散户安检'},
328
- ],
329
- verify_state: [
330
- {label: '请选择审核状态', value: ''},
331
- {label: '未审核', value: '未审核'},
332
- {label: '打回', value: '打回'}
333
- ],
334
- residentialAreaOptions: [],
335
- buildOptions: [],
336
- unitOptions: [],
337
- planNameOptions: [],
338
- ruhu: [],
339
- allPlanCount: 0,
340
- checkerOptions: []
341
- }
342
- },
343
- ready(){
344
- /*this.getAllArea()
345
- this.getAllPlanName()*/
346
- this.getCheckers()
347
- this.upUserinfoSta=this.$appdata.getSingleValue('安检在线统计修改档案信息')
348
- this.getSafeInfo=this.$appdata.getSingleValue('安检在线统计查看安检详情')
349
- let d=new Date()
350
- this.$refs.paged.$refs.cri.model.f_start_date=`${Util.toStandardDateString()} 00:00:00`
351
- this.selfSearch()
352
- },
353
- methods: {
354
- gotocheckpaper(row){
355
- if(!this.getSafeInfo){
356
- return
357
- }
358
- row.f_upload_state = '已传'
359
- let pardate = {
360
- _this:this,
361
- title:'安检信息',
362
- safe:false
363
- }
364
- this.$dispatch('gotoson',pardate)
365
- this.$goto('new-check-paper-android', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
366
- },
367
- async getCheckers() {
368
- console.log('Vue.user=', JSON.stringify(Vue.user))
369
- let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {
370
- data: {
371
- source: `root.getResourceById($${Vue.user.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
372
- userid: Vue.user.id + ''
373
- }
374
- })
375
- console.log('res=', JSON.stringify(res))
376
- console.log('res.data.length=', res.data.length)
377
- const a = []
378
- const checkerOptions = []
379
- for (let item of res.data) {
380
- if (a.indexOf(item.id) < 0){
381
- checkerOptions.push({
382
- label: item.name,
383
- value: item.id
384
- })
385
- a.push(item.id)
386
- }
387
- }
388
- this.checkerOptions = checkerOptions
389
- console.log('this.checkerOptions=', JSON.stringify(this.checkerOptions))
390
- },
391
- upuserinfo(f_userinfo_id) {
392
- let _this = this
393
- this.$dispatch('gotoson', {
394
- _this: _this,
395
- title: '档案信息变更',
396
- safe: false
397
- })
398
- _this.$goto('PhoneUpUserinfo', {f_userinfo_id: f_userinfo_id,f_source:'安检'})
399
- },
400
- selfSearch () {
401
- // this.getPlanCount()
402
- //let condition = `f_filialeid='${Vue.user.orgid}' and f_checker_id='${Vue.user.id}' `
403
- let condition = "1=1 "
404
- if (!isEmpty(this.f_checker_id)){
405
- condition += " and f_checker_id = '"+ this.f_checker_id + "'"
406
- }
407
- if(this.$refs.paged.$refs.cri.model.f_user_name){
408
- if(this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()){
409
- condition += " and f_user_name like '"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
410
- }
411
- }
412
- if(this.$refs.paged.$refs.cri.model.f_userinfo_code){
413
- if(this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()){
414
- condition += " and f_userinfo_code = '"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"'"
415
- }
416
- }
417
- if(this.$refs.paged.$refs.cri.model.f_address){
418
- if(this.$refs.paged.$refs.cri.model.f_address.toString().trim()){
419
- condition += " and f_address like '%"+this.$refs.paged.$refs.cri.model.f_address+"%'"
420
- }
421
- }
422
- if(this.$refs.paged.$refs.cri.model.f_start_date){
423
- if(this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()){
424
- condition += " and f_offsite_time > '"+this.$refs.paged.$refs.cri.model.f_start_date +"'"
425
- }
426
- }
427
- if(this.$refs.paged.$refs.cri.model.f_end_date){
428
- if(this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()){
429
- condition += " and f_offsite_time < '"+this.$refs.paged.$refs.cri.model.f_end_date +"'"
430
- }
431
- }
432
- if(this.$refs.paged.$refs.cri.model.f_state.length > 0){
433
- let last_check_state = ''
434
- this.$refs.paged.$refs.cri.model.f_state.forEach((item) => {
435
- last_check_state = last_check_state + `'${item}',`
436
- })
437
- last_check_state = last_check_state.slice(0, -1)
438
- condition += " and f_entry_status in ("+last_check_state+")"
439
- }
440
- if(this.$refs.paged.$refs.cri.model.f_user_type){
441
- if(this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()){
442
- condition += " and f_check_type = '"+this.$refs.paged.$refs.cri.model.f_user_type +"'"
443
- }
444
- }
445
- if(this.$refs.paged.$refs.cri.model.f_safecheck_type){
446
- if(this.$refs.paged.$refs.cri.model.f_safecheck_type.toString().trim()){
447
- condition += " and f_safecheck_type = '"+this.$refs.paged.$refs.cri.model.f_safecheck_type +"'"
448
- }
449
- }
450
- this.getpaperCount(condition)
451
- //tag
452
- this.model.search(condition)
453
- },
454
- hidden() {
455
- this.criteriaShow = !this.criteriaShow
456
- },
457
- getpaperCount(condition){
458
- this.ruhu = []
459
- this.allPlanCount = 0
460
- let http = new HttpResetClass()
461
- http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/GetSafeHistorycount`,{data:{condition:condition,f_filialeids:`${Vue.user.orgid}`}},{rejectMsg:null,resolveMsg:null}).then(row=>{
462
- if (row.data.length > 0){
463
- this.allPlanCount = 0
464
- this.ruhu = row.data
465
- for (let i = 0 ; i< row.data.length; i++){
466
- this.allPlanCount += row.data[i].number
467
- }
468
- }
469
- })
470
- }
471
- }
472
- }
473
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+ .app-row {
8
+ background-color: white;
9
+ padding: 10px 10px 0 10px;
10
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
+ }
12
+ .search_input {
13
+ border: 0;
14
+ outline: none;
15
+ }
16
+ .font{
17
+ font: 15px PingFang-SC-Medium;
18
+ color: #666666;
19
+ }
20
+ .input-font{
21
+ font: 15px PingFang-SC-Medium;
22
+ color: #333333;
23
+ }
24
+ .btn-font{
25
+ font:600 16px PingFang-SC-Bold;
26
+ color: #499EDF;
27
+ }
28
+ .btn-color{
29
+ background-color: #FFFFFF;
30
+ border-radius: 10px ;
31
+ border: 1px solid #499EDF;
32
+ }
33
+ .app-text {
34
+ font-size: 12px;
35
+ }
36
+ .panel-self{
37
+ border-radius: 10px;
38
+ border:1px solid #499EDF;
39
+ background-color: #F8F8F8;
40
+ }
41
+ .yybtn-color{
42
+ background-color:#499edf;
43
+ border-radius: 4px ;
44
+ border: 1px solid #499EDF;
45
+ color: #FFFFFF;
46
+ font: 14px PingFang-SC-Bold;
47
+ }
48
+ .qxbtn-color{
49
+ background-color: #FFFFFF;
50
+ border-radius: 4px ;
51
+ color: #499edf;
52
+ font: 14px PingFang-SC-Bold;
53
+ border: 1px solid #499EDF;
54
+ }
55
+
56
+ .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
57
+ .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
58
+ .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
59
+ .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
60
+ </style>
61
+
62
+ <template>
63
+ <div style="height: auto;width: 100%">
64
+ <criteria-paged :model="model" v-ref:paged>
65
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
66
+ <div partial>
67
+ <form>
68
+ <div class="row app-row">
69
+ <div class="col-xs-4">
70
+ <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
71
+ <label class="font text-left">用户姓名:</label>
72
+ </div>
73
+ <div class="col-xs-8" >
74
+ <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
75
+ </div>
76
+ </div>
77
+ <div class="row app-row">
78
+ <div class="col-xs-4">
79
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
80
+ <label for="f_userinfo_code" class="font text-left">用户编号:</label>
81
+ </div>
82
+ <div class="col-xs-8" >
83
+ <input id="f_userinfo_code" class="search_input input-font"
84
+ v-model=model.f_userinfo_code condition="f_userinfo_code = '%{}%'" />
85
+ </div>
86
+ </div>
87
+ <div class="row app-row" >
88
+ <div class="col-xs-4">
89
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
90
+ <label class="font text-left">用户地址:</label>
91
+ </div>
92
+ <div class="col-xs-8" >
93
+ <input class="search_input input-font"
94
+ v-model=model.f_address condition="f_address like '%{}%'" />
95
+ </div>
96
+ </div>
97
+ <div class="row app-row">
98
+ <div class="col-xs-4">
99
+ <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
100
+ <label for="f_state" class="font text-left">起始时间:</label>
101
+ </div>
102
+ <datepicker id="f_start_date"
103
+ placeholder= '起始时间'
104
+ :value.sync="model.f_start_date"
105
+ :disabled-days-of-Week="[]"
106
+ v-model="model.f_start_date"
107
+ class="input-font"
108
+ style="width:60%"
109
+ :format="'yyyy-MM-dd 00:00:00'"
110
+ :show-reset-button="reset" readonly="readonly">
111
+ </datepicker>
112
+ </div>
113
+ <div class="row app-row">
114
+ <div class="col-xs-4">
115
+ <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
116
+ <label for="f_state" class="font text-left">结束时间:</label>
117
+ </div>
118
+ <datepicker id="f_end_date"
119
+ placeholder= '结束时间'
120
+ :value.sync="model.f_end_date"
121
+ :disabled-days-of-Week="[]"
122
+ v-model="model.f_end_date"
123
+ class="input-font"
124
+ style="width:60%"
125
+ :format="'yyyy-MM-dd 23:59:00'"
126
+ :show-reset-button="reset" readonly="readonly">
127
+ </datepicker>
128
+ </div>
129
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
130
+ <div class="col-xs-4">
131
+ <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
132
+ <label for="f_state" class="font text-left">安检结果:</label>
133
+ </div>
134
+ <v-select id="f_state"
135
+ :value.sync="model.f_state"
136
+ class="input-font"
137
+ :options='$parent.$parent.check_states'
138
+ placeholder='安检结果'
139
+ style="width:60%"
140
+ :multiple="true"
141
+ v-model="model.f_state"
142
+ condition="f_state in {}"
143
+ close-on-select clear-button>
144
+ </v-select>
145
+ </div>
146
+
147
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
148
+ <div class="col-xs-4">
149
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
150
+ <label for="f_user_type" class="font text-left">用户类型:</label>
151
+ </div>
152
+ <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
153
+ :width="'60%'"
154
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型'
155
+ v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
156
+ </div>
157
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
158
+ <div class="col-xs-4">
159
+ <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
160
+ <label for="safechecktype" class="font text-left">安检类型:</label>
161
+ </div>
162
+ <v-select id="safechecktype" :value.sync="model.f_safecheck_type" class="input-font"
163
+ :width="'60%'"
164
+ :options='$parent.$parent.safechecktypes' placeholder='请选择安检类型'
165
+ v-model="model.f_safecheck_type" condition="f_safecheck_type ='{}'" close-on-select clear-button></v-select>
166
+ </div>
167
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
168
+ <div class="col-xs-4">
169
+ <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
170
+ <label for="checker" class="font text-left">安检员:</label>
171
+ </div>
172
+ <v-select id="checker" :value.sync="$parent.$parent.f_checker_id" class="input-font"
173
+ :width="'60%'"
174
+ :options='$parent.$parent.checkerOptions' placeholder='请选择安检员'
175
+ v-model="$parent.$parent.f_checker_id" close-on-select clear-button></v-select>
176
+ </div>
177
+ <div class="row app-row" >
178
+ <div v-for="row in $parent.$parent.ruhu">
179
+ <div class="col-xs-6" style="text-align: center">
180
+ <span class="font text-left">{{ row.f_entry_status }}{{row.number}}条</span>
181
+ </div>
182
+ </div>
183
+ <div class="col-xs-6" style="text-align: center">
184
+ <span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
185
+ </div>
186
+ </div>
187
+ <div class="row text-center" style="margin-top: 20px;">
188
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
189
+ <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
190
+ </div>
191
+
192
+ <div class="col-sm-12">
193
+
194
+ </div>
195
+
196
+ <div style="height:30px;"></div>
197
+ </form>
198
+ </div>
199
+ </criteria>
200
+ <list :model="model" partial='list'>
201
+ <div partial>
202
+ <div class="auto app-text" style="margin-top: 5px;" @click="$parent.$parent.$parent.gotocheckpaper(row)">
203
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
204
+ <div class="panel-body panel-self">
205
+
206
+ <div class="col-xs-12">
207
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
208
+ <p class="panel-title col-xs-5 text-left input-font" v-if="$parent.$parent.$parent.upUserinfoSta=='是'" style="width: 74%;color: #00b3ee" @click="$parent.$parent.$parent.upuserinfo(row.f_userinfoid)">{{ row.f_userinfo_code }}</p>
209
+ <p class="panel-title col-xs-5 text-left input-font" v-if="$parent.$parent.$parent.upUserinfoSta!='是'" style="width: 74%">{{ row.f_userinfo_code }}</p>
210
+ </div>
211
+ <div class="col-xs-12">
212
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
213
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
214
+ </div>
215
+ <div class="col-xs-6">
216
+ <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
217
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_type }}
218
+ </p>
219
+ </div>
220
+ <!-- <div class="col-xs-6">-->
221
+ <!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
222
+ <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
223
+ <!-- </div>-->
224
+ <div class="col-xs-12">
225
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
226
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
227
+ <!--<img src="../../assets/phone.png" style="width: 6%" v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone)'></img>-->
228
+ </p>
229
+ </div>
230
+
231
+ <div class="col-xs-12">
232
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
233
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
234
+ </div>
235
+
236
+ <!-- <div class="row">-->
237
+ <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
238
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
239
+ <!-- </div>-->
240
+ <!-- <div class="row">-->
241
+ <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
242
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
243
+ <!-- </div>-->
244
+ <!-- <div class="row">-->
245
+ <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
246
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
247
+ <!-- </div>-->
248
+ <!--<div class="row">-->
249
+ <!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
250
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
251
+ <!--</div>-->
252
+ <div class="col-xs-6">
253
+ <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
254
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_entry_status }}</p>
255
+ </div>
256
+ <div class="col-xs-6">
257
+ <p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
258
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
259
+ </div>
260
+ <div class="col-xs-12">
261
+ <p class="panel-title col-xs-5 text-left font"><b>上传时间:</b></p>
262
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_date }}</p>
263
+ </div>
264
+ </div>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </list>
269
+ </criteria-paged>
270
+ </div>
271
+
272
+ </template>
273
+
274
+ <script>
275
+ import LocalPagedList from '../../../plugins/LocalPagedList'
276
+ import Vue from 'vue'
277
+ import { PagedList,HttpResetClass } from 'vue-client'
278
+ import * as Util from '../../Util'
279
+ import co from 'co'
280
+ import {isEmpty} from '../../../components/Util'
281
+
282
+ export default {
283
+ title: '无计划安检查询',
284
+ data() {
285
+ return {
286
+ //f_filialeids:`('${Vue.user.orgid}')`,
287
+ f_filialeids:'',
288
+ planparam:[],
289
+ getSafeInfo:'',
290
+ check:'',
291
+ plan:'',
292
+ planid:'',//http://ssl.odc.hk:8300
293
+ model:new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/GetSafetHistory`,20,{condition:'this.condition',f_filialeids:`'${Vue.user.orgid}'`}),
294
+ criteriaShow: false,
295
+ planoption:[],
296
+ condition:'',
297
+ checkers:[],
298
+ upUserinfoSta:'',
299
+ param: null,
300
+ f_preset_dt : Util.to3339TimeString(),
301
+ flow_direction:[
302
+ {label: '请选择挂表方式', value: ''},
303
+ {label: '左表', value: '左表'},
304
+ {label: '右表', value: '右表'}
305
+ ],
306
+ check_states: Vue.$appdata.getParam('安检状态'),
307
+ last_check_states: [
308
+ {label: '请选择上次安检状态', value: ''},
309
+ {label: '入户', value: '入户'},
310
+ {label: '拒检', value: '拒检'},
311
+ {label: '到访不遇', value: '到访不遇'},
312
+ {label: '未使用天然气', value: '未使用天然气'}
313
+ ],
314
+ upload_states: [
315
+ {label: '请选择上传状态', value: ''},
316
+ {label: '未传', value: '未传'},
317
+ {label: '已传', value: '已传'}
318
+ ],
319
+ user_types: [
320
+ {label: '请选择用户类型', value: ''},
321
+ {label: '民用', value: '民用'},
322
+ {label: '非民用', value: '非民用'},
323
+ ],
324
+ safechecktypes: [
325
+ {label: '请选择安检类型', value: ''},
326
+ {label: '年度普检', value: '年度普检'},
327
+ {label: '散户安检', value: '散户安检'},
328
+ ],
329
+ verify_state: [
330
+ {label: '请选择审核状态', value: ''},
331
+ {label: '未审核', value: '未审核'},
332
+ {label: '打回', value: '打回'}
333
+ ],
334
+ residentialAreaOptions: [],
335
+ buildOptions: [],
336
+ unitOptions: [],
337
+ planNameOptions: [],
338
+ ruhu: [],
339
+ allPlanCount: 0,
340
+ checkerOptions: []
341
+ }
342
+ },
343
+ ready(){
344
+ /*this.getAllArea()
345
+ this.getAllPlanName()*/
346
+ this.getCheckers()
347
+ this.upUserinfoSta=this.$appdata.getSingleValue('安检在线统计修改档案信息')
348
+ this.getSafeInfo=this.$appdata.getSingleValue('安检在线统计查看安检详情')
349
+ let d=new Date()
350
+ this.$refs.paged.$refs.cri.model.f_start_date=`${Util.toStandardDateString()} 00:00:00`
351
+ this.selfSearch()
352
+ },
353
+ methods: {
354
+ gotocheckpaper(row){
355
+ if(!this.getSafeInfo){
356
+ return
357
+ }
358
+ row.f_upload_state = '已传'
359
+ let pardate = {
360
+ _this:this,
361
+ title:'安检信息',
362
+ safe:false
363
+ }
364
+ this.$dispatch('gotoson',pardate)
365
+ this.$goto('new-check-paper-android', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
366
+ },
367
+ async getCheckers() {
368
+ console.log('Vue.user=', JSON.stringify(Vue.user))
369
+ let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {
370
+ data: {
371
+ source: `root.getResourceById($${Vue.user.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
372
+ userid: Vue.user.id + ''
373
+ }
374
+ })
375
+ console.log('res=', JSON.stringify(res))
376
+ console.log('res.data.length=', res.data.length)
377
+ const a = []
378
+ const checkerOptions = []
379
+ for (let item of res.data) {
380
+ if (a.indexOf(item.id) < 0){
381
+ checkerOptions.push({
382
+ label: item.name,
383
+ value: item.id
384
+ })
385
+ a.push(item.id)
386
+ }
387
+ }
388
+ this.checkerOptions = checkerOptions
389
+ console.log('this.checkerOptions=', JSON.stringify(this.checkerOptions))
390
+ },
391
+ upuserinfo(f_userinfo_id) {
392
+ let _this = this
393
+ this.$dispatch('gotoson', {
394
+ _this: _this,
395
+ title: '档案信息变更',
396
+ safe: false
397
+ })
398
+ _this.$goto('PhoneUpUserinfo', {f_userinfo_id: f_userinfo_id,f_source:'安检'})
399
+ },
400
+ selfSearch () {
401
+ // this.getPlanCount()
402
+ //let condition = `f_filialeid='${Vue.user.orgid}' and f_checker_id='${Vue.user.id}' `
403
+ let condition = "1=1 "
404
+ if (!isEmpty(this.f_checker_id)){
405
+ condition += " and f_checker_id = '"+ this.f_checker_id + "'"
406
+ }
407
+ if(this.$refs.paged.$refs.cri.model.f_user_name){
408
+ if(this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()){
409
+ condition += " and f_user_name like '"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
410
+ }
411
+ }
412
+ if(this.$refs.paged.$refs.cri.model.f_userinfo_code){
413
+ if(this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()){
414
+ condition += " and f_userinfo_code = '"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"'"
415
+ }
416
+ }
417
+ if(this.$refs.paged.$refs.cri.model.f_address){
418
+ if(this.$refs.paged.$refs.cri.model.f_address.toString().trim()){
419
+ condition += " and f_address like '%"+this.$refs.paged.$refs.cri.model.f_address+"%'"
420
+ }
421
+ }
422
+ if(this.$refs.paged.$refs.cri.model.f_start_date){
423
+ if(this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()){
424
+ condition += " and f_offsite_time > '"+this.$refs.paged.$refs.cri.model.f_start_date +"'"
425
+ }
426
+ }
427
+ if(this.$refs.paged.$refs.cri.model.f_end_date){
428
+ if(this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()){
429
+ condition += " and f_offsite_time < '"+this.$refs.paged.$refs.cri.model.f_end_date +"'"
430
+ }
431
+ }
432
+ if(this.$refs.paged.$refs.cri.model.f_state.length > 0){
433
+ let last_check_state = ''
434
+ this.$refs.paged.$refs.cri.model.f_state.forEach((item) => {
435
+ last_check_state = last_check_state + `'${item}',`
436
+ })
437
+ last_check_state = last_check_state.slice(0, -1)
438
+ condition += " and f_entry_status in ("+last_check_state+")"
439
+ }
440
+ if(this.$refs.paged.$refs.cri.model.f_user_type){
441
+ if(this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()){
442
+ condition += " and f_check_type = '"+this.$refs.paged.$refs.cri.model.f_user_type +"'"
443
+ }
444
+ }
445
+ if(this.$refs.paged.$refs.cri.model.f_safecheck_type){
446
+ if(this.$refs.paged.$refs.cri.model.f_safecheck_type.toString().trim()){
447
+ condition += " and f_safecheck_type = '"+this.$refs.paged.$refs.cri.model.f_safecheck_type +"'"
448
+ }
449
+ }
450
+ this.getpaperCount(condition)
451
+ //tag
452
+ this.model.search(condition)
453
+ },
454
+ hidden() {
455
+ this.criteriaShow = !this.criteriaShow
456
+ },
457
+ getpaperCount(condition){
458
+ this.ruhu = []
459
+ this.allPlanCount = 0
460
+ let http = new HttpResetClass()
461
+ http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/GetSafeHistorycount`,{data:{condition:condition,f_filialeids:`${Vue.user.orgid}`}},{rejectMsg:null,resolveMsg:null}).then(row=>{
462
+ if (row.data.length > 0){
463
+ this.allPlanCount = 0
464
+ this.ruhu = row.data
465
+ for (let i = 0 ; i< row.data.length; i++){
466
+ this.allPlanCount += row.data[i].number
467
+ }
468
+ }
469
+ })
470
+ }
471
+ }
472
+ }
473
+ </script>