|
|
|
@ -24,7 +24,6 @@
|
|
|
|
|
     <el-button type="primary" icon="el-icon-sort" @click="toggleBusType"
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
>切换业务</el-button>
|
|
|
|
|
<!-- <el-button type="danger" @click="closeAllTabs" style="margin-left: 10px;" v-if="this.showContextMenu">关闭所有</el-button>-->
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
@ -49,7 +48,6 @@
|
|
|
|
|
|
|
|
|
|
<el-row class="tac">
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<!-- <h5>默认颜色</h5>-->
|
|
|
|
|
<el-menu
|
|
|
|
|
:default-active="menuActive"
|
|
|
|
|
class="el-menu-vertical-demo"
|
|
|
|
@ -58,75 +56,70 @@
|
|
|
|
|
@open="handleOpen"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<!-- <el-submenu index="11" v-if="workPlaceClass == 1">-->
|
|
|
|
|
<!-- <template slot="title">-->
|
|
|
|
|
<!-- <i class="el-icon-s-order"></i>-->
|
|
|
|
|
<!-- <span>单据管理</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<div v-if=" this.productType != 1">
|
|
|
|
|
<el-menu-item :index=0 @click="clickMenuItem(0)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">处理单据</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=9 @click="clickMenuItem(9)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">取药确认</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=10 @click="clickMenuItem(10)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">单据审核</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=4 @click="clickMenuItem(4)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-order"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">待处理单</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=11 @click="clickMenuItem(11)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">单据校验</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=5 @click="clickMenuItem(5)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-claim"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">已完成单</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=6 @click="clickMenuItem(6)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-upload"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">单据上传</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=1 @click="clickMenuItem(1)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-unfold"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位上货</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=13 @click="clickMenuItem(13)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位剔除</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=8 @click="clickMenuItem(8)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-warning"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">上货推荐</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=3 @click="clickMenuItem(3)" v-if="workPlaceClass == 2 || workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位库存</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=7 @click="clickMenuItem(7)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-help"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">拆零管理</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=2 @click="clickMenuItem(2)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-fold"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位退货</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=12 @click="clickMenuItem(12)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-fold"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">上货记录</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=14 @click="clickMenuItem(14)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">处理预验收</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
@ -137,57 +130,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=10000 @click="clickMenuItem(10000)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-upload"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">处理单据</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=1000 @click="clickMenuItem(1000)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">单据审核</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=400 @click="clickMenuItem(400)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">待处理单</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=500 @click="clickMenuItem(500)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-claim"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">已完成单</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=600 @click="clickMenuItem(600)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-claim"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">单据上传</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=100 @click="clickMenuItem(100)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-unfold"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位上货</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=1300 @click="clickMenuItem(1300)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位剔除</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=800 @click="clickMenuItem(800)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-warning"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">上货推荐</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=300 @click="clickMenuItem(300)" v-if="workPlaceClass == 2 || workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位库存</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=700 @click="clickMenuItem(700)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-help"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">拆零管理</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=200 @click="clickMenuItem(200)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-fold"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">工位退货</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=1200 @click="clickMenuItem(1200)" v-if="workPlaceClass == 2">
|
|
|
|
|
<!-- <i class="el-icon-s-fold"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">上货记录</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=1400 @click="clickMenuItem(1400)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
|
|
|
|
|
<span slot="title">处理预验收</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
@ -208,9 +201,6 @@
|
|
|
|
|
@contextmenu.stop.prevent="handleTabContextMenu($event, item)"
|
|
|
|
|
style="background-color: white"
|
|
|
|
|
>
|
|
|
|
|
<!-- <ul v-if="showContextMenu" class="context-menu" :style="contextMenuPosition">-->
|
|
|
|
|
<!-- <li @click="closeAllTabs">关闭所有</li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<div>
|
|
|
|
|
<component v-if="showChild" :is="item.component" v-bind="item.componentProps"
|
|
|
|
|
:reset-key="resetKeys[item.name]" @parent-method="parentMethod"
|
|
|
|
@ -240,18 +230,15 @@
|
|
|
|
|
<span v-if="!isContentVisible">查看更多业务类型</span>
|
|
|
|
|
<span v-if="isContentVisible">查看常用业务类型</span>
|
|
|
|
|
<i :class="{'el-icon-caret-right': !isContentVisible, 'el-icon-caret-bottom': isContentVisible}"> </i>
|
|
|
|
|
<!-- 这里原本想用大括号图标,但Font Awesome默认没有,所以用了上下箭头代替 -->
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<!-- <el-button v-for="(item, index) in busTypeList" :key="index" type="primary" plain @click="selectBusType(item.code)">{{ item.name }}</el-button>-->
|
|
|
|
|
|
|
|
|
|
<el-col v-for="(info, index) in busTypeList" :key="index" :xs="12" :sm="8" :md="8" :lg="6">
|
|
|
|
|
<el-card :body-style="{margin:'20px'}"
|
|
|
|
|
style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px; position: relative;"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
@ -259,13 +246,6 @@
|
|
|
|
|
@click="selectBusType(info)"
|
|
|
|
|
>
|
|
|
|
|
<p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.busName }}</p>
|
|
|
|
|
<!-- 假设你的信息对象中包含一个title属性 -->
|
|
|
|
|
<!-- <div style="width: 60px; height: 60px; display: flex; justify-content: center; align-items: center;">-->
|
|
|
|
|
<!-- <!– 二维码占位,这里用灰色方块代替 –>-->
|
|
|
|
|
<!--<!– <span>QR</span>–>-->
|
|
|
|
|
<!-- <div ref="qrcode" :id="'qrcode-'+index" style="width: 60px;height: 60px;"></div>-->
|
|
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;"
|
|
|
|
|
>
|
|
|
|
@ -278,8 +258,6 @@
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -308,13 +286,6 @@
|
|
|
|
|
@click="selectWorkplace(info)"
|
|
|
|
|
>
|
|
|
|
|
<p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.workplaceName }}</p>
|
|
|
|
|
<!-- 假设你的信息对象中包含一个title属性 -->
|
|
|
|
|
<!-- <div style="width: 60px; height: 60px; display: flex; justify-content: center; align-items: center;">-->
|
|
|
|
|
<!-- <!– 二维码占位,这里用灰色方块代替 –>-->
|
|
|
|
|
<!--<!– <span>QR</span>–>-->
|
|
|
|
|
<!-- <div ref="qrcode" :id="'qrcode-'+index" style="width: 60px;height: 60px;"></div>-->
|
|
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;"
|
|
|
|
|
>
|
|
|
|
@ -370,8 +341,6 @@ import DevicesDealOrderPre from '@/views/collect/device/DevicesDealOrderPre.vue'
|
|
|
|
|
import { listPage, switchWorkplaceStatus } from '@/api/basic/workPlace/sysWorkplaceManage'
|
|
|
|
|
import {
|
|
|
|
|
filterListByWorkplace,
|
|
|
|
|
getWorkBindBusTypes,
|
|
|
|
|
removeBusTypeById
|
|
|
|
|
} from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
|
import { EventBus } from '@/eventBus'
|
|
|
|
|
|
|
|
|
@ -1063,6 +1032,21 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}else if (this.workPlaceClass == 1 && this.productType == 1 ) {
|
|
|
|
|
this.closeAllTabs()
|
|
|
|
|
this.editableTabsValue = 'DevicesDealOrder'
|
|
|
|
|
this.menuActive = 10000,
|
|
|
|
|
this.editableTabs = [{
|
|
|
|
|
number: 10000,
|
|
|
|
|
title: '处理单据',
|
|
|
|
|
name: 'DevicesDealOrder',
|
|
|
|
|
component: DevicesDealOrder,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
// title: '这是单据的标题',
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.findCurWorkPlaces()
|
|
|
|
|