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.
- package/package.json +132 -132
- package/src/components/NewDefectList/DefectListNew.vue +11 -11
- package/src/components/NewDefectList/DefectPaperNew.vue +44 -44
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +280 -280
- package/src/components/paper/PaperList.vue +342 -342
- package/src/components/planmanage/PlanManage.vue +819 -819
- package/src/components/planmanage/checkUserList.vue +346 -346
- package/src/components/querycheckpaper/CheckSearchUser.vue +68 -68
- package/src/components/report/CheckPlanAreaList.vue +266 -266
- package/src/filiale/jinhong/android/CurrentCreate.vue +1192 -0
- package/src/filiale/jinhong/android.js +2 -1
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -0
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -0
- package/src/filiale/jinhong/pc/DefectListNew.vue +663 -0
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -0
- package/src/filiale/jinhong/pc/PaperList.vue +823 -0
- package/src/filiale/jinhong/pc/PlanManage.vue +891 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +776 -0
- package/src/filiale/jinhong/pc.js +11 -0
- package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -293
- package/src/filiale/meihekou/android.js +20 -20
- package/src/main.js +1 -1
@@ -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,17 +132,17 @@
|
|
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>
|
@@ -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>
|
@@ -563,47 +563,47 @@ export default {
|
|
563
563
|
},
|
564
564
|
methods: {
|
565
565
|
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
},
|
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
|
+
}
|
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;
|
591
|
+
},
|
592
592
|
//查询二维码
|
593
|
-
|
593
|
+
searchInfo(val){
|
594
594
|
this.dialogVisible = true
|
595
595
|
//tag
|
596
|
-
|
596
|
+
new HttpResetClass().load('POST','api/af-safecheck/logic/QrcodeUtil', {
|
597
597
|
data: {
|
598
598
|
id:val
|
599
599
|
}
|
600
600
|
},{resolveMsg: null, rejectMsg: null}).then(res=>{
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
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
|
607
607
|
})
|
608
608
|
|
609
609
|
},
|