safecheck-client 3.0.32-25 → 3.0.32-27

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.
@@ -51,10 +51,10 @@
51
51
  <nobr>街道/乡镇</nobr>
52
52
  </th>
53
53
  <th>
54
- <nobr>安检册/管理站</nobr>
54
+ <nobr>片区/行政村</nobr>
55
55
  </th>
56
56
  <th>
57
- <nobr>小区(单位)</nobr>
57
+ <nobr>小区/自然村</nobr>
58
58
  </th>
59
59
  <th>
60
60
  <nobr>所属安检册</nobr>
@@ -69,7 +69,7 @@
69
69
  </td>
70
70
  <td style="text-align: center">{{ row.f_pcd }}</td>
71
71
  <td style="text-align: center">{{ row.f_street }}</td>
72
- <td style="text-align: center">{{ row.f_slice_area }}</td>
72
+ <td style="text-align: center">{{ row.f_community_name }}</td>
73
73
  <td style="text-align: center">{{ row.f_residential_area }}</td>
74
74
  <td style="text-align: center">{{ row.f_check_book_name }}</td>
75
75
  </template>
@@ -194,8 +194,8 @@ export default {
194
194
  title: '安检册管理',
195
195
  data () {
196
196
  let model = new PagedList('rs/sql/safe_singleTable_OrderBy', 20,{
197
- items: "'ta.*,tcb.f_check_book_name'",
198
- tablename: "'t_area ta left join t_check_book tcb on ta.f_check_book_id=tcb.id'",
197
+ items: "'ta.f_residential_area,ta.id,tcb.f_check_book_name,tcm.f_community_name,tcm.f_street'",
198
+ tablename: "'t_area ta left join t_check_book tcb on ta.f_check_book_id=tcb.id left join t_community tcm on ta.f_community_id = tcm.id'",
199
199
  orderitem: "'id desc'"
200
200
  })
201
201
  return {
@@ -17,8 +17,18 @@
17
17
  </div>
18
18
  <div class="form-group col-sm-3">
19
19
  <label class="font_normal_body">用气性质</label>
20
- <input type="text" class="input_search" v-model="model.f_residential_area"
21
- style="width: 60%" placeholder="用气性质" condition="f_gasproperties like '%{}%'">
20
+ <v-select
21
+ class="select select_list"
22
+ :value.sync="model.f_gasproperties"
23
+ v-model="model.f_gasproperties"
24
+ :options='$parent.$parent.gasproperties'
25
+ placeholder='请选择'
26
+ condition="f_gasproperties='{}'"
27
+ :search="false"
28
+ close-on-select
29
+ value-single
30
+ >
31
+ </v-select>
22
32
  </div>
23
33
  <div class="form-group col-sm-3">
24
34
  <button class="button_spacing button_search" @click="search()">查询</button>
@@ -292,7 +302,13 @@ export default {
292
302
  showModal2: false,
293
303
  showModal3: false,
294
304
  userGasType:[{label: '全部', value: ''},...this.$appdata.getParam('用气类型')],
295
- userTags:[{label: '全部', value: ''},...this.$appdata.getParam('用户标签')]
305
+ userTags:[{label: '全部', value: ''},...this.$appdata.getParam('用户标签')],
306
+ gasproperties:[{label: '全部', value: ''},...this.$appdata.getParam('用气性质')],
307
+ }
308
+ },
309
+ props: {
310
+ showtype:{
311
+ type: String
296
312
  }
297
313
  },
298
314
  computed: {
@@ -582,6 +598,7 @@ export default {
582
598
  // if (this.$refs.paged.$refs.criteria.model.f_orgid){
583
599
  // args.condition += `f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`
584
600
  // }
601
+ args.condition += ` and f_user_type = '${this.showtype}' `
585
602
  this.model.search(args.condition, args.model)
586
603
  },
587
604
  freshCheckBook () {
@@ -65,6 +65,13 @@
65
65
  :title="row.f_safecheck_type">{{ row.f_safecheck_type }}
66
66
  </td>
67
67
  </tr>
68
+ <tr class="safe-bodyfont" v-if="row.f_safecheck_type">
69
+ <td >
70
+ <input type="button" style="pointer-events:auto"
71
+ @click="showPlanHistory(row)"
72
+ onClick="event.cancelBubble = true"/>变更记录
73
+ </td>
74
+ </tr>
68
75
  </table>
69
76
  </div>
70
77
  </div>
@@ -316,7 +323,6 @@
316
323
  >
317
324
  </v-select>
318
325
  </div>
319
-
320
326
  <div class="form-group col-sm-4">
321
327
  <label class="font_normal_body">安检类型:</label>
322
328
  <v-select
@@ -332,27 +338,13 @@
332
338
  </v-select>
333
339
  </div>
334
340
  <div class="form-group col-sm-4">
335
- <label class="font_normal_body">用气性质:</label>
341
+ <label class="font_normal_body">计划类型:</label>
336
342
  <v-select
337
343
  class="select select_list"
338
- :value.sync="createPlan.f_gasproperties"
339
- v-model="createPlan.f_gasproperties"
344
+ :value.sync="createPlan.f_plan_type"
345
+ v-model="createPlan.f_plan_type"
340
346
  :search="false"
341
- :options='gasproperties'
342
- placeholder='请选择'
343
- close-on-select
344
- value-single
345
- >
346
- </v-select>
347
- </div>
348
- <div class="form-group col-sm-4">
349
- <label class="font_normal_body">用户类型:</label>
350
- <v-select
351
- class="select select_list"
352
- :value.sync="createPlan.f_user_type"
353
- v-model="createPlan.f_user_type"
354
- :search="false"
355
- :options='userType'
347
+ :options='planType'
356
348
  placeholder='请选择'
357
349
  close-on-select
358
350
  value-single
@@ -391,18 +383,7 @@
391
383
 
392
384
  close-on-select
393
385
  value-single>
394
-
395
-
396
386
  </v-select>
397
- <!-- <datepicker
398
- placeholder='请选择'
399
- style="width:60%"
400
- :disabled-days-of-week="[]"
401
- :format="'yyyy'"
402
- :show-rest-button="reset"
403
- :value.sync="upCheckPlan.f_plan_year"
404
- v-model="upCheckPlan.f_plan_year">
405
- </datepicker>-->
406
387
  </div>
407
388
  <div class="form-group col-sm-4">
408
389
  <label class="font_normal_body">计划月份:</label>
@@ -416,6 +397,15 @@
416
397
  value-single>
417
398
  </v-select>
418
399
  </div>
400
+ <div class="form-group col-sm-4" v-if="$login.f.rolestr.includes('计划结束时间')==true">
401
+ <label class="font_normal_body">结束时间:</label>
402
+ <datepicker
403
+ :value.sync="upCheckPlan.f_end_time"
404
+ :format="'yyyy-MM-dd HH:mm:ss'"
405
+ v-model="upCheckPlan.f_end_time"
406
+ :show-reset-button="reset" placeholder="请输入结束时间" style="margin-bottom: 8px">
407
+ </datepicker>
408
+ </div>
419
409
  <div class="form-group col-sm-4">
420
410
  <label class="font_normal_body">是否共享:</label>
421
411
  <v-select
@@ -455,6 +445,23 @@
455
445
  >
456
446
  </v-select>
457
447
  </div>
448
+ <div class="form-group col-sm-4">
449
+ <label class="font_normal_body">安检类型:</label>
450
+ <v-select
451
+ class="select select_list"
452
+ :value.sync="upCheckPlan.f_safecheck_type"
453
+ v-model="upCheckPlan.f_safecheck_type"
454
+ :options='ntoway'
455
+ close-on-select
456
+ value-single
457
+ >
458
+ </v-select>
459
+ </div>
460
+ <div class="form-group col-sm-4">
461
+ <label class="font_normal_body">修改原因:</label>
462
+ <input type="text" class="input_search" v-model="upCheckPlan.f_update_message"
463
+ style="width: 60%"/>
464
+ </div>
458
465
  </div>
459
466
  </div>
460
467
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -462,6 +469,45 @@
462
469
  <button class="button_search" @click="cancel">取消</button>
463
470
  </div>
464
471
  </modal>
472
+ <modal :show.sync="showPlanHistoryButton" v-ref:modalp>
473
+ <div slot="modal-header" class="modal-header">
474
+ <h4 class="modal-title">
475
+ 计划变更记录
476
+ </h4>
477
+ </div>
478
+ <div slot="modal-body" class="modal-body">
479
+ <div class="leftplan-center safe_plan_list">
480
+ <div class="row safe-leftplan safe_list_li"
481
+ v-for="row in planHistory">
482
+ <table style="width:100%;table-layout:fixed">
483
+ <tr class="safe-bodyfont">
484
+ <td colspan="3">变更时间 :</td>
485
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.f_update_time }}
486
+ </td>
487
+ </tr>
488
+ <tr class="safe-bodyfont">
489
+ <td colspan="3">原因 :</td>
490
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.f_update_message }}
491
+ </td>
492
+ </tr>
493
+ <tr class="safe-bodyfont">
494
+ <td colspan="3">操作人 :</td>
495
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.f_operatiom_name }}
496
+ </td>
497
+ </tr>
498
+ <tr class="safe-bodyfont">
499
+ <td colspan="3">操作时间 :</td>
500
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.f_operatiom_time }}
501
+ </td>
502
+ </tr>
503
+ </table>
504
+ </div>
505
+ </div>
506
+ </div>
507
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
508
+ <button class="button_search" @click="showPlanHistoryButton = false">取消</button>
509
+ </div>
510
+ </modal>
465
511
  </div>
