safecheck-client 3.0.30-62-t11 → 3.0.30-62-t12

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 (244) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +1957 -1957
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +1 -1
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  77. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  78. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  79. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  80. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  81. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  82. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  83. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  84. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  85. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  86. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  87. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  88. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  89. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  90. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  91. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  92. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  93. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  94. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  95. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  96. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  97. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  98. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  99. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  100. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  101. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  102. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  103. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  104. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  105. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  106. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  107. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  108. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  109. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  110. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  111. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  112. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  113. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  114. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  115. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  116. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  118. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  119. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  120. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  121. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  122. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  123. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  124. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  125. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  126. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  127. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  128. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  129. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  130. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  131. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  132. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  133. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  134. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  135. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  136. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  137. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  138. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  139. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  140. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  141. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  142. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  143. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  144. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  145. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  146. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  147. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  148. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  149. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  150. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  151. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  152. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  153. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  154. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  155. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  156. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  157. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  158. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  159. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  160. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  161. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  162. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  163. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  164. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  165. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  166. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  167. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  168. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  169. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  170. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  171. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  172. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  173. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  174. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  175. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  176. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  177. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  178. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  179. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  180. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  181. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  182. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  183. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  184. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  185. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  186. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  187. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  188. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  189. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  190. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  191. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  192. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  193. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  194. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  195. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  196. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  197. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  198. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  199. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  200. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  201. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  202. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  203. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  204. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  205. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  206. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  207. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  208. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  209. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  210. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  211. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  212. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  213. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  214. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  215. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  216. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  217. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  218. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  219. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  220. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  221. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  222. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  223. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  224. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  225. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  226. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  227. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  228. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  229. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  230. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  231. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  232. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  233. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  234. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  235. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  236. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  237. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  238. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  239. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  240. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  241. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  242. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  243. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  244. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,366 +1,366 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div partial>
6
- <div class="row">
7
- <label class="form-group font_normal_body"><b>计划信息</b></label>
8
- <div class="form-group col-sm-1" v-show="false">
9
- <!--隐藏条件-->
10
- <input type="text" class="input_search" v-model="model.f_plan_id"
11
- style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
12
- </div>
13
- <div class="form-group col-sm-1" >
14
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
15
- style="width: 95%" placeholder="客户编号" condition="i.f_userinfo_code='{}'">
16
- </div>
17
- <div class="form-group col-sm-1" >
18
- <input type="text" class="input_search" v-model="model.f_user_name"
19
- style="width: 95%" placeholder="客户名称" condition="i.f_user_name like '%{}%'">
20
- </div>
21
- <div class="form-group col-sm-1" >
22
- <input type="text" class="input_search" v-model="model.f_address"
23
- style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
- </div>
25
- <!--<div class="form-group col-sm-1" >
26
- <v-select :width="'95%'"
27
- class="select select_list"
28
- :value.sync="$parent.$parent.f_state"
29
- v-model="$parent.$parent.f_state"
30
- :options='$parent.$parent.checkState'
31
- placeholder='安检状态'
32
- close-on-select
33
- value-single
34
- >
35
- </v-select>
36
- </div>-->
37
- <div class="form-group col-sm-3" >
38
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
40
- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>
41
- <export-excel :data="$parent.$parent.exportParameter"
42
- :field="$parent.$parent.exportExcelField"
43
- style="margin-left: 0px"
44
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="planItem"
45
- :template-name="$parent.$parent.selectplan.f_plan_name + '安检计划导出'" :choose-col="true">
46
- </export-excel>
47
- </div>
48
- <div class="form-group col-sm-2 safe_p">
49
- <label class="font_normal_body" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
50
- </div>
51
- <div class="form-group col-sm-2" style="float: right">
52
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
53
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()">移出计划</button>
54
- </div>
55
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
56
- <div slot="modal-header" class="modal-header">
57
- <h4 class="modal-title">
58
- 计划内用户查询条件
59
- </h4>
60
- </div>
61
- <div slot="modal-body" class="modal-body">
62
- <div class="row">
63
- <div class="form-group col-sm-4" >
64
- <label class="font_normal_body">是否已检:</label>
65
- <v-select
66
- class="select select_list"
67
- :value.sync="model.f_state"
68
- v-model="model.f_state"
69
- :options='$parent.$parent.checkState'
70
- @change="$parent.$parent.checkStateChange(model.f_state)"
71
- placeholder='请选择'
72
- condition="i.f_state='{}'"
73
- close-on-select
74
- value-single
75
- >
76
- </v-select>
77
- </div>
78
- <div class="form-group col-sm-4" >
79
- <label class="font_normal_body">安检结果:</label>
80
- <v-select
81
- class="select select_list"
82
- :value.sync="model.f_check_state"
83
- v-model="model.f_check_state"
84
- :options='$parent.$parent.checkResults'
85
- placeholder='请选择'
86
- condition="i.f_last_check_state='{}'"
87
- close-on-select
88
- value-single
89
- >
90
- </v-select>
91
- </div>
92
- <div class="form-group col-sm-4" >
93
- <label class="font_normal_body">安检起始:</label>
94
- <datepicker
95
- placeholder='请选择'
96
- style="width:60%"
97
- :disabled-days-of-week="[]"
98
- :format="'yyyy-MM-dd'"
99
- :show-rest-button="reset"
100
- :value.sync="model.f_startfile_time"
101
- v-model="model.f_startfile_time"
102
- condition="i.f_last_check_date >='{} 00:00:00'">
103
- </datepicker>
104
- </div>
105
- <div class="form-group col-sm-4" >
106
- <label class="font_normal_body">安检截止:</label>
107
- <datepicker
108
- placeholder='请选择'
109
- :disabled-days-of-week="[]"
110
- style="width:60%"
111
- :format="'yyyy-MM-dd'"
112
- :show-rest-button="reset"
113
- :value.sync="model.f_endfile_time"
114
- v-model="model.f_endfile_time"
115
- condition="i.f_last_check_date <='{} 00:00:00'">
116
- </datepicker>
117
- </div>
118
- </div>
119
- </div>
120
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
121
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
122
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
123
- </div>
124
- </modal>
125
- </div>
126
- </div>
127
- </criteria>
128
- <data-grid :model="model" partial='list' class="table_sy">
129
-
130
- <template partial='head'>
131
- <tr>
132
- <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
133
- <th><nobr>用户编号</nobr></th>
134
- <th><nobr>用户名称</nobr></th>
135
- <th><nobr>表号</nobr></th>
136
- <th><nobr>用户类型</nobr></th>
137
- <th><nobr>小区名称</nobr></th>
138
- <th><nobr>安检状态</nobr></th>
139
- <th><nobr>地址</nobr></th>
140
- </tr>
141
- </template>
142
- <template partial='body'>
143
- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
144
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
145
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
146
- <td style="text-align: center"><nobr>{{row.f_meternumber}}</nobr></td>
147
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
148
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
149
- <td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
150
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
151
- </template>
152
- </data-grid>
153
- </criteria-paged>
154
- <modal :show.sync="showPlanModal" v-ref:modalp>
155
- <div slot="modal-header" class="modal-header">
156
- <h4 class="modal-title">
157
- 计划内用户调整
158
- </h4>
159
- </div>
160
- <div slot="modal-body" class="modal-body">
161
- <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
162
- </div>
163
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
164
- <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
165
- <button class="button_search" @click="cancel">取消</button>
166
- </div>
167
- </modal>
168
- </div>
169
- </template>
170
-
171
- <script>
172
- import {HttpResetClass, PagedList} from "vue-client";
173
- import Vue from "vue";
174
-
175
- export default {
176
- name: "PlanManage",
177
- title: '计划管理',
178
- data() {
179
- return {
180
- model:new PagedList('/api/af-safecheck/sql/planItem', 100, {}),
181
- a:'1',
182
- opt:[{label:"测试",value:"测试"}],
183
- showCondtion:false,
184
- checkAll:false,
185
- checkes:[],
186
- checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
187
- checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
188
- showPlanModal:false,
189
- exportExcelField: {
190
- 'f_userinfo_code':'用户编号',
191
- 'f_user_name':'用户名称',
192
- 'f_meternumber':'表号',
193
- 'f_user_type':'用户类型',
194
- 'f_residential_area':'小区名称',
195
- 'f_state':'安检状态',
196
- 'f_address':'地址'
197
- }
198
- }
199
- },
200
- props:["selectplan","userlogin"],
201
- ready(){
202
-
203
- },
204
- computed:{
205
- exportParameter(){
206
- // excel 导出条件拼接
207
- return {
208
- condition: this.$refs.paged.model.condition,
209
- groupName: this.groupNameForSql
210
- }
211
- }
212
- },
213
- methods:{
214
- clear(){
215
- this.model.f_plan_id = '';
216
- this.model.f_userinfo_code = '';
217
- this.model.f_user_name = '';
218
- this.model.f_address='';
219
-
220
- },
221
- //将某个计划下的一项拖到另一个计划
222
- async dragtoOtherPlanIteem() {
223
- //tag)
224
-
225
- if (!this.$refs.modalp.$children[0].selectedRow.id) {
226
- this.$showMessage("请选择需要调整到那个计划中!")
227
- return
228
- }
229
- this.$parent.isSend=true
230
- try{
231
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
232
- data:{
233
- f_operator:this.userlogin.name,
234
- f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
235
- condition:this.model.condition,
236
- switchCheckAll:true,
237
- checkAll:this.checkAll,
238
- param:this.checkes,
239
- columnName: "i.id"
240
- }
241
- }, {resolveMsg: null, rejectMsg: null})
242
- this.$parent.isSend=false
243
- if(res.data.code==200){
244
- this.$showMessage("更换安检计划成功!")
245
- this.$parent.refreshPlan()
246
- }else{
247
- this.$showMessage("更换安检计划失败!")
248
- }
249
- }catch (e) {
250
- this.$parent.isSend=false
251
- this.$showMessage("更换安检计划失败!")
252
- }
253
- },
254
- showplanModal(){
255
- if(!this.selectplan || !this.selectplan.id){
256
- this.$showMessage("请先打开一个计划再进行操作")
257
- return
258
- }
259
- if(!this.checkAll && this.checkes.length==0){
260
- this.$showMessage("请先在计划中勾选你要调整的用户!")
261
- return
262
- }
263
- this.showPlanModal=true
264
- },
265
- showUserCondition(){
266
- this.showCondtion=true
267
- },
268
- isChecked(v) {
269
- // 如果全选,不在的按选中算,否则,在的按选中算
270
- if (this.checkAll) {
271
- return this.checkes.indexOf(v) == -1
272
- } else {
273
- return this.checkes.indexOf(v) != -1
274
- }
275
- },
276
- setCheckAll() {
277
- this.checkAll=this.checkAll?false:true;
278
- // 全选改变后,清空选中数据
279
- this.checkes = []
280
- },
281
- setCheckes(id) {
282
- let index=this.checkes.indexOf(id)
283
- if(index<0){
284
- this.checkes.push(id)
285
- }else{
286
- this.checkes.splice(index,1)
287
- }
288
- },
289
- cancel(){
290
- this.showCondtion=false
291
- this.showPlanModal=false
292
- },
293
- selfSearch (args) {
294
- if(!this.selectplan.id){
295
- this.$showMessage("请先选择一个计划!")
296
- return
297
- }
298
- this.cancel()
299
- this.checkes=[]
300
- this.checkAll=false
301
- this.model.search(args.condition, args.model, args.condValue)
302
- },
303
- checkStateChange(val){
304
- if(val=='已检'){
305
- this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
306
- }else{
307
- this.checkResults=[]
308
- this.$refs.paged.$refs.criteria.model.f_check_state=''
309
- }
310
- },
311
- //修改计划项状态为作废
312
- async delPlanItem() {
313
- if(!this.selectplan || !this.selectplan.id){
314
- this.$showMessage("请先打开一个计划再进行操作")
315
- return
316
- }
317
- if(!this.checkAll && this.checkes.length==0){
318
- this.$showMessage("请先在计划中勾选你要作废的用户!")
319
- return
320
- }
321
- this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
322
- if(button=='confirm'){
323
- let resu=new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItemState", {
324
- data: {
325
- f_operator:this.userlogin.name,
326
- condition:this.model.condition,
327
- switchCheckAll:true,
328
- checkAll:this.checkAll,
329
- param:this.checkes,
330
- columnName: "i.id"
331
- }
332
- }, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
333
-
334
- //tag)
335
- if(resu.data.code==200){
336
- this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
337
- //this.checkes=[]
338
- //this.checkAll=false
339
- this.$parent.refresh()
340
- }else{
341
- this.$showMessage("取消安检计划失败!")
342
- }
343
- })
344
- }
345
- })
346
- }
347
- },
348
- watch:{
349
- 'selectplan.id' (){
350
- //tag
351
- if(this.selectplan.id){
352
- this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
353
- this.$refs.paged.$refs.criteria.search()
354
- }
355
- }
356
- }
357
- }
358
- </script>
359
-
360
- <style scoped>
361
- .safe_p{
362
- white-space: nowrap;
363
- overflow: hidden;
364
- text-overflow: ellipsis;
365
- }
366
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <div class="row">
7
+ <label class="form-group font_normal_body"><b>计划信息</b></label>
8
+ <div class="form-group col-sm-1" v-show="false">
9
+ <!--隐藏条件-->
10
+ <input type="text" class="input_search" v-model="model.f_plan_id"
11
+ style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
15
+ style="width: 95%" placeholder="客户编号" condition="i.f_userinfo_code='{}'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_user_name"
19
+ style="width: 95%" placeholder="客户名称" condition="i.f_user_name like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1" >
22
+ <input type="text" class="input_search" v-model="model.f_address"
23
+ style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
+ </div>
25
+ <!--<div class="form-group col-sm-1" >
26
+ <v-select :width="'95%'"
27
+ class="select select_list"
28
+ :value.sync="$parent.$parent.f_state"
29
+ v-model="$parent.$parent.f_state"
30
+ :options='$parent.$parent.checkState'
31
+ placeholder='安检状态'
32
+ close-on-select
33
+ value-single
34
+ >
35
+ </v-select>
36
+ </div>-->
37
+ <div class="form-group col-sm-3" >
38
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
40
+ <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>
41
+ <export-excel :data="$parent.$parent.exportParameter"
42
+ :field="$parent.$parent.exportExcelField"
43
+ style="margin-left: 0px"
44
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
45
+ :template-name="$parent.$parent.selectplan.f_plan_name + '安检计划导出'" :choose-col="true">
46
+ </export-excel>
47
+ </div>
48
+ <div class="form-group col-sm-2 safe_p">
49
+ <label class="font_normal_body" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
50
+ </div>
51
+ <div class="form-group col-sm-2" style="float: right">
52
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
53
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()">移出计划</button>
54
+ </div>
55
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
56
+ <div slot="modal-header" class="modal-header">
57
+ <h4 class="modal-title">
58
+ 计划内用户查询条件
59
+ </h4>
60
+ </div>
61
+ <div slot="modal-body" class="modal-body">
62
+ <div class="row">
63
+ <div class="form-group col-sm-4" >
64
+ <label class="font_normal_body">是否已检:</label>
65
+ <v-select
66
+ class="select select_list"
67
+ :value.sync="model.f_state"
68
+ v-model="model.f_state"
69
+ :options='$parent.$parent.checkState'
70
+ @change="$parent.$parent.checkStateChange(model.f_state)"
71
+ placeholder='请选择'
72
+ condition="i.f_state='{}'"
73
+ close-on-select
74
+ value-single
75
+ >
76
+ </v-select>
77
+ </div>
78
+ <div class="form-group col-sm-4" >
79
+ <label class="font_normal_body">安检结果:</label>
80
+ <v-select
81
+ class="select select_list"
82
+ :value.sync="model.f_check_state"
83
+ v-model="model.f_check_state"
84
+ :options='$parent.$parent.checkResults'
85
+ placeholder='请选择'
86
+ condition="i.f_last_check_state='{}'"
87
+ close-on-select
88
+ value-single
89
+ >
90
+ </v-select>
91
+ </div>
92
+ <div class="form-group col-sm-4" >
93
+ <label class="font_normal_body">安检起始:</label>
94
+ <datepicker
95
+ placeholder='请选择'
96
+ style="width:60%"
97
+ :disabled-days-of-week="[]"
98
+ :format="'yyyy-MM-dd'"
99
+ :show-rest-button="reset"
100
+ :value.sync="model.f_startfile_time"
101
+ v-model="model.f_startfile_time"
102
+ condition="i.f_last_check_date >='{} 00:00:00'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="form-group col-sm-4" >
106
+ <label class="font_normal_body">安检截止:</label>
107
+ <datepicker
108
+ placeholder='请选择'
109
+ :disabled-days-of-week="[]"
110
+ style="width:60%"
111
+ :format="'yyyy-MM-dd'"
112
+ :show-rest-button="reset"
113
+ :value.sync="model.f_endfile_time"
114
+ v-model="model.f_endfile_time"
115
+ condition="i.f_last_check_date <='{} 00:00:00'">
116
+ </datepicker>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
121
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
122
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
123
+ </div>
124
+ </modal>
125
+ </div>
126
+ </div>
127
+ </criteria>
128
+ <data-grid :model="model" partial='list' class="table_sy">
129
+
130
+ <template partial='head'>
131
+ <tr>
132
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
133
+ <th><nobr>用户编号</nobr></th>
134
+ <th><nobr>用户名称</nobr></th>
135
+ <th><nobr>表号</nobr></th>
136
+ <th><nobr>用户类型</nobr></th>
137
+ <th><nobr>小区名称</nobr></th>
138
+ <th><nobr>安检状态</nobr></th>
139
+ <th><nobr>地址</nobr></th>
140
+ </tr>
141
+ </template>
142
+ <template partial='body'>
143
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
144
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
145
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
146
+ <td style="text-align: center"><nobr>{{row.f_meternumber}}</nobr></td>
147
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
148
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
149
+ <td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
150
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
151
+ </template>
152
+ </data-grid>
153
+ </criteria-paged>
154
+ <modal :show.sync="showPlanModal" v-ref:modalp>
155
+ <div slot="modal-header" class="modal-header">
156
+ <h4 class="modal-title">
157
+ 计划内用户调整
158
+ </h4>
159
+ </div>
160
+ <div slot="modal-body" class="modal-body">
161
+ <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
162
+ </div>
163
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
164
+ <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
165
+ <button class="button_search" @click="cancel">取消</button>
166
+ </div>
167
+ </modal>
168
+ </div>
169
+ </template>
170
+
171
+ <script>
172
+ import {HttpResetClass, PagedList} from "vue-client";
173
+ import Vue from "vue";
174
+
175
+ export default {
176
+ name: "PlanManage",
177
+ title: '计划管理',
178
+ data() {
179
+ return {
180
+ model:new PagedList('/api/af-safecheck/sql/planItem', 100, {}),
181
+ a:'1',
182
+ opt:[{label:"测试",value:"测试"}],
183
+ showCondtion:false,
184
+ checkAll:false,
185
+ checkes:[],
186
+ checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
187
+ checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
188
+ showPlanModal:false,
189
+ exportExcelField: {
190
+ 'f_userinfo_code':'用户编号',
191
+ 'f_user_name':'用户名称',
192
+ 'f_meternumber':'表号',
193
+ 'f_user_type':'用户类型',
194
+ 'f_residential_area':'小区名称',
195
+ 'f_state':'安检状态',
196
+ 'f_address':'地址'
197
+ }
198
+ }
199
+ },
200
+ props:["selectplan","userlogin"],
201
+ ready(){
202
+
203
+ },
204
+ computed:{
205
+ exportParameter(){
206
+ // excel 导出条件拼接
207
+ return {
208
+ condition: this.$refs.paged.model.condition,
209
+ groupName: this.groupNameForSql
210
+ }
211
+ }
212
+ },
213
+ methods:{
214
+ clear(){
215
+ this.model.f_plan_id = '';
216
+ this.model.f_userinfo_code = '';
217
+ this.model.f_user_name = '';
218
+ this.model.f_address='';
219
+
220
+ },
221
+ //将某个计划下的一项拖到另一个计划
222
+ async dragtoOtherPlanIteem() {
223
+ //tag)
224
+
225
+ if (!this.$refs.modalp.$children[0].selectedRow.id) {
226
+ this.$showMessage("请选择需要调整到那个计划中!")
227
+ return
228
+ }
229
+ this.$parent.isSend=true
230
+ try{
231
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
232
+ data:{
233
+ f_operator:this.userlogin.name,
234
+ f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
235
+ condition:this.model.condition,
236
+ switchCheckAll:true,
237
+ checkAll:this.checkAll,
238
+ param:this.checkes,
239
+ columnName: "i.id"
240
+ }
241
+ }, {resolveMsg: null, rejectMsg: null})
242
+ this.$parent.isSend=false
243
+ if(res.data.code==200){
244
+ this.$showMessage("更换安检计划成功!")
245
+ this.$parent.refreshPlan()
246
+ }else{
247
+ this.$showMessage("更换安检计划失败!")
248
+ }
249
+ }catch (e) {
250
+ this.$parent.isSend=false
251
+ this.$showMessage("更换安检计划失败!")
252
+ }
253
+ },
254
+ showplanModal(){
255
+ if(!this.selectplan || !this.selectplan.id){
256
+ this.$showMessage("请先打开一个计划再进行操作")
257
+ return
258
+ }
259
+ if(!this.checkAll && this.checkes.length==0){
260
+ this.$showMessage("请先在计划中勾选你要调整的用户!")
261
+ return
262
+ }
263
+ this.showPlanModal=true
264
+ },
265
+ showUserCondition(){
266
+ this.showCondtion=true
267
+ },
268
+ isChecked(v) {
269
+ // 如果全选,不在的按选中算,否则,在的按选中算
270
+ if (this.checkAll) {
271
+ return this.checkes.indexOf(v) == -1
272
+ } else {
273
+ return this.checkes.indexOf(v) != -1
274
+ }
275
+ },
276
+ setCheckAll() {
277
+ this.checkAll=this.checkAll?false:true;
278
+ // 全选改变后,清空选中数据
279
+ this.checkes = []
280
+ },
281
+ setCheckes(id) {
282
+ let index=this.checkes.indexOf(id)
283
+ if(index<0){
284
+ this.checkes.push(id)
285
+ }else{
286
+ this.checkes.splice(index,1)
287
+ }
288
+ },
289
+ cancel(){
290
+ this.showCondtion=false
291
+ this.showPlanModal=false
292
+ },
293
+ selfSearch (args) {
294
+ if(!this.selectplan.id){
295
+ this.$showMessage("请先选择一个计划!")
296
+ return
297
+ }
298
+ this.cancel()
299
+ this.checkes=[]
300
+ this.checkAll=false
301
+ this.model.search(args.condition, args.model, args.condValue)
302
+ },
303
+ checkStateChange(val){
304
+ if(val=='已检'){
305
+ this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
306
+ }else{
307
+ this.checkResults=[]
308
+ this.$refs.paged.$refs.criteria.model.f_check_state=''
309
+ }
310
+ },
311
+ //修改计划项状态为作废
312
+ async delPlanItem() {
313
+ if(!this.selectplan || !this.selectplan.id){
314
+ this.$showMessage("请先打开一个计划再进行操作")
315
+ return
316
+ }
317
+ if(!this.checkAll && this.checkes.length==0){
318
+ this.$showMessage("请先在计划中勾选你要作废的用户!")
319
+ return
320
+ }
321
+ this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
322
+ if(button=='confirm'){
323
+ let resu=new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItemState", {
324
+ data: {
325
+ f_operator:this.userlogin.name,
326
+ condition:this.model.condition,
327
+ switchCheckAll:true,
328
+ checkAll:this.checkAll,
329
+ param:this.checkes,
330
+ columnName: "i.id"
331
+ }
332
+ }, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
333
+
334
+ //tag)
335
+ if(resu.data.code==200){
336
+ this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
337
+ //this.checkes=[]
338
+ //this.checkAll=false
339
+ this.$parent.refresh()
340
+ }else{
341
+ this.$showMessage("取消安检计划失败!")
342
+ }
343
+ })
344
+ }
345
+ })
346
+ }
347
+ },
348
+ watch:{
349
+ 'selectplan.id' (){
350
+ //tag
351
+ if(this.selectplan.id){
352
+ this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
353
+ this.$refs.paged.$refs.criteria.search()
354
+ }
355
+ }
356
+ }
357
+ }
358
+ </script>
359
+
360
+ <style scoped>
361
+ .safe_p{
362
+ white-space: nowrap;
363
+ overflow: hidden;
364
+ text-overflow: ellipsis;
365
+ }
366
+ </style>