入库模块增加库区信息

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

View File

@@ -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

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

View File

@@ -8,7 +8,7 @@
<view class="zd-col-7">
<span class="filter_label">物料编码</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<input type="text" class="filter_input" v-model="currentData.material_code" @tap="toJump">
</view>
</view>
@@ -16,7 +16,7 @@
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料名称</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
</view>
</view>
@@ -24,7 +24,7 @@
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料规格</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled>
</view>
</view>
@@ -32,7 +32,7 @@
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">单位</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.unit_name" disabled>
</view>
</view>
@@ -40,7 +40,7 @@
<view class="zd-col-7">
<span class="filter_label">物料单重</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<NumberInput v-model="currentData.single_weight" />
</view>
</view>
@@ -48,7 +48,7 @@
<view class="zd-col-7">
<span class="filter_label">物料批次</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<input type="text" class="filter_input" v-model="currentData.pcsn">
</view>
</view>
@@ -56,7 +56,7 @@
<view class="zd-col-7">
<span class="filter_label">物料数量</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<NumberInput v-model="currentData.qty" />
</view>
</view>
@@ -64,7 +64,7 @@
<view class="zd-col-7">
<span class="filter_label">载具编码</span>
</view>
<view class="zd-col-24">
<view class="zd-col-17">
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
</view>
</view>
@@ -72,12 +72,35 @@
<view class="zd-col-7">
<span class="filter_label">仓库编码</span>
</view>
<view class="zd-col-24 filter_select">
<view class="zd-col-17 filter_select">
<!-- <search-box v-model="currentData.stor_code"/> -->
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</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>
@@ -90,7 +113,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import NumberInput from '@/components/NumberInput.vue'
import {storList, groupMaterIn} from '@/utils/getData2.js'
import {storList, getStructCount, groupMaterIn} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -103,7 +126,8 @@
currentData: {},
options: [],
index: '',
disabled: false
disabled: false,
kwData: {}
};
},
onLoad (options) {
@@ -120,12 +144,17 @@
}
})
} else {
if (this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
if (this.currentData.vehicle_code && this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
this.index ='FStockPallet'
} else {
this.index ='FStockId'
}
}
if (this.currentData.vehicle_code) {
this._getStructCount()
} else {
this.kwData = {}
}
this.$store.dispatch('setPublicObj', '')
}
},
@@ -154,6 +183,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 = {}
}
},
handleDel () {
@@ -163,6 +205,7 @@
this.currentData = {}
this.index = ''
this.disabled = false
this.kwData = {}
},
async _groupMaterIn () {
this.disabled = true

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