466
512
  </template>
467
513
 
@@ -475,6 +521,8 @@ export default {
475
521
  title: '计划管理',
476
522
  data() {
477
523
  return {
524
+ showPlanHistoryButton:false,
525
+ planHistory:'',
478
526
  a: '1',
479
527
  opt: [{label: "按时间降序", value: "按时间降序"}, {label: "按时间升序", value: "按时间升序"}],
480
528
  currentorder: '按时间降序',
@@ -488,7 +536,10 @@ export default {
488
536
  f_checker_id: '',
489
537
  isShare: '',
490
538
  f_checker: '',
491
- checker: {}
539
+ checker: {},
540
+ f_end_time:'',
541
+ f_update_message:'',
542
+ f_operetiom_name:this.$login.f.name
492
543
  },
493
544
  isSend: false,
494
545
  createPlan: {
@@ -502,7 +553,8 @@ export default {
502
553
  f_checker: null,
503
554
  f_safecheck_type: '',
504
555
  f_end_time:'',
505
- f_start_time:''
556
+ f_start_time:'',
557
+ f_plan_type:''
506
558
  },
507
559
  planCondition: {},
508
560
  showCondtion: false,
@@ -555,10 +607,17 @@ export default {
555
607
  },
556
608
  userType(){
557
609
  return this.$appdata.getParam('用户类型')
610
+ },
611
+ planType(){
612
+ return this.$appdata.getParam('计划类型')
558
613
  }
559
614
 
560
615
  },
561
616
  methods: {
617
+ showPlanHistory(row){
618
+ this.showPlanHistoryButton = true
619
+ this.planHistory = JSON.parse(row.f_update_check_plan)
620
+ },
562
621
  /* ntoway() {
563
622
  /!* return AppData.getParam('安检类型')*!/
564
623
  return Vue.$appdata.getParam('安检类型')
@@ -627,7 +686,6 @@ export default {
627
686
  this.createPlan.f_checker = this.createPlan.checker.name
628
687
  }
629
688
  console.log("this.createPlan.f_checker:" + this.createPlan.f_checker)
630
- this.createPlan.f_plan_type = '预约计划'
631
689
  this.createPlan.f_subcompany = this.userlogin.orgstr
632
690
  this.createPlan.f_filialeid = this.userlogin.orgid
633
691
  this.createPlan.f_create_operator = this.userlogin.name
@@ -647,7 +705,10 @@ export default {
647
705
  checker: {},
648
706
  f_checker: null,
649
707
  f_safecheck_type: '',
650
- f_create_operator: ''
708
+ f_create_operator: '',
709
+ f_start_time: '',
710
+ f_end_time: '',
711
+ f_plan_type:''
651
712
  }
652
713
  await this.loadCheckPlan()
653
714
  this.isSend = false
@@ -774,6 +835,10 @@ export default {
774
835
  Vue.showMessage("请选择安检月份!")
775
836
  return false
776
837
  }
838
+ if (!this.upCheckPlan.f_update_message) {
839
+ Vue.showMessage("请选择填写修改原因!")
840
+ return false
841
+ }
777
842
  console.log(this.upCheckPlan)
778
843
 
779
844
  if (this.upCheckPlan.isShare == "是") {
@@ -792,7 +857,10 @@ export default {
792
857
  f_plan_name: this.upCheckPlan.f_plan_name,
793
858
  f_plan_year: this.upCheckPlan.f_plan_year,
794
859
  f_plan_month: this.upCheckPlan.f_plan_month,
795
- f_plan_id: this.upCheckPlan.id
860
+ f_plan_id: this.upCheckPlan.id,
861
+ f_end_time: this.upCheckPlan.f_end_time,
862
+ f_operetiom_name:this.upCheckPlan.f_operetiom_name,
863
+ f_update_message:this.upCheckPlan.f_update_message,
796
864
  }
797
865
  }, {resolveMsg: null, rejectMsg: null})
798
866
  if (res.data.code == 200) {
@@ -22,18 +22,18 @@
22
22
  <input type="text" class="input_search" v-model="model.f_address"
23
23
  style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
24
  </div>
25
- <!--<div class="form-group col-sm-1" >
25
+ <div class="form-group col-sm-1" >
26
26
  <v-select :width="'95%'"
27
27
  class="select select_list"
28
- :value.sync="$parent.$parent.f_state"
29
- v-model="$parent.$parent.f_state"
30
- :options='$parent.$parent.checkState'
31
- placeholder='安检状态'
28
+ :value.sync="model.f_plan_type"
29
+ v-model="model.f_plan_type"
30
+ :options='$parent.$parent.planType'
31
+ placeholder='计划类型'
32
32
  close-on-select
33
33
  value-single
34
34
  >
35
35
  </v-select>
36
- </div>-->
36
+ </div>
37
37
  <div class="form-group col-sm-3" >
38
38
  <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
39
  <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
@@ -209,6 +209,9 @@
209
209
  condition: this.$refs.paged.model.condition,
210
210
  groupName: this.groupNameForSql
211
211
  }
212
+ },
213
+ planType(){
214
+ return this.$appdata.getParam('计划类型')
212
215
  }
213
216
  },
214
217
  methods:{
@@ -13,6 +13,9 @@ let specialComp = {
13
13
  'check-plan-list': (resolve) => {
14
14
  require(['./pc/checkPlanList'], resolve)
15
15
  },
16
+ 'check-book-details': (resolve) => {
17
+ require(['./pc/CheckBookDetails'], resolve)
18
+ },
16
19
  'plan-manage': (resolve) => {
17
20
  require(['./pc/PlanManage.vue'], resolve)
18
21
  },
@@ -1961,6 +1961,7 @@ export default {
1961
1961
  this.$set('data.f_residential_area' , this.item.f_residential_area)
1962
1962
  this.$set('data.f_idnumber', this.item.f_idnumber)
1963
1963
  this.$set('data.f_comments', this.item.f_comments)
1964
+ this.$set('data.f_userinfo_comments', this.item.f_plan_meters[0].f_userinfo_comments)
1964
1965
  this.$set('data.f_userproperties', this.item.f_userproperties)
1965
1966
  this.$set('data.f_client_evaluation', '满意')
1966
1967
  this.$set('data.f_userfiles_id', this.item.f_plan_meters[0].f_userfiles_id)
@@ -45,6 +45,10 @@
45
45
  <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>安检状态:</b></p>
46
46
  <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_state }}</p>
47
47
  </div>
48
+ <div class="col-xs-12" style="padding: 2px 0">
49
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>备注:</b></p>
50
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_userinfo_comments}}</p>
51
+ </div>
48
52
  <div class="col-xs-12">
49
53
  <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone"
50
54
  @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ all()
11
11
  var Verificationfalg = false
12
12
  system(Verificationfalg)
13
13
  // system()
14
- safecheck('fugou')
14
+ safecheck(process.env.SAFE_CHECK);
15
15
  // safecheck('rizhao')
16
16
  require('./bootstrap/less/bootstrap.less')
17
17
  require('./expandcss.less')