|
@@ -1,15 +1,12 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
- <uni-nav-bar fixed="true" statusBar="true" title="工作中心" right-icon="scan" @clickRight="HandlScanCode">
|
|
|
|
|
-
|
|
|
|
|
- </uni-nav-bar>
|
|
|
|
|
|
|
+ <uni-nav-bar fixed="true" statusBar="true" title="工作中心" right-icon="scan" @clickRight="HandlScanCode"></uni-nav-bar>
|
|
|
<view>
|
|
<view>
|
|
|
- <CellTip title="生产管理" v-if='productionList.length > 0'></CellTip>
|
|
|
|
|
|
|
+ <CellTip title="生产管理" v-if="productionList.length > 0"></CellTip>
|
|
|
<view class="nav">
|
|
<view class="nav">
|
|
|
<view class="nav-content">
|
|
<view class="nav-content">
|
|
|
- <view class="nav-item" v-for="(item) in productionList" :key="item.link_url"
|
|
|
|
|
- @click="toNav(item.path)">
|
|
|
|
|
- <span :class="'iconfont ' + item.icon"></span>
|
|
|
|
|
|
|
+ <view class="nav-item" v-for="item in productionList" :key="item.link_url" @click="toNav(item.path)">
|
|
|
|
|
+ <span :class="'iconfont ' + item.icon"></span>
|
|
|
<label>{{ item.title }}</label>
|
|
<label>{{ item.title }}</label>
|
|
|
<label>{{ item.num }}</label>
|
|
<label>{{ item.num }}</label>
|
|
|
</view>
|
|
</view>
|
|
@@ -33,11 +30,11 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
<view>
|
|
<view>
|
|
|
- <CellTip title="运维管理" v-if='operationsList.length > 0'></CellTip>
|
|
|
|
|
|
|
+ <CellTip title="运维管理" v-if="operationsList.length > 0"></CellTip>
|
|
|
<view class="nav">
|
|
<view class="nav">
|
|
|
<view class="nav-content">
|
|
<view class="nav-content">
|
|
|
- <view class="nav-item" v-for="(item, index) in operationsList" @click="toNav(item.link_url)">
|
|
|
|
|
- <span :class="item.class"></span>
|
|
|
|
|
|
|
+ <view class="nav-item" v-for="(item, index) in operationsList" @click="toNav(item.path)">
|
|
|
|
|
+ <span :class="'iconfont ' + item.icon"></span>
|
|
|
<label>{{ item.title }}</label>
|
|
<label>{{ item.title }}</label>
|
|
|
<label>{{ item.num }}</label>
|
|
<label>{{ item.num }}</label>
|
|
|
</view>
|
|
</view>
|
|
@@ -45,7 +42,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
- <CellTip title="仓储管理" v-if='warehousingList.length > 0'></CellTip>
|
|
|
|
|
|
|
+ <CellTip title="仓储管理" v-if="warehousingList.length > 0"></CellTip>
|
|
|
|
|
|
|
|
<view class="nav">
|
|
<view class="nav">
|
|
|
<view class="nav-content">
|
|
<view class="nav-content">
|
|
@@ -78,17 +75,16 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import CellTip from "@/components/CellTip.vue";
|
|
|
|
|
|
|
+ import CellTip from '@/components/CellTip.vue'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
- CellTip,
|
|
|
|
|
|
|
+ CellTip
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- src1: "https://cdn.uviewui.com/uview/album/1.jpg",
|
|
|
|
|
|
|
+ src1: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
//生产类
|
|
//生产类
|
|
|
productionList: [
|
|
productionList: [
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "生产工单",
|
|
// title: "生产工单",
|
|
@@ -99,13 +95,11 @@
|
|
|
// title: "领料",
|
|
// title: "领料",
|
|
|
// link_url: "/pages/pda/picking/index/index",
|
|
// link_url: "/pages/pda/picking/index/index",
|
|
|
// },
|
|
// },
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "投料",
|
|
// title: "投料",
|
|
|
// link_url: "/pages/pda/feeding/index/index",
|
|
// link_url: "/pages/pda/feeding/index/index",
|
|
|
// },
|
|
// },
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "退料",
|
|
// title: "退料",
|
|
@@ -116,27 +110,21 @@
|
|
|
// title: "不合格品处置",
|
|
// title: "不合格品处置",
|
|
|
// link_url: "/pages/pda/nonconforming/index/index",
|
|
// link_url: "/pages/pda/nonconforming/index/index",
|
|
|
// },
|
|
// },
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "副产品回收",
|
|
// title: "副产品回收",
|
|
|
// link_url: "/pages/pda/by_product_recovery/index/index",
|
|
// link_url: "/pages/pda/by_product_recovery/index/index",
|
|
|
// },
|
|
// },
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "工单交接",
|
|
// title: "工单交接",
|
|
|
// link_url: "/pages/pda/work_order_handover/index/index",
|
|
// link_url: "/pages/pda/work_order_handover/index/index",
|
|
|
// },
|
|
// },
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "工单详情",
|
|
// title: "工单详情",
|
|
|
// link_url: "/pages/pda/work_order_details/index/index",
|
|
// link_url: "/pages/pda/work_order_details/index/index",
|
|
|
// },
|
|
// },
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
// {
|
|
// {
|
|
|
// class: "iconfont icon-gongdanguanli",
|
|
// class: "iconfont icon-gongdanguanli",
|
|
|
// title: "生产报工",
|
|
// title: "生产报工",
|
|
@@ -183,9 +171,9 @@
|
|
|
// // },
|
|
// // },
|
|
|
// ],
|
|
// ],
|
|
|
//仓储管理
|
|
//仓储管理
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
warehousingList: [
|
|
warehousingList: [
|
|
|
- /*
|
|
|
|
|
|
|
+ /*
|
|
|
{
|
|
{
|
|
|
class: "iconfont icon-wuliaoruku",
|
|
class: "iconfont icon-wuliaoruku",
|
|
|
title: "入库管理",
|
|
title: "入库管理",
|
|
@@ -254,7 +242,7 @@
|
|
|
},
|
|
},
|
|
|
*/
|
|
*/
|
|
|
],
|
|
],
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//运维类
|
|
//运维类
|
|
|
operationsList: [
|
|
operationsList: [
|
|
|
/* {
|
|
/* {
|
|
@@ -269,7 +257,6 @@
|
|
|
link_url: "/pages/maintenance/order/order",
|
|
link_url: "/pages/maintenance/order/order",
|
|
|
//"num": 23
|
|
//"num": 23
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
{
|
|
{
|
|
|
class: "iconfont icon-weixiugongdan",
|
|
class: "iconfont icon-weixiugongdan",
|
|
|
title: "维修工单",
|
|
title: "维修工单",
|
|
@@ -288,7 +275,6 @@
|
|
|
link_url: "/pages/repair/order/order",
|
|
link_url: "/pages/repair/order/order",
|
|
|
//"num": 1
|
|
//"num": 1
|
|
|
},*/
|
|
},*/
|
|
|
-
|
|
|
|
|
/* {
|
|
/* {
|
|
|
class: 'iconfont icon-wuliaoruku',
|
|
class: 'iconfont icon-wuliaoruku',
|
|
|
title: '入库登记',
|
|
title: '入库登记',
|
|
@@ -303,28 +289,26 @@
|
|
|
}, */
|
|
}, */
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
-
|
|
|
|
|
treeList: []
|
|
treeList: []
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.getTree()
|
|
this.getTree()
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getTree() {
|
|
getTree() {
|
|
|
- let _list = uni.getStorageSync('treeList');
|
|
|
|
|
|
|
+ let _list = uni.getStorageSync('treeList')
|
|
|
let list = JSON.parse(_list) || []
|
|
let list = JSON.parse(_list) || []
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ console.log('-----------list--------------')
|
|
|
|
|
+ console.log(list)
|
|
|
if (list[0] && list[0].children.length > 0) {
|
|
if (list[0] && list[0].children.length > 0) {
|
|
|
- list[0].children.forEach(f => {
|
|
|
|
|
- if (f.path == "productionManage") {
|
|
|
|
|
- this.productionList = f.children
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ list[0].children.forEach(f => {
|
|
|
|
|
+ if (f.path == 'productionManage') {
|
|
|
|
|
+ this.productionList = f.children
|
|
|
|
|
+ } else if (f.path == 'operationsList') {
|
|
|
|
|
+ this.operationsList = f.children
|
|
|
|
|
+ console.log(this.operationsList)
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -332,29 +316,26 @@
|
|
|
toNav(url) {
|
|
toNav(url) {
|
|
|
console.log(url)
|
|
console.log(url)
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: url,
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ url: url
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
HandlScanCode() {
|
|
HandlScanCode() {
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
let _this = this
|
|
let _this = this
|
|
|
uni.scanCode({
|
|
uni.scanCode({
|
|
|
- success: function(res) {
|
|
|
|
|
|
|
+ success: function (res) {
|
|
|
_this.scantoRouter(res.result)
|
|
_this.scantoRouter(res.result)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
scantoRouter(result) {
|
|
scantoRouter(result) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: `/pages/pda/workOrder/extrusionMolding/index?id=${result}`
|
|
url: `/pages/pda/workOrder/extrusionMolding/index?id=${result}`
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
- @import "index.scss";
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+ @import 'index.scss';
|
|
|
|
|
+</style>
|