153 系统管理-》基础数据-》库房/药房管理:点击【删除】按钮提示“操作失败,该数据已被他人删除,请刷新后重试”

This commit is contained in:
2026-02-27 19:04:04 +08:00
parent fcd2d03424
commit 35bc735ecc
2 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ export function updateWarehouse(data) {
export function deleteWarehouse(data) {
return request({
// url: '/base-data-manage/location/location?locationId=' + data.locationId,
url: '/base-data-manage/location/location?busNo=' + data.busNo,
url: '/base-data-manage/location/location',
method: 'delete',
params: {
locationId: data.locationId,

View File

@@ -293,8 +293,7 @@ function submitForm() {
// 删除
function handelDelete(data) {
loading.value = true;
console.log(data, 'data');
deleteWarehouse({ busNo: data.busNo }).then((res) => {
deleteWarehouse(data).then((res) => {
proxy.$modal.msgSuccess('操作成功');
loading.value = false;
getPageList();