刘洋 8 months ago
parent
commit
52d6b052a8

+ 4 - 1
src/render/views/BaseDataConfig/ScanParams.vue

@@ -11,11 +11,13 @@
         <template #label1></template>
         <template #label1></template>
         <template #paperTypeBarcodeContentItem>
         <template #paperTypeBarcodeContentItem>
           <div class="flex items-center">
           <div class="flex items-center">
-            <a-input
+            <a-input-number
               style="width: 200px"
               style="width: 200px"
               v-model:value="params.paperTypeBarcodeContentItem"
               v-model:value="params.paperTypeBarcodeContentItem"
               allow-clear
               allow-clear
               :disabled="!canEdit"
               :disabled="!canEdit"
+              :min="0"
+              :controls="false"
             />
             />
             <qm-button
             <qm-button
               class="m-l-8px"
               class="m-l-8px"
@@ -210,6 +212,7 @@ const fields = computed(() => {
 const addTag = () => {
 const addTag = () => {
   params.paperTypeBarcodeContent.push(params.paperTypeBarcodeContentItem);
   params.paperTypeBarcodeContent.push(params.paperTypeBarcodeContentItem);
   params.paperTypeBarcodeContentItem = "";
   params.paperTypeBarcodeContentItem = "";
+  form.value.formRef.clearValidate(["paperTypeBarcodeContentItem"]);
 };
 };
 const delTag = (index: number) => {
 const delTag = (index: number) => {
   params.paperTypeBarcodeContent.splice(index, 1);
   params.paperTypeBarcodeContent.splice(index, 1);

+ 8 - 1
src/render/views/ImageCheck/index.vue

@@ -8,12 +8,15 @@
       :loading="loading"
       :loading="loading"
       bordered
       bordered
     >
     >
-      <template #bodyCell="{ column, index }">
+      <template #bodyCell="{ column, index, record }">
         <template v-if="column.dataIndex === 'operation'">
         <template v-if="column.dataIndex === 'operation'">
           <qm-button type="link" @click="onViewFailed(index)"
           <qm-button type="link" @click="onViewFailed(index)"
             >查看异常</qm-button
             >查看异常</qm-button
           >
           >
         </template>
         </template>
+        <template v-if="column.dataIndex === 'imageCheckProgress'">
+          {{ record[column.dataIndex] }}%</template
+        >
       </template>
       </template>
     </a-table>
     </a-table>
   </div>
   </div>
@@ -49,6 +52,10 @@ const columns: TableProps["columns"] = [
     title: "科目名称",
     title: "科目名称",
     dataIndex: "subjectName",
     dataIndex: "subjectName",
   },
   },
+  {
+    title: "检查进度",
+    dataIndex: "imageCheckProgress",
+  },
   {
   {
     title: "异常数量",
     title: "异常数量",
     dataIndex: "failedCount",
     dataIndex: "failedCount",