safecheck-client 4.0.2-6 → 4.0.2-60

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 (67) hide show
  1. package/package.json +1 -1
  2. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  3. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  4. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  5. package/src/components/android/SafeRightTree.vue +218 -218
  6. package/src/components/android/SafecheckDevices.vue +1340 -1340
  7. package/src/components/android/week/CheckResultSimple.vue +251 -0
  8. package/src/components/android/week/FirstWeekCheck.vue +275 -0
  9. package/src/components/android/week/StepHeaderBar.vue +457 -0
  10. package/src/components/android/week/WeekCheck.vue +209 -0
  11. package/src/components/android/week/WeekCheckPaper.vue +219 -0
  12. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  13. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  14. package/src/components/paper/safetyledger.vue +198 -0
  15. package/src/components/pc/CheckBook.vue +303 -303
  16. package/src/components/pc/CheckBookArea.vue +146 -146
  17. package/src/components/pc/CheckBookCompany.vue +144 -144
  18. package/src/components/pc/CheckBookDetails.vue +161 -161
  19. package/src/components/pc/CheckBookEntry.vue +60 -60
  20. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  21. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  22. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  23. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  24. package/src/components/pc/DefectDeal.vue +6 -2
  25. package/src/components/planmanage/checkUserList.vue +1 -1
  26. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  27. package/src/components/report/CheckPlanAreaList.vue +53 -7
  28. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -0
  29. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -0
  30. package/src/filiale/jinhong/android/CurrentCreate.vue +35 -13
  31. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  32. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  33. package/src/filiale/jinhong/android.js +4 -1
  34. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  35. package/src/filiale/jinhong/pc/CheckSearchUser.vue +42 -2
  36. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  37. package/src/filiale/jinhong/pc/PaperList.vue +5 -1
  38. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  39. package/src/filiale/jinhong/pc.js +1 -0
  40. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  41. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  42. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  43. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  44. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  45. package/src/filiale/meihekou/android/SafecheckOrderV.vue +27 -28
  46. package/src/filiale/meihekou/android.js +22 -22
  47. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  48. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  49. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  50. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -1
  51. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  52. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  53. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  54. package/src/filiale/meihekou/pc.js +18 -15
  55. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  56. package/src/filiale/taiyuan/android/AddPlanItem.vue +457 -456
  57. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  58. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -2347
  59. package/src/filiale/taiyuan/android.js +1 -0
  60. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  61. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  62. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  63. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  64. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  65. package/src/filiale/xinliansihui/pc.js +13 -0
  66. package/src/safecheck-android.js +12 -0
  67. package/src/safecheck.js +3 -0
@@ -876,16 +876,12 @@ export default {
876
876
  this.checkResult[f_device_type + '-' + f_item_name] = []
877
877
  }
878
878
  this.checkResult[f_device_type + '-' + f_item_name].push(f_item_value)
879
-
880
879
  }
881
-
882
880
  let f_selected = f_item_value
883
- if (!items.f_selected) {
881
+ if (!items.f_selected || !(items.f_selected instanceof Array)){
884
882
  items.f_selected = []
885
- items.f_selected.push(f_item_value)
886
- } else {
887
- items.f_selected.push(f_item_value)
888
883
  }
884
+ items.f_selected.push(f_item_value)
889
885
  }
890
886
  }
891
887
  }
@@ -994,6 +990,8 @@ export default {
994
990
  if (this.repairDefect.result != '正常') {
995
991
  return this.$showMessage('有隐患的处理方式为转维修,请点击转维修')
996
992
  }
993
+ //先临时保存
994
+ this.save('temp')
997
995
  this.save()
998
996
  },
999
997
  //将数据组装提出
@@ -1328,7 +1326,7 @@ export default {
1328
1326
  }
