safecheck-client 4.0.0-65 → 4.0.0-67

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.
@@ -103,53 +103,53 @@
103
103
  </div>
104
104
 
105
105
 
106
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
107
- <label class="font_normal_body">安检状态</label>
108
- <v-select id="f_entry"
109
- class="select_list select"
110
- placeholder='安检状态' style="width: 60%"
111
- v-model='model.f_entry'
112
- :value.sync="$parent.$parent.model.f_entry"
113
- :options='$parent.$parent.f_entry_status'
114
- condition=""
115
- :value-single="true"
116
- close-on-select clear-button></v-select>
117
- </div>
118
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
119
- <role-selector-safe
120
- role-name="安检员"
121
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
122
- @re-res="$parent.$parent.getRes"
123
- :value.sync="model.f_checker_id"
124
- v-model="model.f_checker_id"
125
- condition="f_checker_name = '{}'">
126
- </role-selector-safe>
127
- </div>
128
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
129
- <label class="font_normal_body">片&emsp;&emsp;区</label>
130
- <v-select class="select_list select"
131
- placeholder='片区/管理站' style="width: 60%"
132
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
133
- :options='$parent.$parent.sliceArea'
134
- filer-key="name"
135
- close-on-select clear-button
136
- condition="f_slice_area='{}'"
137
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
138
- :value-single="true">
139
- </v-select>
140
- </div>
141
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
142
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
143
- <v-select class="select_list select"
144
- placeholder='抄表册' style="width: 60%"
145
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
146
- :options='$parent.$parent.cbc'
147
- filer-key="name"
148
- close-on-select clear-button
149
- condition="f_meter_book_num={}"
150
- :value-single="true">
151
- </v-select>
152
- </div>
106
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
107
+ <label class="font_normal_body">安检状态</label>
108
+ <v-select id="f_entry"
109
+ class="select_list select"
110
+ placeholder='安检状态' style="width: 60%"
111
+ v-model='model.f_entry'
112
+ :value.sync="$parent.$parent.model.f_entry"
113
+ :options='$parent.$parent.f_entry_status'
114
+ condition=""
115
+ :value-single="true"
116
+ close-on-select clear-button></v-select>
117
+ </div>
118
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
119
+ <role-selector-safe
120
+ role-name="安检员"
121
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
122
+ @re-res="$parent.$parent.getRes"
123
+ :value.sync="model.f_checker_id"
124
+ v-model="model.f_checker_id"
125
+ condition="f_checker_name = '{}'">
126
+ </role-selector-safe>
127
+ </div>
128
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
129
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
130
+ <v-select class="select_list select"
131
+ placeholder='片区/管理站' style="width: 60%"
132
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
133
+ :options='$parent.$parent.sliceArea'
134
+ filer-key="name"
135
+ close-on-select clear-button
136
+ condition="f_slice_area='{}'"
137
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
138
+ :value-single="true">
139
+ </v-select>
140
+ </div>
141
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
142
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
143
+ <v-select class="select_list select"
144
+ placeholder='抄表册' style="width: 60%"
145
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
146
+ :options='$parent.$parent.cbc'
147
+ filer-key="name"
148
+ close-on-select clear-button
149
+ condition="f_meter_book_num={}"
150
+ :value-single="true">
151
+ </v-select>
152
+ </div>
153
153
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
154
154
  <label class="font_normal_body">省&ensp;市&ensp;区</label>
155
155
  <v-select class="select_list select"
@@ -228,16 +228,16 @@
228
228
  </v-select>
229
229
  </div>
230
230
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
231
- <label class="font_normal_body">气表品牌</label>
231
+ <label class="font_normal_body">气表品牌</label>
232
232
  <v-select
233
- class="select_list select"
234
- placeholder='气表品牌' style="width: 60%"
235
- v-model='model.tableBrand'
236
- :value.sync="model.tableBrand"
237
- :options='$parent.$parent.tableBrands'
238
- condition="f_meter_brand = '{}'"
239
- :value-single="true"
240
- close-on-select clear-button></v-select>
233
+ class="select_list select"
234
+ placeholder='气表品牌' style="width: 60%"
235
+ v-model='model.tableBrand'
236
+ :value.sync="model.tableBrand"
237
+ :options='$parent.$parent.tableBrands'
238
+ condition="f_meter_brand = '{}'"
239
+ :value-single="true"
240
+ close-on-select clear-button></v-select>
241
241
  </div>
