From f3fd6931f2f1c68b9f51a51de2eeb32f07135a53 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 21 三月 2025 16:50:54 +0800
Subject: [PATCH] #出入库修改
---
pages/basics/pakin.vue | 26 +++++++++++++++++++++++++-
pages/index/index.vue | 16 ++++++++--------
2 files changed, 33 insertions(+), 9 deletions(-)
diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index 4ebbb57..efb9c67 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -32,6 +32,19 @@
</view>
</view>
</view>
+ <view class="square-2">
+ <view class="square-title">
+ <view class="title-sign"><view class="sign"></view></view>
+ <view class="title-text"><text>搴撲綅鐮�</text></view>
+ </view>
+ <view class="square-content">
+ <view class="content-input">
+ <input v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆"
+ placeholder-style="line-height: 85rpx;">
+ <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo()"></uni-icons>
+ </view>
+ </view>
+ </view>
<view class="square-1">
@@ -136,7 +149,8 @@
check:false,
checkText:'鍏ㄩ��',
checkedData:[],
- batch:''
+ batch:'',
+ locNo:''
}
},
onShow() {
@@ -195,6 +209,7 @@
resst() {
this.matList = []
this.barcode = ''
+ this.locNo = ''
this.barcodeFocuss()
uni.vibrateShort();
},
@@ -205,6 +220,10 @@
this.$nextTick(function() {
this.barcodeFocus = true;
});
+ },
+ removeLocNo() {
+ this.locNo = ''
+ uni.vibrateShort();
},
removeMatnr() {
this.matnr = ''
@@ -226,6 +245,10 @@
uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'});
return;
}
+ if (that.locNo === '') {
+ uni.showToast({title: '璇疯緭鍏ュ簱浣嶇爜', icon: "none", position: 'top'});
+ return;
+ }
if (that.matList.length === 0) {
uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'});
return;
@@ -241,6 +264,7 @@
url: that.commonUrl + '/mobile/comb/auth',
data: JSON.stringify({
barcode: that.barcode,
+ locno: that.locNo,
combMats: that.matList
}),
method: 'POST',
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 26e0144..27442f3 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -36,17 +36,17 @@
// cuIcon: 'copy'
// },
{
- title: '缁勬墭鍏ュ簱',
+ title: '缁勬墭',
name: 'pakin',
color: 'blue',
cuIcon: 'copy'
- },
- {
- title: '璁㈠崟缁勬墭',
- name: 'order',
- color: 'blue',
- cuIcon: 'goods'
- },
+ },
+ // {
+ // title: '璁㈠崟缁勬墭',
+ // name: 'order',
+ // color: 'blue',
+ // cuIcon: 'goods'
+ // },
{
title: '搴撳瓨鏌ヨ',
name: 'stockQuery',
--
Gitblit v1.9.1