备货区管理
This commit is contained in:
@@ -471,6 +471,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/SecondPhase/slitting/StockingArea",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
95
pages/SecondPhase/slitting/StockingArea.vue
Normal file
95
pages/SecondPhase/slitting/StockingArea.vue
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<!-- <nav-bar title="备货区管理"></nav-bar> -->
|
||||||
|
<nav-bar :title="title"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label">点位</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box v-model="val1" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label">托盘</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box v-model="val2" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submitbar">
|
||||||
|
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_doStockAreaBinding">绑定</button>
|
||||||
|
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled" @tap="_doStockAreaUnbinding">解绑</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {doStockAreaBinding, doStockAreaUnbinding} from '@/utils/getData3.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _doStockAreaBinding () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await doStockAreaBinding(this.val1, this.val2)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _doStockAreaUnbinding () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await doStockAreaUnbinding(this.val1)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -226,4 +226,15 @@ export const unBindSlitterSubVolumeInfo = (code) => request({
|
|||||||
export const bindSlitterSubVolumeInfo = (code, name) => request({
|
export const bindSlitterSubVolumeInfo = (code, name) => request({
|
||||||
url:'api/pda/slitter/bindSlitterSubVolumeInfo',
|
url:'api/pda/slitter/bindSlitterSubVolumeInfo',
|
||||||
data: {point_code: code, container_name: name}
|
data: {point_code: code, container_name: name}
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* 备货区管理
|
||||||
|
*/
|
||||||
|
export const doStockAreaBinding = (code, vcode) => request({
|
||||||
|
url:'api/pda/slitter/doStockAreaBinding',
|
||||||
|
data: {point_code: code, vehicle_code: vcode}
|
||||||
|
})
|
||||||
|
export const doStockAreaUnbinding = (code) => request({
|
||||||
|
url:'api/pda/slitter/doStockAreaUnbinding',
|
||||||
|
data: {point_code: code}
|
||||||
})
|
})
|
||||||
@@ -85,7 +85,8 @@ export const allAuthority = () => {
|
|||||||
{menu_id: '8', title: '分切暂存下料', path: '/pages/SecondPhase/slitting/CacheCut'},
|
{menu_id: '8', title: '分切暂存下料', path: '/pages/SecondPhase/slitting/CacheCut'},
|
||||||
{menu_id: '8', title: '分切暂存清除', path: '/pages/SecondPhase/slitting/CacheClean'},
|
{menu_id: '8', title: '分切暂存清除', path: '/pages/SecondPhase/slitting/CacheClean'},
|
||||||
{menu_id: '8', title: '气胀轴库维护', path: '/pages/SecondPhase/slitting/ShaftSave'},
|
{menu_id: '8', title: '气胀轴库维护', path: '/pages/SecondPhase/slitting/ShaftSave'},
|
||||||
{menu_id: '8', title: '分切子卷维护', path: '/pages/SecondPhase/slitting/ZjSave'}
|
{menu_id: '8', title: '分切子卷维护', path: '/pages/SecondPhase/slitting/ZjSave'},
|
||||||
|
{menu_id: '8', title: '备货区管理', path: '/pages/SecondPhase/slitting/StockingArea'}
|
||||||
]},
|
]},
|
||||||
{menu_id: '6', path: 'RF04', title: '点位管理', sonTree: [
|
{menu_id: '6', path: 'RF04', title: '点位管理', sonTree: [
|
||||||
{menu_id: '1', title: '点位管理', path: '/pages/SecondPhase/point/PointManage'},
|
{menu_id: '1', title: '点位管理', path: '/pages/SecondPhase/point/PointManage'},
|
||||||
@@ -125,7 +126,7 @@ export const authority = () => {
|
|||||||
{title: '空木箱入库',sonTree: [{title: '空木箱入库'}]},
|
{title: '空木箱入库',sonTree: [{title: '空木箱入库'}]},
|
||||||
{title: '发货区',sonTree: [{title: '发货区解绑'}]},
|
{title: '发货区',sonTree: [{title: '发货区解绑'}]},
|
||||||
{title: '生产管理',sonTree: [{title: '生箔生产进度'},{title: '生箔工序'},{title: '烘烤工序'},{title: '表处工序'},{title: '人工烘烤'},{title: '子卷质检'}]},
|
{title: '生产管理',sonTree: [{title: '生箔生产进度'},{title: '生箔工序'},{title: '烘烤工序'},{title: '表处工序'},{title: '人工烘烤'},{title: '子卷质检'}]},
|
||||||
{title: '分切管理', sonTree: [{title: '分切上料'},{title: '分切下料'},{title: '空轴套管'},{title: '空轴配送'},{title: '空轴进站'},{title: '子卷出站'},{title: '穿拔轴初始化'},{title: '纸管绑定'},{title: '分切暂存下料'},{title: '分切暂存清除'},{title: '气胀轴库维护'}, {title: '分切子卷维护'}]},
|
{title: '分切管理', sonTree: [{title: '分切上料'},{title: '分切下料'},{title: '空轴套管'},{title: '空轴配送'},{title: '空轴进站'},{title: '子卷出站'},{title: '穿拔轴初始化'},{title: '纸管绑定'},{title: '分切暂存下料'},{title: '分切暂存清除'},{title: '气胀轴库维护'}, {title: '分切子卷维护'}, {title: '备货区管理'}]},
|
||||||
{title: '点位管理', sonTree: [{title: '点位管理'},{title: '异常出库解锁'}]},
|
{title: '点位管理', sonTree: [{title: '点位管理'},{title: '异常出库解锁'}]},
|
||||||
{title: '成品入库', sonTree: [{title: '退货口入库'},{title: '异常口入库'},{title: '木箱称重'}]}
|
{title: '成品入库', sonTree: [{title: '退货口入库'},{title: '异常口入库'},{title: '木箱称重'}]}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user