242
242
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
243
243
  <label class="font_normal_body">有无计划</label>
@@ -390,7 +390,7 @@
390
390
 
391
391
  </td>
392
392
  <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
393
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
393
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
394
394
  <audio controls="controls" v-if="row.f_recording1_path">
395
395
  <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
396
396
  </audio>
@@ -410,29 +410,29 @@
410
410
  </template>
411
411
 
412
412
  <script>
413
- import {PagedList} from 'vue-client'
414
- import Vue from 'vue'
415
- import co from 'co'
416
- import AppData from '../../stores/AppData'
417
- import * as Util from '../Util'
418
- import getNowDate from "../../utils/getNowDate";
419
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
420
- import BenzAMRRecorder from 'benz-amr-recorder'
421
- import {toEndDateString, toStartDateString} from "../Util";
413
+ import {PagedList} from 'vue-client'
414
+ import Vue from 'vue'
415
+ import co from 'co'
416
+ import AppData from '../../stores/AppData'
417
+ import * as Util from '../Util'
418
+ import getNowDate from "../../utils/getNowDate";
419
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
420
+ import BenzAMRRecorder from 'benz-amr-recorder'
421
+ import {toEndDateString, toStartDateString} from "../Util";
422
422
 
423
423
 
424
- let select = function* (self) {
425
- let http = new HttpResetClass()
426
- let getGasman = yield http.load('POST', '/rs/search', {
427
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
428
- userid: self.$login.f.id
429
- }, {resolveMsg: null, rejectMsg: null})
430
- ////tag
431
- self.checkersid.push({label: '全部', value: ''})
432
- getGasman.data.forEach((checker) => {
433
- self.checkersid.push({label: checker.name, value: checker.id})
434
- })
435
- }
424
+ let select = function* (self) {
425
+ let http = new HttpResetClass()
426
+ let getGasman = yield http.load('POST', '/rs/search', {
427
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
428
+ userid: self.$login.f.id
429
+ }, {resolveMsg: null, rejectMsg: null})
430
+ ////tag
431
+ self.checkersid.push({label: '全部', value: ''})
432
+ getGasman.data.forEach((checker) => {
433
+ self.checkersid.push({label: checker.name, value: checker.id})
434
+ })
435
+ }
436
436
 
