|
|
@@ -293,14 +293,17 @@
|
|
|
},
|
|
|
remove({ id, name }) {
|
|
|
this.$confirm(`确认删除仓库${name}?`).then(async () => {
|
|
|
- const isDeleted = await warehouseDefinition.isDelete(id);
|
|
|
- if (isDeleted == 1) {
|
|
|
- const res = await warehouseDefinition.delete(id);
|
|
|
- this.$message.success('删除' + res + '!');
|
|
|
- this.handleList();
|
|
|
- } else {
|
|
|
- this.$message.warning('此数据可能有关联数据,暂时无法删除!');
|
|
|
- }
|
|
|
+ // const isDeleted = await warehouseDefinition.isDelete(id);
|
|
|
+ // if (isDeleted == 1) {
|
|
|
+ // const res = await warehouseDefinition.delete(id);
|
|
|
+ // this.$message.success('删除' + res + '!');
|
|
|
+ // this.handleList();
|
|
|
+ // } else {
|
|
|
+ // this.$message.warning('此数据可能有关联数据,暂时无法删除!');
|
|
|
+ // }
|
|
|
+ const res = await warehouseDefinition.delete(id);
|
|
|
+ this.$message.success('删除' + res + '!');
|
|
|
+ this.handleList();
|
|
|
});
|
|
|
}
|
|
|
}
|