Merge branch 'qr_branch'

# Conflicts:
#	frontend/src/views/home/components/preTest.vue
#	frontend/src/views/home/components/test.vue
#	frontend/src/views/machine/device/components/devicePopup.vue
#	frontend/src/views/machine/testScript/components/testScriptFlickerTab.vue
This commit is contained in:
caozehui
2025-12-26 13:27:26 +08:00
4 changed files with 54 additions and 19 deletions

View File

@@ -322,6 +322,12 @@ watch(webMsgSend, function (newValue, oldValue) {
type: 'error', type: 'error',
}) })
TableInit(); TableInit();
} else if (newValue.code == -1) { //todo 10552之后还会发送消息吗
ElMessageBox.alert('源未知异常', '检测失败', {
confirmButtonText: '确定',
type: 'error',
})
TableInit();
} else { } else {
// ==================== 特定业务消息处理 ==================== // ==================== 特定业务消息处理 ====================

View File

@@ -358,6 +358,14 @@ watch(webMsgSend, function (newValue, oldValue) {
handleFatalError(step4, step4InitLog, '存在已经初始化步骤,执行自动关闭,请重新发起检测!') handleFatalError(step4, step4InitLog, '存在已经初始化步骤,执行自动关闭,请重新发起检测!')
} else if (newValue.code == 10520) { } else if (newValue.code == 10520) {
handleFatalError(step4, step4InitLog, '解析报文异常') handleFatalError(step4, step4InitLog, '解析报文异常')
}else if (newValue.code == -1) {
step4.value = 'error'
step4InitLog.value = [{
type: 'error',
log: '源未知异常!',
}];
ts.value = 'error'
step5.value = 'error'
} }
break; break;
case 'DATA_REQUEST$02': case 'DATA_REQUEST$02':

View File

@@ -260,7 +260,7 @@ const checkResultView: ComputedRef<CheckData.ScriptChnViewItem[]> = computed(()
temp.devices.push({ temp.devices.push({
deviceId: device.deviceId, deviceId: device.deviceId,
deviceName: device.deviceName, deviceName: device.deviceName,
chnResult: tempChnBtnResult, chnResult: tempChnBtnResult
}) })
}) })
return temp return temp
@@ -401,6 +401,16 @@ watch(webMsgSend, function(newValue, oldValue) {
log: `${new Date().toLocaleString()}:存在已经初始化步骤,执行自动关闭,请重新发起检测!`, log: `${new Date().toLocaleString()}:存在已经初始化步骤,执行自动关闭,请重新发起检测!`,
}) })
emit('update:testStatus', 'test_init_fail') emit('update:testStatus', 'test_init_fail')
} else if (newValue.code == -1) {
ElMessageBox.alert('源未知异常!', '检测失败!', {
confirmButtonText: '确定',
type: 'error',
})
testLogList.push({
type: 'error',
log: `${new Date().toLocaleString()}:源未知异常!`
})
emit('update:testStatus', 'error')
} else { } else {
// ========== 根据请求ID处理不同类型的消息 ========== // ========== 根据请求ID处理不同类型的消息 ==========
switch (newValue.requestId) { switch (newValue.requestId) {

View File

@@ -649,6 +649,17 @@ const updateDeviceByType = (devTypeId: string) => {
value: String(i + 1), value: String(i + 1),
label: String(i + 1) label: String(i + 1)
})) }))
if(scene.value === '1'){
if (dev.name.includes('NPQS-581') || dev.name.includes('NPQS-580') || dev.name.includes('PQ-COM')) {
formContent.value.encryptionFlag = 1
formContent.value.series = 'Pqs&cn870299'
formContent.value.devKey = '!qaz@wsx3edc4rfv'
} else {
formContent.value.encryptionFlag = 0
formContent.value.series = null
formContent.value.devKey = null
}
}
} else { } else {
// 默认值处理 // 默认值处理
formContent.devChns = 1 formContent.devChns = 1