11/7 摆货层删除

20240912_adapter
wangwei 5 months ago
parent ffa895c74b
commit 750ab410ce

@ -25,3 +25,11 @@ export function getLayerList(query) {
params: query params: query
}); });
} }
export function deleteLayer(query) {
return axios({
url: "/udiwms/WorkplaceLayer/deleteLayer",
method: "post",
data: query
});
}

@ -133,7 +133,7 @@ import {
createFreightCode, createFreightCode,
updateWorkplaceFreight updateWorkplaceFreight
} from '@/api/basic/workPlace/SysWorkplaceFreight' } from '@/api/basic/workPlace/SysWorkplaceFreight'
import { getLayerCode, getLayerList, saveLayer } from '@/api/basic/workPlace/SysWorkplaceLayer' import { deleteLayer, getLayerCode, getLayerList, saveLayer } from '@/api/basic/workPlace/SysWorkplaceLayer'
import { isBlank } from '@/utils/strUtil' import { isBlank } from '@/utils/strUtil'
export default { export default {
@ -321,6 +321,28 @@ export default {
this.layerList = [] this.layerList = []
} }
}) })
},
handleDel(row){
let query = {
code : row.code
}
this.$confirm('此操作将永久删除该摆货层及出货槽, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteLayer(query).then(res => {
if (res.code == 20000){
this.getLayers()
this.$message.success("删除成功")
}else {
this.$message.error("删除失败")
}
})
}).catch(() => {
})
} }
}, },
created() { created() {

@ -338,7 +338,7 @@
<!-- >--> <!-- >-->
<!-- </pagination>--> <!-- </pagination>-->
<!--</el-tab-pane>--> <!--</el-tab-pane>-->
<el-tab-pane label="货架" name="huojia"> <el-tab-pane label="货架" name="huojia">
<!-- {{ workplaceName }}---> <!-- {{ workplaceName }}--->
<freightManage <freightManage
ref="freightManage" ref="freightManage"

Loading…
Cancel
Save