safecheck-client 3.0.34-33 → 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 (58) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +2 -2
  3. package/src/components/android/ImgSelfAndroid.vue +181 -181
  4. package/src/components/android/QRCode/QRCodePage.vue +208 -199
  5. package/src/components/android/SafecheckDevices.vue +1298 -1298
  6. package/src/components/android/examples/SafeListExamples.vue +96 -95
  7. package/src/components/android/examples/UserExamples.vue +126 -125
  8. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
  9. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  10. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  11. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  12. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -63
  13. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  14. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  15. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
  16. package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
  17. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -348
  18. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -160
  19. package/src/filiale/bayan/android/SafecheckOrderV.vue +2866 -2866
  20. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  21. package/src/filiale/huaran/android.js +12 -0
  22. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  23. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  24. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  25. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  26. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  27. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  28. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  29. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  30. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  31. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  32. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  33. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  34. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  35. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  36. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  37. package/src/filiale/huaran/pc.js +27 -0
  38. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  39. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
  40. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
  41. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -2811
  42. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  43. package/src/filiale/jiaxian/android.js +14 -14
  44. package/src/filiale/jiaxian/pc.js +12 -12
  45. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  46. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  47. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  48. package/src/filiale/weinan/android/SafecheckDevices.vue +1295 -1295
  49. package/src/filiale/weinan/android/SafecheckOrderV.vue +3335 -3335
  50. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  51. package/src/filiale/weinan/pc.js +47 -47
  52. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  53. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  54. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2845
  55. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  56. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  57. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  58. package/src/main.js +1 -1
