|
@@ -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
|