仓储管理

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

@@ -12,6 +12,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>
@@ -76,6 +86,7 @@
return {
title: '',
options: [],
bagCode: '',
num: null,
index: '',
dataList: [],
@@ -108,19 +119,9 @@
}
},
toScanAdd () {
uni.scanCode({
success: (res) => {
// console.log('扫码成功:', res.result);
this._directlyOutCodeInsert(res.result)
},
fail: (err) => {
console.log('扫码失败:', err)
// uni.showToast({
// title: err + '扫码失败',
// icon: 'none'
// })
}
})
if (this.bagCode) {
this._directlyOutCodeInsert(this.bagCode)
}
},
toDel () {
if (!this.pkId) {