Zimo 1 일 전
부모
커밋
c7698455f0
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/pms/iotrddailyreport/rd-form.vue
  2. 1 0
      src/views/pms/iotrydailyreport/ry-form.vue
  3. 1 0
      src/views/pms/iotrydailyreport/ry-xj-form.vue

+ 1 - 0
src/views/pms/iotrddailyreport/rd-form.vue

@@ -616,6 +616,7 @@ const addReportDetailRow = () => {
 const removeReportDetailRow = (index: number) => {
   if (index === 0) {
     message.warning('至少填写一条生产动态')
+    return
   }
 
   form.value.reportDetails?.splice(index, 1)

+ 1 - 0
src/views/pms/iotrydailyreport/ry-form.vue

@@ -229,6 +229,7 @@ const addProductionStatusRow = () => {
 const removeProductionStatusRow = (index: number) => {
   if (index === 0) {
     message.warning('至少填写一条生产动态')
+    return
   }
   form.value.reportDetails?.splice(index, 1)
 }

+ 1 - 0
src/views/pms/iotrydailyreport/ry-xj-form.vue

@@ -220,6 +220,7 @@ const addProductionStatusRow = () => {
 const removeProductionStatusRow = (index: number) => {
   if (index === 0) {
     message.warning('至少填写一条生产动态')
+    return
   }
   form.value.reportDetails?.splice(index, 1)
 }