safecheck-client 3.0.34-34 → 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 (28) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/QRCode/QRCodePage.vue +11 -2
  3. package/src/components/android/examples/SafeListExamples.vue +1 -0
  4. package/src/components/android/examples/UserExamples.vue +8 -7
  5. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  6. package/src/filiale/huaran/android.js +12 -0
  7. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  8. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  9. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  10. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  11. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  12. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  13. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  14. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  15. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  16. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  17. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  18. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  19. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  20. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  21. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  22. package/src/filiale/huaran/pc.js +27 -0
  23. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  24. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  25. package/src/filiale/ruihua/android.js +11 -0
  26. package/src/filiale/yuansheng/android/SafecheckDevices.vue +1258 -1258
  27. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  28. package/src/main.js +1 -1
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +1,69 @@
1
+ <template>
2
+ <tab-button v-ref:list :active="-1">
3
+ <tabs header="居民用户台账">
4
+ <check-book v-if="show.includes('居民用户台账')" @deal-msg="dealMsg" v-ref:papermain
5
+ :showtype="'民用'"></check-book>
6
+ </tabs>
7
+ <tabs header="非居民用户台账">
8
+ <check-book v-if="show.includes('非居民用户台账')" @deal-msg="dealMsg" v-ref:paperfeimain
9
+ :showtype="'非民用'"></check-book>
10
+ </tabs>
11
+ <!-- <tabs header="用户管理">-->
12
+ <!-- <check-book-manage v-if="show.includes('用户管理')" @deal-msg="dealMsg"></check-book-manage>-->
13
+ <!-- </tabs>-->
14
+ </tab-button>
15
+
16
+ </template>
17
+
18
+ <script>
19
+ import TabButton from '../../../components/safecheck/common/TabButton.vue'
20
+ import Tabs from '../../../components/safecheck/common/Tabs.vue'
21
+ // import { HttpResetClass } from 'vue-client'
22
+
23
+ export default {
24
+ name: 'checkBookAll',
25
+ title: '用户台账管理',
26
+ data() {
27
+ return {// 页面开关
28
+ residentialArea: [],
29
+ f_start_date: '',
30
+ f_end_date: '',
31
+ listpage: true,
32
+ width: {
33
+ left: '100%',
34
+ right: '0%'
35
+ },
36
+ rowData: {},
37
+ show: []
38
+ }
39
+ },
40
+ components: {Tabs, TabButton},
41
+ ready() {
42
+ //tag
43
+ //tag
44
+ //tag
45
+ this.$refs.list.handleTabListClick(0, this.$refs.list.renderData[0])
46
+ },
47
+ methods: {
48
+ // permission(name) {
49
+ // if (!this.$login.r.find(value => value == name)) {
50
+ // return true
51
+ // }
52
+ // return true
53
+ // },
54
+ cancel(obj) {
55
+ this.listpage = true
56
+ },
57
+ dealMsg(obj) {
58
+ this.rowData = obj
59
+ this.listpage = false
60
+ this.f_start_date = obj.model.startDate
61
+ this.f_end_date = obj.model.endDate
62
+ }
63
+ }
64
+ }
65
+ </script>
66
+
67
+ <style scoped>
68
+
69
+ </style>
@@ -0,0 +1,170 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">小区名称</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
10
+ placeholder='小区名称'
11
+ condition="f_residential_area like '%{}%'" @keyup.enter="search()">
12
+ </div>
13
+ <div class="form-group col-sm-2 button-range">
14
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
15
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.send()" v-el:cba>下发
16
+ </button>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </criteria>
21
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
22
+ <template partial='head'>
23
+ <tr>
24
+ <th>
25
+ <nobr><input type="checkbox" onClick="event.cancelBubble = true"
26
+ :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/>全选
27
+ </nobr>
28
+ </th>
29
+ <th>
30
+ <nobr>省市区/县</nobr>
31
+ </th>
32
+ <th>
33
+ <nobr>街道/乡镇</nobr>
34
+ </th>
35
+ <th>
36
+ <nobr>小区名称</nobr>
37
+ </th>
38
+ <th>
39
+ <nobr>用户数量</nobr>
40
+ </th>
41
+ <th>
42
+ <nobr>详细地址</nobr>
43
+ </th>
44
+ <th>
45
+ <nobr>小区备注</nobr>
46
+ </th>
47
+ </tr>
48
+ </template>
49
+ <template partial='body'>
50
+ <tr>
51
+ <td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
52
+ :checked="$parent.$parent.$parent.isChecked(row.id)"
53
+ @change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
54
+ <td style="text-align:center">{{ row.f_pcd }}</td>
55
+ <td style="text-align:center">{{ row.f_street }}</td>
56
+ <td style="text-align:center">{{ row.f_residential_area }}</td>
57
+ <td style="text-align:center">
58
+ <button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
59
+ <b>{{ row.num ? row.num : 0 }}</b></button>
60
+ </td>
61
+ <td style="text-align:center">{{ row.f_area_address }}</td>
62
+ <td style="text-align:center">{{ row.f_comments }}</td>
63
+ </tr>
64
+ </template>
65
+ <template partial='foot'></template>
66
+ </data-grid>
67
+ </criteria-paged>
68
+ <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
69
+ <article slot="modal-body" class="modal-body" style="height: 80vh">
70
+ <check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
71
+ :bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
72
+ :userlogin="userlogin"></check-book-search-user-list>
73
+ </article>
74
+ <footer slot="modal-footer">
75
+ </footer>
76
+
77
+ </modal>
78
+ </div>
79
+ </template>
80
+
81
+ <script>
82
+ import {HttpResetClass, PagedList} from 'vue-client'
83
+
84
+ export default {
85
+ title: '安检记录列表',
86
+ props: ['row', 'needprops'],
87
+ data() {
88
+ return {
89
+ rowdata: this.row,
90
+ showSendModal: false,
91
+ checkBookRow: {},
92
+ userlogin: {
93
+ id: this.$login.f.id,
94
+ name: this.$login.f.name,
95
+ orgid: this.$login.f.orgid,
96
+ orgstr: this.$login.f.orgs,
97
+ },
98
+ model: new PagedList('rs/sql/getCheckBookArea', 50),
99
+ checkAll: false,
100
+ checkes: [],
101
+ addcondata: ''
102
+ }
103
+ },
104
+ ready() {
105
+ console.log(this.row)
106
+ const val = this.row
107
+ if (val) {
108
+ this.checkAll = false
109
+ this.checkes = []
110
+ this.rowdata = val
111
+ const condition = `f_check_book_id =${val.id}`
112
+ this.model.search(condition)
113
+ }
114
+ },
115
+ watch: {
116
+ 'row'(val) {
117
+ if (val) {
118
+ this.checkAll = false
119
+ this.checkes = []
120
+ this.rowdata = val
121
+ const condition = `f_check_book_id =${val.id}`
122
+ this.model.search(condition)
123
+ }
124
+ }
125
+ },
126
+ methods: {
127
+ setCheckAll() {
128
+ this.checkAll = this.checkAll ? false : true;
129
+ // 全选改变后,清空选中数据
130
+ this.checkes = []
131
+ },
132
+ isChecked(v) {
133
+ // 如果全选,不在的按选中算,否则,在的按选中算
134
+ if (this.checkAll) {
135
+ return this.checkes.indexOf(v) == -1
136
+ } else {
137
+ return this.checkes.indexOf(v) != -1
138
+ }
139
+ },
140
+ setCheckes(id) {
141
+ let index = this.checkes.indexOf(id)
142
+ if (index < 0) {
143
+ this.checkes.push(id)
144
+ } else {
145
+ this.checkes.splice(index, 1)
146
+ }
147
+ },
148
+ send() {
149
+ if (!this.checkAll && this.checkes.length == 0) {
150
+ return this.$showMessage('请选择单位')
151
+ }
152
+ this.showSendModal = true
153
+ },
154
+ details(row) {
155
+ this.$emit('showuser', row)
156
+ },
157
+ selfSearch(args) {
158
+ if (this.rowdata.id) {
159
+ this.checkAll = false
160
+ this.checkes = []
161
+ args.condition += `and f_check_book_id =${this.rowdata.id}`
162
+ this.model.search(args.condition)
163
+ this.addcondata = args.model.f_residential_area ? ` and area.f_residential_area like '%${args.model.f_residential_area}%'` : ''
164
+ } else {
165
+ this.$showMessage('请选择安检册')
166
+ }
167
+ }
168
+ }
169
+ }
170
+ </script>