From d2d14953b725592b4d90e5c39d3449dab918bc53 Mon Sep 17 00:00:00 2001
From: TengXF <302828528@qq.com>
Date: Thu, 16 May 2024 14:15:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=B4=A8=E6=A3=80=EF=BC=8C?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BF=85=E5=A1=AB=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/qualifiedCheck.vue | 37 ++++++++++++-------
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/src/views/mes/workScheduling/components/qualifiedCheck.vue b/src/views/mes/workScheduling/components/qualifiedCheck.vue
index bf2d7733e..0ce7768bf 100644
--- a/src/views/mes/workScheduling/components/qualifiedCheck.vue
+++ b/src/views/mes/workScheduling/components/qualifiedCheck.vue
@@ -11,28 +11,28 @@
-
-
+
+
-
-
+
+
-
+
-
+
-
+
关闭
保存
@@ -75,7 +75,7 @@ const openDetail = async (row: any, titleName: any,code:string) => {
form.id=row.id
planDayCode.value=code
getCurrentWorkerList(row.nodeCode)
-
+
}
//获取工序人员
@@ -86,7 +86,7 @@ const getCurrentWorkerList = async (val) => {
processCode: val
}
personOption.value = await workschedulingApi.getCurrentWorkerList(params)
-
+
}
const qcount=ref(0)
//数量处理
@@ -97,8 +97,8 @@ const handleCount = () => {
form.qualified =rowData.value.planCount - form.unqualified
return
- }
-
+ }
+
if (form.unqualified> rowData.value.planCount -form.qualified ) {
message.alert('不合格数量超限!')
form.unqualified =rowData.value.planCount-form.qualified
@@ -107,7 +107,18 @@ const handleCount = () => {
}
//提交质检
const saveReport = async() => {
-
+ if(form.personSelected.length<1){
+ message.alert('生产人员不能为空')
+ return
+ }
+ if(form.checkPerson==''||form.checkPerson.trim()==''){
+ message.alert('质检人员不能为空')
+ return
+ }
+ if(form.qualified<1){
+ message.alert('合格数量不能小于1!')
+ return
+ }
saveFlag.value = true
try {
await workschedulingApi.processQualified(form)
@@ -118,7 +129,7 @@ const saveReport = async() => {
}
//console.log("report-saveReport-82",data)
//await workschedulingApi.reportWorkByProcess(data)
-
+
}
// 传递给父类
const emit = defineEmits(['success', 'close'])