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)
 }