From 3f2fffcb6e1b4966b36492118409f562d3c7ce28 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 02 十二月 2022 08:31:41 +0800
Subject: [PATCH] #
---
pages/basics/pakin.vue | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index 7efbb30..e1a916a 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -9,7 +9,7 @@
<view class="square-content">
<view class="content-input">
<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆"
- :focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height: 85rpx;">
+ :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;">
<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
</view>
</view>
@@ -87,14 +87,19 @@
<!-- 寮圭獥 -->
<!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff" @change="change">
- <view class="revise-box">
+ <uni-popup ref="revise" background-color="#fff">
+ <view class="revise-box ">
<view class="revise-box-top">
<view class="color-block-blue"></view>
- <text class="title">淇敼鏁伴噺</text>
+ <text class="title">淇敼鎵瑰彿/鏁伴噺</text>
+ </view>
+ <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
+ <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text>
+ <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch">
</view>
<view class="changeBox">
<view class="num-box">
+ <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text>
<uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/>
</view>
</view>
@@ -131,6 +136,7 @@
check:false,
checkText:'鍏ㄩ��',
checkedData:[],
+ batch:''
}
},
onShow() {
@@ -163,10 +169,8 @@
this.barcodeFocuss()
return;
}
- if (len == 8) {
- this.focuss()
- }
- },100)
+ this.focuss()
+ },200)
},
// 鎵樼洏鐮佹湁璇噸缃�
barcodeFocuss() {
@@ -401,6 +405,7 @@
},
confirm() {
this.matList[this.rowNum].anfme = this.count
+ this.matList[this.rowNum].batch = this.batch
this.$refs.revise.close()
this.$forceUpdate() // 寮哄埗鍒锋柊
},
@@ -455,8 +460,9 @@
/* @import "../../colorui/main.css";
@import "../../colorui/icon.css"; */
.revise-box {
- width: 400rpx;
- height: 300rpx;
+ position: relative;
+ width: 500rpx;
+ height: 400rpx;
border-radius: 25px;
}
.revise-box-top {
@@ -472,7 +478,7 @@
margin-left: 100rpx;
}
.revise-box-buttom{
- margin-left: 130rpx;
+ margin-left: 190rpx;
}
.pak-seach-box {
background-color: #FFFFFF;
--
Gitblit v1.9.1