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'])