From 57f966bc02e9d6d679a58ee46c59955947361d73 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 12 May 2026 14:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B8=E5=BF=83=E5=A4=87=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=89=A9=E5=BC=A0=E5=8A=9F=E8=83=BD=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8F=B7=E4=B8=8D=E5=85=81=E8=AE=B8=E9=87=8D=E5=A4=8D=20?= =?UTF-8?q?=E6=A0=B8=E5=BF=83=E5=A4=87=E4=BB=B6=E7=AE=A1=E7=90=86=E6=89=A9?= =?UTF-8?q?=E5=BC=A0=E5=8A=9F=E8=83=BD=E4=B8=8A=E6=9C=BA=E6=97=B6=E9=95=BF?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E6=94=B9=E6=88=90=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/partspare/coreSparePartsManagemen.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/modules/partspare/coreSparePartsManagemen.vue b/src/views/modules/partspare/coreSparePartsManagemen.vue index 005656d..82cabdb 100644 --- a/src/views/modules/partspare/coreSparePartsManagemen.vue +++ b/src/views/modules/partspare/coreSparePartsManagemen.vue @@ -701,7 +701,7 @@ export default { columnProp: 'timeDiffMonths', headerAlign: "center", align: "left", - columnLabel: '上机时长(月)', + columnLabel: '上机时长(天)', columnHidden: false, columnImage: false, columnSortable: false, @@ -1153,6 +1153,7 @@ export default { }, // 保存数据 saveData(){ + this.modalData.serialNumber = (this.modalData.serialNumber || '').trim() if (this.modalData.bu === '' || this.modalData.bu == null) { this.$message.warning('请选择BU!') return @@ -1174,11 +1175,17 @@ export default { return } saveCoreSparePart(this.modalData).then(({data})=>{ - if (data.code === 0) { + if (data && data.code === 0) { this.$message.success(data.msg) this.modalFlag = false this.getDataList() + } else { + this.$alert(data.msg || '保存失败', '错误', { + confirmButtonText: '确定' + }) } + }).catch(() => { + this.$message.error('保存异常') }) }, deleteData(row){