问题修改
This commit is contained in:
parent
9b92456f94
commit
6bc04eee49
@ -27,7 +27,7 @@
|
|||||||
#define JUDGE_VERSION_MAJOR 1
|
#define JUDGE_VERSION_MAJOR 1
|
||||||
#define JUDGE_VERSION_MINOR 0
|
#define JUDGE_VERSION_MINOR 0
|
||||||
#define JUDGE_VERSION_PATCH 3
|
#define JUDGE_VERSION_PATCH 3
|
||||||
#define JUDGE_VERSION_STAMP "2504241045b"
|
#define JUDGE_VERSION_STAMP "2504251140b"
|
||||||
#if JUDGE_USE_OLD
|
#if JUDGE_USE_OLD
|
||||||
# undef JUDGE_VERSION_STAMP
|
# undef JUDGE_VERSION_STAMP
|
||||||
# define JUDGE_VERSION_STAMP "2411121010b.old"
|
# define JUDGE_VERSION_STAMP "2411121010b.old"
|
||||||
|
|||||||
@ -656,7 +656,7 @@ bool ExamCarSub3::Init_KM3_Global()
|
|||||||
//examItem->TestPro = ItemProFlagIdle;
|
//examItem->TestPro = ItemProFlagIdle;
|
||||||
//examItem->FinishFlag = true;
|
//examItem->FinishFlag = true;
|
||||||
examItem->NoID = true;
|
examItem->NoID = true;
|
||||||
KM3EndItem(itemNo,false,false);
|
KM3EndItem(itemNo,isReplay(),false); //轨迹回放工具回放模式要发时间,不然项目不好变绿
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1270,7 +1270,6 @@ void ExamCarSub3::Deal_KM3_Judge()
|
|||||||
|
|
||||||
m_curItem = nullptr;
|
m_curItem = nullptr;
|
||||||
|
|
||||||
dealItemNoIDEnd14Jjdw(); //必须放这里
|
|
||||||
dealItemNoIDEndItem(); //必须放这里
|
dealItemNoIDEndItem(); //必须放这里
|
||||||
//执行具体的专项评判
|
//执行具体的专项评判
|
||||||
std::string msg;
|
std::string msg;
|
||||||
@ -3883,24 +3882,24 @@ bool ExamCarSub3::KM3AllPass()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto it = m_sub3Items.begin(); it != m_sub3Items.end(); it++)
|
//for(auto it = m_sub3Items.begin(); it != m_sub3Items.end(); it++)
|
||||||
{
|
//{
|
||||||
const TKM3Item* item = it->second->getExamItem();
|
// const TKM3Item* item = it->second->getExamItem();
|
||||||
//必考项目未完成
|
// //必考项目未完成
|
||||||
if(item->NoID == false && (item->Item_Color == itemStateWk || item->Item_Color == itemStateZk))
|
// if(item->NoID == false && (item->Item_Color == itemStateWk || item->Item_Color == itemStateZk))
|
||||||
{
|
// {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
//科目三项目结束,免考项目处理
|
// //科目三项目结束,免考项目处理
|
||||||
//重要流程
|
// //重要流程
|
||||||
if(item->NoID == true) //20240731
|
// if(item->NoID == true) //20240731
|
||||||
{
|
// {
|
||||||
if(item->FinishFlag == false)
|
// if(item->FinishFlag == false)
|
||||||
{
|
// {
|
||||||
KM3EndItem(item->ItemNo);
|
// KM3EndItem(item->ItemNo);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -5011,24 +5010,6 @@ void ExamCarSub3::dealOffset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ExamCarSub3::dealItemNoIDEndItem()
|
void ExamCarSub3::dealItemNoIDEndItem()
|
||||||
{
|
|
||||||
if(isMileage())
|
|
||||||
{
|
|
||||||
for(auto it = m_sub3Items.begin(); it != m_sub3Items.end(); it++)
|
|
||||||
{
|
|
||||||
TKM3Item* item = it->second->getExamItem();
|
|
||||||
if(item->NoID == true && item->ItemNo != Sub3ItemType14Jjdw) //20240731
|
|
||||||
{
|
|
||||||
if(item->FinishFlag == false)
|
|
||||||
{
|
|
||||||
KM3EndItem(item->ItemNo);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExamCarSub3::dealItemNoIDEnd14Jjdw()
|
|
||||||
{
|
{
|
||||||
TKM3Item* item14 = findExamItem(Sub3ItemType14Jjdw); //20240731
|
TKM3Item* item14 = findExamItem(Sub3ItemType14Jjdw); //20240731
|
||||||
if(item14 && item14->NoID == true) //免考加减挡的 即:全程加减档
|
if(item14 && item14->NoID == true) //免考加减挡的 即:全程加减档
|
||||||
@ -5048,7 +5029,7 @@ void ExamCarSub3::dealItemNoIDEnd14Jjdw()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
TKM3Item* item = findExamItem(Sub3ItemType11Kbtc);
|
TKM3Item* item = findExamItem(Sub3ItemType11Kbtc);
|
||||||
if(item && item->TestPro == ItemProFlagInit)
|
if(item && item->TestPro >= ItemProFlagInit)
|
||||||
{
|
{
|
||||||
//ToDo1:生成 全程加减挡 进项目事件
|
//ToDo1:生成 全程加减挡 进项目事件
|
||||||
//createEventEnterItem({item14->ItemNo, ""});
|
//createEventEnterItem({item14->ItemNo, ""});
|
||||||
@ -5057,6 +5038,34 @@ void ExamCarSub3::dealItemNoIDEnd14Jjdw()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isMileage())
|
||||||
|
{
|
||||||
|
for(auto it = m_sub3Items.begin(); it != m_sub3Items.end(); it++)
|
||||||
|
{
|
||||||
|
TKM3Item* item = it->second->getExamItem();
|
||||||
|
if(item->NoID == true)
|
||||||
|
{
|
||||||
|
if(item->ItemNo == Sub3ItemType13Yjxs)
|
||||||
|
{
|
||||||
|
if(item->FinishFlag == false)
|
||||||
|
{
|
||||||
|
KM3EndItem(item->ItemNo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(item->ItemNo == Sub3ItemType14Jjdw) //加减档单独处理
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else //20240731
|
||||||
|
{
|
||||||
|
if(item->Item_Color == itemStateWk) //&& item->FinishFlag == false
|
||||||
|
{
|
||||||
|
KM3EndItem(item->ItemNo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ExamCarSub3::calcToLaneArc(const TModelLine& Lxx, const TModelPolygon& poly, const Pointi& b1, const Pointi& pt, int& dm, bool cross)
|
bool ExamCarSub3::calcToLaneArc(const TModelLine& Lxx, const TModelPolygon& poly, const Pointi& b1, const Pointi& pt, int& dm, bool cross)
|
||||||
|
|||||||
@ -77,7 +77,6 @@ protected:
|
|||||||
void dealOffset(); //行驶距离补偿
|
void dealOffset(); //行驶距离补偿
|
||||||
|
|
||||||
void dealItemNoIDEndItem();
|
void dealItemNoIDEndItem();
|
||||||
void dealItemNoIDEnd14Jjdw();
|
|
||||||
|
|
||||||
bool calcToLaneArc(const TModelLine& Lxx, const TModelPolygon& poly, const Pointi& b1, const Pointi& pt, int& dm, bool cross=false);
|
bool calcToLaneArc(const TModelLine& Lxx, const TModelPolygon& poly, const Pointi& b1, const Pointi& pt, int& dm, bool cross=false);
|
||||||
bool calcToLaneArc2(const TModelLine& Lxx, const TModelPolygon& area, const Pointi& b1, const Pointi& pt, int& dm, bool cross=false);
|
bool calcToLaneArc2(const TModelLine& Lxx, const TModelPolygon& area, const Pointi& b1, const Pointi& pt, int& dm, bool cross=false);
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
#define KIT_VERSION_MAJOR 1
|
#define KIT_VERSION_MAJOR 1
|
||||||
#define KIT_VERSION_MINOR 0
|
#define KIT_VERSION_MINOR 0
|
||||||
#define KIT_VERSION_PATCH 2
|
#define KIT_VERSION_PATCH 2
|
||||||
#define KIT_VERSION_STAMP "2504241048b"
|
#define KIT_VERSION_STAMP "2504251142b"
|
||||||
|
|
||||||
#define KIT_VERSION_STR JUDGE_STR(KIT_VERSION_MAJOR.KIT_VERSION_MINOR.KIT_VERSION_PATCH)
|
#define KIT_VERSION_STR JUDGE_STR(KIT_VERSION_MAJOR.KIT_VERSION_MINOR.KIT_VERSION_PATCH)
|
||||||
|
|
||||||
|
|||||||
@ -101,18 +101,20 @@ void ShowBeginExam::updateBeginExam(const QString& info)
|
|||||||
examEvent->updateExamEvent(text, KIT_RGB_GREEN);
|
examEvent->updateExamEvent(text, KIT_RGB_GREEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(value.ddxk)
|
|
||||||
{
|
|
||||||
for(size_t i = 0; i < value.kfxm.size(); i++)
|
for(size_t i = 0; i < value.kfxm.size(); i++)
|
||||||
{
|
{
|
||||||
const TKfXm& kfxm = value.kfxm[i];
|
const TKfXm& kfxm = value.kfxm[i];
|
||||||
updateItemProperty(kfxm.xmdm, KIT_RGB_RED);
|
updateItemProperty(kfxm.xmdm, KIT_RGB_RED);
|
||||||
|
|
||||||
QString time = kit::toEasyTime(value.kskssj);
|
QString time = kit::toEasyTime(value.kskssj);
|
||||||
QString event = time + CL8("[断点续考扣分]");
|
QString event = time + CL8("[开始考试带的下发扣分]");
|
||||||
examEvent->updateExamEvent(event + getMarkItemText(findMarkItemText(kfxm)), KIT_RGB_RED);
|
examEvent->updateExamEvent(event + getMarkItemText(findMarkItemText(kfxm)), KIT_RGB_RED);
|
||||||
m_replay->replayItemMarkPush(kfxm.xmdm, kfxm); //???通用项目扣分怎么知道是哪个项目扣分的?
|
m_replay->replayItemMarkPush(kfxm.xmdm, kfxm); //???通用项目扣分怎么知道是哪个项目扣分的?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(value.ddxk)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -363,6 +363,15 @@ export async function setJudgeUdp() {
|
|||||||
})
|
})
|
||||||
console.info('surenjun', `考车发送确定扣分指令,指令为:${directives}`)
|
console.info('surenjun', `考车发送确定扣分指令,指令为:${directives}`)
|
||||||
},
|
},
|
||||||
|
//申请语音对讲
|
||||||
|
askVoice() {
|
||||||
|
globalThis.udpClient2.sendMsgExt({
|
||||||
|
id: 49,
|
||||||
|
list: [],
|
||||||
|
carNo: globalThis.carInfo.carNo,
|
||||||
|
placeId: globalThis.carInfo.examinationRoomId,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -462,6 +462,7 @@ struct Index {
|
|||||||
const examItems: string = currentParams?.examItems?.[1] || "";
|
const examItems: string = currentParams?.examItems?.[1] || "";
|
||||||
const nightScoreArr = examItems?.split(",").filter(item => item) || []
|
const nightScoreArr = examItems?.split(",").filter(item => item) || []
|
||||||
const ddxkKfArr = kfItems.split(";")?.[3]?.split('^').filter(item => item) || []
|
const ddxkKfArr = kfItems.split(";")?.[3]?.split('^').filter(item => item) || []
|
||||||
|
console.log("lixiao, goDdxkItems", JSON.stringify(nightScoreArr), JSON.stringify(ddxkKfArr))
|
||||||
nightScoreArr.forEach((kf, index) => {
|
nightScoreArr.forEach((kf, index) => {
|
||||||
this.isYkkf = true
|
this.isYkkf = true
|
||||||
let xmdm = '';
|
let xmdm = '';
|
||||||
@ -1121,6 +1122,7 @@ struct Index {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const projectType = this.projectsObj[projectCode].type;
|
const projectType = this.projectsObj[projectCode].type;
|
||||||
|
const ykType = this.projectsObj[projectCode].ykType
|
||||||
|
|
||||||
//不允许人工触发的项目列表,以","分隔
|
//不允许人工触发的项目列表,以","分隔
|
||||||
const unExitManualProjects = this.judgeConfigObj['332'].split(',') || [];
|
const unExitManualProjects = this.judgeConfigObj['332'].split(',') || [];
|
||||||
@ -1172,9 +1174,13 @@ struct Index {
|
|||||||
return index === 0 ? true : false
|
return index === 0 ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
//项目已经做过,后续不能人工触发
|
//只做一次的项目已经做过,后续不能人工触发
|
||||||
if (param307.includes(projectCode) && (projectType == '3' || projectType == '4')) {
|
if (param307.includes(projectCode)) {
|
||||||
return false
|
if (this.mode === 2) {
|
||||||
|
return !(ykType == '3' || ykType == '4' || projectType == '3' || projectType == '4')
|
||||||
|
} else {
|
||||||
|
return !(projectType == '3' || projectType == '4')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//319不为0,或者387不为1,里程不够时,靠边停车项目不能触发
|
//319不为0,或者387不为1,里程不够时,靠边停车项目不能触发
|
||||||
|
|||||||
@ -903,6 +903,9 @@ export default class Judge {
|
|||||||
//扣分类型
|
//扣分类型
|
||||||
type: kf.type
|
type: kf.type
|
||||||
})
|
})
|
||||||
|
console.log("lixiao koufen", JSON.stringify(thisKf));
|
||||||
|
console.log("lixiao koufen", JSON.stringify(judgeUI.projectsObj[kf.xmdm]));
|
||||||
|
|
||||||
this.judgeUI.totalScore += thisKf.score * 1;
|
this.judgeUI.totalScore += thisKf.score * 1;
|
||||||
if (kf.xmdm != 20) {
|
if (kf.xmdm != 20) {
|
||||||
const type = judgeUI.projectsObj[kf.xmdm].type;
|
const type = judgeUI.projectsObj[kf.xmdm].type;
|
||||||
@ -1363,7 +1366,7 @@ export default class Judge {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (examSubject == 3) {
|
if (examSubject == 3) {
|
||||||
console.log(judgeTag, "exam end",isAllProjectsEnd);
|
console.log(judgeTag, "exam end", isAllProjectsEnd);
|
||||||
if (isAllProjectsEnd) {
|
if (isAllProjectsEnd) {
|
||||||
if (totalScore < passingScore) {
|
if (totalScore < passingScore) {
|
||||||
voiceURL = `voice/${kssycs == 1 ? 'exam_no_pass_finish' : 'exam_no_pass'}.mp3`
|
voiceURL = `voice/${kssycs == 1 ? 'exam_no_pass_finish' : 'exam_no_pass'}.mp3`
|
||||||
|
|||||||
BIN
entry/src/main/resources/rawfile/voice/end_tip.mp3
Normal file
BIN
entry/src/main/resources/rawfile/voice/end_tip.mp3
Normal file
Binary file not shown.
BIN
entry/src/main/resources/rawfile/voice/zhpp.mp3
Normal file
BIN
entry/src/main/resources/rawfile/voice/zhpp.mp3
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user