add 子卷入库页

This commit is contained in:
2025-01-08 10:03:41 +08:00
parent 02e7bad05f
commit 5ce6209db5
4 changed files with 161 additions and 0 deletions

View File

@@ -551,6 +551,14 @@
}
}
,{
"path" : "pages/SecondPhase/production/ZjInStore",
"style" :
{
"navigationStyle": "custom"
}
}
],
"globalStyle": {
// "pageOrientation": "landscape",

View File

@@ -0,0 +1,125 @@
<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" @handleChange="handleChange" />
</view>
</view>
</view>
<view class="zd_wrapper grid-wraper">
<view class="slide_new">
<table>
<thead>
<tr>
<th>木箱码</th>
<th>子卷容量</th>
<th>产品描述</th>
<th>sap批次</th>
<th>产品规格(幅宽)</th>
<th>木箱重量</th>
<th>木箱长</th>
<th>木箱宽</th>
<th>木箱高</th>
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i">
<td>{{e.package_box_sn}}</td>
<td>{{e.quanlity_in_box}}</td>
<td>{{e.product_description}}</td>
<td>{{e.sap_pcsn}}</td>
<td>{{e.width}}</td>
<td>{{e.box_weight}}</td>
<td>{{e.box_length}}</td>
<td>{{e.box_width}}</td>
<td>{{e.box_high}}</td>
</tr>
</tbody>
</table>
</view>
</view>
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">清空</button>
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !arr1.length}" :disabled="disabled" @tap="_zjInBoundConfirm">装箱入库</button>
</view>
<up-top ref="UT" :scrollTop="top"></up-top>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
import {zjInBound, zjInBoundConfirm} from '@/utils/getData3.js'
export default {
components: {
NavBar,
SearchBox,
UpTop
},
data() {
return {
title: '',
top: 0,
val1: '',
arr1: [],
dataList: [],
disabled: false
};
},
onPageScroll(e) {
this.$refs.UT.topData(e.scrollTop)
},
onLoad (options) {
this.title = options.title
},
methods: {
handleChange (e) {
let flag = this.arr1.includes(e)
if (!flag) {
this._zjInBound(e)
}
},
async _zjInBound (e) {
try {
let res = await zjInBound(e)
this.dataList = [...this.dataList, ...res.content]
this.arr1.push(e)
} catch (e) {
console.log(e)
}
},
clearUp () {
this.val1 = ''
this.arr1 = []
this.dataList = []
this.disabled = false
},
async _zjInBoundConfirm () {
this.disabled = true
if (!this.arr1.length) {
this.disabled = false
return
}
try {
let res = await zjInBoundConfirm(this.arr1.join(','))
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} catch (e) {
this.disabled = false
}
}
}
}
</script>

View File

@@ -304,6 +304,10 @@ export const doSubRollWeightBinding = (cn, pw, rw) => request({
url:'api/pda/slitter/doSubRollWeightBinding',
data: {container_name: cn, paper_weight: pw, roll_weight: rw}
})
export const doSubRollWeightBindingTip = (cn) => request({
url:'api/pda/slitter/doSubRollWeightBindingTip',
data: {container_name: cn}
})
/**
* 分切上轴
*/
@@ -326,3 +330,14 @@ export const doUpShaftToSlitterByDevice = (area, code) => request({
url:'api/pda/slitter/doUpShaftToSlitterByDevice',
data: {area: area, device_code: code}
})
/**
* 子卷入库(生产管理)
*/
export const zjInBound = (code) => request({
url:'api/pdmBiSubpackagerelation/zjInBound',
data: {container_name: code}
})
export const zjInBoundConfirm = (code) => request({
url:'api/pdmBiSubpackagerelation/zjInBoundConfirm',
data: {search: code}
})

View File

@@ -74,6 +74,7 @@ export const allAuthority = () => {
{menu_id: '5', title: '人工烘烤', path: '/pages/SecondPhase/production/ManmadeBake'},
{menu_id: '6', title: '子卷质检', path: '/pages/SecondPhase/production/ZjCheck'},
{menu_id: '8', title: '子卷装箱', path: '/pages/SecondPhase/production/ZjContainer'},
{menu_id: '8', title: '子卷入库', path: '/pages/SecondPhase/production/ZjInStore'},
{menu_id: '8', title: '标签打印', path: '/pages/SecondPhase/production/PrintTable'}
]},
{menu_id: '5', path: 'RF03', title: '分切管理', sonTree: [
@@ -245,4 +246,16 @@ export const queryDeviceByarea = () => {
data: [{value: '01', text: 'a'}, {value: '02', text: 'bc'}]
}
return res
}
export const zjInBound = () => {
let res = {
content: [{package_box_sn: '01'}, {package_box_sn: '02'}]
}
return res
}
export const doSubRollWeightBindingTip = () => {
let res = {
tip: '111111'
}
return res
}