safecheck-client 4.0.2-7 → 4.0.2-71

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 (78) hide show
  1. package/build/reports/problems/problems-report.html +663 -0
  2. package/package.json +132 -132
  3. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  4. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  5. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  6. package/src/components/android/SafeRightTree.vue +218 -218
  7. package/src/components/android/SafecheckDevices.vue +1340 -1340
  8. package/src/components/android/week/CheckResultSimple.vue +258 -0
  9. package/src/components/android/week/FirstWeekCheck.vue +301 -0
  10. package/src/components/android/week/StepHeaderBar.vue +485 -0
  11. package/src/components/android/week/WeekCheck.vue +267 -0
  12. package/src/components/android/week/WeekCheckPaper.vue +274 -0
  13. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  14. package/src/components/android/week/WeekCheckUserInfo.vue +99 -0
  15. package/src/components/checkplan/CheckDetail.vue +1 -1
  16. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  17. package/src/components/paper/safetyledger.vue +198 -0
  18. package/src/components/pc/CheckBook.vue +303 -303
  19. package/src/components/pc/CheckBookArea.vue +146 -146
  20. package/src/components/pc/CheckBookCompany.vue +144 -144
  21. package/src/components/pc/CheckBookDetails.vue +161 -161
  22. package/src/components/pc/CheckBookEntry.vue +60 -60
  23. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  24. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  25. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  26. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  27. package/src/components/pc/DefectDeal.vue +22 -7
  28. package/src/components/pc/PaperDefectMain.vue +22 -0
  29. package/src/components/planmanage/checkUserList.vue +1 -1
  30. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  31. package/src/components/report/CheckPlanAreaList.vue +53 -7
  32. package/src/components/report/CheckPlanUserList.vue +12 -2
  33. package/src/filiale/jinhong/android/AddPlanItem.vue +481 -0
  34. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +748 -0
  35. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +569 -0
  36. package/src/filiale/jinhong/android/CurrentCreate.vue +63 -21
  37. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  38. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  39. package/src/filiale/jinhong/android.js +5 -1
  40. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  41. package/src/filiale/jinhong/pc/CheckSearchUser.vue +45 -2
  42. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  43. package/src/filiale/jinhong/pc/PaperList.vue +8 -1
  44. package/src/filiale/jinhong/pc/PlanManage.vue +9 -3
  45. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  46. package/src/filiale/jinhong/pc/checkUserList.vue +36 -0
  47. package/src/filiale/jinhong/pc.js +1 -0
  48. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  49. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  50. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  51. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  52. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  53. package/src/filiale/meihekou/android/SafecheckOrderV.vue +70 -54
  54. package/src/filiale/meihekou/android.js +22 -22
  55. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  56. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  57. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  58. package/src/filiale/meihekou/pc/NewCheckpaper.vue +249 -280
  59. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  60. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  61. package/src/filiale/meihekou/pc/PaperList.vue +9 -23
  62. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  63. package/src/filiale/meihekou/pc/checkUserList.vue +790 -0
  64. package/src/filiale/meihekou/pc.js +19 -15
  65. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  66. package/src/filiale/taiyuan/android/AddPlanItem.vue +1 -0
  67. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  68. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +17 -17
  69. package/src/filiale/taiyuan/android.js +1 -0
  70. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +22 -0
  71. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  72. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  73. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  74. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  75. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  76. package/src/filiale/xinliansihui/pc.js +13 -0
  77. package/src/safecheck-android.js +12 -0
  78. package/src/safecheck.js +3 -0
