|
@@ -50,12 +50,21 @@ export function useTableStyle(tableName?: string) {
|
|
classes.push('cell-warning')
|
|
classes.push('cell-warning')
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- (['resure', 'resureTime'] as any[]).includes(column.property) &&
|
|
|
|
- (cellData ?? '') !== '' &&
|
|
|
|
- row['resure'] !== row['stowage'] &&
|
|
|
|
|
|
+ (['resure', 'resureTime'] as CommonValue[]).includes(column.property) &&
|
|
(row['planeDownTime'] ?? '') !== ''
|
|
(row['planeDownTime'] ?? '') !== ''
|
|
) {
|
|
) {
|
|
- classes.push('cell-warning')
|
|
|
|
|
|
+ const { stowage, resure } = row
|
|
|
|
+ let stowageNum = 0,
|
|
|
|
+ resureNum = 0
|
|
|
|
+ if (typeof stowage === 'string') {
|
|
|
|
+ stowageNum = Number(stowage.split('/')[0]) || 0
|
|
|
|
+ }
|
|
|
|
+ if (typeof resure === 'string') {
|
|
|
|
+ resureNum = Number(resure.split('/')[0]) || 0
|
|
|
|
+ }
|
|
|
|
+ if (stowageNum !== resureNum) {
|
|
|
|
+ classes.push('cell-warning')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (column.property === 'loadPlaneTime') {
|
|
if (column.property === 'loadPlaneTime') {
|
|
if (row['warningState'] === 'alarm') {
|
|
if (row['warningState'] === 'alarm') {
|
|
@@ -71,15 +80,15 @@ export function useTableStyle(tableName?: string) {
|
|
securityNum = 0
|
|
securityNum = 0
|
|
if (tableName.includes('International')) {
|
|
if (tableName.includes('International')) {
|
|
if (typeof receiveSure1 === 'string') {
|
|
if (typeof receiveSure1 === 'string') {
|
|
- receiveNum = Number(receiveSure1.split('/')[1]) || 0
|
|
|
|
|
|
+ receiveNum = Number(receiveSure1.split('/')[0]) || 0
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (typeof receiveSure === 'string') {
|
|
if (typeof receiveSure === 'string') {
|
|
- receiveNum = Number(receiveSure.split('/')[1]) || 0
|
|
|
|
|
|
+ receiveNum = Number(receiveSure.split('/')[0]) || 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (typeof securityYes === 'string') {
|
|
if (typeof securityYes === 'string') {
|
|
- securityNum = Number(securityYes.split('/')[1]) || 0
|
|
|
|
|
|
+ securityNum = Number(securityYes.split('/')[0]) || 0
|
|
}
|
|
}
|
|
if (receiveNum !== securityNum) {
|
|
if (receiveNum !== securityNum) {
|
|
classes.push('cell-warning')
|
|
classes.push('cell-warning')
|