diff --git a/src/api/basic/workPlace/SysWorkplaceQueue.js b/src/api/basic/workPlace/SysWorkplaceQueue.js index 5dbf858a..49d9205c 100644 --- a/src/api/basic/workPlace/SysWorkplaceQueue.js +++ b/src/api/basic/workPlace/SysWorkplaceQueue.js @@ -95,3 +95,10 @@ export function getQueueListPage(query) { } +export function removeProduct(query) { + return axios({ + url: "/udiwms/sysWorkplaceQueue/removeProduct", + method: "post", + data: query + }); +} diff --git a/src/views/basic/workplace/workplaceQueue.vue b/src/views/basic/workplace/workplaceQueue.vue index 413a6791..89d3a7cd 100644 --- a/src/views/basic/workplace/workplaceQueue.vue +++ b/src/views/basic/workplace/workplaceQueue.vue @@ -57,7 +57,16 @@ - + + + import {isBlank} from "@/utils/strUtil"; -import {getQueueListPage,getInfoByCode,getProductByCode,bind} from "@/api/basic/workPlace/SysWorkplaceQueue"; +import { + getQueueListPage, + getInfoByCode, + getProductByCode, + bind, + removeProduct +} from '@/api/basic/workPlace/SysWorkplaceQueue' const formJson = { site_id: "", @@ -549,6 +564,28 @@ export default { this.fromOptions = []; }); }, + removeRelId(row){ + let query = { + code : row.code, + relId: row.relId + } + this.$confirm("此操作将解绑该槽位与产品, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }).then(() => { + removeProduct(query).then(res => { + if (res.code == 20000){ + this.$message.success("解绑成功") + this.getCodeDetailList(); + }else { + this.$message.error("解绑失败") + this.getCodeDetailList(); + } + }) + }).catch(() => {}) + + } }, filters: {