增加废包材位异常出库

This commit is contained in:
2024-05-15 16:05:37 +08:00
parent e589015f1f
commit 330ff9489c
4 changed files with 77 additions and 3 deletions

View File

@@ -83,6 +83,13 @@
,{ ,{
"path" : "pages/modules/taskmanage", "path" : "pages/modules/taskmanage",
"style" : "style" :
{
"navigationStyle": "custom"
}
}
,{
"path" : "pages/modules/error-outstore",
"style" :
{ {
"navigationStyle": "custom" "navigationStyle": "custom"
} }

View File

@@ -36,6 +36,18 @@
}; };
}, },
created () { created () {
this.menuList = [
// {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
// {id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
// {id: '3', name: '物料库存', icon: 'RF03', path: '/pages/modules/mater-inventory'}
{id: '1', name: '原材料入库', icon: 'RF03', path: '/pages/modules/rawmater-instore'},
{id: '2', name: '原材料出库', icon: 'RF07', path: '/pages/modules/rawmater-outstore'},
{id: '3', name: '搬运任务', icon: 'RF01', path: '/pages/modules/carry-task'},
{id: '4', name: '组盘解绑', icon: 'RF04', path: '/pages/modules/zupan-unbind'},
{id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'},
{id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'},
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'}
]
if (this.roles === 'A1,A2,') { if (this.roles === 'A1,A2,') {
this.menuList = [ this.menuList = [
// {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'}, // {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
@@ -46,7 +58,8 @@
{id: '3', name: '搬运任务', icon: 'RF01', path: '/pages/modules/carry-task'}, {id: '3', name: '搬运任务', icon: 'RF01', path: '/pages/modules/carry-task'},
{id: '4', name: '组盘解绑', icon: 'RF04', path: '/pages/modules/zupan-unbind'}, {id: '4', name: '组盘解绑', icon: 'RF04', path: '/pages/modules/zupan-unbind'},
{id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'}, {id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'},
{id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'} {id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'},
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'}
] ]
} }
if (this.roles === 'A1,') { if (this.roles === 'A1,') {
@@ -54,7 +67,8 @@
{id: '1', name: '原材料入库', icon: 'RF03', path: '/pages/modules/rawmater-instore'}, {id: '1', name: '原材料入库', icon: 'RF03', path: '/pages/modules/rawmater-instore'},
{id: '2', name: '原材料出库', icon: 'RF07', path: '/pages/modules/rawmater-outstore'}, {id: '2', name: '原材料出库', icon: 'RF07', path: '/pages/modules/rawmater-outstore'},
{id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'}, {id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'},
{id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'} {id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'},
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'}
] ]
} }
if (this.roles === 'A2,') { if (this.roles === 'A2,') {
@@ -62,7 +76,8 @@
{id: '3', name: '搬运任务', icon: 'RF01', path: '/pages/modules/carry-task'}, {id: '3', name: '搬运任务', icon: 'RF01', path: '/pages/modules/carry-task'},
{id: '4', name: '组盘解绑', icon: 'RF04', path: '/pages/modules/zupan-unbind'}, {id: '4', name: '组盘解绑', icon: 'RF04', path: '/pages/modules/zupan-unbind'},
{id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'}, {id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'},
{id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'} {id: '6', name: '任务管理', icon: 'RF09', path: '/pages/modules/taskmanage'},
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'}
] ]
} }
this.$store.dispatch('setPublicObj', '') this.$store.dispatch('setPublicObj', '')

View File

@@ -0,0 +1,43 @@
<template>
<view class="zd_container">
<nav-bar title="废包材位异常出库"></nav-bar>
<view class="zd-row submit-bar_new">
<button class="zd-col-22 submit-button_new" :disabled="disabled" @tap="_ycck">确认</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import {ycck} from '@/utils/getData1.js'
export default {
components: {
NavBar
},
data() {
return {
disabled: false
};
},
created () {
},
methods: {
async _ycck () {
this.disabled = true
try {
let res = await ycck()
this.disabled = false
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled = false
}
}
}
}
</script>
<style lang="stylus">
</style>

View File

@@ -77,3 +77,12 @@ export const zpjb = (stray, mtray) => request({
mother_tray: mtray mother_tray: mtray
} }
}) })
/**
* 异常出库
*/
// 废包材位异常出库
export const ycck = () => request({
url:'api/pda/ycck',
data: {}
})