|
|
|
@ -570,6 +570,7 @@ |
|
|
|
this.addModelFlag=true |
|
|
|
}, |
|
|
|
deleteHsCode(row){ |
|
|
|
// 删除由后端按工厂+BU+品名+品牌校验物料绑定;有引用时返回具体物料编码,前端直接展示 |
|
|
|
this.$confirm('确认删除?', '提示').then(() => { |
|
|
|
let deleteData = { |
|
|
|
site: row.site, |
|
|
|
@ -588,8 +589,9 @@ |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
this.$alert(data.msg, '无法删除', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
customClass: 'hs-code-delete-error' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -665,3 +667,14 @@ |
|
|
|
<style scoped> |
|
|
|
|
|
|
|
</style> |
|
|
|
<style> |
|
|
|
.hs-code-delete-error { |
|
|
|
width: 520px; |
|
|
|
} |
|
|
|
.hs-code-delete-error .el-message-box__message { |
|
|
|
white-space: pre-wrap; |
|
|
|
word-break: break-all; |
|
|
|
max-height: 360px; |
|
|
|
overflow-y: auto; |
|
|
|
} |
|
|
|
</style> |