Compare commits

...

2 Commits

Author SHA1 Message Date
huangyuxuan 933a5e995b [问题修复](hyx_Batch-moderation):
新增相关方人员证件信息过期批量推送功能
2024-12-09 14:23:38 +08:00
huangyuxuan d70d18039f [问题修复](dev):
证件信息即将过期显示未过期没有重新推送按钮问题修复
2024-12-03 18:02:51 +08:00
1 changed files with 28 additions and 13 deletions

View File

@ -79,6 +79,7 @@
</el-table>
<div class="page-btn-group">
<div>
<el-button type="primary" icon="el-icon-plus" @click="handleAdd"></el-button>
</div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div>
@ -184,20 +185,23 @@ export default {
this.getList()
},
methods: {
getCardStatus(VALIDITY_PERIOD_END){
const nowDate = new Date()
const nextDate = new Date((new Date).getFullYear() + '-' + ((new Date).getMonth() + 3) + '-' + (new Date).getDate())
console.log('当前时间 ==>'+nowDate)
console.log('两个月后的时间 ==>'+nextDate)
console.log('证件到期日 ==>'+new Date(VALIDITY_PERIOD_END))
if (nowDate > new Date(VALIDITY_PERIOD_END)){
return 1
}else if (new Date(VALIDITY_PERIOD_END) > nowDate && new Date(VALIDITY_PERIOD_END) < nextDate){
return 2
}else {
return 0
}
getCardStatus(VALIDITY_PERIOD_END) {
const now = new Date(); //
const threeMonthsLater = new Date(now); //
threeMonthsLater.setMonth(threeMonthsLater.getMonth() + 3); //
// VALIDITY_PERIOD_ENDDate
const validityPeriodEnd = new Date(VALIDITY_PERIOD_END);
//
if (now > validityPeriodEnd) {
//
return 1;
} else if (validityPeriodEnd > now && validityPeriodEnd <= threeMonthsLater) {
//
return 2;
} else {
return 0;
}
},
filterNode(value, data) {
if (!value) return true
@ -367,6 +371,17 @@ export default {
})
}).catch(() => {})
},
handleAdd() {
const _selectData = this.$refs.multipleTable.selection
if (_selectData == null || _selectData.length === 0) {
this.$message({
message: '未勾选人员...',
type: 'error'
})
return false
}
this.$refs.sendUtil.init(_selectData)
},
//
hasButton: function() {
var keys = 'corpinfo:add,corpinfo:del,corpinfo:edit,toExcel'