safecheck-client 3.0.34-35 → 3.0.34-39

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/android/QRCode/QRCodePage.vue +208 -208
  4. package/src/components/android/examples/SafeListExamples.vue +96 -96
  5. package/src/components/android/examples/UserExamples.vue +126 -126
  6. package/src/filiale/bayan/android/SafecheckOrderV.vue +49 -26
  7. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  8. package/src/filiale/huaran/android.js +12 -12
  9. package/src/filiale/huaran/pc/CheckBook.vue +313 -313
  10. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -69
  11. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -170
  12. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -166
  13. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -196
  14. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -61
  15. package/src/filiale/huaran/pc/CheckBookList.vue +386 -386
  16. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -564
  17. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -229
  18. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -604
  19. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -112
  20. package/src/filiale/huaran/pc/PaperList.vue +822 -822
  21. package/src/filiale/huaran/pc/PlanManage.vue +887 -887
  22. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  23. package/src/filiale/huaran/pc/checkUserList.vue +867 -867
  24. package/src/filiale/huaran/pc.js +27 -27
  25. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  26. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  27. package/src/filiale/ruihua/android.js +11 -0
  28. package/src/filiale/weinan/android/SafecheckDevices.vue +1295 -1295
  29. package/src/filiale/weinan/android/SafecheckOrderV.vue +3335 -3335
  30. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  31. package/src/filiale/weinan/pc.js +47 -47
  32. package/src/main.js +33 -33
@@ -1,69 +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>
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>
@@ -1,170 +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>
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>