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,229 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+
9
+ <div class="col-sm-3 form-group" style="margin-bottom: 0px">
10
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
11
+ <right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_orgid" condition="tc.f_orgid in {}"></right-tree-safe>
12
+ </div>
13
+ <div class="form-group col-sm-3">
14
+ <label class="font_normal_body">单位名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_company_name"
16
+ style="width: 60%" placeholder="单位名称" condition="f_company_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body">是否在册</label>
20
+ <v-select :value.sync="model.f_is_checkbook" v-model='model.f_is_checkbook'
21
+ :value-single="true" style="width: 60%"
22
+ class="select_list select"
23
+ @change="$parent.$parent.changeState"
24
+ :options='$parent.$parent.isCheckBook' placeholder='有无所属安检册'
25
+ close-on-select
26
+ condition="{}"></v-select>
27
+ </div>
28
+ <div class="form-group col-sm-3">
29
+ <button class="button_spacing button_search" @click="search()">查询</button>
30
+ <!-- <div style="float: right" class="button_spacing"
31
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
32
+ @click="$parent.$parent.hidden()"></div> -->
33
+ </div>
34
+
35
+
36
+
37
+
38
+ </div>
39
+ </div>
40
+ </criteria>
41
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
42
+ <template partial='head'>
43
+ <tr @dblclick.stop="">
44
+ <th>
45
+ <nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
46
+ </th>
47
+ <th>
48
+ <nobr>区</nobr>
49
+ </th>
50
+ <th>
51
+ <nobr>街道</nobr>
52
+ </th>
53
+ <th>
54
+ <nobr>单位名称</nobr>
55
+ </th>
56
+ <th>
57
+ <nobr>单位地址</nobr>
58
+ </th>
59
+ <th>
60
+ <nobr>所属安检册</nobr>
61
+ </th>
62
+ </tr>
63
+ </template>
64
+ <template partial='body'>
65
+ <td style="text-align: center">
66
+ <nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
67
+ @change="$parent.$parent.$parent.checkChange(row, $event)"></input>
68
+ </nobr>
69
+ </td>
70
+ <td style="text-align: center">{{ row.f_rea }}</td>
71
+ <td style="text-align: center">{{ row.f_company_street }}</td>
72
+ <td style="text-align: center">{{ row.f_company_name }}</td>
73
+ <td style="text-align: center">{{ row.f_company_position }}</td>
74
+ <td style="text-align: center">{{ row.f_check_book_name }}</td>
75
+ </template>
76
+ </data-grid>
77
+ </criteria-paged>
78
+ </div>
79
+ </div>
80
+ </template>
81
+
82
+ <script>
83
+ import {PagedList, HttpResetClass} from 'vue-client'
84
+ import * as Util from '../../../components/Util'
85
+ import bus from "../../../bus";
86
+
87
+ export default {
88
+ title: '安检册管理',
89
+ data () {
90
+ let model = new PagedList('rs/sql/safe_singleTable_OrderBy', 20,{
91
+ items: "'tc.*,tcb.f_check_book_name'",
92
+ tablename: "'t_company tc left join t_check_book tcb on tc.f_check_book_id=tcb.id'",
93
+ orderitem: "'id desc'"
94
+ })
95
+ return {
96
+ model: model,
97
+ criteriaShow: false,
98
+ excelHeaders: {},
99
+ checkBooks: [],
100
+ f_orgid: '',
101
+ bookAll: false,
102
+ bookList: [],
103
+ selectBook:'',
104
+ // init:false,
105
+ isCheckBook: [{label: '全部', value: ''}, {label: '是', value: 'f_check_book_id is not null'}, {label: '否', value: 'f_check_book_id is null'}],
106
+ isSearch: false,
107
+ checkBook: {
108
+ f_check_book_name: '',
109
+ f_run_date: '',
110
+ f_around_time: '',
111
+ f_around_unit: '',
112
+ f_create_date: Util.toStandardDateString(),
113
+ f_create_person: this.$login.f.name,
114
+ f_orgid: '',
115
+ f_checker_name: ''
116
+ }
117
+ }
118
+ },
119
+ beforeDestroy() {
120
+ //tag
121
+ bus.$off('fresh-area')
122
+ },
123
+ computed: {
124
+ searchData () {
125
+ return {condition: this.model.condition}
126
+ },
127
+ bookCondition () {
128
+ return this.model.condition
129
+ },
130
+ isCreateBook () {
131
+ return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is null'
132
+ },
133
+ isChangeBook () {
134
+ return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is not null'
135
+ }
136
+ },
137
+ watch:{
138
+ 'bookList'(){
139
+ this.$emit('book-list',this.bookList)
140
+ },
141
+ 'bookAll'(val){
142
+ if(!val){
143
+ this.bookList=[]
144
+ }
145
+ this.$emit('book-all',this.bookAll)
146
+ }
147
+ },
148
+ methods: {
149
+ changeState (val) {
150
+ //tag
151
+ //tag
152
+ this.bookAll = false
153
+ this.bookList = []
154
+ if (this.$refs.paged.$refs.criteria.model.f_orgid){
155
+ this.$refs.paged.$refs.criteria.search()
156
+ }
157
+ },
158
+ checkModel (row) {
159
+ if (this.bookAll) {
160
+ //tag)
161
+ return true
162
+ } else {
163
+ if (this.bookList.findIndex(res => res === row.id) !== -1) {
164
+ return true
165
+ } else {
166
+ return false
167
+ }
168
+ }
169
+ },
170
+ checkChange (row, e) {
171
+ //tag
172
+ if (e.target.checked) {
173
+ this.bookList.push(row.id)
174
+ } else {
175
+ this.bookList.splice(this.bookList.findIndex(res => res === row.id), 1)
176
+ }
177
+ },
178
+ getResm (obj) {
179
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.$login.convertToIn(obj.resids)
180
+ },
181
+ hidden () {
182
+ this.criteriaShow = !this.criteriaShow
183
+ },
184
+ selfSearch (args) {
185
+ this.isSearch = true
186
+ this.bookAll = false
187
+ this.bookList = []
188
+ this.$emit('book-condition',args.condition)
189
+ this.model.search(args.condition, args.model)
190
+ },
191
+ // freshCheckBook () {
192
+ // this.checkBooks = []
193
+ // new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
194
+ // data: {
195
+ // items: 'id,f_check_book_name',
196
+ // tablename: 't_check_book',
197
+ // condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`:'1=1',
198
+ // orderitem: 'id desc'
199
+ // }
200
+ // }, {resolveMsg: null, rejectMsg: null}).then(res => {
201
+ // this.checkBooks.push({label: '全部', value: ''})
202
+ // res.data.forEach(ress => {
203
+ // this.checkBooks.push({
204
+ // label: ress.f_check_book_name,
205
+ // value: ress.id
206
+ // })
207
+ // })
208
+ // })
209
+ // }
210
+ },
211
+
212
+ ready () {
213
+ bus.$on('fresh-area',()=>{
214
+ console.log("进入方法",this.bookAll,this.bookList)
215
+ this.bookAll = false
216
+ this.bookList = []
217
+ this.$refs.paged.$refs.criteria.search()
218
+ })
219
+ this.$refs.paged.$refs.criteria.model.f_is_checkbook = 'f_check_book_id is null'
220
+ // this.freshCheckBook()
221
+ }
222
+ }
223
+ </script>
224
+ <style scoped>
225
+ /*.btn-group > .btn:first-child {*/
226
+ /* margin-left: 0;*/
227
+ /* width: 100%;*/
228
+ /*}*/
229
+ </style>