|
@ -21,19 +21,23 @@ const checkStore = useCheckStore() |
|
|
|
|
|
|
|
|
const showCoreDetail = index => { |
|
|
const showCoreDetail = index => { |
|
|
const arr = taskStore.excelData.filter(item => item.num == index) |
|
|
const arr = taskStore.excelData.filter(item => item.num == index) |
|
|
|
|
|
const item = arr[0] |
|
|
|
|
|
if (item.firstSign == '' && item.secondSign == '') { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (checkStore.manualCheck) { |
|
|
if (checkStore.manualCheck) { |
|
|
if (arr?.length > 0) { |
|
|
if (arr?.length > 0) { |
|
|
const item = arr[0] |
|
|
|
|
|
checkStore.updateCheckNumber(item.serialNumber) |
|
|
checkStore.updateCheckNumber(item.serialNumber) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 只有正确或者错误的才可以点击出详情 |
|
|
// 只有正确或者错误的才可以点击出详情 |
|
|
if (arr?.length > 0) { |
|
|
if (arr?.length > 0) { |
|
|
const item = arr[0] |
|
|
|
|
|
if ([1, 2].includes(item.result)) { |
|
|
if ([1, 2].includes(item.result)) { |
|
|
// 将item存入store中 |
|
|
// 将item存入store中 |
|
|
imageStore.updateShowImage(true) |
|
|
imageStore.updateShowImage(true) |
|
|
imageStore.updateCoreInfo(item) |
|
|
imageStore.updateCoreInfo(item) |
|
|
|
|
|
} else { |
|
|
|
|
|
imageStore.updateShowImage(false) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -43,17 +47,19 @@ const getClass = index => { |
|
|
const arr = taskStore.excelData.filter(item => item.num == index) |
|
|
const arr = taskStore.excelData.filter(item => item.num == index) |
|
|
if (arr?.length > 0) { |
|
|
if (arr?.length > 0) { |
|
|
const item = arr[0] |
|
|
const item = arr[0] |
|
|
|
|
|
if (checkStore.manualCheck && checkStore.checkNumber == item.serialNumber) { |
|
|
|
|
|
return 'box process' |
|
|
|
|
|
} |
|
|
if (item.result == 1) { |
|
|
if (item.result == 1) { |
|
|
// 检测正确 |
|
|
// 检测正确 |
|
|
return 'box success' |
|
|
return 'box success' |
|
|
} else if (item.result == 2) { |
|
|
|
|
|
// 检测错误 |
|
|
|
|
|
return 'box fail' |
|
|
|
|
|
} else if ( |
|
|
} else if ( |
|
|
checkStore.manualCheck && |
|
|
|
|
|
checkStore.checkNumber == item.serialNumber |
|
|
|
|
|
|
|
|
item.result == 2 && |
|
|
|
|
|
item.firstSign != '' && |
|
|
|
|
|
item.secondSign != '' |
|
|
) { |
|
|
) { |
|
|
return 'box process' |
|
|
|
|
|
|
|
|
// 检测错误 |
|
|
|
|
|
return 'box fail' |
|
|
} else if ( |
|
|
} else if ( |
|
|
taskStore.currentCoord == item.serialNumber && |
|
|
taskStore.currentCoord == item.serialNumber && |
|
|
taskStore.taskStatus == 1 |
|
|
taskStore.taskStatus == 1 |
|
|