|
@ -361,6 +361,7 @@ |
|
|
> |
|
|
> |
|
|
<Nuclear /> |
|
|
<Nuclear /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<t-loading :loading="loading" text="核查中..." fullscreen size="large" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -396,6 +397,7 @@ const taskStore = useTaskStore() |
|
|
const imageStore = useImageStore() |
|
|
const imageStore = useImageStore() |
|
|
const checkStore = useCheckStore() |
|
|
const checkStore = useCheckStore() |
|
|
const cameraStore = useCameraStore() |
|
|
const cameraStore = useCameraStore() |
|
|
|
|
|
const loading = ref(false) |
|
|
|
|
|
|
|
|
const hasTestedLength = ref(0) |
|
|
const hasTestedLength = ref(0) |
|
|
const testArrLength = ref(121) |
|
|
const testArrLength = ref(121) |
|
@ -569,6 +571,7 @@ const check = async () => { |
|
|
if (!checked.value) { |
|
|
if (!checked.value) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
loading.value = true |
|
|
// 检查当前坐标点的结果是否正确 |
|
|
// 检查当前坐标点的结果是否正确 |
|
|
// 获取到结果后,传到后端保存 |
|
|
// 获取到结果后,传到后端保存 |
|
|
// 通过ws发送检查 |
|
|
// 通过ws发送检查 |
|
@ -580,6 +583,7 @@ const check = async () => { |
|
|
if (isCameraOpen.value) { |
|
|
if (isCameraOpen.value) { |
|
|
websocketsend(getCharacterRecognitionResult) |
|
|
websocketsend(getCharacterRecognitionResult) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
loading.value = false |
|
|
MessagePlugin('error', { content: '请确保相机处于开机状态' }) |
|
|
MessagePlugin('error', { content: '请确保相机处于开机状态' }) |
|
|
} |
|
|
} |
|
|
}, 1000) |
|
|
}, 1000) |
|
@ -650,6 +654,11 @@ const websocketonmessage = async e => { |
|
|
const { result: result_serial, srcImagePath } = result |
|
|
const { result: result_serial, srcImagePath } = result |
|
|
const arr = srcImagePath?.split('//') |
|
|
const arr = srcImagePath?.split('//') |
|
|
const result_img = arr[0] + '/' + arr[1] |
|
|
const result_img = arr[0] + '/' + arr[1] |
|
|
|
|
|
if (checkNumber == '') { |
|
|
|
|
|
loading.value = false |
|
|
|
|
|
MessagePlugin('error', '请选择核查坐标') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
const res = await saveCheckResult( |
|
|
const res = await saveCheckResult( |
|
|
checkNumber, |
|
|
checkNumber, |
|
|
currentTaskId, |
|
|
currentTaskId, |
|
@ -659,7 +668,31 @@ const websocketonmessage = async e => { |
|
|
if (res?.code == 200) { |
|
|
if (res?.code == 200) { |
|
|
// 核查成功后请求新数据 |
|
|
// 核查成功后请求新数据 |
|
|
// 更新exceldata |
|
|
// 更新exceldata |
|
|
|
|
|
loading.value = false |
|
|
taskStore.getExcelList(taskStore.currentTaskId) |
|
|
taskStore.getExcelList(taskStore.currentTaskId) |
|
|
|
|
|
// 将左侧摄像机展现为当前检测的结果 |
|
|
|
|
|
const arr = taskStore.excelData.filter( |
|
|
|
|
|
item => item.serialNumber == checkNumber, |
|
|
|
|
|
) |
|
|
|
|
|
const item = arr[0] |
|
|
|
|
|
console.log(item) |
|
|
|
|
|
if (item.firstSign == '' && item.secondSign == '') { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (checkStore.manualCheck) { |
|
|
|
|
|
if (arr?.length > 0) { |
|
|
|
|
|
checkStore.updateCheckNumber(item.serialNumber) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 只有正确或者错误的才可以点击出详情 |
|
|
|
|
|
if (arr?.length > 0) { |
|
|
|
|
|
// 将item存入store中 |
|
|
|
|
|
imageStore.updateShowImage(true) |
|
|
|
|
|
const arr1 = taskStore.excelData.filter( |
|
|
|
|
|
item => item.serialNumber == checkNumber, |
|
|
|
|
|
) |
|
|
|
|
|
imageStore.updateCoreInfo(arr1[0]) |
|
|
|
|
|
} |
|
|
MessagePlugin('success', { content: '核查完毕' }) |
|
|
MessagePlugin('success', { content: '核查完毕' }) |
|
|
// 自动跳转下一个 |
|
|
// 自动跳转下一个 |
|
|
// nextBtn() |
|
|
// nextBtn() |
|
@ -678,6 +711,7 @@ const websocketonmessage = async e => { |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
loading.value = false |
|
|
MessagePlugin('error', { content: 'ws发送指令执行错误' }) |
|
|
MessagePlugin('error', { content: 'ws发送指令执行错误' }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|