托盘号补录
@@ -94,6 +94,14 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/modules/pallet-add-record",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
@@ -40,13 +40,14 @@
|
|||||||
// {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
|
// {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
|
||||||
// {id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
|
// {id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
|
||||||
// {id: '3', name: '物料库存', icon: 'RF03', path: '/pages/modules/mater-inventory'}
|
// {id: '3', name: '物料库存', icon: 'RF03', path: '/pages/modules/mater-inventory'}
|
||||||
{id: '1', name: '原材料入库', icon: 'RF03', path: '/pages/modules/rawmater-instore'},
|
{id: '1', name: '原材料入库', icon: 'RF04', path: '/pages/modules/rawmater-instore'},
|
||||||
{id: '2', name: '原材料出库', icon: 'RF07', path: '/pages/modules/rawmater-outstore'},
|
{id: '2', name: '原材料出库', icon: 'RF06', path: '/pages/modules/rawmater-outstore'},
|
||||||
{id: '3', name: '搬运任务', icon: 'RF01', path: '/pages/modules/carry-task'},
|
{id: '3', name: '搬运任务', icon: 'RF07', path: '/pages/modules/carry-task'},
|
||||||
{id: '4', name: '组盘解绑', icon: 'RF04', path: '/pages/modules/zupan-unbind'},
|
{id: '4', name: '组盘解绑', icon: 'RF08', path: '/pages/modules/zupan-unbind'},
|
||||||
{id: '5', name: '指令管理', icon: 'RF02', path: '/pages/modules/zlmanage'},
|
{id: '5', name: '指令管理', icon: 'RF01', 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'}
|
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'},
|
||||||
|
{id: '8', name: '托盘号补录', icon: 'RF05', path: '/pages/modules/pallet-add-record'}
|
||||||
]
|
]
|
||||||
if (this.roles === 'A1,A2,') {
|
if (this.roles === 'A1,A2,') {
|
||||||
this.menuList = [
|
this.menuList = [
|
||||||
@@ -59,7 +60,8 @@
|
|||||||
{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'}
|
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'},
|
||||||
|
{id: '8', name: '托盘号补录', icon: 'RF05', path: '/pages/modules/pallet-add-record'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
if (this.roles === 'A1,') {
|
if (this.roles === 'A1,') {
|
||||||
@@ -68,7 +70,8 @@
|
|||||||
{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'}
|
{id: '7', name: '异常出库', icon: 'RF10', path: '/pages/modules/error-outstore'},
|
||||||
|
{id: '8', name: '托盘号补录', icon: 'RF05', path: '/pages/modules/pallet-add-record'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
if (this.roles === 'A2,') {
|
if (this.roles === 'A2,') {
|
||||||
|
|||||||
74
pages/modules/pallet-add-record.vue
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar title="托盘号补录"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">子托盘号</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">母托盘号</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box
|
||||||
|
v-model="val2"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar_new">
|
||||||
|
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||||
|
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_handRecord">确认</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import {handRecord} from '@/utils/getData02.js'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toClear () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
},
|
||||||
|
async _handRecord () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await handRecord(this.val1, this.val2)
|
||||||
|
this.disabled = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -41,3 +41,14 @@ export const handTaskoperation = (type, id) => request({
|
|||||||
task_uuid: id
|
task_uuid: id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 托盘号补录--c
|
||||||
|
*/
|
||||||
|
export const handRecord = (st, mt) => request({
|
||||||
|
url:'api/hand/record',
|
||||||
|
data: {
|
||||||
|
sub_tray: st,
|
||||||
|
mother_tray: mt
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||