safecheck-client 3.0.32 → 3.0.33-2
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.
- package/package.json +133 -133
- package/src/App.vue +31 -31
- package/src/assets//345/215/225/345/205/203/345/217/267.png +0 -0
- package/src/assets//345/234/260/345/235/200.png +0 -0
- package/src/assets//345/247/223/345/220/215.png +0 -0
- package/src/assets//345/260/217/345/214/272.png +0 -0
- package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
- package/src/assets//345/272/225/346/225/260.png +0 -0
- package/src/assets//346/210/267/347/274/226/345/217/267.png +0 -0
- package/src/assets//346/245/274/345/217/267.png +0 -0
- package/src/assets//346/245/274/345/261/202.png +0 -0
- package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
- package/src/assets//351/227/250/347/211/214/345/217/267.png +0 -0
- package/src/components/android/AndroidDefectDeal.vue +5 -5
- package/src/components/android/PhoneUpUserinfo.vue +6 -0
- package/src/components/android/SafecheckOrderV.vue +4 -1
- package/src/components/map/checkScreen.vue +1 -1
- package/src/components/planmanage/checkPlanList.vue +3 -3
- package/src/components/rongcheng/AspiratedDevices.vue +34 -1
- package/src/components/rongcheng/DefectPaper.vue +4 -1
- package/src/components/rongcheng/SafecheckDevices.vue +34 -1
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -0
- package/src/components/rongcheng/SafecheckUserInfo.vue +17 -0
- package/src/filiale/Util.js +7 -0
- package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/ankangyihua/android/CurrentCreate.vue +1 -1
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1 -1
- package/src/filiale/dexin/android/CasualSave.vue +1050 -0
- package/src/filiale/dexin/android/SafecheckDevices.vue +4 -4
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2407 -2355
- package/src/filiale/dexin/android/WebMeterOpen.vue +377 -0
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +225 -0
- package/src/filiale/dexin/android.js +4 -1
- package/src/filiale/fugou/pc/AddToCheckBook.vue +160 -0
- package/src/filiale/fugou/pc/CheckBook.vue +301 -0
- package/src/filiale/fugou/pc/CheckBookAll.vue +67 -0
- package/src/filiale/fugou/pc/CheckBookArea.vue +146 -0
- package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -0
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -0
- package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -0
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -0
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -0
- package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -0
- package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -0
- package/src/filiale/fugou/pc/CheckBookUser.vue +101 -0
- package/src/filiale/fugou/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/fugou/pc/PaperDefectMain.vue +22 -1
- package/src/filiale/fugou/pc/PlanManage.vue +1007 -0
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -0
- package/src/filiale/fugou/pc/checkUserList.vue +20 -120
- package/src/filiale/fugou/pc.js +60 -5
- package/src/filiale/jingyang/android/AddPlanItem.vue +246 -246
- package/src/filiale/jingyang/android/CurrentCreate.vue +18 -18
- package/src/filiale/jingyang/android/SafecheckOrderV.vue +2281 -2281
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -0
- package/src/filiale/jingyang/android.js +4 -0
- package/src/filiale/kelai/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -0
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -0
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +975 -488
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +111 -48
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/shexian/pc/PaperList.vue +822 -0
- package/src/filiale/shexian/pc.js +1 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +1 -1
- package/src/filiale/wensu/android/CurrentCreate.vue +1 -1
- package/src/filiale/wensu/pc/CheckSearchUser.vue +58 -53
- package/src/filiale/wensu/pc/DefectPaperNew.vue +15 -9
- package/src/filiale/wensu/pc/PlanManage.vue +831 -0
- package/src/filiale/wensu/pc/PrintMaterialBill.vue +28 -11
- package/src/filiale/wensu/pc/RoleSelector.vue +2 -2
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +208 -168
- package/src/filiale/wensu/pc/checkUserList.vue +5 -1
- package/src/filiale/wensu/pc.js +20 -19
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +3 -3
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +3 -3
- package/src/filiale/yongzhou/pc/safeStatistics.vue +1 -0
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +1 -0
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +3 -0
- package/src/filiale/zhongyi/pc/DefectListNew.vue +6 -6
- package/src/main.js +33 -33
- package/static/stretch_bottom.png +0 -0
- package/static/stretch_top.png +0 -0
@@ -34,7 +34,7 @@
|
|
34
34
|
v-if="row.type == 'date'"
|
35
35
|
v-show="row.isshow"
|
36
36
|
:disabled-days-of-Week="[]"
|
37
|
-
:format=
|
37
|
+
:format=row.format
|
38
38
|
:show-reset-button="reset" readonly="readonly">
|
39
39
|
</datepicker>
|
40
40
|
</div>
|
@@ -206,6 +206,12 @@
|
|
206
206
|
f_issue_reading:{},
|
207
207
|
//上期表读数
|
208
208
|
f_prior_reading:{},
|
209
|
+
// 安装日期
|
210
|
+
f_install_date:{},
|
211
|
+
// 使用年限
|
212
|
+
f_use_limit:{},
|
213
|
+
// 到期日期
|
214
|
+
f_scrap_date:{},
|
209
215
|
// 气量异常差值允许误差
|
210
216
|
gasDeviation: (
|
211
217
|
function (_this) {
|
@@ -625,6 +631,16 @@
|
|
625
631
|
}
|
626
632
|
|
627
633
|
},
|
634
|
+
// 计算到期日期
|
635
|
+
getscrapNumber() {
|
636
|
+
//tag
|
637
|
+
if(!this.f_items[this.f_install_date.index].f_item_value || !this.f_items[this.f_use_limit.index].f_item_value ){
|
638
|
+
return
|
639
|
+
}
|
640
|
+
let data = new Date(this.f_items[this.f_install_date.index].f_item_value)
|
641
|
+
data.setFullYear(data.getFullYear() + parseInt(this.f_items[this.f_use_limit.index].f_item_value))
|
642
|
+
this.f_items[this.f_scrap_date.index].f_item_value = data.toISOString().split('T')[0];
|
643
|
+
},
|
628
644
|
readmeter(){
|
629
645
|
if(!this.f_items[this.f_issue_reading.index].f_item_value && parseFloat(this.f_items[this.f_issue_reading.index].f_item_value).toString() == "NaN"){
|
630
646
|
this.$showMessage("请输入本期表读数!")
|
@@ -738,6 +754,7 @@
|
|
738
754
|
isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
|
739
755
|
readonly: this.config[this.device.device].items[item].readonly == true?true:false,
|
740
756
|
remark: this.config[this.device.device].items[item].remark ? this.config[this.device.device].items[item].remark : '',
|
757
|
+
format: this.config[this.device.device].items[item].format ? this.config[this.device.device].items[item].format : 'yyyy-MM-dd 00:00:00',
|
741
758
|
f_path: '',
|
742
759
|
tooltip:'',
|
743
760
|
f_live_dispose:'',
|
@@ -871,6 +888,22 @@
|
|
871
888
|
}
|
872
889
|
}
|
873
890
|
}
|
891
|
+
if (this.f_items[f].f_item_name == '安装日期') {
|
892
|
+
//tag)
|
893
|
+
this.f_install_date.index = f
|
894
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
895
|
+
this.getscrapNumber()
|
896
|
+
})
|
897
|
+
}else if (this.f_items[f].f_item_name == '使用年限') {
|
898
|
+
//tag)
|
899
|
+
this.f_use_limit.index = f
|
900
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
901
|
+
this.getscrapNumber()
|
902
|
+
})
|
903
|
+
}else if (this.f_items[f].f_item_name == '到期日期') {
|
904
|
+
//tag)
|
905
|
+
this.f_scrap_date.index = f
|
906
|
+
}
|
874
907
|
}
|
875
908
|
//tag)
|
876
909
|
this.$set('piece.f_items',this.f_items)
|
@@ -407,7 +407,7 @@
|
|
407
407
|
defectType:[],
|
408
408
|
userTypes:[{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
409
409
|
defectLeave:'',
|
410
|
-
defectLeaveList:[{label:'全部',value:''},{label:'一级隐患',value:'一级隐患'},{label:'二级隐患',value:'二级隐患'},{label:'三级隐患',value:'三级隐患'}],
|
410
|
+
defectLeaveList:[{label:'全部',value:''},{label:'一级隐患',value:'一级隐患'},{label:'二级隐患',value:'二级隐患'},{label:'三级隐患',value:'三级隐患'},{label: '其他隐患'}],
|
411
411
|
thead: '',
|
412
412
|
headData: ['入户状态','用户名','用户电话','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','一级隐患数','一级隐患','二级隐患数','二级隐患','三级隐患数','三级隐患','其他隐患','隐患内容'],
|
413
413
|
bodyData: ['f_entry_status','f_user_name','f_user_phone','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_fist_count','f_fist_content','f_second_count','f_second_content','f_third_count','f_third_content','f_other_count','f_defect_content'],
|
@@ -468,6 +468,9 @@
|
|
468
468
|
if(this.defectLeave=='三级隐患'){
|
469
469
|
args.condition += ` and f_third_count > 0`
|
470
470
|
}
|
471
|
+
if(this.defectLeave=='其他隐患'){
|
472
|
+
args.condition += ` and f_other_count > 0`
|
473
|
+
}
|
471
474
|
}
|
472
475
|
if(this.defectType.length>0){
|
473
476
|
args.condition += ` and (`
|
@@ -34,7 +34,7 @@
|
|
34
34
|
v-if="row.type == 'date'"
|
35
35
|
v-show="row.isshow"
|
36
36
|
:disabled-days-of-Week="[]"
|
37
|
-
:format=
|
37
|
+
:format=row.format
|
38
38
|
:show-reset-button="reset" readonly="readonly">
|
39
39
|
</datepicker>
|
40
40
|
</div>
|
@@ -222,6 +222,12 @@
|
|
222
222
|
f_issue_reading:{},
|
223
223
|
//上期表读数
|
224
224
|
f_prior_reading:{},
|
225
|
+
// 安装日期
|
226
|
+
f_install_date:{},
|
227
|
+
// 使用年限
|
228
|
+
f_use_limit:{},
|
229
|
+
// 到期日期
|
230
|
+
f_scrap_date:{},
|
225
231
|
// 气量异常差值允许误差
|
226
232
|
gasDeviation: (
|
227
233
|
function (_this) {
|
@@ -656,6 +662,16 @@
|
|
656
662
|
}
|
657
663
|
|
658
664
|
},
|
665
|
+
// 计算到期日期
|
666
|
+
getscrapNumber() {
|
667
|
+
//tag
|
668
|
+
if(!this.f_items[this.f_install_date.index].f_item_value || !this.f_items[this.f_use_limit.index].f_item_value ){
|
669
|
+
return
|
670
|
+
}
|
671
|
+
let data = new Date(this.f_items[this.f_install_date.index].f_item_value)
|
672
|
+
data.setFullYear(data.getFullYear() + parseInt(this.f_items[this.f_use_limit.index].f_item_value))
|
673
|
+
this.f_items[this.f_scrap_date.index].f_item_value = data.toISOString().split('T')[0];
|
674
|
+
},
|
659
675
|
readmeter(){
|
660
676
|
if(!this.f_items[this.f_issue_reading.index].f_item_value && parseFloat(this.f_items[this.f_issue_reading.index].f_item_value).toString() == "NaN"){
|
661
677
|
this.$showMessage("请输入本期表读数!")
|
@@ -769,6 +785,7 @@
|
|
769
785
|
isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
|
770
786
|
readonly: this.config[this.device.device].items[item].readonly == true?true:false,
|
771
787
|
remark: this.config[this.device.device].items[item].remark ? this.config[this.device.device].items[item].remark : '',
|
788
|
+
format: this.config[this.device.device].items[item].format ? this.config[this.device.device].items[item].format : 'yyyy-MM-dd 00:00:00',
|
772
789
|
f_path: '',
|
773
790
|
f_second_path:'',
|
774
791
|
tooltip:'',
|
@@ -903,6 +920,22 @@
|
|
903
920
|
}
|
904
921
|
}
|
905
922
|
}
|
923
|
+
if (this.f_items[f].f_item_name == '安装日期') {
|
924
|
+
//tag)
|
925
|
+
this.f_install_date.index = f
|
926
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
927
|
+
this.getscrapNumber()
|
928
|
+
})
|
929
|
+
}else if (this.f_items[f].f_item_name == '使用年限') {
|
930
|
+
//tag)
|
931
|
+
this.f_use_limit.index = f
|
932
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
933
|
+
this.getscrapNumber()
|
934
|
+
})
|
935
|
+
}else if (this.f_items[f].f_item_name == '到期日期') {
|
936
|
+
//tag)
|
937
|
+
this.f_scrap_date.index = f
|
938
|
+
}
|
906
939
|
}
|
907
940
|
//tag)
|
908
941
|
this.$set('piece.f_items',this.f_items)
|
@@ -1795,6 +1795,7 @@ export default {
|
|
1795
1795
|
this.$set('data.f_idnumber', this.item.f_idnumber)
|
1796
1796
|
this.$set('data.f_comments', this.item.f_comments)
|
1797
1797
|
this.$set('data.f_userproperties', this.item.f_userproperties)
|
1798
|
+
this.$set('data.f_usetype', this.item.f_plan_meters[0].f_usetype)
|
1798
1799
|
// this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
|
1799
1800
|
// this.$set('data.f_user_check_time', this.item.f_user_check_time)
|
1800
1801
|
// this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
|
@@ -44,6 +44,17 @@
|
|
44
44
|
<p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
|
45
45
|
<p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_state }}</p>
|
46
46
|
</div>
|
47
|
+
<div class="col-xs-12" style="padding: 2px 0">
|
48
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>使用类型:</b></p>
|
49
|
+
<v-select
|
50
|
+
:value.sync="f_usetype"
|
51
|
+
v-model="f_usetype"
|
52
|
+
width="67%"
|
53
|
+
placeholder='请选择'
|
54
|
+
:value-single="true"
|
55
|
+
:options="f_usetypes"
|
56
|
+
clear-button></v-select>
|
57
|
+
</div>
|
47
58
|
<div class="col-xs-12" style="margin-left: 20px">
|
48
59
|
<!-- <p class="panel-title col-xs-7 text-left input-font"><a @click="searchDevices(userinfo.f_userinfoid)"></a></p>-->
|
49
60
|
<a class="panel-title col-xs-8 text-left input-font" style="width: 79%;color: blue;text-decoration:underline" v-if="userinfo.f_safecheck_type=='送气类型'" @click="searchDevices(userinfo.f_userinfoid)">设备信息维护</a>
|
@@ -914,6 +925,12 @@
|
|
914
925
|
RadioGroup,
|
915
926
|
Radio
|
916
927
|
},
|
928
|
+
computed: {
|
929
|
+
// 使用类型
|
930
|
+
f_usetypes() {
|
931
|
+
return this.$appdata.getParam('使用类型')
|
932
|
+
}
|
933
|
+
},
|
917
934
|
}
|
918
935
|
</script>
|
919
936
|
|
package/src/filiale/Util.js
CHANGED
@@ -20,6 +20,13 @@ export function getAttendanceState(item, timeToWork, timeToGo) {
|
|
20
20
|
item.f_state = '正常'
|
21
21
|
}
|
22
22
|
|
23
|
+
export function dateAddDay (date, day) {
|
24
|
+
date.setDate(date.getDate() + Number.parseInt(day));
|
25
|
+
let month = date.getMonth()+1
|
26
|
+
let date2 = date.getDate()
|
27
|
+
return date.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date2<10? '0'+ date2 : date2)
|
28
|
+
}
|
29
|
+
|
23
30
|
// 字符串进行解密
|
24
31
|
export function uncompileStr (code) {
|
25
32
|
code = unescape(code)
|