safecheck-client 3.0.34-34 → 3.0.34-35

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/QRCode/QRCodePage.vue +208 -199
  3. package/src/components/android/examples/SafeListExamples.vue +96 -95
  4. package/src/components/android/examples/UserExamples.vue +126 -125
  5. package/src/filiale/bayan/android/SafecheckOrderV.vue +2866 -2866
  6. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  7. package/src/filiale/huaran/android.js +12 -0
  8. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  9. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  10. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  11. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  12. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  13. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  14. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  15. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  16. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  17. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  18. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  19. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  20. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  21. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  22. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  23. package/src/filiale/huaran/pc.js +27 -0
  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/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/filiale/yuansheng/android/SafecheckDevices.vue +1258 -1258
  33. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  34. package/src/main.js +1 -1
@@ -0,0 +1,166 @@
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_company_name 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
+ </tr>
45
+ </template>
46
+ <template partial='body'>
47
+ <tr>
48
+ <td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
49
+ :checked="$parent.$parent.$parent.isChecked(row.id)"
50
+ @change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
51
+ <td style="text-align:center">{{ row.f_rea }}</td>
52
+ <td style="text-align:center">{{ row.f_company_street }}</td>
53
+ <td style="text-align:center">{{ row.f_company_name }}</td>
54
+ <td style="text-align:center">
55
+ <button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
56
+ <b>{{ row.num ? row.num : 0 }}</b></button>
57
+ </td>
58
+ <td style="text-align:center">{{ row.f_company_position }}</td>
59
+ </tr>
60
+ </template>
61
+ <template partial='foot'></template>
62
+ </data-grid>
63
+ </criteria-paged>
64
+ <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
65
+ <article slot="modal-body" class="modal-body" style="height: 80vh">
66
+ <check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
67
+ :bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
68
+ :userlogin="userlogin"></check-book-search-user-list>
69
+ </article>
70
+ <footer slot="modal-footer">
71
+ </footer>
72
+
73
+ </modal>
74
+ </div>
75
+ </template>
76
+
77
+ <script>
78
+ import {HttpResetClass, PagedList} from 'vue-client'
79
+
80
+ export default {
81
+ title: '非民用安检册单位',
82
+ props: ['row', 'needprops'],
83
+ data() {
84
+ return {
85
+ rowdata: this.row,
86
+ showSendModal: false,
87
+ checkBookRow: {},
88
+ userlogin: {
89
+ id: this.$login.f.id,
90
+ name: this.$login.f.name,
91
+ orgid: this.$login.f.orgid,
92
+ orgstr: this.$login.f.orgs,
93
+ },
94
+ model: new PagedList('rs/sql/getCheckBookCompany', 50),
95
+ checkAll: false,
96
+ checkes: [],
97
+ addcondata: '',
98
+ }
99
+ },
100
+ ready() {
101
+ console.log(this.row)
102
+ const val = this.row
103
+ if (val) {
104
+ this.checkAll = false
105
+ this.checkes = []
106
+ this.rowdata = val
107
+ const condition = `f_check_book_id =${val.id}`
108
+ this.model.search(condition)
109
+ }
110
+ },
111
+ watch: {
112
+ 'row'(val) {
113
+ if (val) {
114
+ this.checkAll = false
115
+ this.checkes = []
116
+ this.rowdata = val
117
+ const condition = `f_check_book_id =${val.id}`
118
+ this.model.search(condition)
119
+ }
120
+ }
121
+ },
122
+ methods: {
123
+ setCheckAll() {
124
+ this.checkAll = this.checkAll ? false : true;
125
+ // 全选改变后,清空选中数据
126
+ this.checkes = []
127
+ },
128
+ isChecked(v) {
129
+ // 如果全选,不在的按选中算,否则,在的按选中算
130
+ if (this.checkAll) {
131
+ return this.checkes.indexOf(v) == -1
132
+ } else {
133
+ return this.checkes.indexOf(v) != -1
134
+ }
135
+ },
136
+ setCheckes(id) {
137
+ let index = this.checkes.indexOf(id)
138
+ if (index < 0) {
139
+ this.checkes.push(id)
140
+ } else {
141
+ this.checkes.splice(index, 1)
142
+ }
143
+ },
144
+ send() {
145
+ if (!this.checkAll && this.checkes.length == 0) {
146
+ return this.$showMessage('请选择单位')
147
+ }
148
+ this.showSendModal = true
149
+ },
150
+ details(row) {
151
+ this.$emit('showuser', row)
152
+ },
153
+ selfSearch(args) {
154
+ if (this.rowdata.id) {
155
+ this.checkAll = false
156
+ this.checkes = []
157
+ args.condition += `and f_check_book_id =${this.rowdata.id}`
158
+ this.model.search(args.condition)
159
+ this.addcondata = args.model.f_residential_area ? ` and tc.f_company_name like '%${args.model.f_residential_area}%'` : ''
160
+ } else {
161
+ this.$showMessage('请选择安检册')
162
+ }
163
+ }
164
+ }
165
+ }
166
+ </script>
@@ -0,0 +1,196 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <validator name='v'>
4
+ <form class="form-horizontal" novalidate>
5
+ <ul class="nav nav-tabs" style="margin-bottom: 10px">
6
+ <li class="active"><a href="#">安检册信息</a></li>
7
+ </ul>
8
+ <div class="row" style="margin-top: 10px">
9
+ <div class="col-sm-12 form-group" style="margin: 0">
10
+ <role-selector-safe
11
+ @alluser="getUsers"
12
+ @re-res="getRes"
13
+ role-name="安检员"
14
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
15
+ :value.sync="checkBook.f_checker_name"
16
+ v-model="checkBook.f_checker_name">
17
+ </role-selector-safe>
18
+ </div>
19
+ <!-- <div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_type.required ? 'has-error' : '']">-->
20
+ <!-- <label class="font_normal_body">表册类型</label>-->
21
+ <!-- <input type="text" v-show="false" v-model="checkBook.f_check_book_type"-->
22
+ <!-- :value.sync="checkBook.f_check_book_type"-->
23
+ <!-- v-validate:f_check_book_type='{required: true }'>-->
24
+ <!-- <v-select :value.sync="checkBook.f_check_book_type" v-model='checkBook.f_check_book_type'-->
25
+ <!-- :value-single="true" style="width: 60%"-->
26
+ <!-- class="select_list select"-->
27
+ <!-- :options='bookTypes' placeholder=''-->
28
+ <!-- close-on-select></v-select>-->
29
+ <!-- </div>-->
30
+ <div class="form-group col-sm-6" style="margin-top: 20px"
31
+ :class="[$v.f_user_type.required ? 'has-error' : '']">
32
+ <label class="font_normal_body">用户类型</label>
33
+ <input type="text" v-show="false" v-model="checkBook.f_user_type"
34
+ v-validate:f_user_type='{required: true }'>
35
+ <v-select :value.sync="checkBook.f_user_type" v-model='checkBook.f_user_type'
36
+ :value-single="true" style="width: 60%"
37
+ class="select_list select"
38
+ :options='userTypes' placeholder=''
39
+ close-on-select></v-select>
40
+ </div>
41
+ <div class="form-group col-sm-6" style="margin-top: 20px"
42
+ :class="[$v.f_check_book_name.required ? 'has-error' : '']">
43
+ <label class="font_normal_body">安检册名称</label>
44
+ <input type="text" class="input_search" v-model="checkBook.f_check_book_name"
45
+ style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
46
+ </div>
47
+ <div class="form-group col-sm-6" style="margin-top: 20px">
48
+ <label class="font_normal_body">执行日期</label>
49
+ <datepicker
50
+ :value.sync="checkBook.f_run_date"
51
+ style="width: 60%"
52
+ :format="'yyyy-MM-dd'"
53
+ v-model="checkBook.f_run_date"
54
+ >
55
+ </datepicker>
56
+ </div>
57
+ <div class="form-group col-sm-6" style="margin-top: 20px">
58
+ <label class="font_normal_body">执行周期</label>
59
+ <input type="number" class="input_search" v-model="checkBook.f_around_time"
60
+ style="width: 60%">
61
+ </div>
62
+ <div class="form-group col-sm-6" style="margin-top: 20px">
63
+ <label class="font_normal_body">周期单位</label>
64
+ <v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
65
+ :value-single="true" style="width: 60%"
66
+ class="select_list select"
67
+ :options='aroundUnit' placeholder=''
68
+ close-on-select></v-select>
69
+ </div>
70
+
71
+
72
+ <!-- <div class="form-group col-sm-6" style="margin-top: 20px">-->
73
+ <!-- <label class="font_normal_body">自动下发</label>-->
74
+ <!-- <v-select :value.sync="checkBook.f_is_auto" v-model='checkBook.f_is_auto'-->
75
+ <!-- :value-single="true" style="width: 60%"-->
76
+ <!-- class="select_list select"-->
77
+ <!-- :options='autos' placeholder=''-->
78
+ <!-- close-on-select></v-select>-->
79
+ <!-- </div>-->
80
+ </div>
81
+ </form>
82
+ <div style="text-align:right;height:auto;margin-top:6px;margin-right: 10%">
83
+ <button @click="confirm()" class="button_search">确认</button>
84
+ <!-- <button @click="deleteBook()" class="button_delete">删除</button>-->
85
+ <button @click="close()" class="button_clear">取消</button>
86
+ </div>
87
+ </validator>
88
+ </div>
89
+ </template>
90
+ <script>
91
+ import * as Util from "../../../components/Util";
92
+ import bus from "../../../bus";
93
+ import {HttpResetClass} from 'vue-client'
94
+
95
+ export default {
96
+ data() {
97
+ return {
98
+ aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
99
+ bookTypes: [{label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
100
+ userTypes: [{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
101
+ autos: [{label: '是', value: '是'}, {label: '否', value: '否'}],
102
+ allUsers: [],
103
+ checkBook: {
104
+ f_check_book_name: '',
105
+ f_run_date: '',
106
+ f_around_time: '',
107
+ f_around_unit: '',
108
+ f_create_date: '',
109
+ f_create_person: '',
110
+ f_user_type: '',
111
+ f_orgid: '',
112
+ f_is_auto: '否',
113
+ f_check_book_type: "小区",
114
+ f_checker_name: '',
115
+ f_checker_id: '',
116
+ }
117
+ }
118
+ },
119
+ props: ['row', 'showtype'],
120
+ watch: {
121
+ 'checkBook.f_checker_name'(val) {
122
+ const user = this.allUsers.filter(item => item.name == val);
123
+ if (user.length > 0) {
124
+ this.checkBook.f_checker_id = user[0]["id"]
125
+ }
126
+ console.log("777", this.checkBook)
127
+ },
128
+ row(row) {
129
+ this.changeCheckBook(row)
130
+ }
131
+ },
132
+ ready() {
133
+ // console.log(this.$login.f.orgid)
134
+ this.changeCheckBook(this.row)
135
+ this.checkBook.f_user_type = this.showtype
136
+ console.log('row', JSON.stringify(this.row))
137
+ },
138
+ methods: {
139
+ changeCheckBook(row) {
140
+ console.log('row改变了', row)
141
+ if (row && row.id) {
142
+ console.log('进入修改赋值')
143
+ this.checkBook = row
144
+ }
145
+ },
146
+ deleteBook() {
147
+ console.log('delete', this.row)
148
+ },
149
+ close() {
150
+ console.log('关闭')
151
+ this.$parent.showItem = false
152
+ },
153
+ confirm() {
154
+ if (!this.checkBook.f_check_book_name) {
155
+ this.$showMessage('请填写安检册名称')
156
+ return
157
+ }
158
+ // if(!this.checkBook.f_check_book_type){
159
+ // this.$showMessage('请选择表册类型')
160
+ // return
161
+ // }
162
+ if (!this.checkBook.f_user_type) {
163
+ this.$showMessage('请选择用户类型')
164
+ return
165
+
166
+ }
167
+ this.checkBook.f_orgid = this.$login.f.orgid
168
+ this.checkBook.f_create_person = this.$login.f.name
169
+ this.checkBook.f_create_date = Util.toStandardDateString()
170
+ console.log('checkbook', this.checkBook)
171
+ let http = new HttpResetClass()
172
+ http.load('POST', 'rs/logic/safeEntity', {data: {tableName: 't_check_book', entityData: this.checkBook}},
173
+ {resolveMsg: '保存安检册信息成功', rejectMsg: '保存安检册信息失败'}).then(res => {
174
+ if (res.data.code === 200) {
175
+ this.$showMessage('保存安检册信息成功', ['confirm']).then(res => {
176
+ if (res === 'confirm') {
177
+ bus.$emit('fresh-main')
178
+ }
179
+ })
180
+ } else {
181
+ this.$showMessage('保存安检册信息失败')
182
+ }
183
+ })
184
+ },
185
+ getRes(obj) {
186
+ if (obj.resids) {
187
+ this.checkBook.f_orgid = obj.resids[0]
188
+ console.log('id', this.checkBook.f_orgid)
189
+ }
190
+ },
191
+ getUsers(obj) {
192
+ this.allUsers = obj
193
+ }
194
+ }
195
+ }
196
+ </script>
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <div id='checkbookEntry' class="flex-row binary">
3
+ <div class="binary-left">
4
+ <tabset v-ref:tabs :close="false" class="nav-tabss">
5
+ <tab header="小区查询">
6
+ <check-book-search-area @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-area>
7
+ </tab>
8
+ <!-- <tab header="单位查询">-->
9
+ <!-- <check-book-search-unit @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-unit>-->
10
+ <!-- </tab>-->
11
+ <tab header="用户查询">
12
+ <check-book-search-user @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-user>
13
+ </tab>
14
+ </tabset>
15
+ </div>
16
+ <div class="binary-right">
17
+ <add-to-check-book @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></add-to-check-book>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+
24
+ export default {
25
+ name: 'checkBookEntry',
26
+ title: '添加用户到安检册',
27
+ data () {
28
+ return {
29
+ bookList: [],
30
+ bookCondition:"",
31
+ bookAll: false
32
+ }
33
+ },
34
+ created () {
35
+ },
36
+ ready () {
37
+ },
38
+ methods: {
39
+ setBookList(val){
40
+ console.log("555555")
41
+ // console.log("66666",val)
42
+ this.bookList = val
43
+ },
44
+ setBookAll(val){
45
+ this.bookAll = val
46
+ },
47
+ setCondition(val){
48
+ this.bookCondition = val
49
+ },
50
+ },
51
+ events: {
52
+
53
+ }
54
+ }
55
+ </script>
56
+
57
+ <style lang="less">
58
+ #checkbookEntry {
59
+ height: 700px;
60
+ }
61
+ </style>