safecheck-client 3.0.39-5 → 3.0.39-50

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 (89) hide show
  1. package/package.json +6 -6
  2. package/src/App.vue +31 -26
  3. package/src/assets//345/256/232/344/275/215.png +0 -0
  4. package/src/components/android/AndroidDefectDeal.vue +2 -2
  5. package/src/components/android/AreaPlan.vue +567 -567
  6. package/src/components/android/SafecheckOrderV.vue +1 -1
  7. package/src/components/pc/AddPlanItemYyChange.vue +5 -1
  8. package/src/components/pc/RoleSelector.vue +172 -172
  9. package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
  10. package/src/components/rongcheng/AddPlanItem.vue +344 -344
  11. package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
  12. package/src/components/rongcheng/PaperDefectMain.vue +828 -828
  13. package/src/components/rongcheng/PaperStatem.vue +6 -6
  14. package/src/filiale/BFshiye/android/PhoneUpUserinfo.vue +3 -1
  15. package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +2 -8
  16. package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
  17. package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -0
  18. package/src/filiale/baiyin/android.js +12 -11
  19. package/src/filiale/bayan/pc/NewCheckpaper.vue +2 -2
  20. package/src/filiale/bayan/pc/SelectAreaReport.vue +1 -0
  21. package/src/filiale/bayan/pc/SummaryOfSecurityInspectionProgress.vue +7 -7
  22. package/src/filiale/dexin/android/AreaPlan.vue +567 -567
  23. package/src/filiale/dexin/android.js +21 -21
  24. package/src/filiale/dexin/pc/PaperList.vue +840 -840
  25. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +2 -2
  26. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +1 -1
  27. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +6 -1
  28. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  29. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +1 -1
  30. package/src/filiale/huatong/android/SafecheckOrderV.vue +2 -2
  31. package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
  32. package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +182 -144
  33. package/src/filiale/jinhuang/android.js +2 -1
  34. package/src/filiale/kelai/android/PaperFeedback.vue +1384 -1370
  35. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1 -1
  36. package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
  37. package/src/filiale/kelai/android/SafecheckUserInfo.vue +1 -1
  38. package/src/filiale/kelai/pc/PaperList.vue +13 -0
  39. package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
  40. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
  41. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1270
  42. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  43. package/src/filiale/qingjian/android/SafecheckOrderV.vue +3 -0
  44. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -800
  45. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1918
  46. package/src/filiale/rongchuang/android/AddPlanItemVisitingWithoutMeeting.vue +454 -0
  47. package/src/filiale/rongchuang/android/AddPlanItemYy.vue +498 -0
  48. package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
  49. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
  50. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +3 -2
  51. package/src/filiale/rongchuang/android.js +3 -0
  52. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +6 -1
  53. package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
  54. package/src/filiale/rongchuang/pc.js +18 -17
  55. package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +57 -24
  56. package/src/filiale/siyang/android/SafecheckDevices.vue +1302 -1302
  57. package/src/filiale/siyang/android/SafecheckUserInfo.vue +849 -849
  58. package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
  59. package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
  60. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +47 -1
  61. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +46 -0
  62. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +34 -0
  63. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +34 -0
  64. package/src/filiale/tongchuan/pc/PaperList.vue +44 -10
  65. package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -0
  66. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +42 -2
  67. package/src/filiale/tongchuan/pc.js +2 -0
  68. package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
  69. package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
  70. package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
  71. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2682 -2682
  72. package/src/filiale/wenxi/pc/PaperList.vue +9 -3
  73. package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
  74. package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -655
  75. package/src/filiale/wuan/pc/NewCheckpaper.vue +1184 -1184
  76. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
  77. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
  78. package/src/filiale/yangchunboneng/android.js +21 -21
  79. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
  80. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
  81. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
  82. package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
  83. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
  84. package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
  85. package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
  86. package/src/filiale/yangchunboneng/pc.js +29 -29
  87. package/src/main.js +33 -33
  88. package/src/rongcheng.js +319 -319
  89. package/yarn-error.log +0 -140
@@ -259,7 +259,7 @@
259
259
  "金额异常差值":{"index":10,"type":"number","readonly": true},
260
260
  "系统余额":{"index":10,"type":"number","readonly": true},
261
261
  "表封号":{"index":11,"type":"string","readonly": true},
262
- "燃气表照片":{"index":12,"type":"picture","checkmust": false}
262
+ "燃气表照片":{"index":12,"type":"picture","checkmust": true}
263
263
  }
264
264
  // 注意,配置项的index必须与上面的固定配置保持'顺序'
265
265
  },
@@ -96,6 +96,9 @@
96
96
  <th>
97
97
  <nobr>安检员</nobr>
98
98
  </th>
99
+ <th>
100
+ <nobr>派单员</nobr>
101
+ </th>
99
102
  <th>
