safecheck-client 3.0.33-15 → 3.0.33-152

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 (163) hide show
  1. package/index.html +6 -2
  2. package/package.json +133 -133
  3. package/src/App.vue +2 -2
  4. package/src/components/Util/ImgSelfSafePlus.vue +19 -10
  5. package/src/components/Util.js +7 -0
  6. package/src/components/android/AreaPlan.vue +2 -1
  7. package/src/components/android/CurrentCreate.vue +1 -1
  8. package/src/components/android/ImgSelfAndroid.vue +1 -1
  9. package/src/components/android/SafecheckDevices.vue +5 -1
  10. package/src/components/android/SafecheckOrderV.vue +18 -12
  11. package/src/components/map/checkScreen.vue +27 -21
  12. package/src/components/paper/PlanChooser.vue +4 -2
  13. package/src/components/pc/NewCheckpaper.vue +11 -8
  14. package/src/components/planmanage/PlanManage.vue +14 -4
  15. package/src/components/planmanage/checkPlanList.vue +2 -1
  16. package/src/components/planmanage/checkUserList.vue +2 -0
  17. package/src/components/report/HiddenSituation.vue +3 -3
  18. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -2
  19. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  20. package/src/components/rongcheng/DefectPaper.vue +1 -1
  21. package/src/components/rongcheng/PaperListNPSQ.vue +36 -1
  22. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  23. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  24. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  25. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  26. package/src/components/safecheckNew/PaperList.vue +785 -0
  27. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  28. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  29. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  30. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  31. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  33. package/src/filiale/Util.js +5 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  35. package/src/filiale/baiyin/android.js +10 -0
  36. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  37. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  38. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  39. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  40. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  41. package/src/filiale/baiyin/pc.js +17 -0
  42. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  43. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  44. package/src/filiale/bayan/android/SafecheckOrderV.vue +21 -8
  45. package/src/filiale/bayan/android/SafecheckUserInfo.vue +566 -514
  46. package/src/filiale/bayan/android.js +1 -0
  47. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  48. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  49. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  50. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  51. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  52. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  53. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  54. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  55. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  56. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  57. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  58. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  59. package/src/filiale/bayan/pc.js +6 -0
  60. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  61. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  62. package/src/filiale/fugou/android.js +2 -1
  63. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  64. package/src/filiale/fugou/pc/CheckBook.vue +303 -301
  65. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  66. package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
  67. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  68. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  69. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +810 -685
  70. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  71. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  72. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  73. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  74. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  75. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  76. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  77. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  78. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  79. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  80. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  81. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  82. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  83. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  84. package/src/filiale/jingyang/pc.js +1 -0
  85. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  86. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  87. package/src/filiale/liaoyuan/pc.js +2 -1
  88. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  89. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +7 -5
  90. package/src/filiale/qingjian/android/SafecheckOrderV.vue +66 -1
  91. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  92. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  93. package/src/filiale/rongchuang/android.js +1 -0
  94. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  95. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  96. package/src/filiale/rongchuang/pc.js +1 -0
  97. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  98. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  99. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  100. package/src/filiale/siyang/android.js +11 -0
  101. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  102. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  103. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  104. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  105. package/src/filiale/siyang/pc.js +15 -0
  106. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  107. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  108. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  109. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  110. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  111. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  112. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  113. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  114. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  115. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  116. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  117. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  118. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  119. package/src/filiale/weinan/pc.js +2 -0
  120. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  121. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  122. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  123. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  124. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +45 -4
  125. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  126. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +20 -20
  127. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +3 -3
  128. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  129. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +5 -5
  130. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +17 -4
  131. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +30 -12
  132. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  133. package/src/filiale/yangchunboneng/android.js +1 -0
  134. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  135. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  136. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  137. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +187 -13
  138. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +98 -3
  139. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  140. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
  141. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  142. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  143. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  144. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  145. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  146. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  147. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  148. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  149. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  150. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  151. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  152. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  153. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  154. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  155. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  156. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  157. package/src/filiale/yongzhou/pc.js +4 -0
  158. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  159. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  160. package/src/main.js +1 -1
  161. package/src/rongcheng.js +3 -1
  162. package/src/safecheck-android.js +6 -0
  163. package/src/safecheck.js +3 -0
