fix:SN码删除提示语优化

This commit is contained in:
zhangxuanming 2024-12-24 17:00:07 +08:00
parent c294978492
commit 0e5eb5aca3
2 changed files with 12 additions and 9 deletions

View File

@ -44,9 +44,12 @@ export function updateSn(data) {
} }
// 删除SN码 // 删除SN码
export function delSn(snId) { export function delSn(ids) {
return request({ return request({
url: '/mes/wm/sn/' + snId, url: '/mes/wm/sn/remove',
method: 'delete' method: 'get',
params: {
ids
}
}) })
} }

View File

@ -276,8 +276,8 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const snIds = row.snId || this.ids; const snIds = row.snId || this.ids;
this.$modal.confirm('是否确认删除SN码编号为"' + snIds + '"的数据项').then(function() { this.$modal.confirm('是否确认删除当前数据').then(function() {
return delSn(snIds); return delSn(row.ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");