From 3c2219101d9a368a8e32518e137aed91c7b80f05 Mon Sep 17 00:00:00 2001
From: wangwei <1610949092@qq.com>
Date: Tue, 12 Nov 2024 16:01:01 +0800
Subject: [PATCH] =?UTF-8?q?11/12=20=E6=A7=BD=E4=BD=8D=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E8=A7=A3=E9=99=A4=E4=BA=A7=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/basic/workPlace/SysWorkplaceQueue.js | 7 ++++
src/views/basic/workplace/workplaceQueue.vue | 41 +++++++++++++++++++-
2 files changed, 46 insertions(+), 2 deletions(-)
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: {