Browse Source

拟复查时间不能为空

feature
tianq 3 years ago
parent
commit
885d0d37e5
  1. 4
      src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/record.vue
  2. 4
      src/views/modules/shequzhili/tuceng/anquan/shebei/record.vue
  3. 7
      src/views/modules/shequzhili/tuceng/yingji/changsuo/record.vue
  4. 6
      src/views/modules/shequzhili/tuceng/yingji/wuzi/record.vue

4
src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/record.vue

@ -309,8 +309,12 @@ export default {
},
async handleEdit(row) {
if (row.result == '0' && row.reviewTime == '') {
this.$message.error('拟复查时间不能为空');
} else {
if (this.btnType == 'add') this.save(row);
else this.edit(row);
}
},
handleAdd() {

4
src/views/modules/shequzhili/tuceng/anquan/shebei/record.vue

@ -324,8 +324,12 @@ export default {
},
async handleEdit(row) {
if (row.result == '0' && row.reviewTime == '') {
this.$message.error('拟复查时间不能为空');
} else {
if (this.btnType == 'add') this.save(row);
else this.edit(row);
}
},
handleAdd() {

7
src/views/modules/shequzhili/tuceng/yingji/changsuo/record.vue

@ -324,8 +324,12 @@ export default {
},
async handleEdit(row) {
if (row.inspectResult == '0' && row.nextInspectTime == '') {
this.$message.error('拟复查时间不能为空');
} else {
if (this.btnType == 'add') this.save(row);
else this.edit(row);
}
},
handleAdd() {
@ -360,7 +364,6 @@ export default {
this.isEdit = false;
this.btnType = 'cancle';
this.getList();
} else {
this.$message.error(msg);
}
@ -383,7 +386,7 @@ export default {
},
async del(row) {
let arr=[row.id]
let arr = [row.id];
// const url = `/actual/base/emergencyEquipment/inspect-delete`;
const url = `/actual/base/safetyEquipmentInspectRecord/delete`;
const { data, code, msg } = await requestPost(url, arr);

6
src/views/modules/shequzhili/tuceng/yingji/wuzi/record.vue

@ -324,8 +324,12 @@ export default {
},
async handleEdit(row) {
if (row.inspectResult == '0' && row.nextInspectTime == '') {
this.$message.error('拟复查时间不能为空');
} else {
if (this.btnType == 'add') this.save(row);
else this.edit(row);
}
},
handleAdd() {
@ -382,7 +386,7 @@ export default {
},
async del(row) {
let arr=[row.id]
let arr = [row.id];
const url = `/actual/base/emergencyEquipment/inspect-delete`;
const { data, code, msg } = await requestPost(url, arr);

Loading…
Cancel
Save