入库模块增加库区信息

This commit is contained in:
2025-06-13 17:32:19 +08:00
parent 8465fceddb
commit 30deab4b2a
7 changed files with 236 additions and 21 deletions

View File

@@ -11,6 +11,7 @@
<view class="zd-col-17">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -23,6 +24,29 @@
</view>
</view>
</view>
<view class="filter_label">当前库位可用数</view>
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-4">
<span class="filter_label" style="font-size: 24rpx;">高库位</span>
</view>
<view class="zd-col-4">
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.g}}</span>
</view>
<view class="zd-col-4">
<span class="filter_label" style="font-size: 24rpx;">中库位</span>
</view>
<view class="zd-col-4">
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.z}}</span>
</view>
<view class="zd-col-4">
<span class="filter_label" style="font-size: 24rpx;">低库位</span>
</view>
<view class="zd-col-4">
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.d}}</span>
</view>
</view>
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
@@ -34,7 +58,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {pdaPalletIostorinvIn} from '@/utils/getData2.js'
import {getStructCount, pdaPalletIostorinvIn} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -46,7 +70,8 @@
val1: '',
options: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}],
index: '',
disabled: false
disabled: false,
kwData: {}
};
},
onLoad (options) {
@@ -55,6 +80,23 @@
created () {
},
methods: {
handleChange (e) {
if (e) {
this._getStructCount()
}
},
async _getStructCount () {
try {
let res = await getStructCount()
if (res) {
this.kwData = res
} else {
this.kwData = {}
}
} catch (e) {
this.kwData = {}
}
},
selectChange (e) {
this.index = e
},
@@ -62,6 +104,7 @@
this.val1 = ''
this.index = ''
this.disabled = false
this.kwData = {}
},
async _pdaPalletIostorinvIn () {
this.disabled = true