safecheck-client 3.0.34-35 → 3.0.34-37

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