仓储管理
This commit is contained in:
@@ -34,6 +34,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-10 button-primary ftsize1" @tap="toScanAdd">扫码插入</button>
|
||||
<button class="zd-col-10 button-primary ftsize1" @tap="toDel">删除行</button>
|
||||
@@ -100,6 +110,7 @@
|
||||
num: null,
|
||||
val1: '',
|
||||
val2: '',
|
||||
bagCode: '',
|
||||
dataList: [],
|
||||
// dataList: [{material_code: 'm001', qty: 100, checked: false, initialQty: 100}, {material_code: 'm002', qty: 200, checked: false, initialQty: 200}],
|
||||
disabled: false
|
||||
@@ -110,19 +121,9 @@
|
||||
},
|
||||
methods: {
|
||||
toScanAdd () {
|
||||
uni.scanCode({
|
||||
success: (res) => {
|
||||
// console.log('扫码成功:', res.result);
|
||||
this._insideCodeInsert(res.result)
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log('扫码失败:', err)
|
||||
// uni.showToast({
|
||||
// title: err + '扫码失败',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
})
|
||||
if (this.bagCode) {
|
||||
this._insideCodeInsert(this.bagCode)
|
||||
}
|
||||
},
|
||||
toDel () {
|
||||
if (!this.pkId) {
|
||||
|
||||
Reference in New Issue
Block a user