From ff777cd28199571a5810b682b038b96d02d4d360 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 07 三月 2025 16:24:48 +0800
Subject: [PATCH] #
---
pages/pakin/pakin.vue | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue
index 62be51a..5173e24 100644
--- a/pages/pakin/pakin.vue
+++ b/pages/pakin/pakin.vue
@@ -9,13 +9,13 @@
<view class="item">
<view class="code-decs">鐗╂枡鐮�:</view>
<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="matnr" :focus="matFocus" @input="findMat()">
- <view class="item-right">
+ <!-- <view class="item-right">
<button></button>
<text style="text-align: right;color: #409EFF;" @click="selectMat()">鎻愬彇+</text>
<uni-icons type="right" color="#c1c1c1"></uni-icons>
- </view>
+ </view> -->
</view>
- <view class="item">
+ <!-- <view class="item">
<view class="code-decs">婊℃墭:</view>
<radio-group @change="isFrozen">
<label>
@@ -25,7 +25,7 @@
<radio :checked="ck2" style="margin-left: 50rpx;"/><text>鍚�</text>
</label>
</radio-group>
- </view>
+ </view> -->
</view>
<view class="mat-list-title">
鍟嗗搧鍒楄〃
@@ -193,7 +193,7 @@
// 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
setTimeout(() => {
var len = this.barcode.length
- if (len != 8) {
+ if (len >= 9 && len <=8) {
uni.showToast({
title: '鎵樼洏鐮佹湁璇閲嶈瘯',
icon: "none",
@@ -224,11 +224,13 @@
},
// 鎼滅储鐗╂枡
findMat() {
- let that = this
+ let that = this
+ let m = that.matnr.split(";")
+ let matnr1 = m[0].slice(3)
uni.request({
url: that.baseUrl + '/mat/auth',
data: {
- matnr: that.matnr
+ matnr: matnr1
},
header: {
'token': uni.getStorageSync('token')
@@ -409,8 +411,7 @@
uni.request({
url: that.baseUrl + '/mobile/comb/auth',
data: JSON.stringify({
- barcode: that.barcode,
- isFull: that.isFull,
+ barcode: that.barcode,
combMats: that.dataList
}),
method: 'POST',
@@ -481,7 +482,7 @@
.item {
display: flex;
align-items: center;
- height: 70rpx;
+ height: 100rpx;
margin-left: 20rpx;
border-bottom: 1px solid #DCDFE6;
}
@@ -517,6 +518,9 @@
z-index: 9;
/* border-top: 1px solid #DCDFE6; */
text-align: center;
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
+ box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5);
+ }
+ .list:first-child {
+ margin-top: 250rpx;
}
</style>
--
Gitblit v1.9.1