safecheck-client 4.0.0-66 → 4.0.0-68
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 +132 -132
- package/src/components/NewDefectList/DefectListNew.vue +23 -23
- package/src/components/NewDefectList/DefectPaperNew.vue +52 -72
- package/src/components/paper/PaperList.vue +341 -368
- package/src/components/planmanage/PlanManage.vue +821 -828
- package/src/components/planmanage/checkUserList.vue +361 -366
- package/src/components/querycheckpaper/CheckSearchUser.vue +71 -97
- package/src/components/report/CheckPlanAreaList.vue +267 -273
- package/src/filiale/jinhong/android/CurrentCreate.vue +1192 -0
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +438 -437
- package/src/filiale/jinhong/android.js +2 -1
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -511
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -1094
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -1100
- package/src/filiale/jinhong/pc/PlanManage.vue +891 -891
- package/src/filiale/jinhong/pc/checkUserList.vue +776 -778
- package/src/filiale/jinhong/pc.js +11 -11
@@ -28,10 +28,10 @@
|
|
28
28
|
</div>
|
29
29
|
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
30
30
|
<export-excel :data="$parent.$parent.searchData"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
:field="$parent.$parent.excelHeaders"
|
32
|
+
:choose-col="true"
|
33
|
+
sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
|
34
|
+
template-name='用户安检情况'></export-excel>
|
35
35
|
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
36
36
|
<div style="float: right" class="button_spacing"
|
37
37
|
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
@@ -102,7 +102,7 @@
|
|
102
102
|
class="select select_list"
|
103
103
|
:value.sync="$parent.$parent.checkStates"
|
104
104
|
:options='$parent.$parent.checkstatus'
|
105
|
-
|
105
|
+
></v-select>
|
106
106
|
</div>
|
107
107
|
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
108
108
|
<label class="font_normal_body">隐患情况</label>
|
@@ -132,27 +132,27 @@
|
|
132
132
|
</role-selector-safe>
|
133
133
|
</div>
|
134
134
|
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
135
|
+
<label class="font_normal_body">片  区</label>
|
136
|
+
<v-select class="select_list select"
|
137
|
+
placeholder='片区/管理站' style="width: 60%"
|
138
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
139
|
+
:options='$parent.$parent.sliceArea'
|
140
|
+
filer-key="name"
|
141
|
+
close-on-select clear-button
|
142
|
+
condition="f_slice_area='{}'"
|
143
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
144
|
+
:value-single="true">
|
145
|
+
</v-select>
|
146
146
|
</div>
|
147
147
|
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
148
148
|
<label class="font_normal_body">抄 表 册</label>
|
149
149
|
<v-select class="select_list select"
|
150
150
|
placeholder='抄表册' style="width: 60%"
|
151
151
|
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
152
|
-
:options='$parent.$parent.
|
152
|
+
:options='$parent.$parent.cbc'
|
153
153
|
filer-key="name"
|
154
154
|
close-on-select clear-button
|
155
|
-
condition="
|
155
|
+
condition="f_meter_book_num={}"
|
156
156
|
:value-single="true">
|
157
157
|
</v-select>
|
158
158
|
</div>
|
@@ -205,9 +205,9 @@
|
|
205
205
|
</div>
|
206
206
|
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
207
207
|
<export-excel :data="$parent.$parent.searchData"
|
208
|
-
|
209
|
-
|
210
|
-
|
208
|
+
:field="$parent.$parent.excelHeaders"
|
209
|
+
sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
|
210
|
+
template-name='用户安检情况'></export-excel>
|
211
211
|
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
212
212
|
<div style="float: right" class="button_spacing"
|
213
213
|
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
@@ -339,18 +339,18 @@
|
|
339
339
|
<th>
|
340
340
|
<nobr>用户表号</nobr>
|
341
341
|
</th>
|
342
|
-
<!-- <th>-->
|
343
|
-
<!-- <nobr>气表品牌</nobr>-->
|
344
|
-
<!-- </th>-->
|
342
|
+
<!-- <th>-->
|
343
|
+
<!-- <nobr>气表品牌</nobr>-->
|
344
|
+
<!-- </th>-->
|
345
345
|
<th>
|
346
346
|
<nobr>用户类型</nobr>
|
347
347
|
</th>
|
348
|
-
<!-- <th>-->
|
349
|
-
<!-- <nobr>壁挂炉</nobr>-->
|
350
|
-
<!-- </th>-->
|
351
|
-
<!-- <th>-->
|
352
|
-
<!-- <nobr>灶具</nobr>-->
|
353
|
-
<!-- </th>-->
|
348
|
+
<!-- <th>-->
|
349
|
+
<!-- <nobr>壁挂炉</nobr>-->
|
350
|
+
<!-- </th>-->
|
351
|
+
<!-- <th>-->
|
352
|
+
<!-- <nobr>灶具</nobr>-->
|
353
|
+
<!-- </th>-->
|
354
354
|
<th>
|
355
355
|
<nobr>小区名称</nobr>
|
356
356
|
</th>
|
@@ -360,9 +360,9 @@
|
|
360
360
|
<th>
|
361
361
|
<nobr>安检员</nobr>
|
362
362
|
</th>
|
363
|
-
<!-- <th>-->
|
364
|
-
<!-- <nobr>安检员备注</nobr>-->
|
365
|
-
<!-- </th>-->
|
363
|
+
<!-- <th>-->
|
364
|
+
<!-- <nobr>安检员备注</nobr>-->
|
365
|
+
<!-- </th>-->
|
366
366
|
<th>
|
367
367
|
<nobr>安检日期</nobr>
|
368
368
|
</th>
|
@@ -389,10 +389,10 @@
|
|
389
389
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{$parent.$parent.$parent.dateDiff(row.f_last_check_date)}}</td>
|
390
390
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
|
391
391
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
|
392
|
-
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
|
392
|
+
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
|
393
393
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
|
394
|
-
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
|
395
|
-
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
|
394
|
+
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
|
395
|
+
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
|
396
396
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
|
397
397
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
|
398
398
|
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
|
@@ -529,8 +529,7 @@ export default {
|
|
529
529
|
sliceArea: [],
|
530
530
|
cbcs:[],
|
531
531
|
cbc:[],
|
532
|
-
pcds:[]
|
533
|
-
checkBooks:[]
|
532
|
+
pcds:[]
|
534
533
|
}
|
535
534
|
},
|
536
535
|
props: {
|
@@ -561,75 +560,50 @@ export default {
|
|
561
560
|
this.model.f_OrgStr = this.$login.f.orgpathstr
|
562
561
|
this.Mreadibook(`('${this.$login.f.orgid}')`)
|
563
562
|
this.getAllMeterBook(`('${this.$login.f.orgid}')`)
|
564
|
-
document.addEventListener('keydown', this.handleEnter, true);
|
565
563
|
},
|
566
564
|
methods: {
|
567
|
-
|
568
|
-
|
569
|
-
|
565
|
+
|
566
|
+
dateDiff(date1Str) {
|
567
|
+
// 确保传入的date1Str是有效的字符串格式
|
568
|
+
if (typeof date1Str !== 'string' || !/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(date1Str)) {
|
569
|
+
throw new Error('Invalid date format. Expected format: yyyy-mm-dd hh:mm:ss');
|
570
570
|
}
|
571
|
+
// 将date1Str格式化为Date对象,并提取日期部分
|
572
|
+
const date1 = new Date(date1Str);
|
573
|
+
const year = date1.getFullYear();
|
574
|
+
const month = String(date1.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
575
|
+
const day = String(date1.getDate()).padStart(2, '0');
|
576
|
+
const formattedDate1 = `${year}-${month}-${day}`;
|
577
|
+
// 获取当前日期,并同样格式化为yyyy-mm-dd
|
578
|
+
const date2 = new Date();
|
579
|
+
const currentYear = date2.getFullYear();
|
580
|
+
const currentMonth = String(date2.getMonth() + 1).padStart(2, '0');
|
581
|
+
const currentDay = String(date2.getDate()).padStart(2, '0');
|
582
|
+
const formattedDate2 = `${currentYear}-${currentMonth}-${currentDay}`;
|
583
|
+
// 将格式化后的日期字符串转换为Date对象,以便比较
|
584
|
+
const formattedDate1Obj = new Date(`${formattedDate1}T00:00:00`); // 添加时间部分以确保比较准确
|
585
|
+
const formattedDate2Obj = new Date(`${formattedDate2}T00:00:00`);
|
586
|
+
// 计算两个日期之间的差值(以毫秒为单位),然后转换为天数
|
587
|
+
const diffInMilliseconds = Math.abs(formattedDate2Obj - formattedDate1Obj);
|
588
|
+
const diffInDays = Math.ceil(diffInMilliseconds / (1000 * 60 * 60 * 24));
|
589
|
+
// 返回天数差
|
590
|
+
return diffInDays;
|
571
591
|
},
|
572
|
-
getCheckBook(){
|
573
|
-
this.checkBooks=[]
|
574
|
-
new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
575
|
-
data: {
|
576
|
-
items: 'id,f_check_book_name,f_check_book_type',
|
577
|
-
tablename: 't_check_book',
|
578
|
-
condition: `f_orgid = '${this.$login.f.orgid}'`,
|
579
|
-
orderitem: 'id desc'
|
580
|
-
}
|
581
|
-
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
582
|
-
this.checkBooks.push({label: '全部', value: ''})
|
583
|
-
res.data.forEach(ress => {
|
584
|
-
this.checkBooks.push({
|
585
|
-
label: ress.f_check_book_name,
|
586
|
-
value: ress.f_check_book_name
|
587
|
-
})
|
588
|
-
})
|
589
|
-
})
|
590
|
-
},
|
591
|
-
|
592
|
-
dateDiff(date1Str) {
|
593
|
-
// 确保传入的date1Str是有效的字符串格式
|
594
|
-
if (typeof date1Str !== 'string' || !/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(date1Str)) {
|
595
|
-
throw new Error('Invalid date format. Expected format: yyyy-mm-dd hh:mm:ss');
|
596
|
-
}
|
597
|
-
// 将date1Str格式化为Date对象,并提取日期部分
|
598
|
-
const date1 = new Date(date1Str);
|
599
|
-
const year = date1.getFullYear();
|
600
|
-
const month = String(date1.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
601
|
-
const day = String(date1.getDate()).padStart(2, '0');
|
602
|
-
const formattedDate1 = `${year}-${month}-${day}`;
|
603
|
-
// 获取当前日期,并同样格式化为yyyy-mm-dd
|
604
|
-
const date2 = new Date();
|
605
|
-
const currentYear = date2.getFullYear();
|
606
|
-
const currentMonth = String(date2.getMonth() + 1).padStart(2, '0');
|
607
|
-
const currentDay = String(date2.getDate()).padStart(2, '0');
|
608
|
-
const formattedDate2 = `${currentYear}-${currentMonth}-${currentDay}`;
|
609
|
-
// 将格式化后的日期字符串转换为Date对象,以便比较
|
610
|
-
const formattedDate1Obj = new Date(`${formattedDate1}T00:00:00`); // 添加时间部分以确保比较准确
|
611
|
-
const formattedDate2Obj = new Date(`${formattedDate2}T00:00:00`);
|
612
|
-
// 计算两个日期之间的差值(以毫秒为单位),然后转换为天数
|
613
|
-
const diffInMilliseconds = Math.abs(formattedDate2Obj - formattedDate1Obj);
|
614
|
-
const diffInDays = Math.ceil(diffInMilliseconds / (1000 * 60 * 60 * 24));
|
615
|
-
// 返回天数差
|
616
|
-
return diffInDays;
|
617
|
-
},
|
618
592
|
//查询二维码
|
619
|
-
|
593
|
+
searchInfo(val){
|
620
594
|
this.dialogVisible = true
|
621
595
|
//tag
|
622
|
-
|
596
|
+
new HttpResetClass().load('POST','api/af-safecheck/logic/QrcodeUtil', {
|
623
597
|
data: {
|
624
598
|
id:val
|
625
599
|
}
|
626
600
|
},{resolveMsg: null, rejectMsg: null}).then(res=>{
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
601
|
+
//tag
|
602
|
+
//tag
|
603
|
+
let imageer=new Image()
|
604
|
+
imageer.src="data:image/jpg;base64,"+res.data.result
|
605
|
+
document.getElementById("dd").appendChild(imageer);
|
606
|
+
//tag
|
633
607
|
})
|
634
608
|
|
635
609
|
},
|
@@ -862,7 +836,7 @@ export default {
|
|
862
836
|
changeStates() {
|
863
837
|
if (this.checkedAll) {//实现反选/
|
864
838
|
this.checkrows = [];
|
865
|
-
for (let i = 0; i <
|
839
|
+
for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
|
866
840
|
this.$set('$refs.paged.model.rows[' + i + '].checked', false)
|
867
841
|
}
|
868
842
|
} else {//实现全选
|