|
@@ -23,24 +23,12 @@
|
|
<a-form-item label="更改卷型">
|
|
<a-form-item label="更改卷型">
|
|
<ul class="type-list">
|
|
<ul class="type-list">
|
|
<li
|
|
<li
|
|
- :class="['type-item', { 'is-active': paperType === '#' }]"
|
|
|
|
- @click="selectPaperType('#')"
|
|
|
|
- >
|
|
|
|
- 空
|
|
|
|
- </li>
|
|
|
|
- <li
|
|
|
|
- v-for="item in paperTypeBarcodeContent"
|
|
|
|
|
|
+ v-for="item in typeOptions"
|
|
:key="item"
|
|
:key="item"
|
|
:class="['type-item', { 'is-active': paperType === item }]"
|
|
:class="['type-item', { 'is-active': paperType === item }]"
|
|
@click="selectPaperType(item)"
|
|
@click="selectPaperType(item)"
|
|
>
|
|
>
|
|
- {{ item }}
|
|
|
|
- </li>
|
|
|
|
- <li
|
|
|
|
- :class="['type-item', { 'is-active': paperType === '?' }]"
|
|
|
|
- @click="selectPaperType('?')"
|
|
|
|
- >
|
|
|
|
- 异常
|
|
|
|
|
|
+ {{ recogResultTransform(item) }}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -55,6 +43,7 @@ import { message } from "ant-design-vue";
|
|
import { getBaseDataConfig } from "@/ap/baseDataConfig";
|
|
import { getBaseDataConfig } from "@/ap/baseDataConfig";
|
|
import { useUserStore, useDataCheckStore } from "@/store";
|
|
import { useUserStore, useDataCheckStore } from "@/store";
|
|
import useModal from "@/hooks/useModal";
|
|
import useModal from "@/hooks/useModal";
|
|
|
|
+import { recogResultTransform } from "@/utils/tool";
|
|
|
|
|
|
defineOptions({
|
|
defineOptions({
|
|
name: "ModifyPaperType",
|
|
name: "ModifyPaperType",
|
|
@@ -78,9 +67,11 @@ const userStore = useUserStore();
|
|
const paperType = ref("");
|
|
const paperType = ref("");
|
|
|
|
|
|
const areaResultDisplay = computed(() => {
|
|
const areaResultDisplay = computed(() => {
|
|
- if (props.areaResult === "#") return "空";
|
|
|
|
- if (props.areaResult === "?") return "异常";
|
|
|
|
- return props.areaResult;
|
|
|
|
|
|
+ return recogResultTransform(props.areaResult);
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+const typeOptions = computed(() => {
|
|
|
|
+ return ["#", ...paperTypeBarcodeContent.value, "?"];
|
|
});
|
|
});
|
|
|
|
|
|
async function getConfig() {
|
|
async function getConfig() {
|