|
|
|
@ -425,6 +425,7 @@
|
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
:loading="loadingObj.oldListLoading" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
:tableRowClassName="handleSetRowClassName" |
|
|
|
|
> |
|
|
|
|
</tablecmt> |
|
|
|
|
|
|
|
|
@ -2126,6 +2127,25 @@ const handleSubmitProblemData = () => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 设置表格行样式 */ |
|
|
|
|
const handleSetRowClassName = (row, rowIndex) => { |
|
|
|
|
if (!row.warehouseEntryTimeStart) return 'timeOut'; |
|
|
|
|
|
|
|
|
|
// 设置预警 -- 以创建时间为基准, 24小时后为超期, 临近2小时为临期 |
|
|
|
|
|
|
|
|
|
// 当前时间 - 创建时间 |
|
|
|
|
const time = Date.now() - new Date(row.warehouseEntryTimeStart).getTime(); |
|
|
|
|
|
|
|
|
|
// 预警时间 |
|
|
|
|
const WarningTime = 1000 * 60 * 60 * (24 * 2 - 2); |
|
|
|
|
|
|
|
|
|
// 超时 |
|
|
|
|
const timeOut = 1000 * 60 * 60 * 24 * 2; |
|
|
|
|
|
|
|
|
|
if (time > timeOut) return 'timeOut'; |
|
|
|
|
else if (time > WarningTime && time < timeOut) return 'WarningTime'; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 关闭页面 */ |
|
|
|
|
const back = () => { |
|
|
|
|
$store.commit('DEL_TAG_CURRENT'); |
|
|
|
@ -2822,4 +2842,25 @@ onActivated(() => {
|
|
|
|
|
:deep(.el-form-item__content) { |
|
|
|
|
width: 250px !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 表格行样式 |
|
|
|
|
:deep(.el-table) { |
|
|
|
|
tr { |
|
|
|
|
&.WarningTime { |
|
|
|
|
color: #e6a23c !important; |
|
|
|
|
|
|
|
|
|
.el-text { |
|
|
|
|
color: #e6a23c !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.timeOut { |
|
|
|
|
color: #f56c6c !important; |
|
|
|
|
|
|
|
|
|
.el-text { |
|
|
|
|
color: #f56c6c !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|