1329
1327
  if (jo.state == 'ok') {
1330
1328
  let res = JSON.parse(jo.result)
1331
- if (res.code == 200) {
1329
+ if (res.code == 200 || res.code == 310 || res.code == 311) {
1332
1330
  this.$set('data.f_paper_id', res.id)
1333
1331
  this.isStrat = false
1334
1332
  if (url != "") {
@@ -1576,28 +1574,26 @@ export default {
1576
1574
  this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
1577
1575
  }
1578
1576
  }
1579
-
1580
- if (this.item.f_security_check_type_id && this.item.f_security_check_type_id != null) {
1581
- try {
1582
- await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeHistoryById`, {id: this.item.f_security_check_type_id})
1583
- this.f_security_check_type_id = this.serverConfig.data.id
1584
- } catch (e) {
1585
- return this.$showMessage('获取配置文件失败,请返回后重新进入!多次失败请联系管理员')
1577
+ try {
1578
+ if (this.item.f_security_check_type_id && this.item.f_security_check_type_id != null) {
1579
+ await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeHistoryById`, {id: this.item.f_security_check_type_id})
1580
+ this.f_security_check_type_id = this.serverConfig.data.id
1581
+ this.config = this.extend(JSON.parse(this.serverConfig.data.f_json), this.config)
1582
+ this.initConfig()
1583
+ } else {
1584
+ await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeByType`, {
1585
+ f_safecheck_type: this.item.f_safecheck_type || '年度普检',
1586
+ f_user_type: this.item.f_user_type
1587
+ })
1588
+ this.f_security_check_type_id = this.serverConfig.data[0].id
1589
+ this.config = this.extend(JSON.parse(this.serverConfig.data[0].f_json), this.config)
1590
+ this.initConfig()
1586
1591
  }
1587
- this.config = this.extend(JSON.parse(this.serverConfig.data.f_json), this.config)
1592
+ }catch (e) {
1593
+ this.config = this.extend(JSON.parse(Vue.newConfig.data[0].f_json), this.config)
1588
1594
  this.initConfig()
1589
- } else {
1590
- try {
1591
- await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeByType`, {
1592
- f_safecheck_type: this.item.f_safecheck_type || '年度普检',
1593
- f_user_type: this.item.f_user_type
1594
- })
1595
- this.f_security_check_type_id = this.serverConfig.data[0].id
1596
- this.config = this.extend(JSON.parse(this.serverConfig.data[0].f_json), this.config)
1597
- this.initConfig()
1598
- } catch (e) {
1599
- return this.$showMessage('获取配置文件失败,请返回后重新进入!多次失败请联系管理员')
1600
- }
1595
+ console.log(('离线'))
1596
+ console.log(e)
1601
1597
  }
1602
1598
  }
1603
1599
  },
@@ -2186,9 +2182,12 @@ export default {
2186
2182
  }
2187
2183
  }
2188
2184
  }
2189
- if (item.f_items[i].f_item_value instanceof Array) {
2185
+ if (item.f_items[i].f_selected) {
2190
2186
  item.f_items[i].f_item_value = JSON.parse(item.f_items[i].f_selected)
2191
2187
  }
2188
+ if (item.f_items[i].f_item_lists.length > 0){
2189
+ item.f_items[i].f_item_value = item.f_items[i].f_item_lists[0].f_item_value
2190
+ }
2192
2191
  }