437
437
  export default {
438
438
  title: '安检结果查看',
@@ -482,46 +482,46 @@ export default {
482
482
  model: model,
483
483
  excelHeaders: {
484
484
  //searchData:searchData,
485
- 'f_userinfo_code': '客户编号',
486
- 'f_user_name': '客户姓名',
487
- 'f_meternumber':'客户表号',
488
- 'f_user_phone':'客户电话',
489
- 'f_check_type': '客户类型',
490
- 'f_residential_area': '小区',
491
- 'f_address': '客户地址',
492
- 'f_entry_status': '安检状态',
493
- 'f_usegas': '用气状态',
494
- 'f_offsite_time': '安检时间',
495
- 'f_checker_name': '安检员',
496
- 'f_safecheck_type':'安检类型',
497
- 'f_repair_approved_note': '备注',
498
- 'f_gas_date': '开户时间',
499
- 'f_plan_name': '计划名称'
500
- },
501
- fun: this.$login.f,
502
- pcds:[],
503
- checkersid: [],
504
- approveds:this.$appdata.getParam('安检审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检审核状态')]:[{label: '全部', value: ''}],
505
- safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
506
- criteriaShow: false,
507
- checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
508
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
509
- showModal: false,
510
- safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
511
- f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
512
- f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
513
- no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
514
- usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
515
- showcheckmsg: false,
516
- checkInfo: {},
517
- orderDefault: "'f_offsite_time'",
518
- orderFields: {
519
- f_offsite_time: 'no'
520
- },
521
- sliceArea: [],
522
- cbc:[]
523
- }
524
- },
485
+ 'f_userinfo_code': '客户编号',
486
+ 'f_user_name': '客户姓名',
487
+ 'f_meternumber':'客户表号',
488
+ 'f_user_phone':'客户电话',
489
+ 'f_check_type': '客户类型',
490
+ 'f_residential_area': '小区',
491
+ 'f_address': '客户地址',
492
+ 'f_entry_status': '安检状态',
493
+ 'f_usegas': '用气状态',
494
+ 'f_offsite_time': '安检时间',
495
+ 'f_checker_name': '安检员',
496
+ 'f_safecheck_type':'安检类型',
497
+ 'f_repair_approved_note': '备注',
498
+ 'f_gas_date': '开户时间',
499
+ 'f_plan_name': '计划名称'
500
+ },
501
+ fun: this.$login.f,
502
+ pcds:[],
503
+ checkersid: [],
504
+ approveds:this.$appdata.getParam('安检审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检审核状态')]:[{label: '全部', value: ''}],
505
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
506
+ criteriaShow: false,
507
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
508
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
509
+ showModal: false,
510
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
511
+ f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
512
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
513
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
514
+ usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
515
+ showcheckmsg: false,
516
+ checkInfo: {},
517
+ orderDefault: "'f_offsite_time'",
518
+ orderFields: {
519
+ f_offsite_time: 'no'
520
+ },
521
+ sliceArea: [],
522
+ cbc:[]
523
+ }
524
+ },
525
525
  created() {
526
526
  // 使用 $on 监听事件
527
527
  this.$root.$on('audit-status-changed', () => {
@@ -533,212 +533,212 @@ export default {
533
533
  // 记得在组件销毁前移除事件监听
534
534
  this.$root.$off('audit-status-changed')
535
535
  },
536
- methods: {
537
- showback1(){
538
- this.showinfo1 = true
539
- this.showinfo2 = false
540
- },
541
- showback2(){
542
- this.showinfo1 = true
543
- this.showinfo3 = false
544
- },
545
- //气表品牌查询
546
- getTableBrands() {
547
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
548
- {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
549
- {resolveMsg: null, rejectMsg: null}).then((resp) => {
550
- resp.data.forEach((result) => {
551
- this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
552
- })
553
- })
554
- },
555
- //获取省市区列表
556
- getPcd(val){
557
- this.pcds = [{label:'全部',value:''}]
558
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
559
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
560
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
561
- pcdlist.data.forEach((result)=>{
562
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
563
- })
536
+ methods: {
537
+ showback1(){
538
+ this.showinfo1 = true
539
+ this.showinfo2 = false
540
+ },
541
+ showback2(){
542
+ this.showinfo1 = true
543
+ this.showinfo3 = false
544
+ },
545
+ //气表品牌查询
546
+ getTableBrands() {
547
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
548
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
549
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
550
+ resp.data.forEach((result) => {
551
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
564
552
  })
565
- },
566
- showaudio(){
567
- //tag
568
- this.audioshow=!this.audioshow
569
- //tag
570
- },
571
- getmeterbook(val){
572
- this.cbc=[]
573
- this.cbc.push({
574
- label:'全部',
575
- value:''
553
+ })
554
+ },
555
+ //获取省市区列表
556
+ getPcd(val){
557
+ this.pcds = [{label:'全部',value:''}]
558
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
559
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
560
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
561
+ pcdlist.data.forEach((result)=>{
562
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
576
563
  })
577
- if (val==''){
564
+ })
565
+ },
566
+ showaudio(){
567
+ //tag
568
+ this.audioshow=!this.audioshow
569
+ //tag
570
+ },
571
+ getmeterbook(val){
572
+ this.cbc=[]
573
+ this.cbc.push({
574
+ label:'全部',
575
+ value:''
576
+ })
577
+ if (val==''){
578
578
 
579
- this.cbcs.forEach(res=>{
579
+ this.cbcs.forEach(res=>{
580
+ this.cbc.push({
581
+ label:res.f_book_name,
582
+ value:res.id
583
+ })
584
+ })
585
+ }else{
586
+ this.cbcs.forEach(res=>{
587
+ if (res.f_book_slice_area==val){
580
588
  this.cbc.push({
581
589
  label:res.f_book_name,
582
590
  value:res.id
583
591
  })
592
+ }
593
+ })
594
+ }
595
+ },
596
+ Mreadibook(val){
597
+ ////tag
598
+ ////tag
599
+ if (val){
600
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
601
+ items: 'name',
602
+ tablename: 't_zone',
603
+ condition: `parentid in ${val}`,
604
+ orderitem: 'id'
605
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
606
+ this.sliceArea=[]
607
+ this.sliceArea.push({
608
+ label:'全部',
609
+ value:''
584
610
  })
585
- }else{
586
- this.cbcs.forEach(res=>{
587
- if (res.f_book_slice_area==val){
588
- this.cbc.push({
589
- label:res.f_book_name,
590
- value:res.id
591
- })
592
- }
593
- })
594
- }
595
- },
596
- Mreadibook(val){
597
- ////tag
598
- ////tag
599
- if (val){
600
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
601
- items: 'name',
602
- tablename: 't_zone',
603
- condition: `parentid in ${val}`,
604
- orderitem: 'id'
605
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
606
- this.sliceArea=[]
611
+ res.data.forEach(ress=>{
607
612
  this.sliceArea.push({
608
- label:'全部',
609
- value:''
613
+ label:ress.name,
614
+ value:ress.name
610
615
  })
611
- res.data.forEach(ress=>{
612
- this.sliceArea.push({
613
- label:ress.name,
614
- value:ress.name
615
- })
616
- })
617
-
618
616
  })
619
- }
620
- },
621
- getAllMeterBook(val){
622
- ////tag
623
- ////tag
624
- this.cbcs=[]
625
- if (val){
626
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
627
- items: 'f_book_name,f_book_slice_area,id',
628
- tablename: 't_meter_book',
629
- condition: `f_filiale_id in ${val}`,
630
- orderitem: 'id'
631
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
632
- res.data.forEach(ress=>{
633
- this.cbcs.push({
634
- id:ress.id,
635
- f_book_name:ress.f_book_name,
636
- f_book_slice_area:ress.f_book_slice_area
637
- })
617
+
618
+ })
619
+ }
620
+ },
621
+ getAllMeterBook(val){
622
+ ////tag
623
+ ////tag
624
+ this.cbcs=[]
625
+ if (val){
626
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
627
+ items: 'f_book_name,f_book_slice_area,id',
628
+ tablename: 't_meter_book',
629
+ condition: `f_filiale_id in ${val}`,
630
+ orderitem: 'id'
631
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
632
+ res.data.forEach(ress=>{
633
+ this.cbcs.push({
634
+ id:ress.id,
635
+ f_book_name:ress.f_book_name,
636
+ f_book_slice_area:ress.f_book_slice_area
638
637
  })
639
- this.cbc=[]
638
+ })
639
+ this.cbc=[]
640
+ this.cbc.push({
641
+ label:'全部',
642
+ value:''
643
+ })
644
+ this.cbcs.forEach(res=>{
640
645
  this.cbc.push({
641
- label:'全部',
642
- value:''
643
- })
644
- this.cbcs.forEach(res=>{
645
- this.cbc.push({
646
- label:res.f_book_name,
647
- value:res.id
648
- })
646
+ label:res.f_book_name,
647
+ value:res.id
649
648
  })
650
649
  })
651
- }
652
- },
653
- getRes(obj) {
654
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
655
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
656
- this.Mreadibook(this.model.f_filialeid)
657
- this.getAllMeterBook(this.model.f_filialeid)
658
- this.getPcd(this.model.f_filialeid)
659
- //this.$refs.paged.$refs.criteria.search()
660
- },
650
+ })
651
+ }
652
+ },
653
+ getRes(obj) {
654
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
655
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
656
+ this.Mreadibook(this.model.f_filialeid)
657
+ this.getAllMeterBook(this.model.f_filialeid)
658
+ this.getPcd(this.model.f_filialeid)
659
+ //this.$refs.paged.$refs.criteria.search()
660
+ },
661
661
 
662
- change(row) {
663
- row.f_upload_state = '已传'
664
- this.shouinfodata = JSON.parse(JSON.stringify(row))
665
- this.showinfo1 = false
666
- if (row.f_safe_type == '已挂表未办卡安检'){
667
- this.showinfo2 = false
668
- this.showinfo3 = true
669
- return
670
- }
671
- this.showinfo2 = true
672
- this.showinfo3 = false
673
- },
674
- showChooser() {
675
- this.showModal = true
676
- },
677
- hidden() {
678
- this.criteriaShow = !this.criteriaShow
679
- },
680
- refresh() {
681
- this.$refs.paged.$refs.criteria.search()
682
- },
683
- ok() {
684
- this.showModal = false
685
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
686
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
687
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
688
- }
689
- },
690
- cancel() {
691
- this.showModal = false
692
- this.model.f_check_plan = {f_plan_name: '', id: ''}
693
- this.model.f_plan_id=''
694
- },
695
- print(row) {
696
- this.showcheckmsg = true
697
- this.checkInfo = row
698
- },
662
+ change(row) {
663
+ row.f_upload_state = '已传'
664
+ this.shouinfodata = JSON.parse(JSON.stringify(row))
665
+ this.showinfo1 = false
666
+ if (row.f_safe_type == '已挂表未办卡安检'){
667
+ this.showinfo2 = false
668
+ this.showinfo3 = true
669
+ return
670
+ }
671
+ this.showinfo2 = true
672
+ this.showinfo3 = false
673
+ },
674
+ showChooser() {
675
+ this.showModal = true
676
+ },
677
+ hidden() {
678
+ this.criteriaShow = !this.criteriaShow
679
+ },
680
+ refresh() {
681
+ this.$refs.paged.$refs.criteria.search()
682
+ },
683
+ ok() {
684
+ this.showModal = false
685
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
686
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
687
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
688
+ }
689
+ },
690
+ cancel() {
691
+ this.showModal = false
692
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
693
+ this.model.f_plan_id=''
694
+ },
695
+ print(row) {
696
+ this.showcheckmsg = true
697
+ this.checkInfo = row
698
+ },
699
699
 
700
- sort(field, rule) {
701
- // 将所有排序方式设为不排序,实现相互排斥
702
- for (let key in this.orderFields) {
703
- if (key === field) {
704
- this.orderFields[key] = rule
705
- } else {
706
- this.orderFields[key] = 'no'
707
- }
708
- }
709
- // 如果新规则不排序,还原为默认排序
710
- if (rule === 'no') {
711
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
700
+ sort(field, rule) {
701
+ // 将所有排序方式设为不排序,实现相互排斥
702
+ for (let key in this.orderFields) {
703
+ if (key === field) {
704
+ this.orderFields[key] = rule
712
705
  } else {
713
- this.model.paramSource.orderitem = `'${field} ${rule}'`
706
+ this.orderFields[key] = 'no'
714
707
  }
715
- this.search()
716
- },
717
- search() {
718
- console.log('审核通过回调')
719
- this.$refs.paged.$refs.criteria.search()
720
- },
721
- selfSearch(args) {
722
- ////tag
723
- //args.condition+=" and f_check_type='民用'"
724
- if(args.model.f_check_date){
725
- const daysBefore = Number(args.model.f_check_date);
726
- if ( daysBefore > 0) {
727
- // 获取当前日期
728
- const now = new Date();
729
- // 计算三天前的日期
730
- const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
731
- // 如果需要格式化日期,可以使用Date对象的方法
732
- var formattedDate = threeDaysBefore.toISOString().split('T')[0];
733
- args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
734
- } else {
735
- console.error('f_check_date不是一个有效的正整数');
736
- }
737
- }
738
- this.model.search(args.condition, args.model, args.condValue)
739
708
  }
709
+ // 如果新规则不排序,还原为默认排序
710
+ if (rule === 'no') {
711
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
712
+ } else {
713
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
714
+ }
715
+ this.search()
716
+ },
717
+ search() {
718
+ console.log('审核通过回调')
719
+ this.$refs.paged.$refs.criteria.search()
740
720
  },
741
- ready() {
721
+ selfSearch(args) {
722
+ ////tag
723
+ //args.condition+=" and f_check_type='民用'"
724
+ if(args.model.f_check_date){
725
+ const daysBefore = Number(args.model.f_check_date);
726
+ if ( daysBefore > 0) {
727
+ // 获取当前日期
728
+ const now = new Date();
729
+ // 计算三天前的日期
730
+ const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
731
+ // 如果需要格式化日期,可以使用Date对象的方法
732
+ var formattedDate = threeDaysBefore.toISOString().split('T')[0];
733
+ args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
734
+ } else {
735
+ console.error('f_check_date不是一个有效的正整数');
736
+ }
737
+ }
738
+ this.model.search(args.condition, args.model, args.condValue)
739
+ }
740
+ },
741
+ ready() {
742
742
  if(this.safeAudit){
743
743
  let oa = {
744
744
  'f_approved_by':'审核人',
@@ -749,48 +749,48 @@ export default {
749
749
  }
750
750
  this.excelHeaders = Object.assign({}, this.excelHeaders, oa)
751
751
  }
752
- this.function = this.f
753
- //获取气表品牌
754
- this.getTableBrands()
755
- let gen = select(this)
756
- //this.pianqu()
757
- this.Mreadibook(`('${this.$login.f.orgid}')`)
758
- co(gen)
759
- this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStartDateString() + ' 00:00:00'
760
- this.$refs.paged.$refs.criteria.model.f_check_end = Util.toEndDateString() + ' 23:59:59'
761
- },
762
- watch: {
763
- 'model.f_no_checkplan'(val) {
764
- if (this.model.f_no_checkplan){
765
- this.searchData.f_no_checkplan = val
766
- }
767
- if (this.model.f_no_checkplan == '有计划安检') {
752
+ this.function = this.f
753
+ //获取气表品牌
754
+ this.getTableBrands()
755
+ let gen = select(this)
756
+ //this.pianqu()
757
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
758
+ co(gen)
759
+ this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStartDateString() + ' 00:00:00'
760
+ this.$refs.paged.$refs.criteria.model.f_check_end = Util.toEndDateString() + ' 23:59:59'
761
+ },
762
+ watch: {
763
+ 'model.f_no_checkplan'(val) {
764
+ if (this.model.f_no_checkplan){
765
+ this.searchData.f_no_checkplan = val
766
+ }
767
+ if (this.model.f_no_checkplan == '有计划安检') {
768
768
 
769
- this.showChooser()
770
- }
771
- },
772
- 'model.condition'(val) {
773
- if (val) {
774
- this.searchData.condition = val
775
- }
769
+ this.showChooser()
770
+ }
771
+ },
772
+ 'model.condition'(val) {
773
+ if (val) {
774
+ this.searchData.condition = val
775
+ }
776
776
 
777
- },
778
- 'model.f_entry'(val) {
779
- this.searchData.f_entry_status = val
780
- },
781
- 'model.f_plan_id'(val) {
782
- if (val) {
783
- this.searchData.f_plan_id = val
784
- }
785
- },
786
- 'model.f_slice_area'(val) {
787
- },
788
- 'model.f_approved'(val) {
789
- if (val) {
790
- this.searchData.f_approved = val
791
- }
777
+ },
778
+ 'model.f_entry'(val) {
779
+ this.searchData.f_entry_status = val
780
+ },
781
+ 'model.f_plan_id'(val) {
782
+ if (val) {
783
+ this.searchData.f_plan_id = val
784
+ }
785
+ },
786
+ 'model.f_slice_area'(val) {
787
+ },
788
+ 'model.f_approved'(val) {
789
+ if (val) {
790
+ this.searchData.f_approved = val
792
791
  }
793
792
  }
794
-
795
793
  }
794
+
795
+ }
796
796
  </script>