11/12 槽位管理解除产品

20240912_adapter
wangwei 5 months ago
parent b588470297
commit 3c2219101d

@ -95,3 +95,10 @@ export function getQueueListPage(query) {
}
export function removeProduct(query) {
return axios({
url: "/udiwms/sysWorkplaceQueue/removeProduct",
method: "post",
data: query
});
}

@ -57,7 +57,16 @@
<el-table-column label="分配条件1" prop="assignmentTerms1" show-overflow-tooltip width="160"></el-table-column>
<el-table-column label="分配条件2" prop="assignmentTerms2" show-overflow-tooltip width="160"></el-table-column>
<el-table-column label="备注" prop="remark" show-overflow-tooltip width="160"></el-table-column>
<el-table-column label="操作" fixed="right" >
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="removeRelId(scope.row)"
>解除绑定
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
@ -149,7 +158,13 @@
<script>
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: {

Loading…
Cancel
Save