do not reset event option when submitted
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<t-switch v-model="autoRegisterEnabled" />
|
||||
</template>
|
||||
<template #description>
|
||||
<div class="red">扫码匹配客户后自动提交登记,请注意已选登记事件</div>
|
||||
<div class="red">扫码匹配客户后自动提交登记,请注意已选登记事件和选项</div>
|
||||
</template>
|
||||
</t-cell>
|
||||
</t-cell-group>
|
||||
@@ -497,9 +497,11 @@ async function doSubmit(isAutoRegister = false): Promise<void> {
|
||||
for (const eventId of Object.keys(numberValueTextMap)) {
|
||||
delete numberValueTextMap[eventId];
|
||||
}
|
||||
if (!isAutoRegister) {
|
||||
for (const eventId of Object.keys(selectedOptionSelectionMap)) {
|
||||
delete selectedOptionSelectionMap[eventId];
|
||||
}
|
||||
}
|
||||
recentRecordList.value = [];
|
||||
latestDecodedText = "";
|
||||
scannerSessionKey.value += 1;
|
||||
|
||||
Reference in New Issue
Block a user