From 9ffa3aedc9a537a16c2fff69a7161f87b5388020 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期一, 20 十月 2025 10:25:36 +0800
Subject: [PATCH] 新增agv拣料回库或者移动
---
pages/pakin/modulePakin.vue | 49 ++++++++++++++++++++++++-------------------------
1 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/pages/pakin/modulePakin.vue b/pages/pakin/modulePakin.vue
index 2bd0649..f2de52d 100644
--- a/pages/pakin/modulePakin.vue
+++ b/pages/pakin/modulePakin.vue
@@ -46,15 +46,17 @@
<uni-tag :text="item.batch" type="warning"></uni-tag>
</view>
</view>
- <!-- <view class="list-left-item">
- <view class="desc">閲嶉噺锛�</view>
- <view class="left-item">
- <uni-tag :text="item.weight" type="warning"></uni-tag>
- </view>
- </view> -->
+ <view class="list-left-item">
+ <view class="desc">缁勬垚鏁伴噺锛�</view>
+ <view class="left-item">{{item.beBatch}}</view>
+ </view>
<view class="list-left-item">
<view class="desc">鏁伴噺锛�</view>
<view class="left-item">{{item.anfme}}</view>
+ </view>
+ <view class="list-left-item">
+ <view class="desc">澶囨敞锛�</view>
+ <view class="left-item">{{item.memo}}</view>
</view>
</view>
<view class="list-right">
@@ -90,6 +92,10 @@
<view class="popup-item-left">閲嶉噺:</view>
<view class="popup-item-right"><input type="text" v-model="weight"></view>
</view> -->
+ <view class="popup-item">
+ <view class="popup-item-left">澶囨敞:</view>
+ <view class="popup-item-right"><input type="text" v-model="memo"></view>
+ </view>
<view class="popup-item">
<view class="popup-item-left">鏁伴噺:</view>
<view class="popup-item-right" style="border: none;justify-content: center;">
@@ -161,6 +167,7 @@
matnr: '',
batch: '',
weight: '',
+ memo: '',
msgType1: 'success',
msgType: 'success',
messageText: '',
@@ -237,25 +244,12 @@
success(result) {
result = result.data
if (result.code === 200 && result.data) {
- that.matData = result.data
- that.matnr = ''
- that.matData['batch'] = ''
- uni.navigateTo({
- url: "../mat/matSelected",
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- success: function(res) {
- res.eventChannel.emit('mat', {
- data: result.data
- })
- },
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- events: {
- matList: function(data) {
- that.checkMat(data.data)
- that.focuss()
- },
- },
- });
+ for(let k of result.data) {
+ k.anfme = k.beBatch
+ that.dataList.push(k)
+ that.$refs.inputDialog.close()
+ that.matnr = ''
+ }
} else if (result.code == 403) {
uni.showToast({
title: result.msg,
@@ -338,6 +332,7 @@
this.count = this.dataList[i].anfme
this.batch = this.dataList[i].batch
this.weight = this.dataList[i].weight
+ this.memo = this.dataList[i].memo
this.rowNum = i
this.eject()
},
@@ -367,6 +362,7 @@
this.dataList[this.rowNum].anfme = this.count
this.dataList[this.rowNum].batch = this.batch
this.dataList[this.rowNum].weight = this.weight
+ this.dataList[this.rowNum].memo = this.memo
this.matnr = ''
this.messageText = "淇敼鎴愬姛"
this.messageToggle('success')
@@ -478,6 +474,9 @@
z-index: 10;
}
+ .list:first-child {
+ margin-top: 320rpx;
+ }
.item {
display: flex;
align-items: center;
--
Gitblit v1.9.1