diff --git a/src/api/basic/workPlace/sysWorkplaceManage.js b/src/api/basic/workPlace/sysWorkplaceManage.js
index ebdfb7db..6ed3f640 100644
--- a/src/api/basic/workPlace/sysWorkplaceManage.js
+++ b/src/api/basic/workPlace/sysWorkplaceManage.js
@@ -96,3 +96,13 @@ export function bindBusType(query) {
});
}
+
+//绑定单据类型
+export function switchWorkplaceStatus(query) {
+ return axios({
+ url: "/udiwms/sysWorkplace/switchWorkplaceStatus",
+ method: "post",
+ data: query
+ });
+}
+
diff --git a/src/views/collect/CollectOrderAllotCardComponents.vue b/src/views/collect/CollectOrderAllotCardComponents.vue
index 355d3bf2..76dd33c2 100644
--- a/src/views/collect/CollectOrderAllotCardComponents.vue
+++ b/src/views/collect/CollectOrderAllotCardComponents.vue
@@ -234,9 +234,9 @@
-
-
+
-
- 当前工位:    {{this.formData.workplaceName}}
-
-
- 当前业务类型:    {{this.formData.busName}}
+
+ 当前工位:    {{this.formData.workplaceName}}
+     
+ ({{ formData.workplaceStatus === 0 ? '服务中' : '服务暂停' }} )
+ 切换状态
+
+
+ 当前业务类型:    {{this.formData.busName}}
     切换业务
-
+
-
-
-
-
-
@@ -78,9 +76,13 @@
工位库存
-
+
拆零管理
+
+
+ 存量预警
+
@@ -155,6 +157,7 @@
+
@@ -170,7 +173,8 @@ import IoCreateOrderOut from '@/views/collect/IoCreateOrder.vue'
import ioSplitFifoCode from '@/views/collect/ioSplitFifoCode.vue'
import CollectOrderUpload from '@/views/collect/CollectOrderUpload.vue'
import IoDestroyOrder from '@/views/collect/IoDestroyOrder.vue'
-import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
+import IoSplitFifoRemind from '@/views/collect/IoSplitFifoRemind.vue'
+import {listPage,switchWorkplaceStatus} from "@/api/basic/workPlace/sysWorkplaceManage";
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
export default {
@@ -190,6 +194,7 @@ export default {
showContextMenu: false, // 控制上下文菜单的显示
contextMenuPosition: { x: 0, y: 0 }, // 上下文菜单的位置
selectBusTypeDisabled: false,
+ selectWorkplaceStatusDisabled: false,
busQuery: {
busKey: '',
workplaceCode: null,
@@ -198,7 +203,8 @@ export default {
},
formData: {
busName: null,
- workplaceName: null
+ workplaceName: null,
+ workplaceStatus: null
},
curWorkPlaces: [],
busTypeList: [],
@@ -283,6 +289,14 @@ export default {
component: IoDestroyOrder,
// 假设你需要传递的参数
componentProps: {}
+ },
+ {
+ number: 8,
+ title: '存量预警',
+ name: 'IoSplitFifoRemind',
+ component: IoSplitFifoRemind,
+ // 假设你需要传递的参数
+ componentProps: {}
}],
editableTabs: [{
number: 0,
@@ -301,6 +315,28 @@ export default {
}
},
methods: {
+ toggleWorkplaceStatus() {
+ if (this.formData.workplaceStatus == 0){
+ this.formData.workplaceStatus = 1
+ }else {
+ this.formData.workplaceStatus = 0
+ }
+ switchWorkplaceStatus(this.formData).then(resp => {
+ if (resp.code == 20000){
+ this.$message.success("切换成功!")
+
+ }else {
+ this.$message.error(resp.message)
+ if (this.formData.workplaceStatus == 0){
+ this.formData.workplaceStatus = 1
+ }else {
+ this.formData.workplaceStatus = 0
+ }
+ }
+ }).catch(() => {
+
+ })
+ },
toggleBusType() {
//隐藏下拉框内容
// this.$refs.selectHeadEmpId.blur();
@@ -404,6 +440,7 @@ export default {
if (this.$route.query.workplaceId != null){
let item = this.curWorkPlaces.find(item => item.workplaceId == this.$route.query.workplaceId);
this.formData.workplaceName = item.workplaceName
+ this.formData.workplaceStatus = item.workplaceStatus
}
})
},
@@ -480,6 +517,7 @@ export default {
if (this.$route.query.workplaceId != null) {
this.isLinkDisabled = true
this.formData.workPlaceCode = Number(this.$route.query.workplaceId);
+ this.formData.workplaceId = Number(this.$route.query.workplaceId);
this.getWorkBindBusTypes(this.formData.workPlaceCode);
}
}
@@ -515,4 +553,14 @@ export default {
background-color: #e1e1e1;
}
+.rounded-box {
+ border-radius: 10px;
+ background-color: #f8f9fa; /* 浅灰色背景,可选 */
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 可选,添加阴影以增加立体感 */
+ /*display: flex;*/
+ /*flex-direction: column;*/
+ /*align-items: center;*/
+}
+
+