@@ -1,366 +1,366 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
- <div :class="$parent.$parent.style2" style="margin: 0px">
8
- <role-selector-safe
9
- role-name="安检员"
10
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
11
- @re-res="$parent.$parent.getRes"
12
- :value.sync="model.f_checker_id"
13
- v-model="model.f_checker_id"
14
- :value-multiple="true"
15
- condition=" f_checker_name in {}">
16
- </role-selector-safe>
17
- </div>
18
- <div :class="$parent.$parent.style">
19
- <label class="font_normal_body">安检册名称</label>
20
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
21
- :value-single="true" style="width: 60%"
22
- class="select_list select"
23
- :options='$parent.$parent.checkBooks' placeholder='安检册名称'
24
- close-on-select
25
- condition="tcb.id ='{}'"></v-select>
26
- </div>
27
- <!-- <div :class="$parent.$parent.style">-->
28
- <!-- <label class="font_normal_body">表册类型</label>-->
29
- <!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
30
- <!-- :value-single="true" style="width: 60%"-->
31
- <!-- class="select_list select"-->
32
- <!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
33
- <!-- close-on-select-->
34
- <!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
35
- <!-- </div>-->
36
- <!-- <div :class="$parent.$parent.style">-->
37
- <!-- <label class="font_normal_body">用户类型</label>-->
38
- <!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
39
- <!-- :value-single="true" style="width: 60%"-->
40
- <!-- class="select_list select"-->
41
- <!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
42
- <!-- close-on-select-->
43
- <!-- condition="tcb.f_user_type ='{}'"></v-select>-->
44
- <!-- </div>-->
45
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
46
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
47
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
48
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
49
- <div style="float: right" class="button_spacing"
50
- v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
51
- :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
52
- @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
53
- </div>
54
-
55
-
56
- </div>
57
-
58
-
59
- <div class="row" v-show="$parent.$parent.$parent.showItemAll">
60
- <div :class="$parent.$parent.style2" style="margin: 0px">
61
- <role-selector-safe
62
- role-name="安检员"
63
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
64
- @re-res="$parent.$parent.getRes"
65
- :value.sync="model.f_checker_id"
66
- v-model="model.f_checker_id"
67
- :value-multiple="true"
68
- condition=" f_checker_name in {}">
69
- </role-selector-safe>
70
- </div>
71
- <div :class="$parent.$parent.style">
72
- <label class="font_normal_body">安检册名</label>
73
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
74
- :value-single="true" style="width: 60%"
75
- class="select_list select"
76
- :options='$parent.$parent.checkBooks' placeholder='安检册名称'
77
- close-on-select
78
- condition="tcb.id ='{}'"></v-select>
79
- </div>
80
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
81
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
82
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
83
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
84
- <div style="float: right" class="button_spacing"
85
- v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
86
- :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
87
- @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
88
- <!-- <div style="float: right" class="button_spacing"-->
89
- <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
90
- <!-- @click="$parent.$parent.hidden()">-->
91
- <!-- </div>-->
92
- </div>
93
-
94
- </div>
95
-
96
- </div>
97
- </criteria>
98
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
99
- <template partial='head'>
100
- <tr>
101
- <th>
102
- <nobr>所属安检员</nobr>
103
- </th>
104
- <th>
105
- <nobr>安检册名称</nobr>
106
- </th>
107
- <!-- <th>-->
108
- <!-- <nobr>安检册类型</nobr>-->
109
- <!-- </th>-->
110
- <th>
111
- <nobr>用户类型</nobr>
112
- </th>
113
- <th>
114
- <nobr>创建日期</nobr>
115
- </th>
116
- <th>
117
- <nobr>创建人</nobr>
118
- </th>
119
- <th>
120
- <nobr>小区/单位数量</nobr>
121
- </th>
122
- <th>
123
- <nobr>已下发</nobr>
124
- </th>
125
- <th>
126
- <nobr>未下发</nobr>
127
- </th>
128
- <th>
129
- <nobr>已检</nobr>
130
- </th>
131
- <th>
132
- <nobr>未检</nobr>
133
- </th>
134
- <!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
135
- <!-- <nobr>操作</nobr>-->
136
- <!-- </th>-->
137
- </tr>
138
- </template>
139
- <template partial='body'>
140
- <td style="text-align: center;">{{ row.f_checker_name }}</td>
141
- <td style="text-align: center;">{{ row.f_check_book_name }}</td>
142
- <!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
143
- <td style="text-align: center;">{{ row.f_user_type }}</td>
144
- <td style="text-align: center;">{{ row.f_create_date }}</td>
145
- <td style="text-align: center;">{{ row.f_create_person }}</td>
146
- <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.f_user_type==='民用'?row.num2:row.num3}}</b></button></td>
147
- <td style="text-align: center;">{{ row.xiafa }}</td>
148
- <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
149
- <td style="text-align: center;">{{ row.yijian }}</td>
150
- <td style="text-align: center;">{{ row.weijian }}</td>
151
- <!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
152
- </template>
153
- </data-grid>
154
- </criteria-paged>
155
- <modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
156
- <article slot="modal-body" class="modal-body">
157
- <check-book-entry v-if="showModal" @select-changed="selectedEntry" :showtype="showtype"></check-book-entry>
158
- </article>
159
- <footer slot="modal-footer">
160
- </footer>
161
-
162
- </modal>
163
- <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
164
- <article slot="modal-body" class="modal-body" style="height: 80vh">
165
- <check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
166
- </article>
167
- <footer slot="modal-footer">
168
- </footer>
169
-
170
- </modal>
171
- </div>
172
- </template>
173
-
174
- <script>
175
- import {PagedList} from 'vue-client'
176
- import {HttpResetClass} from 'vue-client'
177
- import bus from '../../../bus'
178
- export default {
179
- title: '用户安检情况',
180
- data () {
181
- return {
182
- showSendModal:false,
183
- searchData: {
184
- condition: '1=1'
185
- },
186
- showCaoZuo:false,
187
- userlogin:{
188
- id:this.$login.f.id,
189
- name:this.$login.f.name,
190
- orgid:this.$login.f.orgid,
191
- orgstr:this.$login.f.orgs,
192
- },
193
- checkBooks:[],
194
- bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
195
- userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
196
- aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
197
- showModal:false,
198
- excelHeaders: {
199
-
200
- 'f_userinfo_code': '用户编号',
201
- 'f_user_name': '用户名称',
202
- 'f_user_phone': '用户电话',
203
- 'f_meternumber': '用户表号',
204
- 'f_user_type': '用户类型',
205
- 'f_last_checker': '安检员',
206
- 'f_residential_area': '小区名称',
207
- 'f_address': '地址',
208
- 'f_last_check_date': '安检日期',
209
- 'f_last_check_state': '安检状态',
210
- 'f_last_check_result': '安检结果'
211
- },
212
- model: new PagedList('rs/sql/QueryCheckBook', 20),
213
- checkBookRow:{},
214
- checkBook :{
215
- f_check_book_name: '',
216
- f_run_date: '',
217
- f_around_time: '',
218
- f_around_unit: '',
219
- f_create_date: '',
220
- f_create_person: '',
221
- f_orgid: '',
222
- f_checker_name: ''
223
- }
224
- }
225
- },
226
- props: {
227
- style: {
228
- type: String,
229
- default: 'col-sm-2 form-group'
230
- },
231
- style2: {
232
- type: String,
233
- default: 'col-sm-4 form-group'
234
- },
235
- needprops:{
236
- type: Object,
237
- default:{}
238
- },
239
- showtype:{
240
- type: String
241
- }
242
- },
243
- ready () {
244
- bus.$on('fresh-main',()=>{
245
- console.log("进入方法")
246
- this.$refs.paged.$refs.criteria.search()
247
- })
248
- this.freshCheckBook()
249
- },
250
- beforeDestroy() {
251
- //tag
252
- bus.$off('fresh-main')
253
- },
254
- methods: {
255
- send(row){
256
- console.log("7758521",row)
257
- this.checkBookRow = row
258
- this.showSendModal = true
259
- },
260
- freshCheckBook () {
261
- this.checkBooks = []
262
- new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
263
- data: {
264
- items: 'id,f_check_book_name',
265
- tablename: 't_check_book',
266
- condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
267
- orderitem: 'id desc'
268
- }
269
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
270
- this.checkBooks.push({label: '全部', value: ''})
271
- res.data.forEach(ress => {
272
- this.checkBooks.push({
273
- label: ress.f_check_book_name,
274
- value: ress.id
275
- })
276
- })
277
- })
278
- },
279
- selectedEntry(){
280
- console.log("666666666666666666")
281
- },
282
- details(row){
283
- this.$emit('showdetails' ,row)
284
- },
285
- add(){
286
- this.$emit('addbook')
287
- },
288
- ok (){
289
- //tag
290
- let http = new HttpResetClass()
291
- http.load('POST', 'rs/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
292
- {resolveMsg: '更新安检册信息成功', rejectMsg: '保存安检册信息成功'}).then(res=>{
293
- if (res.data.code===200){
294
- this.$showMessage('修改成功')
295
- this.showModal = false
296
- this.checkBook= {}
297
- }
298
- })
299
- },
300
- cancel () {
301
- this.showModal = false
302
- this.checkBook= {}
303
- },
304
- updateCheckBook(val){
305
- this.checkBook=val
306
- this.showModal = true
307
- },
308
- search (args) {
309
- // //tag
310
- this.$parent.showItem = false
311
- this.$parent.showItemUser = false
312
- args.condition += ` and f_orgid in ${this.model.f_filialeids}`
313
- args.condition += ` and tcb.f_user_type ='${this.showtype}' `
314
- return this.model.search(args.condition, args.model)
315
- },
316
- getRes (obj) {
317
- this.model.f_filialeids = this.$login.convertToIn(obj.resids)
318
- },
319
- async deleteCheckBook (val) {
320
- try {
321
- //tag
322
- let http = new HttpResetClass()
323
- let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
324
- let delCheckBook= `delete from t_check_book where id ='${val.id}'`
325
- await http.load('POST', 'rs/logic/runSQL', {data: {sql: upAddress}},
326
- {resolveMsg: null, rejectMsg: '删除安检册失败'})
327
- await http.load('POST', 'rs/logic/runSQL', {data: {sql: delCheckBook}},
328
- {resolveMsg: null, rejectMsg: '删除安检册失败'})
329
- this.$showMessage('删除成功')
330
- this.$refs.paged.$refs.criteria.search()
331
- }catch (e) {
332
- this.$showMessage('删除失败',e)
333
- }
334
- }
335
- },
336
-
337
- watch: {
338
- 'model.rows'(val){
339
- console.log("997997",val)
340
- this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
341
- }
342
- },
343
- computed: {
344
- selected () {
345
- return this.$refs.paged.$refs.grid.selected
346
- }
347
- }
348
- }
349
- </script>
350
- <style scoped>
351
- .newcolor {
352
- color: red;
353
- }
354
-
355
- .table th {
356
- background-color: #f2f6fa;
357
- color: black;
358
- }
359
- </style>
360
- <style lang="less">
361
- #checkbookEntryShow {
362
- .modal-dialog {
363
- width: 80%;
364
- }
365
- }
366
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
+ <div :class="$parent.$parent.style2" style="margin: 0px">
8
+ <role-selector-safe
9
+ role-name="安检员"
10
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
11
+ @re-res="$parent.$parent.getRes"
12
+ :value.sync="model.f_checker_id"
13
+ v-model="model.f_checker_id"
14
+ :value-multiple="true"
15
+ condition=" f_checker_name in {}">
16
+ </role-selector-safe>
17
+ </div>
18
+ <div :class="$parent.$parent.style">
19
+ <label class="font_normal_body">安检册名称</label>
20
+ <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
21
+ :value-single="true" style="width: 60%"
22
+ class="select_list select"
23
+ :options='$parent.$parent.checkBooks' placeholder='安检册名称'
24
+ close-on-select
25
+ condition="tcb.id ='{}'"></v-select>
26
+ </div>
27
+ <!-- <div :class="$parent.$parent.style">-->
28
+ <!-- <label class="font_normal_body">表册类型</label>-->
29
+ <!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
30
+ <!-- :value-single="true" style="width: 60%"-->
31
+ <!-- class="select_list select"-->
32
+ <!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
33
+ <!-- close-on-select-->
34
+ <!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
35
+ <!-- </div>-->
36
+ <!-- <div :class="$parent.$parent.style">-->
37
+ <!-- <label class="font_normal_body">用户类型</label>-->
38
+ <!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
39
+ <!-- :value-single="true" style="width: 60%"-->
40
+ <!-- class="select_list select"-->
41
+ <!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
42
+ <!-- close-on-select-->
43
+ <!-- condition="tcb.f_user_type ='{}'"></v-select>-->
44
+ <!-- </div>-->
45
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
46
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
47
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
48
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
49
+ <div style="float: right" class="button_spacing"
50
+ v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
51
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
52
+ @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
53
+ </div>
54
+
55
+
56
+ </div>
57
+
58
+
59
+ <div class="row" v-show="$parent.$parent.$parent.showItemAll">
60
+ <div :class="$parent.$parent.style2" style="margin: 0px">
61
+ <role-selector-safe
62
+ role-name="安检员"
63
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
64
+ @re-res="$parent.$parent.getRes"
65
+ :value.sync="model.f_checker_id"
66
+ v-model="model.f_checker_id"
67
+ :value-multiple="true"
68
+ condition=" f_checker_name in {}">
69
+ </role-selector-safe>
70
+ </div>
71
+ <div :class="$parent.$parent.style">
72
+ <label class="font_normal_body">安检册名</label>
73
+ <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
74
+ :value-single="true" style="width: 60%"
75
+ class="select_list select"
76
+ :options='$parent.$parent.checkBooks' placeholder='安检册名称'
77
+ close-on-select
78
+ condition="tcb.id ='{}'"></v-select>
79
+ </div>
80
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
81
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
82
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
83
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
84
+ <div style="float: right" class="button_spacing"
85
+ v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
86
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
87
+ @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
88
+ <!-- <div style="float: right" class="button_spacing"-->
89
+ <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
90
+ <!-- @click="$parent.$parent.hidden()">-->
91
+ <!-- </div>-->
92
+ </div>
93
+
94
+ </div>
95
+
96
+ </div>
97
+ </criteria>
98
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <th>
102
+ <nobr>所属安检员</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>安检册名称</nobr>
106
+ </th>
107
+ <!-- <th>-->
108
+ <!-- <nobr>安检册类型</nobr>-->
109
+ <!-- </th>-->
110
+ <th>
111
+ <nobr>用户类型</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>创建日期</nobr>
115
+ </th>
116
+ <th>
117
+ <nobr>创建人</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>用户数量</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>已下发</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>未下发</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>已检</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>未检</nobr>
133
+ </th>
134
+ <!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
135
+ <!-- <nobr>操作</nobr>-->
136
+ <!-- </th>-->
137
+ </tr>
138
+ </template>
139
+ <template partial='body'>
140
+ <td style="text-align: center;">{{ row.f_checker_name }}</td>
141
+ <td style="text-align: center;">{{ row.f_check_book_name }}</td>
142
+ <!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
143
+ <td style="text-align: center;">{{ row.f_user_type }}</td>
144
+ <td style="text-align: center;">{{ row.f_create_date }}</td>
145
+ <td style="text-align: center;">{{ row.f_create_person }}</td>
146
+ <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num2}}</b></button></td>
147
+ <td style="text-align: center;">{{ row.xiafa }}</td>
148
+ <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
149
+ <td style="text-align: center;">{{ row.yijian }}</td>
150
+ <td style="text-align: center;">{{ row.weijian }}</td>
151
+ <!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
152
+ </template>
153
+ </data-grid>
154
+ </criteria-paged>
155
+ <modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
156
+ <article slot="modal-body" class="modal-body">
157
+ <check-book-entry v-if="showModal" @select-changed="selectedEntry" :showtype="showtype"></check-book-entry>
158
+ </article>
159
+ <footer slot="modal-footer">
160
+ </footer>
161
+
162
+ </modal>
163
+ <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
164
+ <article slot="modal-body" class="modal-body" style="height: 80vh">
165
+ <check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
166
+ </article>
167
+ <footer slot="modal-footer">
168
+ </footer>
169
+
170
+ </modal>
171
+ </div>
172
+ </template>
173
+
174
+ <script>
175
+ import {PagedList} from 'vue-client'
176
+ import {HttpResetClass} from 'vue-client'
177
+ import bus from '../../../bus'
178
+ export default {
179
+ title: '用户安检情况',
180
+ data () {
181
+ return {
182
+ showSendModal:false,
183
+ searchData: {
184
+ condition: '1=1'
185
+ },
186
+ showCaoZuo:false,
187
+ userlogin:{
188
+ id:this.$login.f.id,
189
+ name:this.$login.f.name,
190
+ orgid:this.$login.f.orgid,
191
+ orgstr:this.$login.f.orgs,
192
+ },
193
+ checkBooks:[],
194
+ bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
195
+ userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
196
+ aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
197
+ showModal:false,
198
+ excelHeaders: {
199
+
200
+ 'f_userinfo_code': '用户编号',
201
+ 'f_user_name': '用户名称',
202
+ 'f_user_phone': '用户电话',
203
+ 'f_meternumber': '用户表号',
204
+ 'f_user_type': '用户类型',
205
+ 'f_last_checker': '安检员',
206
+ 'f_residential_area': '小区名称',
207
+ 'f_address': '地址',
208
+ 'f_last_check_date': '安检日期',
209
+ 'f_last_check_state': '安检状态',
210
+ 'f_last_check_result': '安检结果'
211
+ },
212
+ model: new PagedList('rs/sql/QueryCheckBook', 20),
213
+ checkBookRow:{},
214
+ checkBook :{
215
+ f_check_book_name: '',
216
+ f_run_date: '',
217
+ f_around_time: '',
218
+ f_around_unit: '',
219
+ f_create_date: '',
220
+ f_create_person: '',
221
+ f_orgid: '',
222
+ f_checker_name: ''
223
+ }
224
+ }
225
+ },
226
+ props: {
227
+ style: {
228
+ type: String,
229
+ default: 'col-sm-2 form-group'
230
+ },
231
+ style2: {
232
+ type: String,
233
+ default: 'col-sm-4 form-group'
234
+ },
235
+ needprops:{
236
+ type: Object,
237
+ default:{}
238
+ },
239
+ showtype:{
240
+ type: String
241
+ }
242
+ },
243
+ ready () {
244
+ bus.$on('fresh-main',()=>{
245
+ console.log("进入方法")
246
+ this.$refs.paged.$refs.criteria.search()
247
+ })
248
+ this.freshCheckBook()
249
+ },
250
+ beforeDestroy() {
251
+ //tag
252
+ bus.$off('fresh-main')
253
+ },
254
+ methods: {
255
+ send(row){
256
+ console.log("7758521",row)
257
+ this.checkBookRow = row
258
+ this.showSendModal = true
259
+ },
260
+ freshCheckBook () {
261
+ this.checkBooks = []
262
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
263
+ data: {
264
+ items: 'id,f_check_book_name',
265
+ tablename: 't_check_book',
266
+ condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
267
+ orderitem: 'id desc'
268
+ }
269
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
270
+ this.checkBooks.push({label: '全部', value: ''})
271
+ res.data.forEach(ress => {
272
+ this.checkBooks.push({
273
+ label: ress.f_check_book_name,
274
+ value: ress.id
275
+ })
276
+ })
277
+ })
278
+ },
279
+ selectedEntry(){
280
+ console.log("666666666666666666")
281
+ },
282
+ details(row){
283
+ this.$emit('showdetails' ,row)
284
+ },
285
+ add(){
286
+ this.$emit('addbook')
287
+ },
288
+ ok (){
289
+ //tag
290
+ let http = new HttpResetClass()
291
+ http.load('POST', 'rs/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
292
+ {resolveMsg: '更新安检册信息成功', rejectMsg: '保存安检册信息成功'}).then(res=>{
293
+ if (res.data.code===200){
294
+ this.$showMessage('修改成功')
295
+ this.showModal = false
296
+ this.checkBook= {}
297
+ }
298
+ })
299
+ },
300
+ cancel () {
301
+ this.showModal = false
302
+ this.checkBook= {}
303
+ },
304
+ updateCheckBook(val){
305
+ this.checkBook=val
306
+ this.showModal = true
307
+ },
308
+ search (args) {
309
+ // //tag
310
+ this.$parent.showItem = false
311
+ this.$parent.showItemUser = false
312
+ args.condition += ` and f_orgid in ${this.model.f_filialeids}`
313
+ args.condition += ` and tcb.f_user_type ='${this.showtype}' `
314
+ return this.model.search(args.condition, args.model)
315
+ },
316
+ getRes (obj) {
317
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids)
318
+ },
319
+ async deleteCheckBook (val) {
320
+ try {
321
+ //tag
322
+ let http = new HttpResetClass()
323
+ let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
324
+ let delCheckBook= `delete from t_check_book where id ='${val.id}'`
325
+ await http.load('POST', 'rs/logic/runSQL', {data: {sql: upAddress}},
326
+ {resolveMsg: null, rejectMsg: '删除安检册失败'})
327
+ await http.load('POST', 'rs/logic/runSQL', {data: {sql: delCheckBook}},
328
+ {resolveMsg: null, rejectMsg: '删除安检册失败'})
329
+ this.$showMessage('删除成功')
330
+ this.$refs.paged.$refs.criteria.search()
331
+ }catch (e) {
332
+ this.$showMessage('删除失败',e)
333
+ }
334
+ }
335
+ },
336
+
337
+ watch: {
338
+ 'model.rows'(val){
339
+ console.log("997997",val)
340
+ this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
341
+ }
342
+ },
343
+ computed: {
344
+ selected () {
345
+ return this.$refs.paged.$refs.grid.selected
346
+ }
347
+ }
348
+ }
349
+ </script>
350
+ <style scoped>
351
+ .newcolor {
352
+ color: red;
353
+ }
354
+
355
+ .table th {
356
+ background-color: #f2f6fa;
357
+ color: black;
358
+ }
359
+ </style>
360
+ <style lang="less">
361
+ #checkbookEntryShow {
362
+ .modal-dialog {
363
+ width: 80%;
364
+ }
365
+ }
366
+ </style>