safecheck-client 3.0.33-15 → 3.0.33-150

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 (162) 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 +181 -181
  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 +1270 -1268
  90. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2779
  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 +1362 -1362
  127. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  128. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  129. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  130. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2832
  131. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -869
  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 +1192 -1018
  138. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -849
  139. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  140. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  141. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  142. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  143. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  144. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  145. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  146. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  147. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  148. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  149. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  150. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  151. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  152. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  153. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  154. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  155. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  156. package/src/filiale/yongzhou/pc.js +4 -0
  157. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  158. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  159. package/src/main.js +33 -33
  160. package/src/rongcheng.js +3 -1
  161. package/src/safecheck-android.js +6 -0
  162. package/src/safecheck.js +3 -0
@@ -1,301 +1,303 @@
1
- <template>
2
- <!--安检综合查询主界面-->
3
- <div id="unit" class="flex-row" :class="{'binary':showItem || showItemUser}">
4
- <div :class="{'basic-main':!(showItem || showItemUser),'binary-left':showItem || showItemUser}">
5
- <!--展示查询界面-->
6
- <check-book-list class="flex" :tempval="hidden" :style="style" :style2="style2" :showtype="showtype" @select-changed="selected"
7
- @canel-main="close"
8
- @addbook="addbook"
9
- :needprops="needProps"
10
- @showdetails="showdetails"
11
- v-ref:checkbook></check-book-list>
12
- </div>
13
- <div class="binary-right" v-if="showItemUser || showItem">
14
- <div class="flex">
15
- <check-book-user style="height: 100%" :row="rowData" v-if="showItemUser && rowData.f_check_book_type==='用户'"></check-book-user>
16
- <check-book-area style="height: 100%" @showuser="showuser" :row="rowData" :needprops="needProps" v-if="showItemUser && rowData.f_user_type==='民用'"></check-book-area>
17
- <check-book-company style="height: 100%" @showuser="showusercompany" :row="rowData" :needprops="needProps" v-if="showItemUser && rowData.f_user_type==='非民用'"></check-book-company>
18
- <check-book-details style="height: 100%" :row="rowData" :showtype="showtype" v-if="showItem"></check-book-details>
19
- </div>
20
- </div>
21
- </div>
22
-
23
- </template>
24
-
25
- <script>
26
- import {HttpResetClass} from "vue-client";
27
-
28
- export default {
29
- title: '片区管理',
30
- name: 'CheckPaperSearchUser',
31
- props:['showtype'],
32
- data () {
33
- return {
34
- style: 'col-sm-2 form-group',
35
- style2: 'col-sm-4 form-group',
36
- showItemUser: false,
37
- hidden: true,
38
- barwidth: '100%',
39
- showItem: false,
40
- rowData: {},
41
- needProps:{
42
- meter_gasbrand:[],
43
- checkBooks:[],
44
- entry_status:[],
45
- userTypes:[],
46
- userStates:[],
47
- gasproperties:[],
48
- areaList:[],
49
- sliceArea:[],
50
- cbc:[],
51
- meterbooks:[],
52
- checker:[],
53
- },
54
- }
55
- },
56
- ready(){
57
- this.init()
58
- },
59
- methods: {
60
- init(){
61
- this.getCheckBook()
62
- this.setConList()
63
- this.loadpage()
64
- this.getGasbrand()
65
- this.searchChecker()
66
- },
67
- //查询安检员selectChanged
68
- async searchChecker(){
69
- let res=await new HttpResetClass().load('POST', '/rs/search', {
70
- source: 'tool.getChildrenOfResName($安检员$)',
71
- userid: this.$login.f.id
72
- }, {resolveMsg: null, rejectMsg: null})
73
- this.needProps.checker=[]
74
- res.data.forEach((resRow) => {
75
- if(resRow.orgid==this.$login.f.orgid){
76
- this.needProps.checker.push({label:resRow.name,value:resRow})
77
- }
78
- })
79
- },
80
- getGasbrand(){
81
- this.needProps.meter_gasbrand=[]
82
- new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_GroupBy`, {
83
- data: {
84
- items: 'id,f_meter_brand',
85
- tablename: 't_gasbrand',
86
- condition: `f_orgid = '${this.$login.f.orgid}'`,
87
- groupitem: 'id,f_meter_brand'
88
- }
89
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
90
- this.needProps.meter_gasbrand.push({label: '全部', value: ''})
91
- //console.log('res=', JSON.stringify(res))
92
- res.data.forEach(ress => {
93
- //console.log('ress=', JSON.stringify(ress))
94
- this.needProps.meter_gasbrand.push({
95
- label: ress.f_meter_brand,
96
- value: ress.id
97
- })
98
- })
99
- })
100
- },
101
- getCheckBook(){
102
- this.needProps.checkBooks=[]
103
- new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
104
- data: {
105
- items: 'id,f_check_book_name,f_check_book_type',
106
- tablename: 't_check_book',
107
- condition: `f_orgid = '${this.$login.f.orgid}'`,
108
- orderitem: 'id desc'
109
- }
110
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
111
- this.needProps.checkBooks.push({label: '全部', value: ''})
112
- this.needProps.checkBooks.push({label: '未在片区内', value: '111111'})
113
- res.data.forEach(ress => {
114
- this.needProps.checkBooks.push({
115
- label: ress.f_check_book_name,
116
- value: `${ress.id}-${ress.f_check_book_type}`
117
- })
118
- })
119
- })
120
- },
121
- loadpage(){
122
- this.select_search()
123
- this.Mreadibook()
124
- this.getSliceArea()
125
- },
126
- select_search(text, type){
127
- //tag
128
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
129
- if (type == 'pqId'){
130
- if(text.length==0){
131
- pcdText=text?` and 1=1`:''
132
- }else {
133
- pcdText =text?`and f_check_book_id in (${text})`:''
134
- }
135
-
136
- }
137
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.$login.f.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
138
- //tag)
139
- this.needProps.areaList=[]
140
- this.needProps.areaList.push({label:"全部",value:""})
141
- res.data.forEach((result)=>{
142
- this.needProps.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
143
- //console.log('this.areaList=', JSON.stringify(this.areaList))
144
- })
145
- //tag)
146
- })
147
-
148
-
149
- },
150
- //获取抄表册
151
- async Mreadibook(){
152
- this.needProps.cbc=[]
153
- this.needProps.sliceArea=[]
154
- let http = new HttpResetClass()
155
- let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
156
- {data: {f_orgid: "('"+this.$login.f.orgid+"')"}},
157
- {resolveMsg: null, rejectMsg: '获取失败!!!'})
158
- this.needProps.cbc = [{label: '全部', value: ''}]
159
- //tag
160
- //tag)
161
- //tag
162
- this.needProps.meterbooks=[]
163
- this.needProps.meterbooks=getMeterReadingBooks.data.meterbooks
164
- this.needProps.meterbooks.forEach((res) => {
165
- this.needProps.cbc.push({label: res.f_book_name, value: res.id})
166
- /*if(res.f_book_slice_area){
167
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
168
- this.sliceArea.push(res.f_book_slice_area)
169
- }
170
- }*/
171
- })
172
-
173
- },
174
- //片区获取
175
- async getSliceArea() {
176
- let http = new HttpResetClass()
177
- let getAllArea = await http.load('POST', '/rs/search', {
178
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
179
- userid: this.$login.f.id
180
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
181
- this.needProps.sliceArea = [{label: '全部', value: ''}]
182
- //tag
183
- //tag
184
- //tag
185
- getAllArea.data.forEach((res) => {
186
- if(res.parentid==this.$login.f.orgid){
187
- this.needProps.sliceArea.push({label:res.name,value:res.name})
188
- }
189
- })
190
- //tag
191
- },
192
- setConList(){
193
- this.needProps.entry_status=this.$appdata.getParam('安检状态') ? [{
194
- label: '全部',
195
- value: ''
196
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
197
-
198
- this.needProps.userTypes=this.$appdata.getParam('用户类型') ? [{
199
- label: '全部',
200
- value: ''
201
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
202
- this.needProps.userStates=this.$appdata.getParam('安检用户状态') ? [{
203
- label: '全部',
204
- value: ''
205
- }, ...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
206
- this.needProps.gasproperties=this.$appdata.getParam('用气性质') ? [{
207
- label: '全部',
208
- value: ''
209
- }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
210
- // this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
211
- // label: '全部',
212
- // value: ''
213
- // }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
214
- },
215
- show () {
216
- this.showItem = this.showItem ? false : true
217
- },
218
- showdetails (row) {
219
- console.log('showdetails',row)
220
- this.rowData = row
221
- this.showItem = false
222
- this.showItemUser = true
223
- },
224
- showusercompany(row){
225
- console.log('showuser',row)
226
- this.rowData = row
227
- this.showItem = false
228
- this.rowData.f_check_book_type='用户'
229
- this.rowData.f_check_book_type1='单位'
230
- this.showItemUser = true
231
- },
232
- showuser(row){
233
- console.log('showuser',row)
234
- this.rowData = row
235
- this.showItem = false
236
- this.rowData.f_check_book_type='用户'
237
- this.rowData.f_check_book_type1='小区'
238
- this.showItemUser = true
239
- },
240
- addbook(){
241
- this.rowData= {
242
- f_is_auto:'否',
243
- f_check_book_type:"用户",
244
- }
245
- this.showItem = true
246
- },
247
- selected (row) {
248
- this.showItem = true
249
- this.barwidth = '50%'
250
- //tag
251
- this.rowData = row.val
252
- this.hidden = false
253
- //tag
254
- },
255
-
256
- close () {
257
- this.showItem = false
258
- this.barwidth = '100%'
259
- this.hidden = true
260
- }
261
- },
262
- computed:{
263
- showItemAll(){
264
- return this.showItem && this.showItemUser
265
- }
266
- },
267
- watch: {
268
- 'showItemUser' (val) {
269
- //tag
270
- console.log("showItemUser",val)
271
- if(val){
272
- this.showItem = false
273
- }
274
- if (val || this.showItem) {
275
- this.style = 'col-sm-3 form-group'
276
- this.style2 = 'col-sm-6 form-group'
277
-
278
- } else {
279
- this.style = 'col-sm-2 form-group'
280
- this.style2 = 'col-sm-4 form-group'
281
- }
282
- },
283
- 'showItem' (val) {
284
- console.log("showItem",val)
285
- if(val){
286
- this.showItemUser = false
287
- }
288
- if (val || this.showItemUser) {
289
- this.style = 'col-sm-3 form-group'
290
- this.style2 = 'col-sm-6 form-group'
291
-
292
- } else {
293
- this.style = 'col-sm-2 form-group'
294
- this.style2 = 'col-sm-4 form-group'
295
- }
296
- }
297
- }
298
- }
299
-
300
- </script>
301
-
1
+ <template>
2
+ <!--安检综合查询主界面-->
3
+ <div id="unit" class="flex-row" :class="{'binary':showItem || showItemUser}">
4
+ <div :class="{'basic-main':!(showItem || showItemUser),'binary-left':showItem || showItemUser}">
5
+ <!--展示查询界面-->
6
+ <check-book-list class="flex" :tempval="hidden" :style="style" :style2="style2" :showtype="showtype" @select-changed="selected"
7
+ @canel-main="close"
8
+ @addbook="addbook"
9
+ :needprops="needProps"
10
+ @showdetails="showdetails"
11
+ v-ref:checkbook></check-book-list>
12
+ </div>
13
+ <div class="binary-right" v-if="showItemUser || showItem">
14
+ <div class="flex">
15
+ <check-book-user style="height: 100%" :row="rowData" v-if="showItemUser && rowData.f_check_book_type==='用户'"></check-book-user>
16
+ <check-book-area style="height: 100%" @showuser="showuser" :row="rowData" :needprops="needProps" v-if="showItemUser && rowData.f_user_type==='民用'"></check-book-area>
17
+ <check-book-company style="height: 100%" @showuser="showusercompany" :row="rowData" :needprops="needProps" v-if="showItemUser && rowData.f_user_type==='非民用'"></check-book-company>
18
+ <check-book-details style="height: 100%" :row="rowData" :showtype="showtype" v-if="showItem"></check-book-details>
19
+ </div>
20
+ </div>
21
+ </div>
22
+
23
+ </template>
24
+
25
+ <script>
26
+ import {HttpResetClass} from "vue-client";
27
+
28
+ export default {
29
+ title: '片区管理',
30
+ name: 'CheckPaperSearchUser',
31
+ props:['showtype'],
32
+ data () {
33
+ return {
34
+ style: 'col-sm-2 form-group',
35
+ style2: 'col-sm-4 form-group',
36
+ showItemUser: false,
37
+ hidden: true,
38
+ barwidth: '100%',
39
+ showItem: false,
40
+ rowData: {},
41
+ needProps:{
42
+ meter_gasbrand:[],
43
+ checkBooks:[],
44
+ entry_status:[],
45
+ userTypes:[],
46
+ userStates:[],
47
+ gasproperties:[],
48
+ areaList:[],
49
+ sliceArea:[],
50
+ cbc:[],
51
+ meterbooks:[],
52
+ checker:[],
53
+ },
54
+ }
55
+ },
56
+ ready(){
57
+ this.init()
58
+ },
59
+ methods: {
60
+ init(){
61
+ this.getCheckBook()
62
+ this.setConList()
63
+ this.loadpage()
64
+ this.getGasbrand()
65
+ this.searchChecker()
66
+ },
67
+ //查询安检员selectChanged
68
+ async searchChecker(){
69
+ let res=await new HttpResetClass().load('POST', '/rs/search', {
70
+ source: 'tool.getChildrenOfResName($安检员$)',
71
+ userid: this.$login.f.id
72
+ }, {resolveMsg: null, rejectMsg: null})
73
+ this.needProps.checker=[]
74
+ res.data.forEach((resRow) => {
75
+ if(resRow.orgid==this.$login.f.orgid){
76
+ this.needProps.checker.push({label:resRow.name,value:resRow})
77
+ }
78
+ })
79
+ },
80
+ getGasbrand(){
81
+ this.needProps.meter_gasbrand=[]
82
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_GroupBy`, {
83
+ data: {
84
+ items: 'id,f_meter_brand',
85
+ tablename: 't_gasbrand',
86
+ condition: `f_orgid = '${this.$login.f.orgid}'`,
87
+ groupitem: 'id,f_meter_brand'
88
+ }
89
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
90
+ this.needProps.meter_gasbrand.push({label: '全部', value: ''})
91
+ //console.log('res=', JSON.stringify(res))
92
+ res.data.forEach(ress => {
93
+ //console.log('ress=', JSON.stringify(ress))
94
+ this.needProps.meter_gasbrand.push({
95
+ label: ress.f_meter_brand,
96
+ value: ress.id
97
+ })
98
+ })
99
+ })
100
+ },
101
+ getCheckBook(){
102
+ this.needProps.checkBooks=[]
103
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
104
+ data: {
105
+ items: 'id,f_check_book_name,f_check_book_type',
106
+ tablename: 't_check_book',
107
+ condition: `f_orgid = '${this.$login.f.orgid}'`,
108
+ orderitem: 'id desc'
109
+ }
110
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
111
+ this.needProps.checkBooks.push({label: '全部', value: ''})
112
+ this.needProps.checkBooks.push({label: '未在片区内', value: '111111'})
113
+ res.data.forEach(ress => {
114
+ this.needProps.checkBooks.push({
115
+ label: ress.f_check_book_name,
116
+ value: `${ress.id}-${ress.f_check_book_type}`
117
+ })
118
+ })
119
+ })
120
+ },
121
+ loadpage(){
122
+ this.select_search()
123
+ this.Mreadibook()
124
+ this.getSliceArea()
125
+ },
126
+ select_search(text, type){
127
+ //tag
128
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
129
+ if (type == 'pqId'){
130
+ if(text.length==0){
131
+ pcdText=text?` and 1=1`:''
132
+ }else {
133
+ pcdText =text?`and f_check_book_id in (${text})`:''
134
+ }
135
+
136
+ }
137
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.$login.f.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
138
+ //tag)
139
+ this.needProps.areaList=[]
140
+ this.needProps.areaList.push({label:"全部",value:""})
141
+ res.data.forEach((result)=>{
142
+ this.needProps.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
143
+ //console.log('this.areaList=', JSON.stringify(this.areaList))
144
+ })
145
+ //tag)
146
+ })
147
+
148
+
149
+ },
150
+ //获取抄表册
151
+ async Mreadibook(){
152
+ this.needProps.cbc=[]
153
+ this.needProps.sliceArea=[]
154
+ let http = new HttpResetClass()
155
+ let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
156
+ {data: {f_orgid: "('"+this.$login.f.orgid+"')"}},
157
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
158
+ this.needProps.cbc = [{label: '全部', value: ''}]
159
+ //tag
160
+ //tag)
161
+ //tag
162
+ this.needProps.meterbooks=[]
163
+ this.needProps.meterbooks=getMeterReadingBooks.data.meterbooks
164
+ this.needProps.meterbooks.forEach((res) => {
165
+ this.needProps.cbc.push({label: res.f_book_name, value: res.id})
166
+ /*if(res.f_book_slice_area){
167
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
168
+ this.sliceArea.push(res.f_book_slice_area)
169
+ }
170
+ }*/
171
+ })
172
+
173
+ },
174
+ //片区获取
175
+ async getSliceArea() {
176
+ let http = new HttpResetClass()
177
+ let getAllArea = await http.load('POST', '/rs/search', {
178
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
179
+ userid: this.$login.f.id
180
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
181
+ this.needProps.sliceArea = [{label: '全部', value: ''}]
182
+ //tag
183
+ //tag
184
+ //tag
185
+ getAllArea.data.forEach((res) => {
186
+ if(res.parentid==this.$login.f.orgid){
187
+ this.needProps.sliceArea.push({label:res.name,value:res.name})
188
+ }
189
+ })
190
+ //tag
191
+ },
192
+ setConList(){
193
+ this.needProps.entry_status=this.$appdata.getParam('安检状态') ? [{
194
+ label: '全部',
195
+ value: ''
196
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
197
+
198
+ this.needProps.userTypes=this.$appdata.getParam('用户类型') ? [{
199
+ label: '全部',
200
+ value: ''
201
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
202
+ this.needProps.userStates=this.$appdata.getParam('安检用户状态') ? [{
203
+ label: '全部',
204
+ value: ''
205
+ }, ...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
206
+ this.needProps.gasproperties=this.$appdata.getParam('用气性质') ? [{
207
+ label: '全部',
208
+ value: ''
209
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
210
+ // this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
211
+ // label: '全部',
212
+ // value: ''
213
+ // }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
214
+ },
215
+ show () {
216
+ this.showItem = this.showItem ? false : true
217
+ },
218
+ showdetails (row) {
219
+ console.log('showdetails',row)
220
+ this.rowData = row
221
+ this.rowData.f_check_book_type='用户'
222
+ this.rowData.f_user_type=''
223
+ this.showItem = false
224
+ this.showItemUser = true
225
+ },
226
+ showusercompany(row){
227
+ console.log('showuser',row)
228
+ this.rowData = row
229
+ this.showItem = false
230
+ this.rowData.f_check_book_type='用户'
231
+ this.rowData.f_check_book_type1='单位'
232
+ this.showItemUser = true
233
+ },
234
+ showuser(row){
235
+ console.log('showuser',row)
236
+ this.rowData = row
237
+ this.showItem = false
238
+ this.rowData.f_check_book_type='用户'
239
+ this.rowData.f_check_book_type1='小区'
240
+ this.showItemUser = true
241
+ },
242
+ addbook(){
243
+ this.rowData= {
244
+ f_is_auto:'否',
245
+ f_check_book_type:"用户",
246
+ }
247
+ this.showItem = true
248
+ },
249
+ selected (row) {
250
+ this.showItem = true
251
+ this.barwidth = '50%'
252
+ //tag
253
+ this.rowData = row.val
254
+ this.hidden = false
255
+ //tag
256
+ },
257
+
258
+ close () {
259
+ this.showItem = false
260
+ this.barwidth = '100%'
261
+ this.hidden = true
262
+ }
263
+ },
264
+ computed:{
265
+ showItemAll(){
266
+ return this.showItem && this.showItemUser
267
+ }
268
+ },
269
+ watch: {
270
+ 'showItemUser' (val) {
271
+ //tag
272
+ console.log("showItemUser",val)
273
+ if(val){
274
+ this.showItem = false
275
+ }
276
+ if (val || this.showItem) {
277
+ this.style = 'col-sm-3 form-group'
278
+ this.style2 = 'col-sm-6 form-group'
279
+
280
+ } else {
281
+ this.style = 'col-sm-2 form-group'
282
+ this.style2 = 'col-sm-4 form-group'
283
+ }
284
+ },
285
+ 'showItem' (val) {
286
+ console.log("showItem",val)
287
+ if(val){
288
+ this.showItemUser = false
289
+ }
290
+ if (val || this.showItemUser) {
291
+ this.style = 'col-sm-3 form-group'
292
+ this.style2 = 'col-sm-6 form-group'
293
+
294
+ } else {
295
+ this.style = 'col-sm-2 form-group'
296
+ this.style2 = 'col-sm-4 form-group'
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+ </script>
303
+