|
|
@ -701,7 +701,7 @@ export default { |
|
|
columnProp: 'timeDiffMonths', |
|
|
columnProp: 'timeDiffMonths', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "left", |
|
|
align: "left", |
|
|
columnLabel: '上机时长(月)', |
|
|
|
|
|
|
|
|
columnLabel: '上机时长(天)', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -1153,6 +1153,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 保存数据 |
|
|
// 保存数据 |
|
|
saveData(){ |
|
|
saveData(){ |
|
|
|
|
|
this.modalData.serialNumber = (this.modalData.serialNumber || '').trim() |
|
|
if (this.modalData.bu === '' || this.modalData.bu == null) { |
|
|
if (this.modalData.bu === '' || this.modalData.bu == null) { |
|
|
this.$message.warning('请选择BU!') |
|
|
this.$message.warning('请选择BU!') |
|
|
return |
|
|
return |
|
|
@ -1174,11 +1175,17 @@ export default { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
saveCoreSparePart(this.modalData).then(({data})=>{ |
|
|
saveCoreSparePart(this.modalData).then(({data})=>{ |
|
|
if (data.code === 0) { |
|
|
|
|
|
|
|
|
if (data && data.code === 0) { |
|
|
this.$message.success(data.msg) |
|
|
this.$message.success(data.msg) |
|
|
this.modalFlag = false |
|
|
this.modalFlag = false |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg || '保存失败', '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.$message.error('保存异常') |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
deleteData(row){ |
|
|
deleteData(row){ |
|
|
|