入库模块增加库区信息
This commit is contained in:
@@ -77,6 +77,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 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import NumberInput from '@/components/NumberInput.vue'
|
||||
import {storList, queryMaterByVehicleCode, checkMaterConfirm} from '@/utils/getData2.js'
|
||||
import {getStructCount, storList, queryMaterByVehicleCode, checkMaterConfirm} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -106,7 +129,8 @@
|
||||
qty: null,
|
||||
storCode: null,
|
||||
options: [],
|
||||
disabled: false
|
||||
disabled: false,
|
||||
kwData: {}
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -151,6 +175,19 @@
|
||||
handleChange (e) {
|
||||
if (e) {
|
||||
this._queryMaterByVehicleCode(e)
|
||||
this._getStructCount()
|
||||
}
|
||||
},
|
||||
async _getStructCount () {
|
||||
try {
|
||||
let res = await getStructCount()
|
||||
if (res) {
|
||||
this.kwData = res
|
||||
} else {
|
||||
this.kwData = {}
|
||||
}
|
||||
} catch (e) {
|
||||
this.kwData = {}
|
||||
}
|
||||
},
|
||||
async _queryMaterByVehicleCode (e) {
|
||||
@@ -179,6 +216,7 @@
|
||||
this.qty = null
|
||||
this.storCode = null
|
||||
this.disabled = false
|
||||
this.kwData = {}
|
||||
},
|
||||
async _checkMaterConfirm () {
|
||||
this.disabled = true
|
||||
|
||||
Reference in New Issue
Block a user