入库模块增加库区信息
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user