@@ -0,0 +1,99 @@
1
+ <template>
2
+ <div class="auto app-text">
3
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
4
+ <div class="panel-body panel-self">
5
+ <div class="col-xs-12" style="padding: 2px 0">
6
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
7
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_userinfo_id }}</p>
8
+ </div>
9
+ <div class="col-xs-12" style="padding: 2px 0">
10
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
11
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_user_name }}</p>
12
+ </div>
13
+ <div class="col-xs-12" style="padding: 2px 0">
14
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户电话:</b></p>
15
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_user_phone }}</p>
16
+ </div>
17
+ <div class="col-xs-12" style="padding: 2px 0">
18
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
19
+ <p class="panel-title text-left input-font" style="width: 79%;float: left">{{ userinfo.f_address }}</p>
20
+ </div>
21
+ <div class="col-xs-12" style="padding: 2px 0">
22
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>表厂家:</b></p>
23
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_manufacturers }}</p>
24
+ </div>
25
+ <div class="col-xs-12" style="padding: 2px 0">
26
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>表类型:</b></p>
27
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_manufacturers }}</p>
28
+ </div>
29
+ <div class="col-xs-12" style="padding: 2px 0">
30
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>表品牌:</b></p>
31
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_meter_brand }}</p>
32
+ </div>
33
+ <div class="col-xs-12" style="padding: 2px 0">
34
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>表型号:</b></p>
35
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_meter_style }}</p>
36
+ </div>
37
+ <div class="col-xs-12" style="padding: 2px 0">
38
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>表号:</b></p>
39
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_meternumber }}</p>
40
+ </div>
41
+ <div class="col-xs-12" style="padding: 2px 0">
42
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>首检时间:</b></p>
43
+ <p class="panel-title col-xs-7 text-left input-font">{{userinfo.f_first_inspection_date}}</p>
44
+ </div>
45
+ <div class="col-xs-12" style="padding: 2px 0">
46
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>检定时间:</b></p>
47
+ <p class="panel-title col-xs-7 text-left input-font">{{userinfo.f_last_inspection_date}}</p>
48
+ </div>
49
+ <div class="col-xs-12" style="padding: 2px 0">
50
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>周检状态:</b></p>
51
+ <p class="panel-title col-xs-7 text-left input-font">{{userinfo.f_check_state_text}}</p>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </template>
57
+
58
+ <script>
59
+ import {HttpResetClass} from 'vue-client'
60
+ import * as Util from '../../Util'
61
+ import Vue from 'vue'
62
+
63
+ export default {
64
+ title: 'WeekCheckUserInfo',
65
+ props: ['userinfo'],
66
+ data () {
67
+ return {}
68
+ },
69
+ ready () {
70
+ },
71
+ methods: {
72
+ },
73
+ components: {
74
+ }
75
+ }
76
+ </script>
77
+
78
+ <style scoped>
79
+ .input-font {
80
+ font: 15px PingFang-SC-Medium;
81
+ color: #333333;
82
+ }
83
+ .app-text {
84
+ font-size: 12px;
85
+ }
86
+ .font {
87
+ font: 15px PingFang-SC-Medium;
88
+ color: #333333;
89
+ }
90
+ .panel-self {
91
+ border-radius: 5px;
92
+ border: 1px solid #c5e1f7;
93
+ background-color: #F2F6FA;
94
+ }
95
+ .text-left {
96
+ text-align: left;
97
+ }
98
+
99
+ </style>
@@ -111,7 +111,7 @@ export default {
111
111
  'check' (val) {
112
112
  let condition
113
113
  //tag
114
- condition = `c.f_checker_name='${this.check.f_checker}' and i.f_state!='作废' and c.f_issued='是'`
114
+ condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and c.f_issued='是'`
115
115
  if(this.checkstatus){
116
116
  condition += ` and cp.f_entry_status = '${this.checkstatus}'`
117
117
  }
@@ -57,6 +57,18 @@
57
57
  :show-rest-button="reset">
58
58
  </datepicker>
59
59
  </div>
60
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
61
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
62
+ <v-select class="select_list select"
63
+ placeholder='片区/管理站' style="width: 60%"
64
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
65
+ :options='$parent.$parent.sliceArea'
66
+ filer-key="name"
67
+ close-on-select clear-button
68
+ condition="f_slice_area='{}'"
69
+ :value-single="true">
70
+ </v-select>
71
+ </div>
60
72
  <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
61
73
  <!--<label class="font_normal_body">安检起始</label>-->
62
74
  <!--<datepicker-->
@@ -148,6 +160,7 @@
148
160
  </template>
149
161
  <script>
150
162
  import {PagedList} from 'vue-client'
163
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
151
164
 
152
165
 
153
166
  export default {
@@ -191,6 +204,7 @@ export default {
191
204
  f_start_time:'',
192
205
  f_end_time:''
193
206
  },
207
+ sliceArea:[],
194
208
  checker: this.$login.f,
195
209
  checkers: [],
196
210
  checkersname: [],
@@ -206,6 +220,29 @@ export default {
206
220
  }
207
221
  },
208
222
  methods: {
223
+ Mreadibook(val){
224
+ if (val){
225
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
226
+ items: 'name',
227
+ tablename: 't_zone',
228
+ condition: `parentid = '${val}'`,
229
+ orderitem: 'id'
230
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
231
+ this.sliceArea=[]
232
+ this.sliceArea.push({
233
+ label:'全部',
234
+ value:''
235
+ })
236
+ res.data.forEach(ress=>{
237
+ this.sliceArea.push({
238
+ label:ress.name,
239
+ value:ress.name
240
+ })
241
+ })
242
+
243
+ })
244
+ }
245
+ },
209
246
  hidden() {
210
247
  this.criteriaShow = !this.criteriaShow
211
248
  },
@@ -256,6 +293,8 @@ export default {
256
293
  this.model.id = this.$login.f.id
257
294
  this.model.f_subcompany = this.$login.f.f_fengongsi
258
295
  this.model.f_filialeid = this.$login.f.orgid
296
+ this.Mreadibook(this.$login.f.orgid)
297
+
259
298
  },
260
299
 
261
300
  watch: {
@@ -0,0 +1,198 @@
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
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-2" >
14
+ <label class="font_normal_body">客户名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_user_name"
16
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-2" >
19
+ <label class="font_normal_body">客户电话</label>
20
+ <input type="text" class="input_search" v-model="model.f_user_phone"
21
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">详细地址</label>
25
+ <input type="text" class="input_search" v-model="model.f_address"
26
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2" >
29
+ <label class="font_normal_body">整改措施</label>
30
+ <v-select class="select_list select"
31
+ placeholder='请选择' style="width: 60%"
32
+ :value.sync="model.f_is_repaired"
33
+ v-model="model.f_is_repaired"
34
+ :options='$parent.$parent.repaired'
35
+ filer-key="name"
36
+ close-on-select clear-button
37
+ condition="f_is_repaired in {}"
38
+ :multiple="true">
39
+ </v-select>
40
+ </div>
41
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
42
+ <export-excel :data="$parent.$parent.searchData"
43
+ :field="$parent.$parent.excelHeaders"
44
+ :choose-col="true"
45
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="safetyledger" template-name='安检台账记录'></export-excel>
46
+ <button class="button_spacing button_search" @click="search()">查询</button>
47
+ <div style="float: right" class="button_spacing"
48
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
49
+ @click="$parent.$parent.hidden()"></div>
50
+ </div>
51
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
52
+ <label class="font_normal_body">开始时间</label>
53
+ <datepicker
54
+ :value.sync="model.f_check_start"
55
+ placeholder='开始时间' style="width: 60%"
56
+ :disabled-days-of-week="[]"
57
+ :format="'yyyy-MM-dd'"
58
+ :show-rest-button="reset"
59
+ v-model="model.f_check_start"
60
+ condition="f_offsite_time > ='{} 00:00:00'">
61
+ </datepicker>
62
+ </div>
63
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
64
+ <label class="font_normal_body">结束时间</label>
65
+ <datepicker
66
+ :value.sync="model.f_check_end"
67
+ placeholder='结束时间' style="width: 60%"
68
+ :disabled-days-of-week="[]"
69
+ :format="'yyyy-MM-dd'"
70
+ :show-rest-button="reset"
71
+ v-model="model.f_check_end"
72
+ condition="f_offsite_time <= '{} 23:59:59'">
73
+ </datepicker>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </criteria>
78
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
79
+ <template partial='head'>
80
+ <tr>
81
+ <th>
82
+ <nobr>企业名称</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>检查时间</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>镇(街道)</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>地址</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>用户名称</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>用户编号</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>用户类型</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>用气类型</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>隐患类别</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>隐患描述</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>整改措施</nobr>
113
+ </th>
114
+ </tr>
115
+ </template>
116
+ <template partial='body'>
117
+ <td style="text-align: center">{{row.f_filiale_name}}</td>
118
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
119
+ <td style="text-align: center">{{row.f_street}}</td>
120
+ <td style="text-align: center">{{row.f_address}}</td>
121
+ <td style="text-align: center">{{row.f_user_name}}</td>
122
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
123
+ <td style="text-align: center">{{row.f_user_type}}</td>
124
+ <td style="text-align: center">{{ row.f_gas_type }}</td>
125
+ <td style="text-align: center">{{ row.f_device_type }}</td>
126
+ <td style="text-align: center">{{ row.f_item_name }}</td>
127
+ <td style="text-align: center">{{ row.f_is_repaired }}</td>
128
+ </template>
129
+ </data-grid>
130
+ </criteria-paged>
131
+ </div>
132
+ </div>
133
+ </template>
134
+
135
+ <script>
136
+ import {PagedList} from 'vue-client'
137
+ import co from 'co'
138
+ import * as Util from '../Util'
139
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
140
+ export default {
141
+ title: '隐患台账',
142
+ data() {
143
+ let model = new PagedList('api/af-safecheck/sql/safetyledger', 20)
144
+ return {
145
+ model: model,
146
+ criteriaShow:false,
147
+ repaired: [{label: '全部', value: ''}, {label: '用户自行整改', value: '用户自行整改'}, {label: '现场已处理', value: '现场已处理'}, {label: '维修已处理', value: '维修已处理'}, {label: '转维修', value: '转维修'}],
148
+ excelHeaders: {
149
+ 'f_userinfo_code': '客户编号',
150
+ 'f_user_name': '客户姓名',
151
+ 'f_user_phone':'客户电话',
152
+ 'f_user_type': '客户类型',
153
+ 'f_residential_area': '小区',
154
+ 'f_address': '客户地址',
155
+ 'f_offsite_time': '安检时间',
156
+ 'f_gas_type': '用气类型',
157
+ 'f_device_type': '隐患类别',
158
+ 'f_item_name': '隐患描述',
159
+ 'f_is_repaired': '整改措施',
160
+ 'excel_export_p0':'隐患照片1',
161
+ 'excel_export_p1':'隐患照片2',
162
+ 'excel_export_p2':'隐患照片3',
163
+ 'excel_export_p3':'隐患照片4',
164
+ 'excel_export_repair':'处理照片1',
165
+ 'excel_export_repair1':'处理照片2',
166
+ 'excel_export_other_dealpath1':'处理照片3',
167
+ 'excel_export_other_dealpath2':'处理照片4',
168
+ },
169
+ }
170
+ },
171
+ ready() {
172
+ this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStartDateString() + ' 00:00:00'
173
+ this.$refs.paged.$refs.criteria.model.f_check_end = Util.toEndDateString() + ' 23:59:59'
174
+ this.search()
175
+ },
176
+ methods: {
177
+ hidden() {
178
+ this.criteriaShow = !this.criteriaShow
179
+ },
180
+ search() {
181
+ this.$refs.paged.$refs.criteria.search()
182
+ },
183
+ selfSearch(args) {
184
+ this.model.search(args.condition, args.model, args.condValue)
185
+ }
186
+ },
187
+ computed :{
188
+ searchData() {
189
+ return {condition: this.model.condition}
190
+ }
191
+ },
192
+ watch: {
193
+ },
194
+ beforeDestroy() {
195
+
196
+ }
197
+ }
198
+ </script>