入库模块增加库区信息

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

@@ -78,6 +78,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="toEmpty">清空</button>
@@ -89,7 +112,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {storList, getCertificateInfo, inStorageConfirm} from '@/utils/getData2.js'
import {getStructCount, storList, getCertificateInfo, inStorageConfirm} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -104,7 +127,8 @@
currentData: {},
options: [],
index: '',
disabled: false
disabled: false,
kwData: {}
};
},
onLoad (options) {
@@ -138,6 +162,19 @@
} else {
this.index ='FStockId'
}
this._getStructCount()
}
},
async _getStructCount () {
try {
let res = await getStructCount()
if (res) {
this.kwData = res
} else {
this.kwData = {}
}
} catch (e) {
this.kwData = {}
}
},
handleDel2 () {
@@ -150,6 +187,7 @@
this.currentData = {}
this.index = ''
this.disabled = false
this.kwData = {}
},
async _inStorageConfirm () {
this.disabled = true