仓储管理

This commit is contained in:
2026-01-09 15:04:21 +08:00
parent ddf1525626
commit ba0bc562af
4 changed files with 56 additions and 40 deletions

View File

@@ -22,6 +22,16 @@
<input type="number" v-model="num" class="filter_input filter_input_disabled" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">袋码</span>
</view>
<view class="zd-col-24 filter_select">
<search-box
v-model="bagCode"
/>
</view>
</view>
<view class="zd-row">
<button class="zd-col-11 button-primary ftsize1" @tap="toScanAdd">扫码插入</button>
<button class="zd-col-11 button-primary ftsize1" @tap="toDel">删除行</button>
@@ -85,6 +95,7 @@
title: '',
num: null,
val1: '',
bagCode: '',
dataList: [],
// dataList: [{material_code: 'm001', qty: 100, checked: false, initialQty: 100}, {material_code: 'm002', qty: 200, checked: false, initialQty: 200}],
disabled: false
@@ -95,19 +106,22 @@
},
methods: {
toScanAdd () {
uni.scanCode({
success: (res) => {
// console.log('扫码成功:', res.result);
this._getPalletAssembly(res.result)
},
fail: (err) => {
console.log('扫码失败:', err)
// uni.showToast({
// title: err + '扫码失败',
// icon: 'none'
// })
}
})
if (this.bagCode) {
this._getPalletAssembly(this.bagCode)
}
// uni.scanCode({
// success: (res) => {
// // console.log('扫码成功:', res.result);
// this._getPalletAssembly(res.result)
// },
// fail: (err) => {
// console.log('扫码失败:', err)
// // uni.showToast({
// // title: err + '扫码失败',
// // icon: 'none'
// // })
// }
// })
},
toDel () {
if (!this.pkId) {