safecheck-client 3.0.33-53 → 3.0.33-55
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 +1 -1
- package/src/App.vue +31 -31
- package/src/components/rongcheng/DefectPaper.vue +676 -676
- package/src/components/rongcheng/PhoneUpUserinfo.vue +15 -4
- package/src/components/rongcheng/SafecheckOrderV.vue +2524 -2524
- package/src/filiale/bayan/android/SafecheckOrderV.vue +2854 -2853
- package/src/filiale/weinan/android/PaperFeedback.vue +1410 -1410
- package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
- package/src/filiale/weinan/pc/DefectPaperNew.vue +1065 -1065
- package/src/filiale/weinan/pc.js +45 -45
- package/src/main.js +1 -1
@@ -1054,12 +1054,23 @@
|
|
1054
1054
|
//临近超期
|
1055
1055
|
|
1056
1056
|
const advent_time = (this.$appdata.getSingleValue('设备超期提醒') || 7) * 1000 * 60 * 60 * 24
|
1057
|
-
|
1058
|
-
|
1057
|
+
const nowTime = new Date().getTime()
|
1058
|
+
const adventTimeLimit = nowTime + advent_time
|
1059
|
+
const advent = this.model
|
1060
|
+
.filter(item => {
|
1061
|
+
const expireTime = new Date(item.f_expire_date).getTime()
|
1062
|
+
return expireTime >= nowTime && expireTime <= adventTimeLimit
|
1063
|
+
})
|
1064
|
+
.map(item => {
|
1065
|
+
const expireTime = new Date(item.f_expire_date).getTime()
|
1066
|
+
const daysLeft = Math.round((expireTime - nowTime) / (1000 * 60 * 60 * 24))
|
1067
|
+
return `${item.f_devices_type}设备还有${daysLeft >= 0 ? daysLeft : 0}天超期`
|
1068
|
+
})
|
1069
|
+
.join(',')
|
1059
1070
|
if (overdue && advent) {
|
1060
|
-
this.$showMessage(`${overdue}设备已过期,${advent}
|
1071
|
+
this.$showMessage(`${overdue}设备已过期,${advent}`)
|
1061
1072
|
} else if (advent) {
|
1062
|
-
this.$showMessage(`${advent}
|
1073
|
+
this.$showMessage(`${advent}`)
|
1063
1074
|
} else if (overdue) {
|
1064
1075
|
this.$showMessage(`${overdue}设备已过期`)
|
1065
1076
|
}
|