From dc1a8783473d2a93344082013ec8014af1e75731 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期二, 03 十二月 2024 15:44:41 +0800
Subject: [PATCH] 修改阿拉伯语切换

---
 north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue b/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
index 595cdeb..9caaeb7 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
@@ -104,7 +104,7 @@
         layer= res.data.layer
 
         //娣诲姞琛ョ墖鐘舵�佸垪
-        let column = {field: 'patchStatusOther', width: 90,title: res.data.title}
+        let column = {field: 'patchStatusOther', width: 90,title: t('reportingWorks.patchCondition')}
         gridOptions.columns.push(column)
 
         const s01Values = [];
@@ -355,8 +355,12 @@
             return new Error(t('reportingWorks.enterIntegerGreaterThanEqualTo'))
           }else if((row.completedQuantity*1+brokenNum*1)>row.quantity*1){
             return new Error((`${row.completedQuantity}+${brokenNum}>${row.quantity}`))
+          }else  if(row.quantity_card<row.completedQuantity){
+            return new Error(t('reportingWorks.pleaseNumber10'))
           }
-          if(titleUploadData.value.reportingWorkId!=null  && row.completedQuantity<row.minQuantity){
+          const completedNum =
+              (row.completedQuantity === undefined || row.completedQuantity===null || row.completedQuantity==='') ? 0 : row.completedQuantity
+          if(titleUploadData.value.reportingWorkId!=null  && completedNum>row.minQuantity){
             return new Error(`${t('reportingWorks.pleaseGreaterThanOrEqual1')}
             ${row.minQuantity}
             ${t('reportingWorks.pleaseGreaterThanOrEqual2')}`)
@@ -1094,7 +1098,7 @@
       //璁惧涓嬫媺妗�
       titleSelectJson.value.deviceType = res.data.device
       //鐝粍涓嬫媺妗�
-      titleSelectJson.value.teamsType = res.data.teams
+      //titleSelectJson.value.teamsType = res.data.teams
       //褰撳墠娴佺▼鍗″伐搴�
       titleSelectJson.value.thisProcessType = res.data.thisProcess
       //鍘嗗彶鐝粍
@@ -1494,7 +1498,9 @@
         <template #num1_filter="{ column, $panel }">
           <div>
             <div v-for="(option, index) in column.filters" :key="index">
-              <input v-model="option.data" type="type" @input="changeFilterEvent($event, option, $panel)"/>
+              <input v-model="option.data" type="type"
+                     @keyup.enter.native="$panel.confirmFilter()"
+                     @input="changeFilterEvent($event, option, $panel)"/>
             </div>
           </div>
         </template>

--
Gitblit v1.8.0