拆分入库
This commit is contained in:
@@ -126,6 +126,12 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/WarehouseManage/InStoreSplit",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
,{
|
,{
|
||||||
"path" : "pages/WarehouseManage/ProdDeliveryConfirm",
|
"path" : "pages/WarehouseManage/ProdDeliveryConfirm",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
146
pages/WarehouseManage/InStoreSplit.vue
Normal file
146
pages/WarehouseManage/InStoreSplit.vue
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
<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_wraper">
|
||||||
|
<span class="filter_label">木箱</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
:focused="true"
|
||||||
|
@handleChange="handleChange"
|
||||||
|
/>
|
||||||
|
</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 class="filter_item">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label filter_label_1"></span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper filter_input_wraper_1">
|
||||||
|
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual"></view>
|
||||||
|
<view class="filter_input_wraper_inn_text">虚拟库</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd_wrapper grid-wraper">
|
||||||
|
<view class="slide_new">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>木箱码</th>
|
||||||
|
<th>子卷号</th>
|
||||||
|
<th>物料编码</th>
|
||||||
|
<th>物料名称</th>
|
||||||
|
<th>重量KG</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(e, i) in dataList" :key="i">
|
||||||
|
<td>{{e.package_box_sn}}</td>
|
||||||
|
<td>{{e.container_name}}</td>
|
||||||
|
<td>{{e.product_name}}</td>
|
||||||
|
<td>{{e.product_description}}</td>
|
||||||
|
<td>{{e.net_weight}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !val1 || dataList.length === 0}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled1" @tap="_stPrint">补码</button>
|
||||||
|
<button class="submit-button" @tap="_boxQuery(val1)">查询</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {boxQuery, stConfirm, stPrint} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
isV: '1',
|
||||||
|
dataList: [],
|
||||||
|
disabled: false,
|
||||||
|
disabled1: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 虚拟库 */
|
||||||
|
isVirtual () {
|
||||||
|
this.isV = this.isV === '0' ? '1' : '0'
|
||||||
|
},
|
||||||
|
handleChange (e) {
|
||||||
|
this._boxQuery(e)
|
||||||
|
},
|
||||||
|
/** 初始化查询 */
|
||||||
|
async _boxQuery (e) {
|
||||||
|
let res = await boxQuery(e, '4')
|
||||||
|
this.dataList = [...res.data]
|
||||||
|
},
|
||||||
|
/** 确认 */
|
||||||
|
async _stConfirm () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || this.dataList.length === 0) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await stConfirm(this.dataList, this.val2, '4', this.isV, '', this.val1)
|
||||||
|
this.disabled = false
|
||||||
|
this._boxQuery(this.val1)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 补码 */
|
||||||
|
async _stPrint () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (this.dataList.length === 0) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await stPrint(this.dataList)
|
||||||
|
this.disabled1 = false
|
||||||
|
this._boxQuery()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
@@ -28,7 +28,49 @@ export const handRequest = () => request({
|
|||||||
// 菜单
|
// 菜单
|
||||||
export const authority = () => {
|
export const authority = () => {
|
||||||
let res = {
|
let res = {
|
||||||
sonTree: [{menu_id: '1', path: 'RF01', name: '生产管理', sonTree: [{menu_id: '1', name: '生箔生产进度', path: '/pages/ProductManage/SboProdProgress'}, {menu_id: '2', name: '生箔工序', path: '/pages/ProductManage/SboProcess'}, {menu_id: '3', name: '烘烤工序', path: '/pages/ProductManage/BakeProcess'}, {menu_id: '4', name: '人工烘烤', path: '/pages/ProductManage/ManmadeBake'}]}, {menu_id: '2', path: 'RF02', name: '半成品管理', sonTree: [{menu_id: '1', name: '半成品入库', path: '/pages/WarehouseManage/SemifinishedInStore'}, {menu_id: '2', name: '半成品出库', path: '/pages/WarehouseManage/SemifinishedOutStore'}]}, {menu_id: '3', path: 'RF03', name: '分切管理', sonTree: [{menu_id: '1', name: '子卷套管', path: '/pages/ProductManage/ZjCasing'}, {menu_id: '2', name: '子卷配送', path: '/pages/ProductManage/ZjDelivery'}, {menu_id: '3', name: '子卷进站', path: '/pages/ProductManage/ZjInStore'}, {menu_id: '4', name: '子卷出站', path: '/pages/ProductManage/ZjOutStore'}]}, {menu_id: '4', path: 'RF04', name: '点位管理', sonTree: [{menu_id: '1', name: '点位管理', path: '/pages/ProductManage/PointManage'}]}, {menu_id: '5', path: 'RF05', name: '纸管/FRP管管理', sonTree: [{menu_id: '1', name: '空管入库', path: '/pages/ProductManage/EmptyPipeInStore'}, {menu_id: '2', name: '空管出库', path: '/pages/ProductManage/EmptyPipeOutStore'}]}, {menu_id: '6', path: 'RF06', name: '成品管理', sonTree: [{menu_id: '1', name: '生产入库', path: '/pages/WarehouseManage/InStoreConfirm'}, {menu_id: '2', name: '退货入库', path: '/pages/WarehouseManage/ReturngoodsInStore'}, {menu_id: '3', name: '报废入库', path: '/pages/WarehouseManage/ScrapInStore'}, {menu_id: '4', name: '生产区发货', path: '/pages/WarehouseManage/ProdDeliveryConfirm'}, {menu_id: '5', name: '虚拟区发货', path: '/pages/WarehouseManage/XuniDelivery'}]}, {menu_id: '7', path: 'RF07', name: '在库管理', sonTree: [{menu_id: '1', name: '盘点管理', path: '/pages/WarehouseManage/CheckList'}]}, {menu_id: '8', path: 'RF08', name: '载具管理', sonTree: [{menu_id: '1', name: '空载具入库', path: '/pages/WarehouseManage/EmptyInStore'}, {menu_id: '2', name: '空载具出库', path: '/pages/WarehouseManage/EmptyOutStore'}]}, {menu_id: '9', path: 'RF09', name: '打印管理', sonTree: [{menu_id: '1', name: '客户标签打印', path: '/pages/WarehouseManage/CustomerLabelPrint'}]}]
|
sonTree: [
|
||||||
|
{menu_id: '1', path: 'RF01', name: '生产管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '生箔生产进度', path: '/pages/ProductManage/SboProdProgress'},
|
||||||
|
{menu_id: '2', name: '生箔工序', path: '/pages/ProductManage/SboProcess'},
|
||||||
|
{menu_id: '3', name: '烘烤工序', path: '/pages/ProductManage/BakeProcess'},
|
||||||
|
{menu_id: '4', name: '人工烘烤', path: '/pages/ProductManage/ManmadeBake'}
|
||||||
|
]},
|
||||||
|
{menu_id: '2', path: 'RF02', name: '半成品管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '半成品入库', path: '/pages/WarehouseManage/SemifinishedInStore'},
|
||||||
|
{menu_id: '2', name: '半成品出库', path: '/pages/WarehouseManage/SemifinishedOutStore'},
|
||||||
|
]},
|
||||||
|
{menu_id: '3', path: 'RF03', name: '分切管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '子卷套管', path: '/pages/ProductManage/ZjCasing'},
|
||||||
|
{menu_id: '2', name: '子卷配送', path: '/pages/ProductManage/ZjDelivery'},
|
||||||
|
{menu_id: '3', name: '子卷进站', path: '/pages/ProductManage/ZjInStore'},
|
||||||
|
{menu_id: '4', name: '子卷出站', path: '/pages/ProductManage/ZjOutStore'},
|
||||||
|
]},
|
||||||
|
{menu_id: '4', path: 'RF04', name: '点位管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '点位管理', path: '/pages/ProductManage/PointManage'},
|
||||||
|
]},
|
||||||
|
{menu_id: '5', path: 'RF05', name: '纸管/FRP管管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '空管入库', path: '/pages/ProductManage/EmptyPipeInStore'},
|
||||||
|
{menu_id: '2', name: '空管出库', path: '/pages/ProductManage/EmptyPipeOutStore'},
|
||||||
|
]},
|
||||||
|
{menu_id: '6', path: 'RF06', name: '成品管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '生产入库', path: '/pages/WarehouseManage/InStoreConfirm'},
|
||||||
|
{menu_id: '2', name: '退货入库', path: '/pages/WarehouseManage/ReturngoodsInStore'},
|
||||||
|
{menu_id: '3', name: '报废入库', path: '/pages/WarehouseManage/ScrapInStore'},
|
||||||
|
{menu_id: '4', name: '拆分入库', path: '/pages/WarehouseManage/InStoreSplit'},
|
||||||
|
{menu_id: '5', name: '生产区发货', path: '/pages/WarehouseManage/ProdDeliveryConfirm'},
|
||||||
|
{menu_id: '6', name: '虚拟区发货', path: '/pages/WarehouseManage/XuniDelivery'},
|
||||||
|
]},
|
||||||
|
{menu_id: '7', path: 'RF07', name: '在库管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '盘点管理', path: '/pages/WarehouseManage/CheckList'},
|
||||||
|
]},
|
||||||
|
{menu_id: '8', path: 'RF08', name: '载具管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '空载具入库', path: '/pages/WarehouseManage/EmptyInStore'},
|
||||||
|
{menu_id: '2', name: '空载具出库', path: '/pages/WarehouseManage/EmptyOutStore'},
|
||||||
|
]},
|
||||||
|
{menu_id: '9', path: 'RF09', name: '打印管理', sonTree: [
|
||||||
|
{menu_id: '1', name: '客户标签打印', path: '/pages/WarehouseManage/CustomerLabelPrint'},
|
||||||
|
]}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user