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