safecheck-client 4.0.2-2 → 4.0.2-20

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 (49) hide show
  1. package/package.json +1 -1
  2. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  3. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  4. package/src/components/android/SafeRightTree.vue +218 -218
  5. package/src/components/android/SafecheckDevices.vue +1340 -1340
  6. package/src/components/android/week/CheckResultSimple.vue +222 -0
  7. package/src/components/android/week/FirstWeekCheck.vue +236 -0
  8. package/src/components/android/week/StepHeaderBar.vue +323 -0
  9. package/src/components/android/week/WeekCheck.vue +151 -0
  10. package/src/components/android/week/WeekCheckPaper.vue +151 -0
  11. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  12. package/src/components/paper/safetyledger.vue +194 -0
  13. package/src/components/pc/CheckBook.vue +303 -303
  14. package/src/components/pc/CheckBookArea.vue +146 -146
  15. package/src/components/pc/CheckBookCompany.vue +144 -144
  16. package/src/components/pc/CheckBookDetails.vue +161 -161
  17. package/src/components/pc/CheckBookEntry.vue +60 -60
  18. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  19. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  20. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  21. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  22. package/src/components/planmanage/PlanManage.vue +10 -1
  23. package/src/components/planmanage/checkUserList.vue +1 -1
  24. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  25. package/src/components/report/CheckByPlan.vue +1 -1
  26. package/src/components/report/CheckPlanAreaList.vue +45 -2
  27. package/src/filiale/jinhong/android/CurrentCreate.vue +1313 -1313
  28. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +27 -3
  29. package/src/filiale/jinhong/pc/CheckBookList.vue +4 -0
  30. package/src/filiale/jinhong/pc/PaperList.vue +1 -1
  31. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  32. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  33. package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1542
  34. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  35. package/src/filiale/meihekou/android/SafecheckOrderV.vue +9 -8
  36. package/src/filiale/meihekou/android.js +22 -22
  37. package/src/filiale/meihekou/pc/CheckDetail.vue +208 -0
  38. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  39. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +504 -0
  40. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -2050
  41. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  42. package/src/filiale/meihekou/pc.js +3 -0
  43. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  44. package/src/filiale/xinkang/android/SafecheckOrderV.vue +1 -1
  45. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  46. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  47. package/src/filiale/xinliansihui/pc.js +13 -0
  48. package/src/safecheck-android.js +326 -316
  49. package/src/safecheck.js +3 -0
@@ -817,7 +817,16 @@ export default {
817
817
  this.$refs.item.$refs.paged.$refs.criteria.search()
818
818
  await this.loadCheckPlan()
819
819
  }
820
- }
820
+ },
821
+ watch: {
822
+ 'isSend'(newVal) {
823
+ if (newVal === true) {
824
+ setTimeout(() => {
825
+ this.isSend = false;
826
+ }, 5000);
827
+ }
828
+ }
829
+ },
821
830
  }
822
831
  </script>
823
832
 
