|
|
|
@ -7,22 +7,20 @@
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px" >
|
|
|
|
|
<el-col :span="6" align="center">
|
|
|
|
|
<h5 style="color: #1c84c6">当前工位:    <span style="font-size: 20px;color: #000000">{{this.formData.workplaceName}}</span></h5>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8" align="center">
|
|
|
|
|
<h5 style="color: #1c84c6">当前业务类型:    <span style="font-size: 20px;color: #000000">{{this.formData.busName}}</span>
|
|
|
|
|
<el-col :span="18" style="margin-left: 0px" >
|
|
|
|
|
<span style="font-size: 12px;color: #1c84c6">当前工位:    <span style="font-size: 16px;color: #000000">{{this.formData.workplaceName}}</span>
|
|
|
|
|
    
|
|
|
|
|
<span :style="{ color: formData.workplaceStatus === 0 ? 'green' : 'red' }"> ({{ formData.workplaceStatus === 0 ? '服务中' : '服务暂停' }} ) </span>
|
|
|
|
|
<el-button type="primary" @click="toggleWorkplaceStatus" style="margin-left: 10px;" >切换状态</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span style="font-size: 12px;color: #1c84c6;margin-left: 80px">当前业务类型:    <span style="font-size: 16px;color: #000000">{{this.formData.busName}}</span>
|
|
|
|
|
     <el-button type="primary" @click="toggleBusType" style="margin-left: 10px;" >切换业务</el-button>
|
|
|
|
|
</h5>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -78,9 +76,13 @@
|
|
|
|
|
<span slot="title">工位库存</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=7 @click="clickMenuItem(7)">
|
|
|
|
|
<i class="el-icon-s-release"></i>
|
|
|
|
|
<i class="el-icon-s-help"></i>
|
|
|
|
|
<span slot="title">拆零管理</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=8 @click="clickMenuItem(8)">
|
|
|
|
|
<i class="el-icon-warning"></i>
|
|
|
|
|
<span slot="title">存量预警</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
</el-menu>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
@ -155,6 +157,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -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;*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|