diff --git a/src/YunDa.Web/YunDa.SOMS.Web.MVC/wwwroot/view-resources/Views/GeneralInformation/ProtectionDevice.js b/src/YunDa.Web/YunDa.SOMS.Web.MVC/wwwroot/view-resources/Views/GeneralInformation/ProtectionDevice.js
index 5ee39a4..8876371 100644
--- a/src/YunDa.Web/YunDa.SOMS.Web.MVC/wwwroot/view-resources/Views/GeneralInformation/ProtectionDevice.js
+++ b/src/YunDa.Web/YunDa.SOMS.Web.MVC/wwwroot/view-resources/Views/GeneralInformation/ProtectionDevice.js
@@ -220,6 +220,20 @@ var protectionDeviceList = {
valign: 'middle',
visible: true
},
+ {
+ field: 'equipmentInfo', // 装置检验结果
+ title: '维修记录',
+ align: 'center',
+ valign: 'middle',
+ visible: true,
+ formatter: function (value) {
+ if (value) {
+ return value.maintenanceRecord
+ }
+ return null;
+ }
+ },
+
{
field: 'isActive', // 是否在用
title: '状态',
@@ -269,6 +283,7 @@ var protectionDeviceList = {
verificationPerson: '',
verificationDate: null,
verificationRecords: '',
+ maintenanceRecord:"",
manufacturerValues: [], // 从 API 加载的厂商选项
format: '',
language: ''
@@ -299,7 +314,8 @@ var protectionDeviceList = {
factorySerialNumber: this.factorySerialNumber,
verificationPerson: this.verificationPerson,
verificationDate: this.verificationDate ? new Date(this.verificationDate) : null,
- verificationRecords: this.verificationRecords
+ verificationRecords: this.verificationRecords,
+ maintenanceRecord: this.maintenanceRecord,
};
//console.log(data)
isas.ajax({
@@ -666,6 +682,16 @@ var boardCardInfoList = {
return value ? value : "-";
}
},
+ {
+ field: 'maintenanceRecord', // 检验记录
+ title: '维修记录',
+ align: 'center',
+ valign: 'middle',
+ visible: true,
+ formatter: function (value, row, index) {
+ return value ? value : "-";
+ }
+ },
{
field: 'remark', // 备注
title: '备注',
@@ -719,6 +745,7 @@ var boardCardInfoList = {
verificationPerson: '',
verificationDate: null,
verificationRecords: '',
+ maintenanceRecord:'',
remark: '',
isActive: true,
format: '',
@@ -756,7 +783,8 @@ var boardCardInfoList = {
verificationRecords: this.verificationRecords,
remark: this.remark,
isActive: this.isActive,
- protectionDeviceInfoId: boardCardInfoList.protectionDeviceInfoId
+ protectionDeviceInfoId: boardCardInfoList.protectionDeviceInfoId,
+ maintenanceRecord: this.maintenanceRecord,
};
isas.ajax({