safecheck-client 4.0.0-52 → 4.0.0-53

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 (29) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/NewDefectList/DefectListNew.vue +663 -663
  4. package/src/components/Util/SafecheckUpload.vue +281 -281
  5. package/src/components/android/AndroidDefectDetails.vue +725 -725
  6. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  7. package/src/components/android/SafecheckDevices.vue +1340 -1339
  8. package/src/components/pc/AddToCheckBook.vue +237 -237
  9. package/src/components/pc/CheckBook.vue +303 -303
  10. package/src/components/pc/CheckBookArea.vue +146 -146
  11. package/src/components/pc/CheckBookCompany.vue +144 -144
  12. package/src/components/pc/CheckBookDetails.vue +161 -161
  13. package/src/components/pc/CheckBookEntry.vue +60 -60
  14. package/src/components/pc/CheckBookList.vue +366 -366
  15. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  16. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  17. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  18. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  19. package/src/components/pc/CheckBookUser.vue +333 -333
  20. package/src/components/pc/DefectDeal.vue +1007 -1007
  21. package/src/filiale/meihekou/android/AreaPlan.vue +569 -569
  22. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  23. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  24. package/src/filiale/meihekou/android/CurrentCreate.vue +1087 -1087
  25. package/src/filiale/meihekou/android/MeterReading.vue +106 -106
  26. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2346 -2346
  27. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -787
  28. package/src/filiale/meihekou/android.js +19 -19
  29. package/src/filiale/meihekou/pc.js +12 -12
@@ -1,229 +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('api/af-safecheck/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', `/api/af-safecheck/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>
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('api/af-safecheck/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', `/api/af-safecheck/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>