fix:SN码删除提示语优化
This commit is contained in:
parent
c294978492
commit
0e5eb5aca3
@ -44,9 +44,12 @@ export function updateSn(data) {
|
||||
}
|
||||
|
||||
// 删除SN码
|
||||
export function delSn(snId) {
|
||||
export function delSn(ids) {
|
||||
return request({
|
||||
url: '/mes/wm/sn/' + snId,
|
||||
method: 'delete'
|
||||
url: '/mes/wm/sn/remove',
|
||||
method: 'get',
|
||||
params: {
|
||||
ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -276,8 +276,8 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const snIds = row.snId || this.ids;
|
||||
this.$modal.confirm('是否确认删除SN码编号为"' + snIds + '"的数据项?').then(function() {
|
||||
return delSn(snIds);
|
||||
this.$modal.confirm('是否确认删除当前数据?').then(function() {
|
||||
return delSn(row.ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
|
Loading…
Reference in New Issue
Block a user