diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index e281250..cbd37ec 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -60,7 +60,6 @@ 查询 新增 - 删除 Routing 转正式物料 编码详情 + 删除 @@ -5244,23 +5243,22 @@ }, // 物料信息删除 - delModal () { - if (this.partSelections.length === 0) { - this.$message.warning('请勾选要删除的物料信息!') - return - } - this.$confirm(`是否删除这 `+ this.partSelections.length +` 条物料信息?`, '提示', { + delModal (row) { + this.$confirm(`是否删除该物料信息 [${row.partNo}]?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { - let tempData = { - informationList: this.partSelections - } - partInformationDelete(tempData).then(({data}) => { + const loading = this.$loading({ + lock: true, + text: '正在删除,请稍候...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) + partInformationDelete(row).then(({data}) => { + loading.close() if (data && data.code === 0) { this.getDataList() - this.partSelections = [] this.$message({ message: '操作成功', type: 'success', @@ -5272,6 +5270,8 @@ confirmButtonText: '确定' }) } + }).catch(() => { + loading.close() }) }) }, diff --git a/src/views/modules/project/projectInfo/projectInfo.vue b/src/views/modules/project/projectInfo/projectInfo.vue index 69942c1..ea2914e 100644 --- a/src/views/modules/project/projectInfo/projectInfo.vue +++ b/src/views/modules/project/projectInfo/projectInfo.vue @@ -84,6 +84,7 @@