2193
2192
  for (let de in that.devices) {
2194
2193
  if (typeof that.devices[de] == 'function') {
@@ -1,22 +1,22 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //手机特殊目录注册到该文件中
5
- let specialComp = {
6
- 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
- 'safecheck-devices': (resolve) => { require(['./android/SafecheckDevices'], resolve) },
8
- 'paper-feedback' : (resolve) => { require(['./android/PaperFeedback'], resolve) },
9
- 'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
10
- 'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo.vue'], resolve) },
11
- 'area-plan': (resolve) => { require(['./android/AreaPlan.vue'], resolve) },
12
- 'check-plan-list': (resolve) => { require(['./android/CheckPlanList.vue'], resolve) },
13
- 'phone-insurance-purchase-detail': (resolve) => { require(['./android/PhoneInsurancePurchaseDetail'], resolve) },
14
- 'check-plan-list-area': (resolve) => { require(['./android/CheckPlanListArea.vue'], resolve) },
15
- 'current-create': (resolve) => { require(['./android/CurrentCreate.vue'], resolve) },
16
-
17
- }
18
- exports.specialComp = specialComp
19
-
20
-
21
-
22
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
+ 'safecheck-devices': (resolve) => { require(['./android/SafecheckDevices'], resolve) },
8
+ 'paper-feedback' : (resolve) => { require(['./android/PaperFeedback'], resolve) },
9
+ 'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
10
+ 'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo.vue'], resolve) },
11
+ 'area-plan': (resolve) => { require(['./android/AreaPlan.vue'], resolve) },
12
+ 'check-plan-list': (resolve) => { require(['./android/CheckPlanList.vue'], resolve) },
13
+ 'phone-insurance-purchase-detail': (resolve) => { require(['./android/PhoneInsurancePurchaseDetail'], resolve) },
14
+ 'check-plan-list-area': (resolve) => { require(['./android/CheckPlanListArea.vue'], resolve) },
15
+ 'current-create': (resolve) => { require(['./android/CurrentCreate.vue'], resolve) },
16
+
17
+ }
18
+ exports.specialComp = specialComp
19
+
20
+
21
+
22
+
@@ -0,0 +1,217 @@
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <ul class="nav nav-tabs">
7
+ <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
8
+ </ul>
9
+ <div class="row">
10
+ <div class="form-group col-sm-4" >
11
+ <label class="font_normal_body">安检状态</label>
12
+ <v-select style="width:60% "
13
+ class="select select_list"
14
+ :value.sync="$parent.$parent.f_state"
15
+ v-model="$parent.$parent.f_state"
16
+ :options='$parent.$parent.checkState'
17
+ placeholder='安检状态'
18
+ close-on-select
19
+ value-single
20
+ >
21
+ </v-select>
22
+ </div>
23
+ <div class="form-group col-sm-4" >
24
+ <label class="font_normal_body">有无计划</label>
25
+ <v-select style="width:60% "
26
+ class="select select_list"
27
+ :value.sync="$parent.$parent.f_no_checkplan"
28
+ v-model="$parent.$parent.f_no_checkplan"
29
+ :options='$parent.$parent.no_checkplans'
30
+ placeholder='有无计划'
31
+ close-on-select
32
+ value-single
33
+ >
34
+ </v-select>
35
+ </div>
36
+ <div class="form-group col-sm-4" >
37
+ <label class="font_normal_body">入户状态</label>
38
+ <v-select style="width:60% "
39
+ class="select select_list"
40
+ :value.sync="$parent.$parent.f_last_check_state"
41
+ v-model="$parent.$parent.f_last_check_state"
42
+ :options='$parent.$parent.entry_status'
43
+ placeholder='入户状态'
44
+ close-on-select
45
+ value-single
46
+ >
47
+ </v-select>
48
+ </div>
49
+ <div class="form-group col-sm-4" >
50
+ <label class="font_normal_body">小区</label>
51
+ <input type="text" class="input_search"
52
+ v-model="$parent.$parent.f_residential_area"
53
+ style="width: 60%" placeholder="小区"
54
+ condition="f_residential_area like '%{}%'">
55
+ </div>
56
+ <div class="form-group col-sm-4" >
57
+ <label class="font_normal_body">楼号</label>
58
+ <input type="text" class="input_search"
59
+ v-model="$parent.$parent.f_building"
60
+ style="width: 60%" placeholder="楼号"
61
+ condition="f_building like '%{}%'">
62
+ </div>
63
+ <div class="form-group col-sm-4 button-range" >
64
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
65
+ <export-excel :data="$parent.$parent.exportParameter"
66
+ :field="$parent.$parent.excelHeaders"
67
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItemNew"
68
+ template-name='安检计划明细' :choose-col="true">
69
+ </export-excel>
70
+ <!--<export-excel-->
71
+ <!--:data="{condition: $parent.$parent.condition}"-->
72
+ <!--:field="$parent.$parent.getfield"-->
73
+ <!--sqlurl="api/af-safecheck/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
74
+ <!--:choose-col="true"></export-excel>-->
75
+
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <data-grid :model="model" partial='list' class="table_sy">
81
+
82
+ <template partial='head'>
83
+ <tr>
84
+ <th><nobr>计划名称</nobr></th>
85
+ <th><nobr>用户编号</nobr></th>
86
+ <th><nobr>用户名称</nobr></th>
87
+ <th><nobr>小区名称</nobr></th>
88
+ <th><nobr>地址</nobr></th>
89
+ <th><nobr>安检状态</nobr></th>
90
+ <th><nobr>是否安检</nobr></th>
91
+ </tr>
92
+ </template>
93
+ <template partial='body'>
94
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
95
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
96
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
97
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
98
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
99
+ <td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
100
+ <td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
101
+ </template>
102
+ </data-grid>
103
+ </criteria-paged>
104
+ </div>
105
+ </template>
106
+
107
+ <script>
108
+ import { PagedList } from 'vue-client'
109
+
110
+ export default {
111
+ title: '安检计划项列表',
112
+ data () {
113
+ return {
114
+ model: new PagedList('api/af-safecheck/sql/planItemNew', 20),
115
+ checkState:[{label:'全部',value:''},{label:'已检',value:'已检'},{label:'未检',value:'未检'}],
116
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
117
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
118
+ noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'}],
119
+ excelHeaders: {
120
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
121
+
122
+ 'f_userinfo_code': '用户编号',
123
+ 'f_user_name': '用户名称',
124
+ 'f_user_phone': '用户电话',
125
+ //'count_item':'安检次数',
126
+ 'f_user_type': '用户类型',
127
+ 'f_residential_area': '小区名称',
128
+ 'f_address':'地址',
129
+ 'f_last_check_date':'安检日期',
130
+ 'f_last_check_state': '安检状态',
131
+ 'f_state':'是否已检',
132
+ 'f_last_check_result':'安检结果'
133
+ },
134
+ area:[{label:'全部',value:''}],
135
+ f_state:'',
136
+ f_no_checkplan:'',
137
+ f_last_check_state:'',
138
+ f_noruhu:'',
139
+ f_residential_area:'',
140
+ f_building:'',
141
+ }
142
+ },
143
+ props: [ 'check','checkstatus','checkstart','checkend' ],
144
+ watch: {
145
+ 'check' (val) {
146
+ debugger
147
+ let condition
148
+ condition = `f_checker='${this.check.f_checker}'`
149
+ if(this.checkstart){
150
+ condition+= `and f_last_check_date>='${this.checkstart}'`
151
+ }
152
+ if (this.checkend){
153
+ condition += `and f_last_check_date<='${this.f_endcheckend_time}'`
154
+ }
155
+ this.f_noruhu=[]
156
+ this.f_state=''
157
+ this.model.search(condition, {})
158
+
159
+ }
160
+ },
161
+
162
+ ready () {
163
+ if (this.check) {
164
+ let condition
165
+ condition = `f_checker='${this.check.f_checker}'`
166
+ if(this.checkstart){
167
+ condition += `and f_last_check_date>='${this.checkstart}'`
168
+ }
169
+ if (this.checkend){
170
+ condition += ` and f_last_check_date<='${this.f_end_tcheckendime}'`
171
+ }
172
+ this.model.search(condition, {})
173
+ }
174
+ },
175
+ methods:{
176
+ selfSearch(args){
177
+ if (this.check) {
178
+ args.condition = `f_checker='${this.check.f_checker}'`
179
+ if(this.checkstart){
180
+ args.condition+= `and f_last_check_date>='${this.checkstart}'`
181
+ }
182
+ if (this.checkend){
183
+ args.condition += `and f_last_check_date<='${this.checkend}'`
184
+ }
185
+ if (this.f_residential_area){
186
+ args.condition += ` and i.f_residential_area like'%${this.f_residential_area}%'`
187
+ }
188
+ if (this.f_building){
189
+ args.condition += ` and i.f_building='${this.f_building}'`
190
+ }
191
+ if (this.f_state){
192
+ args.condition += ` and i.f_state='${this.f_state}'`
193
+ }
194
+ if (this.f_last_check_state){
195
+ args.condition += ` and i.f_last_check_state='${this.f_last_check_state}'`
196
+ }
197
+ if (this.f_no_checkplan){
198
+ if (this.f_no_checkplan == '有计划安检'){
199
+ args.condition += ` and i.f_plan_name != '无计划' `
200
+ }else {
201
+ args.condition += ` and i.f_plan_name = '无计划' `
202
+ }
203
+ }
204
+ this.model.search(args.condition, args.model)
205
+ }
206
+ }
207
+ },
208
+ computed: {
209
+ // 导出到Excel的条件构造
210
+ exportParameter() {
211
+ return {
212
+ condition: this.$refs.paged.model.condition
213
+ }
214
+ }
215
+ },
216
+ }
217
+ </script>
@@ -0,0 +1,52 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':showItem}">
3
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}" >
4
+ <select-check-plan-new @select-changed="selected" :style="style" :style2="style2" v-ref:check></select-check-plan-new>
5
+ </div>
6
+ <div class="binary-right" v-show="showItem">
7
+ <div class="flex">
8
+ <check-detail v-if='$refs.check && $refs.check.selected' :check='$refs.check.selected' :checkstart="$refs.check.f_start_time" :checkend="$refs.check.f_end_time"
9
+ v-ref:detail></check-detail>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import SelectCheckPlanNew from '../pc/SelectCheckPlan.vue'
16
+ import CheckDetail from '../pc/CheckDetail.vue'
17
+ export default {
18
+ title: '安检员考核',
19
+ props: ['f'],
20
+ components: {SelectCheckPlanNew, CheckDetail},
21
+ data() {
22
+ return {
23
+ showItem: false,
24
+ checkstatus: null,
25
+ style:'col-sm-2 form-group',
26
+ style2:'col-sm-4 form-group'
27
+ }
28
+ },
29
+ methods: {
30
+ selected(row) {
31
+ this.showItem = true
32
+ },
33
+ checkstatusChange(val){
34
+ this.checkstatus = val
35
+ }
36
+ }
37
+ }
38
+ </script>
39
+ <style>
40
+ .form-input-group label {
41
+ text-align: right;
42
+ width: auto;
43
+ }
44
+
45
+ .datapanel {
46
+ color: #333;
47
+ background-color: white;
48
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
49
+ padding: 5px 7px 5px 7px;
50
+ border-radius: 10px;
51
+ }
52
+ </style>