init project
This commit is contained in:
40
pages/work/esop.vue
Normal file
40
pages/work/esop.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<!-- <view class="content"> -->
|
||||
<web-view :src="baseUrl+'/terminalShow'"></web-view>
|
||||
<!-- </view> -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import {
|
||||
// getToken
|
||||
// } from '@/utils/auth'
|
||||
// import storage from '@/utils/storage'
|
||||
export default {
|
||||
data() {
|
||||
console.log(4)
|
||||
return {
|
||||
baseUrl: uni.getStorageSync('base_url'),
|
||||
// token: getToken()
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// uni.request({
|
||||
// url: this.baseUrl + '/terminalShow',
|
||||
// method: 'GET',
|
||||
// header: {
|
||||
// Authorization: `Bearer ` + this.token,
|
||||
// // Cookie: 'language=zh; rememberMe=true; username=' + this.$store.state.user.name + ';'
|
||||
// },
|
||||
// success(response) {
|
||||
// console.log(response.data);
|
||||
// },
|
||||
// fail(error) {
|
||||
// console.error(error);
|
||||
// },
|
||||
// });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
409
pages/work/index.vue
Normal file
409
pages/work/index.vue
Normal file
@@ -0,0 +1,409 @@
|
||||
<template>
|
||||
|
||||
<view class="work-container" style="">
|
||||
|
||||
<!-- <uni-nav-bar shadow right-icon="plusempty" @clickRight="rightClick" :fixed="true" :shadow="false"
|
||||
:border="false" title="工作台" /> -->
|
||||
<u-sticky>
|
||||
<!-- <view style="display: flex; width: 100vw;position: absolute;z-index: 1;"> -->
|
||||
<uni-search-bar style="width: 100%;position: absolute;top: 10px;" bgColor="#FFFFFF" placeholder="请输入搜索内容"
|
||||
ref="searchBar" cancelButton="none" @focus="goSearchClick" />
|
||||
<!-- </view> -->
|
||||
</u-sticky>
|
||||
<u-back-top :scroll-top="scrollTop" style="bottom: 100px;"></u-back-top>
|
||||
<view class="uni-flex uni-column">
|
||||
<view class="flex-item flex-item-V">
|
||||
<image :src="src" mode="aspectFill" style="width: 100%;height: 200rpx;" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-for="(item, index) in datalist" :key="index">
|
||||
<u-grid v-if="shouldShowGrid(item.data)" :border="false" col="4"
|
||||
style="background-color: #fff;margin: 10px 0;border-radius: 3px;">
|
||||
<uni-title type="h3" :title="item.name" style="margin: 10px 10px;width: 100%;flex: auto;"></uni-title>
|
||||
<u-grid-item v-for="(data,dataIndex) in item.data" :key="dataIndex" @click="selectgrid(data)"
|
||||
v-if="checkPermi([data.permission])">
|
||||
<uni-icons v-if="data.icon.includes('icon')" class="uni-icons"
|
||||
:style="{'background': data.color,'-webkit-background-clip': 'text','-webkit-text-fill-color': 'transparent',}"
|
||||
custom-prefix="iconfont" :type="data.icon" color="transparent" size="30" />
|
||||
<uni-icons v-else class="uni-icons" :type="data.icon"
|
||||
:style="{'background': data.color,'-webkit-background-clip': 'text','-webkit-text-fill-color': 'transparent'}"
|
||||
color="transparent" size="30" />
|
||||
<text class="text">{{data.style.navigationBarTitleText}}</text>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
</view>
|
||||
<!-- <u-picker :show="showMenu" @close="Menuclose" @confirm="confirm" @cancel="cancel" :columns="columns"
|
||||
:closeOnClickOverlay="true"></u-picker> -->
|
||||
<u-action-sheet :actions="columns" @select="confirm" cancelText="取消" @close="cancel" title="请选择模式"
|
||||
:show="showMenu" :closeOnClickOverlay="true"></u-action-sheet>
|
||||
<u-action-sheet :actions="list" @select="selectTask" cancelText='取消' @close="close" :closeOnClickOverlay="true"
|
||||
:closeOnClickAction="true" description='请选择任务' :show="show"></u-action-sheet>
|
||||
<u-action-sheet :actions="invQuicklist" @select="selectTask" cancelText='取消' @close="invQuickclose"
|
||||
:closeOnClickOverlay="true" :closeOnClickAction="true" description='请选择盘点类型'
|
||||
:show="invQuickshow"></u-action-sheet>
|
||||
|
||||
<!-- <view>
|
||||
<u-sticky>
|
||||
<u-tabs
|
||||
:current="currentTab"
|
||||
:list="datalist"
|
||||
@click="handleTabClick"
|
||||
></u-tabs>
|
||||
</u-sticky>
|
||||
|
||||
<view v-for="(item, index) in datalist" :key="index"> -->
|
||||
<!-- 锚点内容 -->
|
||||
<!-- <view :id="'section'+index" class="section">
|
||||
<view class="grid-body" style="background-color: #fff;margin: 10px 0;border-radius: 3px;">
|
||||
<uni-title type="h3" :title="item.name" style="margin-left: 10px;"></uni-title>
|
||||
<uni-grid :column="4" :showBorder="false" @change="changeGrid10" :open="true" v-for="(data,dataIndex) in item.data">
|
||||
<uni-grid-item :index="dataIndex+1" >
|
||||
<view class="grid-item-box" style="">
|
||||
<uni-icons class="uni-icons" custom-prefix="iconfont" :type="data.icon" :color="data.color" size="30"></uni-icons>
|
||||
</view>
|
||||
<text class="text">{{data.style.navigationBarTitleText}}</text>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
version
|
||||
} from "vue"
|
||||
import datalist from "./indexList.json"
|
||||
import {
|
||||
checkPermi,
|
||||
checkRole
|
||||
} from "@/utils/permission";
|
||||
export default {
|
||||
mounted() {
|
||||
// #ifdef APP-PLUS
|
||||
var version = plus.runtime.version;
|
||||
// #endif
|
||||
},
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
invQuickshow: false,
|
||||
showMenu: false,
|
||||
scrollTop: 0,
|
||||
src: '/static/images/banner/mes_banner.jpg',
|
||||
datalist: datalist,
|
||||
show: false,
|
||||
list: [{
|
||||
name: '保养任务',
|
||||
path: '/pages/tpm/maintainTask'
|
||||
},
|
||||
{
|
||||
name: '点检任务',
|
||||
path: '/pages/tpm/checkTask'
|
||||
},
|
||||
{
|
||||
name: '维修任务',
|
||||
path: '/pages/tpm/repairTask'
|
||||
}
|
||||
],
|
||||
invQuicklist: [{
|
||||
name: '快速盘点',
|
||||
path: '/pages/wms/stock/addInvQuick?key=1'
|
||||
},
|
||||
{
|
||||
name: '期初盘点',
|
||||
path: '/pages/wms/stock/addInvQuick?key=2'
|
||||
}
|
||||
],
|
||||
// 右边菜单内容
|
||||
options: [{
|
||||
value: 'update',
|
||||
text: '选修'
|
||||
},
|
||||
{
|
||||
value: 'forbit',
|
||||
text: '禁止'
|
||||
}
|
||||
],
|
||||
// columns: [
|
||||
// ['常规功能', 'MES智能终端']
|
||||
// ],
|
||||
columns: [{
|
||||
name: '常规功能',
|
||||
path: '/pages/work/index'
|
||||
},
|
||||
{
|
||||
name: 'MES智能终端',
|
||||
path: '/pages/work/mesIT'
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
},
|
||||
methods: {
|
||||
shouldShowGrid(dataList) {
|
||||
for (const data of dataList) {
|
||||
if (this.checkPermi([data.permission])) {
|
||||
return true; // 如果有一个u-grid-item可以显示,则显示u-grid
|
||||
}
|
||||
}
|
||||
return false; // 如果没有一个u-grid-item可以显示,则不显示u-grid
|
||||
},
|
||||
checkPermi,
|
||||
Menuclose() {
|
||||
this.showMenu = false
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e)
|
||||
// if (e.value == '常规功能') {
|
||||
// this.$tab.reLaunch('/pages/work/index');
|
||||
// } else if (e.value == 'MES智能终端') {
|
||||
// this.$tab.reLaunch('/pages/work/mesIT');
|
||||
// }
|
||||
this.$tab.reLaunch(e.path);
|
||||
},
|
||||
cancel() {
|
||||
this.showMenu = false
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
console.log(e)
|
||||
this.showMenu = !this.showMenu;
|
||||
},
|
||||
rightClick() {
|
||||
console.log('rightClick');
|
||||
},
|
||||
selectgrid(item) {
|
||||
if (item) {
|
||||
if (item.path) {
|
||||
this.$tab.navigateTo(item.path);
|
||||
} else if (item.style.navigationBarTitleText == '任务查看') {
|
||||
this.show = true;
|
||||
} else if (item.style.navigationBarTitleText == '新增快速盘点') {
|
||||
this.invQuickshow = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
goSearchClick() {
|
||||
this.$tab.navigateTo("/pages/work/searchIndex/searchIndex");
|
||||
},
|
||||
selectTask(e) {
|
||||
console.log(e);
|
||||
this.$tab.navigateTo(e.path);
|
||||
},
|
||||
close() {
|
||||
this.show = false;
|
||||
},
|
||||
invQuickclose() {
|
||||
this.invQuickshow = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.menu {
|
||||
position: fixed;
|
||||
top: 44px;
|
||||
right: 0;
|
||||
width: 120px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.wrap {
|
||||
height: 200vh;
|
||||
}
|
||||
|
||||
.work-container {
|
||||
// background: white;
|
||||
min-height: 50vh;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
position: sticky;
|
||||
z-index: 970;
|
||||
top: 0px;
|
||||
background-color: #fff;
|
||||
width: 100vw;
|
||||
|
||||
.tabsStyle {
|
||||
box-shadow: 0 2rpx 6rpx 0 rgba(153, 153, 153, 0.2);
|
||||
|
||||
::v-deep {
|
||||
.u-tabs {
|
||||
box-shadow: 0px 4px 6px 0 rgba(153, 153, 153, 0.2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* #ifndef APP-NVUE */
|
||||
page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
// background-color: #fff;
|
||||
min-height: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
view {
|
||||
// font-size: 20px;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
|
||||
.text {
|
||||
text-align: center;
|
||||
// font-size: 30rpx;
|
||||
margin-top: 10px;
|
||||
// color: #fff;
|
||||
position: relative;
|
||||
bottom: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// padding: 15px 0;
|
||||
margin: 10px 21px;
|
||||
// background-color: #0F6C8E;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
|
||||
.uni-margin-wrap {
|
||||
width: 690rpx;
|
||||
width: 100%;
|
||||
;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
height: 300rpx;
|
||||
}
|
||||
|
||||
.swiper-box {
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.swiper-item {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
height: 300rpx;
|
||||
line-height: 300rpx;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 320px) {
|
||||
.uni-swiper-dot-box {
|
||||
width: 400px;
|
||||
/* #ifndef APP-NVUE */
|
||||
margin: 0 auto;
|
||||
/* #endif */
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
//竖屏
|
||||
@media screen and (min-width: 600px) and (orientation:portrait) {
|
||||
.grid-item-box {
|
||||
margin: 20px 40px;
|
||||
}
|
||||
|
||||
.text {
|
||||
bottom: 10px;
|
||||
}
|
||||
|
||||
.uni-icons {
|
||||
font-size: 50px !important;
|
||||
}
|
||||
}
|
||||
|
||||
//横屏
|
||||
@media screen and (min-width: 600px) and (orientation:landscape) {
|
||||
// .uni-swiper-dot-box {
|
||||
// width: 400px;
|
||||
// /* #ifndef APP-NVUE */
|
||||
// margin: 0 auto;
|
||||
// /* #endif */
|
||||
// margin-top: 8px;
|
||||
// }
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
margin: 50px 70px;
|
||||
}
|
||||
|
||||
.text {
|
||||
bottom: 10px;
|
||||
font-size: 24px
|
||||
}
|
||||
|
||||
.uni-icons {
|
||||
font-size: 60px !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
::v-deep .uni-btn-icon {
|
||||
font-size: 60px !important;
|
||||
}
|
||||
|
||||
::v-deep .uniui-search {
|
||||
font-size: 40px
|
||||
}
|
||||
|
||||
::v-deep .uni-h3 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
::v-deep .uni-searchbar__box {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
|
||||
::v-deep.uni-searchbar__text-placeholder {
|
||||
font-size: 24px
|
||||
}
|
||||
|
||||
::v-deep .u-action-sheet__header__title {
|
||||
font-size: 24px
|
||||
}
|
||||
|
||||
|
||||
::v-deep .u-icon__icon .uicon-close {
|
||||
font-size: 35px
|
||||
}
|
||||
|
||||
::v-deep.u-action-sheet__item-wrap__item__name {
|
||||
font-size: 24px
|
||||
}
|
||||
|
||||
.u-action-sheet__cancel-text {
|
||||
font-size: 24px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
765
pages/work/indexList.json
Normal file
765
pages/work/indexList.json
Normal file
@@ -0,0 +1,765 @@
|
||||
[{
|
||||
"name": "基础管理",
|
||||
"data": [{
|
||||
"path": "/pages/basic/empEqpStart",
|
||||
"permission": "basic:empEqpHistory:add",
|
||||
"icon": "icon-renyuanbangding",
|
||||
"color": "linear-gradient(#F37D7B,#DF665F)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "人员上机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/empEqpEnd",
|
||||
"permission": "basic:empEqpHistory:add",
|
||||
"icon": "icon-shandiaorenyuan",
|
||||
"color": "linear-gradient(#69A6F1, #4490ED)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "人员下机"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "TPM设备管理",
|
||||
"data": [{
|
||||
"path": "/pages/tpm/list",
|
||||
"permission": "basic:equipment:list",
|
||||
"icon": "info-filled",
|
||||
"color": "linear-gradient(#A9C9FF, #94bcff)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "基本信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/tpm/repairTask",
|
||||
"permission": "tpm:maintainPlan:list",
|
||||
"icon": "wallet-filled",
|
||||
"color": "linear-gradient(#BCBEC4, #8f939c)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设备维修任务"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/tpm/checkTask",
|
||||
"permission": "tpm:maintainPlan:list",
|
||||
"icon": "wallet-filled",
|
||||
"color": "linear-gradient(#BCBEC4, #8f939c)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设备点检任务"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/tpm/maintainTask",
|
||||
"permission": "tpm:maintainPlan:list",
|
||||
"icon": "wallet-filled",
|
||||
"color": "linear-gradient(#BCBEC4, #8f939c)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设备保养任务"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"name": "生产管理",
|
||||
"data": [{
|
||||
"path": "/pages/mes/jobCv/jobIn",
|
||||
"permission": "mes:pwoJob:transIn",
|
||||
"icon": "icon-upload",
|
||||
"color": "linear-gradient(#E33A90, #DC0974)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "上机转入"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoDraw",
|
||||
"permission": "mes:conversion:add",
|
||||
"icon": "icon-zhuanyi",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领料转移单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoIn",
|
||||
"permission": "mes:conversion:add",
|
||||
"icon": "icon-download",
|
||||
"color": "linear-gradient(#818EDE, #6F7DC6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "完工转移单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoWarehousing",
|
||||
"permission": "mes:pwo:in",
|
||||
"icon": "icon-tubiao_chanpinruku",
|
||||
"color": "linear-gradient(#95D097, #7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单入库"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/jobBindEqp",
|
||||
"permission": "mes:pwoJob:edit",
|
||||
"icon": "icon-shebeiyuebaoshebeiribao",
|
||||
"color": "linear-gradient(#768D9E, #547086)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "切换设备"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pieceReport",
|
||||
"permission": "mes:report:addPass",
|
||||
"icon": "icon-icon-test",
|
||||
"color": "linear-gradient(#7C70BC, #5B4CAB)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "件号报工"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/mes/jobCv/pieceIn",
|
||||
"permission": "mes:conversion:add",
|
||||
"icon": "icon-batchmove",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "件号转入"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/mes/jobCv/pwoClose",
|
||||
"permission": "mes:mps:pwoAtificialClose",
|
||||
"icon": "close",
|
||||
"color": "linear-gradient(#A5A9B0, #8f939c)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单人工关闭"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/mes/jobCv/pwoSearch",
|
||||
"permission": "mes:pwo:query",
|
||||
"icon": "icon-zhuangtai",
|
||||
"color": "linear-gradient(#528E95, #27727B)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单状态查询"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/mes/jobQuality/jobQuality",
|
||||
"permission": "mes:pwoJob:update",
|
||||
"icon": "icon-zhijianguanli",
|
||||
"color": "linear-gradient(#528E95, #27727B)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "作业质检"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/mes/pwoRecord/pwoRecordAdd",
|
||||
"permission": "mes:pwoJob:update",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "维修记录单"
|
||||
}
|
||||
}
|
||||
]
|
||||
}, {
|
||||
"name": "生产报工管理",
|
||||
"data": [{
|
||||
"path": "/pages/mes/jobReport/pass",
|
||||
"permission": "mes:report:addPass",
|
||||
"icon": "icon-tongguo",
|
||||
"color": "linear-gradient(#95D097,#7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "合格品报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/defect",
|
||||
"permission": "mes:report:addDefect",
|
||||
"icon": "icon-shenhebutongguo",
|
||||
"color": "linear-gradient(#FEBD5F,#FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "不良品报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/scrap",
|
||||
"permission": "mes:report:addScrap",
|
||||
"icon": "icon-tubiaozhizuomoban-134",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "报废品报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/loss",
|
||||
"permission": "mes:report:addScrap",
|
||||
"icon": "icon-sunhao",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "损耗报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/onceReport",
|
||||
"permission": "mes:report:add",
|
||||
"icon": "icon-24gl-repeatOnce2",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "一次性报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/pipelineReport",
|
||||
"permission": "mes:report:add",
|
||||
"icon": "icon-liushuixian",
|
||||
"color": "linear-gradient(#7C70BC, #5B4CAB)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "流水线报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/pwoReport",
|
||||
"permission": "mes:pwoReport:add",
|
||||
"icon": "icon-gongdan",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单报工"
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
"name": "合并标签",
|
||||
"data": [{
|
||||
"path": "/pages/mes/mesJobSingleReportSign/qualityEnsure",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmQuality",
|
||||
"icon": "checkmarkempty",
|
||||
"color": "linear-gradient(#95D097,#7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "质检确认"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/inEnsure",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmWhIn",
|
||||
"icon": "checkmarkempty",
|
||||
"color": "linear-gradient(#7C70BC, #5B4CAB)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "入库确认"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/reportEnsure",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmReport",
|
||||
"icon": "checkmarkempty",
|
||||
"color": "linear-gradient(#95D097, #7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "报工确认"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/reportContEnsure",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmReport",
|
||||
"icon": "checkmarkempty",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "报工批量确认"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/reportFailRecord",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmReport",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "报工失败记录"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/inFailRecord",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmWhIn",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "入库失败记录"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/inQuery",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmWhIn",
|
||||
"icon": "search",
|
||||
"color": "linear-gradient(#95D097,#7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "入库查询"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/notInQuery",
|
||||
"permission": "mes:mesJobSingleReportSign:confirmWhIn",
|
||||
"icon": "search",
|
||||
"color": "linear-gradient(#7C70BC, #5B4CAB)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "待入库查询"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mesJobSingleReportSign/statusQuery",
|
||||
"permission": "mes:mesJobSingleReportSign:statusQuery",
|
||||
"icon": "search",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "状态查询"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "采购入库管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/purchase/purchaseSh",
|
||||
"permission": "purchase:receive:add",
|
||||
"icon": "icon-caigoushouhuodan-copy",
|
||||
"color": "linear-gradient(#8C97D1, #6F7DC6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购收货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/purchase/purchaseQualityT",
|
||||
"permission": "purchase:quality:edit",
|
||||
"icon": "icon-zhijian",
|
||||
"color": "linear-gradient(#95D097, #7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购质检单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/purchase/purchaseRk",
|
||||
"permission": "purchase:in:add",
|
||||
"icon": "icon-navicon-cgrkd",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购入库单"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "生产入库管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/pdcIn/pdcSh",
|
||||
"permission": "produce:product:receive:add",
|
||||
"icon": "icon-caigoushouhuodan-copy",
|
||||
"color": "linear-gradient(#818EDE, #6F7DC6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品收货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/pdcInQualityT",
|
||||
"permission": "produce:product:quality:add",
|
||||
"icon": "icon-zhijian",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品质检单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/pdcRk",
|
||||
"permission": "produce:product:in:add",
|
||||
"icon": "icon-navicon-cgrkd",
|
||||
"color": "linear-gradient(#95D097,#7BC47D)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品入库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/directRk",
|
||||
"permission": "produce:product:in:add",
|
||||
"icon": "icon-jinru",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直接入库单"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "生产领料管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/pdcMaterial/pdcPick",
|
||||
"permission": "produce:draw:pick:edit",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领料拣货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/pdcCk",
|
||||
"permission": "produce:draw:out:add",
|
||||
"icon": "icon-navicon-ckd",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领料出库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/directCk",
|
||||
"permission": "produce:draw:out:add",
|
||||
"icon": "icon--tuichu",
|
||||
"color": "linear-gradient( #7C70BC, #5B4CAB",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直接出库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/confirmNum",
|
||||
"permission": "produce:draw:out:add",
|
||||
"icon": "checkmarkempty",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "出库数量检验"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "生产退料管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/pdcBack/pdcBackSh",
|
||||
"permission": "produce:back:receive:add",
|
||||
"icon": "icon-caigoushouhuodan-copy",
|
||||
"color": "linear-gradient(#8C97D1, #6F7DC6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "退料收货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcBack/pdcBackRk",
|
||||
"permission": "produce:back:in:add",
|
||||
"icon": "icon-navicon-cgrkd",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "退料入库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcBack/directRk",
|
||||
"permission": "produce:back:in:add",
|
||||
"icon": "icon-jinru",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直接入库单"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "销售出库管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/sale/salePick",
|
||||
"permission": "sale:out:pick:edit",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "销售拣货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/sale/saleCk",
|
||||
"permission": "sale:out:out:add",
|
||||
"icon": "icon-navicon-ckd",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "销售出库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/sale/directCk",
|
||||
"permission": "sale:out:out:add",
|
||||
"icon": "icon--tuichu",
|
||||
"color": "linear-gradient( #7C70BC, #5B4CAB",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直接出库单"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "库存管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/stock/addTransfer",
|
||||
"permission": "stock:transfer:add",
|
||||
"icon": "icon-yiku",
|
||||
"color": "linear-gradient(#818EDE, #6F7DC6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增物料移库"
|
||||
}
|
||||
},
|
||||
{
|
||||
"permission": "stock:invQuick:add",
|
||||
"icon": "icon-kuaisupandian",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增快速盘点"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "产品套装管理",
|
||||
"data": [{
|
||||
"path": "/pages/mes/productSuit/addSuit",
|
||||
"permission": "mes:mesProductSuit:add",
|
||||
"icon": "icon-zutao",
|
||||
"color": "linear-gradient(#7C70BC, #5B4CAB)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增产品套装"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/productSuit/addSuitDetail",
|
||||
"permission": "mes:mesProductSuitDetail:query",
|
||||
"icon": "icon---zutaoxuanze",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品套装明细"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "共模作业组管理",
|
||||
"data": [{
|
||||
"path": "/pages/mes/mouldShareGroup/addMouldShareGroup",
|
||||
"permission": "mes:mesMouldShareGroup:add",
|
||||
"icon": "icon-gonggongmokuai",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增共模作业"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mouldShareGroup/addMouldShareGroupDetail",
|
||||
"permission": "mes:mesMouldShareGroupDetail:query",
|
||||
"icon": "icon-mingxi",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "共模作业明细"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "伙伴管理",
|
||||
"data": [{
|
||||
"path": "/pages/srm/antiCrossCargoIn",
|
||||
"permission": "basic:customer:edit",
|
||||
"icon": "icon-weijiluru",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "防串货录入"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/srm/antiiCrossCargoQuery",
|
||||
"permission": "basic:customer:edit",
|
||||
"icon": "icon-chakanweijiluru",
|
||||
"color": "linear-gradient(#47A8F6, #1992F4)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "防串货查询"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "盘点管理",
|
||||
"data": [{
|
||||
"path": "/pages/wms/inventory/inventorySheet",
|
||||
"permission": "stock:invJob:add",
|
||||
"icon": "icon-pandian1",
|
||||
"color": "linear-gradient(#E33A90,#DC0974)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "盘点单"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "质检管理",
|
||||
"data": [{
|
||||
"path": "/pages/qc/fqc",
|
||||
"permission": "quality:qualityBill:edit",
|
||||
"icon": "icon-quality",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "生产入库检"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/qc/ipqc",
|
||||
"permission": "quality:qualityBill:edit",
|
||||
"icon": "icon-a-Productionprocessinspection",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "生产过程检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/iqc",
|
||||
"permission": "quality:qualityBill:edit",
|
||||
"icon": "icon-lailiaozhijian-",
|
||||
"color": "linear-gradient( #818EDE, #6F7DC6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购入库检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/oqc",
|
||||
"permission": "quality:qualityBill:edit",
|
||||
"icon": "icon-chuhuozhijian-",
|
||||
"color": "linear-gradient(#D65C5B, #CC3332)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "销售出库检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/qcAdd",
|
||||
"permission": "quality:qualityBill:edit",
|
||||
"icon": "icon-zhijiandan_huaban",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增质检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/opqc",
|
||||
"permission": "quality:qualityBill:edit",
|
||||
"icon": "icon-zhijianguanli",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "制程检验"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "刀具管理",
|
||||
"data": [{
|
||||
"path": "/pages/basic/cutterStart",
|
||||
"permission": "cutter:useRecord:add",
|
||||
"icon": "icon-daojumokuai",
|
||||
"color": "linear-gradient(#FFA445, #FF8D17)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀柄上机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterEnd",
|
||||
"permission": "cutter:useRecord:add",
|
||||
"icon": "icon-daojumokuai",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀柄下机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterBind",
|
||||
"permission": "cutter:installRecord:add",
|
||||
"icon": "icon-anzhuanggaozhi-xian",
|
||||
"color": "linear-gradient(#FFA445, #FF8D17)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀具安装"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterUnBind",
|
||||
"permission": "cutter:installRecord:edit",
|
||||
"icon": "icon-chaixiegaozhi-xian",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀具拆卸"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterSwitch",
|
||||
"permission": "cutter:installRecord:edit",
|
||||
"icon": "icon-qiehuan",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀具切换"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterBladeEnd",
|
||||
"permission": "cutter:useRecord:add",
|
||||
"icon": "icon-a-40px-shoushu",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀刃下机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterBladeStart",
|
||||
"permission": "cutter:useRecord:add",
|
||||
"icon": "icon-a-40px-shoushu",
|
||||
"color": "linear-gradient(#FFA445, #FF8D17)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀刃上机"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "模具管理",
|
||||
"data": [{
|
||||
"path": "/pages/tpmMould/mouldStart",
|
||||
"permission": "tpmMould:useRecord:add",
|
||||
"icon": "icon-a-zu1785",
|
||||
"color": "linear-gradient(#FFA445, #FF8D17)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "上模开始"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/mouldStartFinish",
|
||||
"permission": "tpmMould:useRecord:add",
|
||||
"icon": "icon-a-zu1785",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "上模完成"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/mouldEnd",
|
||||
"permission": "tpmMould:useRecord:add",
|
||||
"icon": "icon-a-zu1785",
|
||||
"color": "linear-gradient(#FFA445, #FF8D17)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "下模开始"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/mouldEndFinish",
|
||||
"permission": "tpmMould:useRecord:add",
|
||||
"icon": "icon-a-zu1785",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "下模完成"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/mouldQuery",
|
||||
"permission": "tpmMould:mould:query",
|
||||
"icon": "icon-mojuchaxun",
|
||||
"color": "linear-gradient(#FFA445, #FF8D17)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "模具查询"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/eqpWithMouldHistory",
|
||||
"permission": "tpmMould:useRecord:query",
|
||||
"icon": "icon-weibiaoti-_huabanfuben",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设备上模历史"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/mouldRepairTaskAdd",
|
||||
"permission": "tpmMould:repairTask:add",
|
||||
"icon": "icon-xinzengweixiugongdan",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增模具维修"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpmMould/mouldRepairTaskList",
|
||||
"permission": "tpmMould:repairTask:query",
|
||||
"icon": "icon-lishijilu",
|
||||
"color": "linear-gradient(#818EDE,#6272D6)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "模具维修列表"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "ESOP",
|
||||
"data": [{
|
||||
"path": "/pages/esop/esopProLine",
|
||||
"permission": "esop:customizeEsop:query",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "linear-gradient(#68CCFA, #42BFF9)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产线下发"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/esop/esopPwo",
|
||||
"permission": "esop:customizeEsop:query",
|
||||
"icon": "icon-navicon-ckd",
|
||||
"color": "linear-gradient(#F37D7B, #F05C5A)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "作业工位"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "追溯管理",
|
||||
"data": [{
|
||||
"path": "/pages/retrospect/piece",
|
||||
"permission": "mes:pwo:query",
|
||||
"icon": "icon-zhuisu",
|
||||
"color": "linear-gradient(#FEBD5F, #FEAD37)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "件号追溯"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/retrospect/pwo",
|
||||
"permission": "mes:pwo:query",
|
||||
"icon": "icon-gongdanzhuisu",
|
||||
"color": "linear-gradient(#55987D, #2A7E5C)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单追溯"
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
38
pages/work/ipc.vue
Normal file
38
pages/work/ipc.vue
Normal file
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<web-view :src="`${baseUrl}/ipc`"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getToken
|
||||
} from '@/utils/auth'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: uni.getStorageSync('base_url'),
|
||||
// token: getToken()
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// console.log(this.token)
|
||||
// uni.request({
|
||||
// url: this.baseUrl + '/ipc',
|
||||
// method: 'POST',
|
||||
// header: {
|
||||
// Authorization: `Bearer ` + this.token,
|
||||
// },
|
||||
// success(response) {
|
||||
// console.log(response.data);
|
||||
// },
|
||||
// fail(error) {
|
||||
// console.error(error);
|
||||
// },
|
||||
// });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
347
pages/work/mesIT.vue
Normal file
347
pages/work/mesIT.vue
Normal file
@@ -0,0 +1,347 @@
|
||||
<template>
|
||||
<view style="background-color: #fff;">
|
||||
<uni-row style="margin-bottom: 5px;">
|
||||
<uni-col :span="3">
|
||||
<u-button type="primary" style="font-size: 24px;" name="logIn" @click="empinput">登 录</u-button>
|
||||
</uni-col>
|
||||
<uni-col :span="18"></uni-col>
|
||||
<uni-col :span="6">
|
||||
<view style="position: absolute;right: 0;top:5px;font-size: 22px;">
|
||||
{{empName?empName+' 您好!':'请登录!'}}
|
||||
</view>
|
||||
</uni-col>
|
||||
</uni-row>
|
||||
<uni-row>
|
||||
<uni-col :span="12">
|
||||
<uni-card :is-shadow="false" is-full>
|
||||
<u-cell-group :border="false">
|
||||
<u-cell title="工单" :clickable="true" name="pwo" @click="input">
|
||||
<u-icon slot="right-icon" size="25" name="edit-pen-fill" label="填写"
|
||||
label-pos="bottom"></u-icon>
|
||||
<span slot="value" class="value">{{pwoCode}}</span>
|
||||
</u-cell>
|
||||
<u-cell title="作业编码" :clickable="true" @click="selectJob">
|
||||
<u-icon slot="right-icon" size="25" name="list-dot" label="切换" label-pos="bottom"></u-icon>
|
||||
<span slot="value" class="value">{{job.code}}</span>
|
||||
</u-cell>
|
||||
<u-cell title="设备" :clickable="true">
|
||||
<u-button slot="right-icon" type="primary" :plain="false" v-if="!job.eqpId"
|
||||
@click="eqpInput">上 机</u-button>
|
||||
<!-- <u-icon slot="right-icon" size="25" name="edit-pen-fill" label="填写" label-pos="bottom"></u-icon> -->
|
||||
<span slot="value" class="value">{{eqpValue}}</span>
|
||||
</u-cell>
|
||||
<u-cell title="SN" :border="false" :clickable="true" name="sn" @click="input">
|
||||
<u-icon slot="right-icon" size="25" name="edit-pen-fill" label="填写"
|
||||
label-pos="bottom"></u-icon>
|
||||
<span slot="value" class="value">{{snCode}}</span>
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
</uni-card>
|
||||
|
||||
</uni-col>
|
||||
<!-- <uni-col :span="2">
|
||||
<u-line direction="col" length="50px"></u-line>
|
||||
</uni-col> -->
|
||||
<uni-col :span="12">
|
||||
<uni-card :is-shadow="false" is-full>
|
||||
<u-cell-group :border="false">
|
||||
<u-cell title="物料编码">
|
||||
<span slot="value" class="value">{{job.ptNoTar}}</span>
|
||||
<u-button slot="right-icon" type="primary" @click="report" :plain="false">报 工</u-button>
|
||||
</u-cell>
|
||||
<u-cell title="物料名称">
|
||||
<span slot="value" class="value">{{job.ptTitleTar}}</span>
|
||||
</u-cell>
|
||||
<u-cell title="工序名称">
|
||||
<span slot="value" class="value">{{job.opTitle}}</span>
|
||||
</u-cell>
|
||||
<u-cell title="作业数量" :border="false">
|
||||
<span slot="value" class="value">{{job.planNum}}</span>
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
</uni-card>
|
||||
</uni-col>
|
||||
</uni-row>
|
||||
<uni-row>
|
||||
<u-divider text="数据采集进度" textSize="20"></u-divider>
|
||||
<u-line-progress :percentage="80" inactiveColor="" height="20"></u-line-progress>
|
||||
</uni-row>
|
||||
<!-- <u-picker style="width: 80%;" :show=" showMenu" @close="Menuclose" @confirm="confirm" @cancel="cancel"
|
||||
:columns="columns" :closeOnClickOverlay="true"></u-picker> -->
|
||||
<u-action-sheet :actions="columns" @select="confirm" cancelText="取消" @close="cancel" title="请选择模式"
|
||||
:show="showMenu" :closeOnClickOverlay="true"></u-action-sheet>
|
||||
<view>
|
||||
<!-- 输入框 -->
|
||||
<uni-popup ref="inputDialog" type="dialog">
|
||||
<uni-popup-dialog ref="inputClose" mode="input" :title="'输入'+title"
|
||||
@confirm="dialogInputConfirm"></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
<uni-popup ref="selectDialog" type="dialog">
|
||||
<uni-popup-dialog type="info" cancelText="关闭" confirmText="确定" title="请选择作业" @confirm="dialogConfirm"
|
||||
@close="dialogClose">
|
||||
<u-radio-group v-model="job" iconPlacement="right" :borderBottom="true" placement="column">
|
||||
<u-radio v-for="(item, index) in jobList" :customStyle="{marginBottom: '16px'}" :name="item"
|
||||
:key="index" labelSize="20" :label="item.name"></u-radio>
|
||||
</u-radio-group>
|
||||
</uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
updatePwoJob,
|
||||
listEquipment,
|
||||
getEquipment,
|
||||
getPwoJob,
|
||||
listPwoJob
|
||||
} from "@/api/mes/jobReport.js"
|
||||
import {
|
||||
listEmployee,
|
||||
} from "@/api/mes/jobIn.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showMenu: false,
|
||||
// columns: [
|
||||
// ['常规功能', 'MES智能终端']
|
||||
// ],
|
||||
columns: [{
|
||||
name: '常规功能',
|
||||
path: '/pages/work/index'
|
||||
},
|
||||
{
|
||||
name: 'MES智能终端',
|
||||
path: '/pages/work/mesIT'
|
||||
},
|
||||
],
|
||||
empName: null,
|
||||
title: null,
|
||||
pwoCode: null,
|
||||
jobCode: null,
|
||||
eqpValue: null,
|
||||
snCode: null,
|
||||
//作业列表
|
||||
jobList: [],
|
||||
radiovalue: null,
|
||||
//作业信息
|
||||
job: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//根据点击的cell来赋值title
|
||||
input(e) {
|
||||
console.log(e)
|
||||
if (e.name == 'pwo') {
|
||||
this.title = '工单'
|
||||
}
|
||||
if (e.name == 'sn') {
|
||||
this.title = 'SN'
|
||||
}
|
||||
this.$refs.inputDialog.open()
|
||||
},
|
||||
empinput() {
|
||||
this.title = '人员编码'
|
||||
this.$refs.inputDialog.open()
|
||||
},
|
||||
eqpInput() {
|
||||
this.title = '设备编码';
|
||||
this.$refs.inputDialog.open()
|
||||
},
|
||||
//输入框确认按钮
|
||||
dialogInputConfirm(val) {
|
||||
//根据标题进入相应的逻辑运算
|
||||
if (val && this.title == '工单') {
|
||||
uni.showLoading({
|
||||
title: '正在跳转中'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
this.pwoCode = val
|
||||
this.getJobByPwo(val);
|
||||
// 关闭窗口后,恢复默认内容
|
||||
this.$refs.inputDialog.close()
|
||||
this.$refs.selectDialog.open()
|
||||
}, 1000)
|
||||
} else if (val && this.title == 'SN') {
|
||||
uni.showLoading()
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
this.snCode = val
|
||||
// 关闭窗口后,恢复默认内容
|
||||
this.$refs.inputDialog.close()
|
||||
}, 1000)
|
||||
} else if (val && this.title == '人员编码') {
|
||||
uni.showLoading({
|
||||
title: '正在绑定中'
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
this.empCode = val;
|
||||
listEmployee({
|
||||
empCode: val
|
||||
}).then(res => {
|
||||
if (res.total > 0) {
|
||||
this.empName = res.rows[0].name;
|
||||
this.$refs.inputDialog.close()
|
||||
} else {
|
||||
this.$modal.msgError("未查询到相关人员,请重新输入!");
|
||||
}
|
||||
})
|
||||
}, 1000)
|
||||
} else if (val && this.title == '设备编码') {
|
||||
uni.showLoading();
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
//根据设备编码来获取设备id
|
||||
listEquipment({
|
||||
equipmentCode: val
|
||||
}).then(async res => {
|
||||
if (res.total > 0) {
|
||||
this.job.eqpId = res.rows[0].id;
|
||||
this.eqpValue = res.rows[0].equipmentCode + ':' + res.rows[0]
|
||||
.equipmentTitle
|
||||
updatePwoJob(this.job).then(res => {
|
||||
this.$modal.msgSuccess("作业上机成功!");
|
||||
});
|
||||
this.$refs.inputDialog.close()
|
||||
} else {
|
||||
this.$modal.msgError("未查询到该设备信息!");
|
||||
}
|
||||
});
|
||||
}, 1000)
|
||||
} else {
|
||||
this.$modal.msgError("请输入" + this.title);
|
||||
}
|
||||
},
|
||||
//根据输入的工单获取作业信息
|
||||
async getJobByPwo(val) {
|
||||
await listPwoJob({
|
||||
pwoCode: val
|
||||
}).then(res => {
|
||||
this.jobList = res.rows.map(item => {
|
||||
item.name = item.code;
|
||||
item.disabled = false;
|
||||
return item;
|
||||
});
|
||||
})
|
||||
},
|
||||
//打开选择作业弹框
|
||||
selectJob() {
|
||||
this.$refs.selectDialog.open()
|
||||
},
|
||||
//选择作业弹框的确认按钮,存入job信息,赋值设备信息
|
||||
dialogConfirm() {
|
||||
if (this.job) {
|
||||
this.eqpValue = null;
|
||||
if (this.job.eqpId) {
|
||||
getEquipment(this.job.eqpId).then(async res => {
|
||||
this.eqpValue = res.data.equipmentCode + ':' + res.data.equipmentTitle
|
||||
})
|
||||
}
|
||||
this.$refs.selectDialog.close()
|
||||
}
|
||||
},
|
||||
//作业选择弹框关闭
|
||||
dialogClose() {
|
||||
this.$refs.selectDialog.close()
|
||||
},
|
||||
//报工弹框
|
||||
report() {
|
||||
|
||||
},
|
||||
//模式选择弹框关闭
|
||||
Menuclose() {
|
||||
this.showMenu = false
|
||||
},
|
||||
//模式选择弹框确认
|
||||
confirm(e) {
|
||||
console.log(e)
|
||||
// if (e.value == '常规功能') {
|
||||
// this.$tab.reLaunch('/pages/work/index');
|
||||
// } else if (e.value == 'MES智能终端') {
|
||||
// this.$tab.reLaunch('/pages/work/mesIT');
|
||||
// }
|
||||
this.$tab.reLaunch(e.path);
|
||||
},
|
||||
//模式选择弹框取消
|
||||
cancel() {
|
||||
this.showMenu = false
|
||||
},
|
||||
//获取模式选择点击事件
|
||||
onNavigationBarButtonTap(e) {
|
||||
console.log(e)
|
||||
this.showMenu = !this.showMenu;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
::v-deep .u-cell__body__content {
|
||||
flex: 0.5;
|
||||
}
|
||||
|
||||
::v-deep .u-cell__title-text {
|
||||
font-size: 24px !important;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
::v-deep .u-cell__body {
|
||||
padding: 5px 15px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
::v-deep .u-line-progress__text {
|
||||
font-size: 18px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
::v-deep .u-line-progress {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
::v-deep .uni-popup-dialog {
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
|
||||
::v-deep .uni-dialog-input {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
::v-deep .u-cell__right-icon-wrap {
|
||||
position: absolute;
|
||||
right: 80px;
|
||||
}
|
||||
|
||||
.u-reset-button {
|
||||
background-color: #3c9cff;
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
// margin-left: 10px;
|
||||
}
|
||||
|
||||
.value {
|
||||
font-size: 22px
|
||||
}
|
||||
|
||||
.radio-group-wrapper {
|
||||
max-height: 200px;
|
||||
/* 设置最大高度,超过该高度将显示滚动条 */
|
||||
overflow-y: auto;
|
||||
/* 仅在内容溢出时显示垂直滚动条 */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 600px) and (orientation:landscape) {
|
||||
::v-deep .u-cell__title-text {
|
||||
font-size: 24px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
409
pages/work/searchIndex/data.json
Normal file
409
pages/work/searchIndex/data.json
Normal file
@@ -0,0 +1,409 @@
|
||||
[{
|
||||
"path": "/pages/mes/jobReport/pass",
|
||||
"icon": "icon-tongguo",
|
||||
"color": "#7BC47D",
|
||||
"style": {
|
||||
"navigationBarTitleText": "合格品报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/defect",
|
||||
"icon": "icon-shenhebutongguo",
|
||||
"color": "#FEAD37",
|
||||
"style": {
|
||||
"navigationBarTitleText": "不良品报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/scrap",
|
||||
"icon": "icon-tubiaozhizuomoban-134",
|
||||
"color": "#CC3332",
|
||||
"style": {
|
||||
"navigationBarTitleText": "报废品报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/loss",
|
||||
"icon": "icon-sunhao",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "损耗报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/onceReport",
|
||||
"icon": "icon-24gl-repeatOnce2",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "一次性报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/pipelineReport",
|
||||
"icon": "icon-liushuixian",
|
||||
"color": "linear-gradient(#7C70BC, #5B4CAB)",
|
||||
"style": {
|
||||
"navigationBarTitleText": "流水线报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobReport/pwoReport",
|
||||
"icon": "icon-gongdan",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/jobIn",
|
||||
"icon": "icon-upload",
|
||||
"color": "#DC0974",
|
||||
"style": {
|
||||
"navigationBarTitleText": "上机转入"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoDraw",
|
||||
"icon": "icon-zhuanyi",
|
||||
"color": "#6F7DC6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领料转移单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoIn",
|
||||
"icon": "icon-download",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "完工转移单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoWarehousing",
|
||||
"icon": "icon-tubiao/chanpinruku",
|
||||
"color": "#7BC47D",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单入库"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/jobBindEqp",
|
||||
"icon": "icon-shebeiyuebaoshebeiribao",
|
||||
"color": "#547086",
|
||||
"style": {
|
||||
"navigationBarTitleText": "切换设备"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pieceReport",
|
||||
"icon": "icon-icon-test",
|
||||
"color": "#5B4CAB",
|
||||
"style": {
|
||||
"navigationBarTitleText": "件号报工"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pieceIn",
|
||||
"icon": "icon-batchmove",
|
||||
"color": "#CC3332",
|
||||
"style": {
|
||||
"navigationBarTitleText": "件号转入"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoClose",
|
||||
"icon": "close",
|
||||
"color": "#8f939c",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单人工关闭"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobCv/pwoSearch",
|
||||
"icon": "icon-zhuangtai",
|
||||
"color": "#27727B",
|
||||
"style": {
|
||||
"navigationBarTitleText": "工单状态查询"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/purchase/purchaseSh",
|
||||
"icon": "icon-caigoushouhuodan-copy",
|
||||
"color": "#6F7DC6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购收货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/purchase/purchaseRk",
|
||||
"icon": "icon-navicon-cgrkd",
|
||||
"color": "#7BC47D",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购入库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/purchase/purchaseQualityT",
|
||||
"icon": "icon-zhijian",
|
||||
"color": "#FEAD37",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购质检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/pdcInQualityT",
|
||||
"icon": "icon-zhijian",
|
||||
"color": "#FEAD37",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品质检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/pdcRk",
|
||||
"icon": "icon-navicon-cgrkd",
|
||||
"color": "#7BC47D",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品入库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/directRk",
|
||||
"icon": "icon-jinru",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直接入库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcIn/pdcSh",
|
||||
"icon": "icon-caigoushouhuodan-copy",
|
||||
"color": "#6F7DC6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品收货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/pdcCk",
|
||||
"icon": "icon-navicon-ckd",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领料出库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/pdcPick",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "#CC3332",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领料拣货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/directCk",
|
||||
"icon": "icon--tuichu",
|
||||
"color": "#5B4CAB",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直接出库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/pdcMaterial/confirmNum",
|
||||
"icon": "checkmarkempty",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "出库数量检验"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/sale/saleCk",
|
||||
"icon": "icon-navicon-ckd",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "销售出库单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/sale/salePick",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "#CC3332",
|
||||
"style": {
|
||||
"navigationBarTitleText": "销售拣货单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/srm/antiCrossCargoIn",
|
||||
"icon": "icon-weijiluru",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "防串货录入"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/srm/antiiCrossCargoQuery",
|
||||
"icon": "icon-chakanweijiluru",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "防串货查询"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/inventory/inventorySheet",
|
||||
"icon": "icon-pandian1",
|
||||
"color": "#DC0974",
|
||||
"style": {
|
||||
"navigationBarTitleText": "盘点单"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/wms/stock/addTransfer",
|
||||
"icon": "icon-pandian1",
|
||||
"color": "#DC0974",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增物料移库"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/fqc",
|
||||
"icon": "icon-quality",
|
||||
"color": "#FEAD37",
|
||||
"style": {
|
||||
"navigationBarTitleText": "生产入库检"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/pages/qc/ipqc",
|
||||
"icon": "icon-a-Productionprocessinspection",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "生产过程检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/iqc",
|
||||
"icon": "icon-lailiaozhijian-",
|
||||
"color": "#6F7DC6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "采购入库检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/qc/oqc",
|
||||
"icon": "icon-chuhuozhijian-",
|
||||
"color": "#CC3332",
|
||||
"style": {
|
||||
"navigationBarTitleText": "销售出库检"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/empEqpStart",
|
||||
"icon": "icon-renyuanbangding",
|
||||
"color": "#F05C5A",
|
||||
"style": {
|
||||
"navigationBarTitleText": "人员上机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/empEqpEnd",
|
||||
"icon": "icon-shandiaorenyuan",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "人员下机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterStart",
|
||||
"icon": "icon-daojumokuai",
|
||||
"color": "#FF8D17",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀柄上机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterEnd",
|
||||
"icon": "icon-daojumokuai",
|
||||
"color": "#6272D6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀柄下机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterBind",
|
||||
"icon": "icon-anzhuanggaozhi-xian",
|
||||
"color": "#FF8D17",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀具安装"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterUnBind",
|
||||
"icon": "icon-chaixiegaozhi-xian",
|
||||
"color": "#6272D6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀具拆卸"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterSwitch",
|
||||
"icon": "icon-qiehuan",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀具切换"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterBladeEnd",
|
||||
"icon": "icon-a-40px-shoushu",
|
||||
"color": "#6272D6",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀刃下机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/basic/cutterBladeStart",
|
||||
"icon": "icon-a-40px-shoushu",
|
||||
"color": "#FF8D17",
|
||||
"style": {
|
||||
"navigationBarTitleText": "刀刃上机"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/esop/esopProLine",
|
||||
"icon": "icon-lingliaodan",
|
||||
"color": "#42BFF9",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产线下发"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/esop/esopPwo",
|
||||
"icon": "icon-navicon-ckd",
|
||||
"color": "#F05C5A",
|
||||
"style": {
|
||||
"navigationBarTitleText": "作业工位"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpm/checkTask",
|
||||
"icon": "",
|
||||
"color": "",
|
||||
"style": {
|
||||
"navigationBarTitleText": "点检任务"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpm/list",
|
||||
"icon": "info-filled",
|
||||
"color": "#94bcff",
|
||||
"style": {
|
||||
"navigationBarTitleText": "基本信息"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpm/maintainTask",
|
||||
"icon": "",
|
||||
"color": "",
|
||||
"style": {
|
||||
"navigationBarTitleText": "保养任务"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/tpm/repairTask",
|
||||
"icon": "",
|
||||
"color": "",
|
||||
"style": {
|
||||
"navigationBarTitleText": "维修任务"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/retrospect/piece",
|
||||
"icon": "icon-zhuisu",
|
||||
"color": "#FEAD37",
|
||||
"style": {
|
||||
"navigationBarTitleText": "件号追溯"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/productSuit/addSuit",
|
||||
"icon": "icon---zutaoxuanze",
|
||||
"color": "#5B4CAB",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增产品套装"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/productSuit/addSuitDetail",
|
||||
"icon": "icon---zutaoxuanze",
|
||||
"color": "#1992F4",
|
||||
"style": {
|
||||
"navigationBarTitleText": "产品套装明细"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mouldShareGroup/addMouldShareGroup",
|
||||
"icon": "icon-gonggongmokuai",
|
||||
"color": "#2A7E5C",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增共模作业"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/mouldShareGroup/addMouldShareGroupDetail",
|
||||
"icon": "icon-mingxi",
|
||||
"color": "#CC3332",
|
||||
"style": {
|
||||
"navigationBarTitleText": "共模作业明细"
|
||||
}
|
||||
}, {
|
||||
"path": "/pages/mes/jobQuality/jobQuality",
|
||||
"icon": "icon-zhijianguanli",
|
||||
"color": "#27727B",
|
||||
"style": {
|
||||
"navigationBarTitleText": "作业质检"
|
||||
}
|
||||
}
|
||||
]
|
||||
131
pages/work/searchIndex/searchIndex.vue
Normal file
131
pages/work/searchIndex/searchIndex.vue
Normal file
@@ -0,0 +1,131 @@
|
||||
<template>
|
||||
|
||||
<view class="content">
|
||||
|
||||
<!-- <view style="margin-top: 16px;"> -->
|
||||
|
||||
<!-- keyStr: 设置存储key hisClick: 设置历史事件 searchClick:设置搜索事件 -->
|
||||
|
||||
<cc-SearchBarHisView keyStr="productHisArr" searchPlaceHolder="请输入搜索内容" @hisClick="selHisClick"
|
||||
@searchClick="goSearchClick"></cc-SearchBarHisView>
|
||||
|
||||
<!-- </view> -->
|
||||
<uni-list v-for="item in resultList" :key="item">
|
||||
<uni-list-item v-if="item.icon.includes('icon')" :show-extra-icon="true"
|
||||
:extraIcon="{customPrefix:'iconfont',type:item.icon,color:item.color}"
|
||||
:title="item.style.navigationBarTitleText" link :to="item.path">
|
||||
</uni-list-item>
|
||||
<uni-list-item v-else :show-extra-icon="true" :extraIcon="{type:item.icon,color:item.color}"
|
||||
:title="item.style.navigationBarTitleText" link :to="item.path">
|
||||
</uni-list-item>
|
||||
</uni-list>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import CCSearchHisView from '@/components/CCSearchHisView.vue';
|
||||
import data from './data.json'
|
||||
export default {
|
||||
|
||||
components: {
|
||||
|
||||
// CCSearchHisView
|
||||
|
||||
},
|
||||
|
||||
data() {
|
||||
|
||||
return {
|
||||
resultList: [],
|
||||
dataList: data,
|
||||
focus: false
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
searchByItem(item) {
|
||||
this.resultList = [];
|
||||
this.dataList.forEach(res => {
|
||||
if (res.style.navigationBarTitleText.includes(item)) {
|
||||
this.resultList.push(res);
|
||||
}
|
||||
})
|
||||
console.log(this.resultList);
|
||||
},
|
||||
selHisClick(item) {
|
||||
console.log('选择的值 = ' + item);
|
||||
this.searchByItem(item)
|
||||
},
|
||||
goSearchClick(item) {
|
||||
console.log(item);
|
||||
this.searchByItem(item)
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
view {
|
||||
font-size: 15px;
|
||||
/* line-height: inherit; */
|
||||
}
|
||||
|
||||
|
||||
page {
|
||||
|
||||
background-color: '#F6F7FA' !important;
|
||||
|
||||
}
|
||||
|
||||
.content {
|
||||
|
||||
display: flex;
|
||||
|
||||
flex-direction: column;
|
||||
|
||||
background-color: #F6F7FA;
|
||||
|
||||
height: 100vh;
|
||||
|
||||
}
|
||||
|
||||
.logo {
|
||||
|
||||
height: 200rpx;
|
||||
|
||||
width: 200rpx;
|
||||
|
||||
margin-top: 200rpx;
|
||||
|
||||
margin-left: auto;
|
||||
|
||||
margin-right: auto;
|
||||
|
||||
margin-bottom: 50rpx;
|
||||
|
||||
}
|
||||
|
||||
.text-area {
|
||||
|
||||
display: flex;
|
||||
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
|
||||
.title {
|
||||
|
||||
font-size: 36rpx;
|
||||
|
||||
color: #8f8f94;
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user