入库模块增加库区信息

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

@@ -79,6 +79,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>
@@ -130,7 +153,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {inStorageOrder, getBillNoInfo, storList, inStorageConfirm} from '@/utils/getData2.js'
import {getStructCount, inStorageOrder, getBillNoInfo, storList, inStorageConfirm} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -151,7 +174,8 @@
index: '',
disabled: false,
options1: [],
index1: ''
index1: '',
kwData: {}
};
},
onLoad (options) {
@@ -257,6 +281,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 () {
@@ -271,6 +308,7 @@
this.val2 = null
this.index1 = ''
this.disabled = false
this.kwData = {}
},
async _inStorageConfirm () {
this.disabled = true