whj 1 жил өмнө
parent
commit
4cce801184

+ 19 - 0
src/views/idle-assets/modules/BaseForm.vue

@@ -291,6 +291,25 @@ export default {
           this.confirmLoading = false
           return
         }
+        let isBlack = 0
+        this.sbInfoDTOS.forEach(item => {
+          if (!item.newPositionId) {
+            this.$message.error('请选择新设备位置!')
+            isBlack++
+          }
+          if (!item.newPositionNo) {
+            this.$message.error('请填写新位号!')
+            isBlack++
+          }
+          if (!item.sbIntact) {
+            this.$message.error('请填写设备完好性!')
+            isBlack++
+          }
+        })
+        if (isBlack > 0) {
+          this.confirmLoading = false
+          return
+        }
         values.sbInfoDTOS = this.sbInfoDTOS
         if (values.id) {
           values.saveFlag = true