@@ -1,160 +1,160 @@
1
- <template>
2
- <div style="width: 100%;height: 100%">
3
- <div class="col-sm-6 form-group" style="margin-bottom: 0px">
4
- <label class="font_normal_body">公&emsp;&emsp;司</label>
5
- <right-tree-safe :width="leftWidth" @re-res="getRes" :resobjprop.sync="resobjprop"></right-tree-safe>
6
- </div>
7
- <div class="col-sm-6 form-group" style="margin-bottom: 0px">
8
- <label class="font_normal_body">{{ roleLable }}</label>
9
- <v-select :value="selVal" v-model='selVal'
10
- :value-single="!valueMultiple"
11
- class="select_list select"
12
- :options='users' :placeholder='roleName'
13
- :close-on-select = 'valueClose'
14
- :multiple="valueMultiple"
15
- :width="rightWidth"
16
- @change="valuechange">
17
- </v-select>
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- import {HttpResetClass} from 'vue-client'
24
-
25
- export default {
26
- name: "RoleSelector",
27
- props: {
28
- valueMultiple: {
29
- type: Boolean,
30
- default: false
31
- },
32
- roleName: {
33
- type: String,
34
- default: '安检员'
35
- },
36
- roleLable: {
37
- type: String,
38
- default: '安检员'
39
- },
40
- leftWidth: {
41
- type: String,
42
- default: '60%'
43
- },
44
- rightWidth: {
45
- type: String,
46
- default: '60%'
47
- },
48
- value: {
49
- default: ''
50
- },
51
- resobjprop: {
52
- default: {}
53
- },
54
- valueClose: {
55
- type: Boolean,
56
- default: true
57
- }
58
- },
59
- data() {
60
- return {
61
- source: `tool.getChildrenOfResName($${this.roleName}$)`,
62
- //source: `root.getResourceById($${this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolesnames$).indexOf($${this.roleName}$) != -1)`,
63
- allUsers: [],
64
- users: [],
65
- selVal: '',
66
- organizationname:this.$login.f.f_fengongsi,
67
- resids: [],
68
- changeval: ''
69
- }
70
- },
71
- watch: {
72
- 'value'(val) {
73
- console.log("969696", val)
74
- if (val) {
75
- if (this.valueMultiple) {
76
-
77
- } else {
78
- this.selVal = val
79
- }
80
-
81
- }
82
- }
83
- },
84
- async ready() {
85
- await this.search()
86
- await this.filterUser(this.resids)
87
- },
88
- methods: {
89
- async search() {
90
- let http = new HttpResetClass()
91
- const res = await http.load('POST', '/rs/search', {
92
- data: {
93
- source: this.source,
94
- userid: this.$login.f.id
95
- }
96
- }, {resolveMsg: null, rejectMsg: null})
97
- this.allUsers = res.data
98
- },
99
- valuechange(val) {
100
- console.log(`val instanceof Array======${!val instanceof Array}`)
101
- if ((typeof val === 'object' && !val instanceof Array) || (val instanceof Event)) {
102
- return
103
- }
104
- if (this.valueMultiple && Array.isArray(val)) {
105
- if (val && val.length > 0) {
106
- let valuesele = `(`
107
- for (let i = 0; i < val.length; i++) {
108
- valuesele += `'${val[i]}',`
109
- }
110
- this.value = valuesele.substring(0, valuesele.length - 1) + ')'
111
- } else {
112
- this.value = ''
113
- }
114
- } else {
115
- this.value = val
116
- }
117
- // this.changeval = val
118
- },
119
- getRes(obj) {
120
- this.resids = obj.resids
121
- this.organizationname = obj.res[0]
122
- this.filterUser(this.resids)
123
- this.$dispatch('re-res', obj)
124
- },
125
- async filterUser(resids) {
126
- // 处理第一次进入页面值异常问题
127
- if (resids.length > 0 && typeof resids[0] == "object") {
128
- resids = resids[0]
129
- }
130
- if (resids[0]) {
131
- this.source = `tool.getChildrenOfResName($${this.roleName}$)`
132
- await this.search()
133
- }
134
- this.users = []
135
- this.allUsers.forEach(user => {
136
- if (this.organizationname == user.organizationname || !user.organizationname){
137
- this.users.push({label: user.name, value: user.name})
138
- }
139
- })
140
- if (!this.valueMultiple && this.users.length > 0) {
141
- this.users = [{label: '全部', value: ''}, ...this.users]
142
- }
143
- let temp = []
144
- this.users = this.users.filter(item => {
145
- if (!temp.includes(item.label)) {
146
- temp.push(item.label)
147
- return true
148
- }
149
- return false
150
- })
151
- this.$emit('alluser', this.allUsers)
152
- //tag
153
- }
154
- }
155
- }
156
- </script>
157
-
158
- <style scoped>
159
-
160
- </style>
1
+ <template>
2
+ <div style="width: 100%;height: 100%">
3
+ <div class="col-sm-6 form-group" style="margin-bottom: 0px">
4
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
5
+ <right-tree-safe :width="leftWidth" @re-res="getRes" :resobjprop.sync="resobjprop"></right-tree-safe>
6
+ </div>
7
+ <div class="col-sm-6 form-group" style="margin-bottom: 0px">
8
+ <label class="font_normal_body">{{ roleLable }}</label>
9
+ <v-select :value="selVal" v-model='selVal'
10
+ :value-single="!valueMultiple"
11
+ class="select_list select"
12
+ :options='users' :placeholder='roleName'
13
+ :close-on-select = 'valueClose'
14
+ :multiple="valueMultiple"
15
+ :width="rightWidth"
16
+ @change="valuechange">
17
+ </v-select>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ import {HttpResetClass} from 'vue-client'
24
+
25
+ export default {
26
+ name: "RoleSelector",
27
+ props: {
28
+ valueMultiple: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+ roleName: {
33
+ type: String,
34
+ default: '安检员'
35
+ },
36
+ roleLable: {
37
+ type: String,
38
+ default: '安检员'
39
+ },
40
+ leftWidth: {
41
+ type: String,
42
+ default: '60%'
43
+ },
44
+ rightWidth: {
45
+ type: String,
46
+ default: '60%'
47
+ },
48
+ value: {
49
+ default: ''
50
+ },
51
+ resobjprop: {
52
+ default: {}
53
+ },
54
+ valueClose: {
55
+ type: Boolean,
56
+ default: true
57
+ }
58
+ },
59
+ data() {
60
+ return {
61
+ source: `tool.getChildrenOfResName($${this.roleName}$)`,
62
+ //source: `root.getResourceById($${this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolesnames$).indexOf($${this.roleName}$) != -1)`,
63
+ allUsers: [],
64
+ users: [],
65
+ selVal: '',
66
+ organizationname:this.$login.f.f_fengongsi,
67
+ resids: [],
68
+ changeval: ''
69
+ }
70
+ },
71
+ watch: {
72
+ 'value'(val) {
73
+ console.log("969696", val)
74
+ if (val) {
75
+ if (this.valueMultiple) {
76
+
77
+ } else {
78
+ this.selVal = val
79
+ }
80
+
81
+ }
82
+ }
83
+ },
84
+ async ready() {
85
+ await this.search()
86
+ await this.filterUser(this.resids)
87
+ },
88
+ methods: {
89
+ async search() {
90
+ let http = new HttpResetClass()
91
+ const res = await http.load('POST', '/rs/search', {
92
+ data: {
93
+ source: this.source,
94
+ userid: this.$login.f.id
95
+ }
96
+ }, {resolveMsg: null, rejectMsg: null})
97
+ this.allUsers = res.data
98
+ },
99
+ valuechange(val) {
100
+ console.log(`val instanceof Array======${!val instanceof Array}`)
101
+ if ((typeof val === 'object' && !val instanceof Array) || (val instanceof Event)) {
102
+ return
103
+ }
104
+ if (this.valueMultiple && Array.isArray(val)) {
105
+ if (val && val.length > 0) {
106
+ let valuesele = `(`
107
+ for (let i = 0; i < val.length; i++) {
108
+ valuesele += `'${val[i]}',`
109
+ }
110
+ this.value = valuesele.substring(0, valuesele.length - 1) + ')'
111
+ } else {
112
+ this.value = ''
113
+ }
114
+ } else {
115
+ this.value = val
116
+ }
117
+ // this.changeval = val
118
+ },
119
+ getRes(obj) {
120
+ this.resids = obj.resids
121
+ this.organizationname = obj.res[0]
122
+ this.filterUser(this.resids)
123
+ this.$dispatch('re-res', obj)
124
+ },
125
+ async filterUser(resids) {
126
+ // 处理第一次进入页面值异常问题
127
+ if (resids.length > 0 && typeof resids[0] == "object") {
128
+ resids = resids[0]
129
+ }
130
+ if (resids[0]) {
131
+ this.source = `tool.getChildrenOfResName($${this.roleName}$)`
132
+ await this.search()
133
+ }
134
+ this.users = []
135
+ this.allUsers.forEach(user => {
136
+ if (this.organizationname == user.organizationname || !user.organizationname){
137
+ this.users.push({label: user.name, value: user.name})
138
+ }
139
+ })
140
+ if (!this.valueMultiple && this.users.length > 0) {
141
+ this.users = [{label: '全部', value: ''}, ...this.users]
142
+ }
143
+ let temp = []
144
+ this.users = this.users.filter(item => {
145
+ if (!temp.includes(item.label)) {
146
+ temp.push(item.label)
147
+ return true
148
+ }
149
+ return false
150
+ })
151
+ this.$emit('alluser', this.allUsers)
152
+ //tag
153
+ }
154
+ }
155
+ }
156
+ </script>
157
+
158
+ <style scoped>
159
+
160
+ </style>