@@ -406,7 +406,7 @@ export default {
406
406
  data() {
407
407
  return {
408
408
  model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
409
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
409
+ "orderitem": "'f_address desc'",
410
410
  "f_usertype": "''",
411
411
  "month": "''",
412
412
  "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
@@ -787,7 +787,8 @@ export default {
787
787
  con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
788
788
  let condition = {
789
789
  condition1: args.condition,
790
- condition2: con
790
+ condition2: con,
791
+ condition3: '1 = 1'
791
792
  }
792
793
  this.searchData.condition = condition
793
794
  return this.model.search(condition, args.model)
@@ -78,7 +78,7 @@
78
78
  export default {
79
79
  title: '安检员安检情况报表',
80
80
  data() {
81
- let model = new DataModel('/rs/report/checkByPlan')
81
+ let model = new DataModel('/api/af-safecheck/report/checkByPlan')
82
82
  model.f_filialeid = this.$login.f.orgid
83
83
  return {
84
84
  filialeNameStr: '',
@@ -41,6 +41,18 @@
41
41
  close-on-select clear-button></v-select>
42
42
 
43
43
  </div>
44
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
45
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
46
+ <v-select class="select_list select"
47
+ placeholder='片区/管理站' style="width: 60%"
48
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
49
+ :options='$parent.$parent.sliceArea'
50
+ filer-key="name"
51
+ close-on-select clear-button
52
+ condition="f_slice_area='{}'"
53
+ :value-single="true">
54
+ </v-select>
55
+ </div>
44
56
  <!--<div :class="{
45
57
  'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
46
58
  <label class="font_normal_body">安&ensp;检&ensp;员</label>
@@ -108,6 +120,8 @@
108
120
  <label for="f_checker_name">安检员</label>
109
121
  <input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
110
122
  <label for="f_checker_name">档案数量</label>
123
+ <input type="checkbox" id="f_safecheck_type" value="f_safecheck_type" v-model="$parent.$parent.nameForSql"/>
124
+ <label for="f_checker_name">安检类型</label>
111
125
  </div>
112
126
  </div>
113
127
  </div>
@@ -125,6 +139,7 @@
125
139
  <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')"><nobr>计划名称</nobr></th>
126
140
  <th v-if="$parent.$parent.$parent.nameForSql.includes('f_checker_name')"><nobr>安检员</nobr></th>
127
141
  <th v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')"><nobr>档案数量</nobr></th>
142
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_safecheck_type')"><nobr>安检类型</nobr></th>
128
143
  <th>
129
144
  <nobr>计划总数</nobr>
130
145
  </th>
@@ -165,6 +180,7 @@
165
180
  <td style="text-align:center" :class="{'td-0':row.f_plan_name==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>
166
181
  <td style="text-align:center" :class="{'td-0':row && !row.f_checker_name,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_checker_name && row.f_checker_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>
167
182
  <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')">{{row.f_user_number}}</td>
183
+ <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_safecheck_type')">{{row.f_safecheck_type}}</td>
168
184
  <td style="text-align:center">{{row.f_plan_total}}</td>
169
185
  <td style="text-align:center">{{row.f_weijian}}</td>
170
186
  <td style="text-align:center"><nobr>{{row.f_yijian}}</nobr></td>
@@ -209,6 +225,7 @@ export default {
209
225
  row: {},
210
226
  f_orgid: '',
211
227
  nameForSql: [],
228
+ sliceArea: [],
212
229
  groupNameForSql: '',
213
230
  listflag:false,
214
231
  nameflag:false,
@@ -239,9 +256,32 @@ export default {
239
256
  this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
240
257
  this.pl()
241
258
  // this.search()
259
+ this.Mreadibook(this.$login.f.orgid)
242
260
 
243
261
  },
244
262
  methods: {
263
+ Mreadibook(val){
264
+ if (val){
265
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
266
+ items: 'name',
267
+ tablename: 't_zone',
268
+ condition: `parentid = '${val}'`,
269
+ orderitem: 'id'
270
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
271
+ this.sliceArea=[]
272
+ this.sliceArea.push({
273
+ label:'全部',
274
+ value:''
275
+ })
276
+ res.data.forEach(ress=>{
277
+ this.sliceArea.push({
278
+ label:ress.name,
279
+ value:ress.name
280
+ })
281
+ })
282
+ })
283
+ }
284
+ },
245
285
  exportexcel(){
246
286
  //tag
247
287
  // 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
@@ -284,6 +324,9 @@ export default {
284
324
  }if (ff==='f_user_number') {
285
325
  this.exportExcelField.f_user_number='档案数量'
286
326
  }
327
+ if (ff==='f_safecheck_type') {
328
+ this.exportExcelField.f_safecheck_type='安检类型'
329
+ }
287
330
  }
288
331
  },
289
332
  pl() {
@@ -359,7 +402,7 @@ export default {
359
402
 
360
403
  // 拼接groupName1
361
404
  getGroupName1 () {
362
- var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
405
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number','f_safecheck_type']
363
406
  var newtemp=[]
364
407
 
365
408
  for (var i=0;i<temp.length;i++){
@@ -396,7 +439,7 @@ export default {
396
439
  }
397
440
  this.listflag=true
398
441
  //tag
399
- var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
442
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number','f_safecheck_type']
400
443
  var newtemp=[]
401
444
  for (var i=0;i<temp.length;i++){
402
445
  for (var j=0;j<this.nameForSql.length;j++){