100
103
  <nobr>备注</nobr>
101
104
  </th>
@@ -109,6 +112,7 @@
109
112
  <td style="text-align: center;white-space:nowrap;">{{ row.f_user_name }}</td>
110
113
  <td style="text-align: center;white-space:nowrap;">{{ row.f_handler_time }}</td>
111
114
  <td style="text-align: center;white-space:nowrap;">{{ row.f_handlercheck_name }}</td>
115
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_operator }}</td>
112
116
  <td style="text-align: center;white-space:nowrap;">{{ row.f_safe_remark }}</td>
113
117
  </template>
114
118
  </data-grid>
@@ -156,7 +160,7 @@ let select = function* (self) {
156
160
  })
157
161
  }
158
162
  export default {
159
- title: '隐患查询',
163
+ title: '预约安检',
160
164
  data() {
161
165
  let model = new PagedList('rs/sql/safe_singleTable_OrderBy', 20, {
162
166
  items: "'*'",
@@ -1,172 +1,172 @@
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.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($${this.roleName}$) != -1)`,
63
- allUsers: [],
64
- users: [],
65
- selVal: '',
66
- organizationname:this.$login.f.organizationname,
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 clear() {
90
- // 根据valueMultiple属性设置适当的空值
91
- const emptyValue = this.valueMultiple ? [] : '';
92
- // 设置内部状态
93
- this.selVal = emptyValue;
94
- // 调用valuechange方法,确保值同步
95
- this.valuechange(emptyValue);
96
- },
97
- async search() {
98
- let http = new HttpResetClass()
99
- const res = await http.load('POST', '/rs/search', {
100
- data: {
101
- source: this.source,
102
- userid: this.$login.f.id
103
- }
104
- }, {resolveMsg: null, rejectMsg: null})
105
- this.allUsers = res.data
106
- },
107
- valuechange(val) {
108
- console.log(`val instanceof Array======${!val instanceof Array}`)
109
- if ((typeof val === 'object' && !val instanceof Array) || (val instanceof Event)) {
110
- return
111
- }
112
- if (this.valueMultiple && Array.isArray(val)) {
113
- if (val && val.length > 0) {
114
- let valuesele = `(`
115
- for (let i = 0; i < val.length; i++) {
116
- valuesele += `'${val[i]}',`
117
- }
118
- this.value = valuesele.substring(0, valuesele.length - 1) + ')'
119
- } else {
120
- this.value = ''
121
- }
122
- } else {
123
- this.value = val
124
- }
125
- // this.changeval = val
126
- },
127
- getRes(obj) {
128
- this.resids = obj.resids
129
- this.organizationname = obj.res[0]
130
- this.filterUser(this.resids)
131
- this.$dispatch('re-res', obj)
132
- },
133
- async filterUser(resids) {
134
- // 处理第一次进入页面值异常问题
135
- if (resids.length > 0 && typeof resids[0] == "object") {
136
- resids = resids[0]
137
- }
138
- if (resids[0]) {
139
- this.source = `root.getResourceById($${resids[0]}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($${this.roleName}$) != -1)`
140
- await this.search()
141
- }
142
- this.users = []
143
- this.allUsers.forEach(user => {
144
- if ((this.organizationname == user.organizationname || !user.organizationname) && user.state == '在职') {
145
- this.users.push({label: user.name, value: user.name})
146
- }
147
- })
148
- if (!this.valueMultiple && this.users.length > 0) {
149
- this.users = [{label: '全部', value: ''}, ...this.users]
150
- }
151
- let temp = []
152
- this.users = this.users.filter(item => {
153
- if (!temp.includes(item.label)) {
154
- temp.push(item.label)
155
- return true
156
- }
157
- return false
158
- })
159
- let sort = this.$appdata.getSingleValue('数据排序') || '否'
160
- if (sort == '是'){
161
- this.users.sort((a,b)=>a.label.localeCompare(b.label, 'zh-Hans-CN'))
162
- }
163
- this.$emit('alluser', this.allUsers)
164
- //tag
165
- }
166
- }
167
- }
168
- </script>
169
-
170
- <style scoped>
171
-
172
- </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.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($${this.roleName}$) != -1)`,
63
+ allUsers: [],
64
+ users: [],
65
+ selVal: '',
66
+ organizationname:this.$login.f.organizationname,
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 clear() {
90
+ // 根据valueMultiple属性设置适当的空值
91
+ const emptyValue = this.valueMultiple ? [] : '';
92
+ // 设置内部状态
93
+ this.selVal = emptyValue;
94
+ // 调用valuechange方法,确保值同步
95
+ this.valuechange(emptyValue);
96
+ },
97
+ async search() {
98
+ let http = new HttpResetClass()
99
+ const res = await http.load('POST', '/rs/search', {
100
+ data: {
101
+ source: this.source,
102
+ userid: this.$login.f.id
103
+ }
104
+ }, {resolveMsg: null, rejectMsg: null})
105
+ this.allUsers = res.data
106
+ },
107
+ valuechange(val) {
108
+ console.log(`val instanceof Array======${!val instanceof Array}`)
109
+ if ((typeof val === 'object' && !val instanceof Array) || (val instanceof Event)) {
110
+ return
111
+ }
112
+ if (this.valueMultiple && Array.isArray(val)) {
113
+ if (val && val.length > 0) {
114
+ let valuesele = `(`
115
+ for (let i = 0; i < val.length; i++) {
116
+ valuesele += `'${val[i]}',`
117
+ }
118
+ this.value = valuesele.substring(0, valuesele.length - 1) + ')'
119
+ } else {
120
+ this.value = ''
121
+ }
122
+ } else {
123
+ this.value = val
124
+ }
125
+ // this.changeval = val
126
+ },
127
+ getRes(obj) {
128
+ this.resids = obj.resids
129
+ this.organizationname = obj.res[0]
130
+ this.filterUser(this.resids)
131
+ this.$dispatch('re-res', obj)
132
+ },
133
+ async filterUser(resids) {
134
+ // 处理第一次进入页面值异常问题
135
+ if (resids.length > 0 && typeof resids[0] == "object") {
136
+ resids = resids[0]
137
+ }
138
+ if (resids[0]) {
139
+ this.source = `root.getResourceById($${resids[0]}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($${this.roleName}$) != -1)`
140
+ await this.search()
141
+ }
142
+ this.users = []
143
+ this.allUsers.forEach(user => {
144
+ if ((this.organizationname == user.organizationname || !user.organizationname) && user.state == '在职') {
145
+ this.users.push({label: user.name, value: user.name})
146
+ }
147
+ })
148
+ if (!this.valueMultiple && this.users.length > 0) {
149
+ this.users = [{label: '全部', value: ''}, ...this.users]
150
+ }
151
+ let temp = []
152
+ this.users = this.users.filter(item => {
153
+ if (!temp.includes(item.label)) {
154
+ temp.push(item.label)
155
+ return true
156
+ }
157
+ return false
158
+ })
159
+ let sort = this.$appdata.getSingleValue('数据排序') || '否'
160
+ if (sort == '是'){
161
+ this.users.sort((a,b)=>a.label.localeCompare(b.label, 'zh-Hans-CN'))
162
+ }
163
+ this.$emit('alluser', this.allUsers)
164
+ //tag
165
+ }
166
+ }
167
+ }
168
+ </script>
169
+
170
+ <style scoped>
171
+
172
+ </style>
@@ -68,6 +68,18 @@
68
68
  condition="f_userinfo_code = '{}'"
69
69
  placeholder="用户编号"/>
70
70
  </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">网&ensp;格&ensp;员</label>
73
+ <v-select class="select_list select"
74
+ placeholder='请选择' style="width: 60%"
75
+ :value.sync="model.f_book_checker" v-model="model.f_book_checker"
76
+ :options='$parent.$parent.users'
77
+ filer-key="name"
78
+ close-on-select clear-button
79
+ condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
80
+ :value-single="true">
81
+ </v-select>
82
+ </div>
71
83
  </div>
72
84
  </div>
73
85
  </div>
@@ -145,6 +157,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
145
157
  // f_orgids: '1522.255', //测试使用
146
158
  suggetsShow: false,
147
159
  f_suggest: '',
160
+ users:[{label: '全部', value: ''}],
148
161
 
149
162
  curorgid: [this.$login.f.orgid],
150
163
  f_orgid: '',
@@ -155,8 +168,29 @@ import {HttpResetClass, PagedList} from 'vue-client'
155
168
  ready(){
156
169
  // 默认查询待处理状态预约
157
170
  this.search()
171
+ this.initBookChecker()
158
172
  },
159
173
  methods: {
174
+ initBookChecker(){
175
+ new HttpResetClass().load('POST', '/rs/search', {
176
+ data: {
177
+ source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($网格员$) != -1)`,
178
+ userid: this.$login.f.id
179
+ }
180
+ }, {resolveMsg: null, rejectMsg: null}).then(res=>{
181
+ let data = res.data
182
+ const addedNames = new Set()
183
+ this.users = []
184
+ data.forEach(user => {
185
+ if (user.state === '在职') {
186
+ if (!addedNames.has(user.name)) {
187
+ this.users.push({ label: user.name, value: user.name })
188
+ addedNames.add(user.name)
189
+ }
190
+ }
191
+ });
192
+ })
193
+ },
160
194
  getPcds(val) {
161
195
  this.pcds = [{label: '全部', value: ''}]
162
196
  new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,