Commit 911204e1 authored by 张海景's avatar 张海景

update:修改采购入库扫描按钮改成输入框

parent 3fa49ee5
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view> <view>
<NavBar title="采购入库扫描"></NavBar> <NavBar title="采购入库扫描"></NavBar>
<view class="btn"> <view class="btn">
<u-button @tap="handleScanCode" type="primary">扫描库位</u-button> <uni-easyinput prefixIcon="search" class="topSearch" v-model="value" focus placeholder="请扫描库位" @input="handleInput"></uni-easyinput>
<u-button @tap="handleScanCode" type="primary">扫描产品包装条码/外箱码</u-button> <uni-easyinput prefixIcon="search" v-model="wxparams" focus placeholder="请扫描产品包装条码/外箱码" @input="handleInput"></uni-easyinput>
</view> </view>
<view class="total"> <view class="total">
<view class="left">入库明细</view> <view class="left">入库明细</view>
...@@ -106,13 +106,18 @@ export default { ...@@ -106,13 +106,18 @@ export default {
return { return {
number: 2, number: 2,
total: 200, total: 200,
show: true show: true,
value: '',
wxparams: ''
}; };
}, },
methods: { methods: {
handleBack() { handleBack() {
uni.navigateBack(); uni.navigateBack();
}, },
handleInput(e) {
console.log(e, 'eee')
},
handleScanCode() { handleScanCode() {
uni.scanCode({ uni.scanCode({
success: function (res) { success: function (res) {
...@@ -131,9 +136,10 @@ page { ...@@ -131,9 +136,10 @@ page {
} }
.btn { .btn {
padding: 20rpx; padding: 20rpx;
display: flex;
justify-content: space-between;
background: #fff; background: #fff;
.topSearch{
margin-bottom: 20rpx;
}
} }
.bottomBtn { .bottomBtn {
position: sticky; position: sticky;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment