From eea08904d36b4ede047f7f08709da5e9046fbde5 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 19 三月 2026 10:27:12 +0800
Subject: [PATCH] #站点
---
pages/inbound/buffStore.vue | 112 ++++++++++++++++++++++++++-----------------------------
1 files changed, 53 insertions(+), 59 deletions(-)
diff --git a/pages/inbound/buffStore.vue b/pages/inbound/buffStore.vue
index a8ae94c..7ed1fc3 100644
--- a/pages/inbound/buffStore.vue
+++ b/pages/inbound/buffStore.vue
@@ -29,6 +29,15 @@
<input
placeholder="璇锋壂鎻忔帴椹崇珯鐐规潯鐮�"
v-model="palletStaBarcode"
+ @input="checkAgvStation"
+ />
+ </view>
+ <view class="cu-form-group">
+ <view class="title">绔欑偣鍚嶇О锛�</view>
+ <input
+ disabled
+ placeholder="杩欓噷鏄剧ず绔欑偣鍚嶇О"
+ v-model="agvStationName"
/>
</view>
<view class="cu-bar btn-group top margin-top">
@@ -153,52 +162,6 @@
</view>
</view>
</view>
-
- <!-- <view class="cu-list det menu sm-border padding">
- <block v-for="(item, index) in list" :key="index">
- <view class="cu-bar bg-white solid-bottom margin-top-sm">
- <view class="action">
- <view class="index">
- {{index+1}}
- </view>
- <view class="text-blue">
- {{`${item.maktx}`}}
- </view>
- </view>
- <view class="action" >
- <text @click="remove(index)" class="cuIcon-close text-red" style="font-size: 24px;"></text>
- </view>
- </view>
-
- <view class="cu-item">
- <view class="content">
- <text class="text-black">ASN:</text>
- </view>
- <view class="action">
- <text class="text-grey ">{{item.asnCode}}</text>
- </view>
- </view>
- <view class="cu-item">
- <view class="content">
- <text class="text-black">鎵规:</text>
- </view>
- <view class="action">
- <text class="text-grey ">{{item.batch}}</text>
- </view>
- </view>
-
-
- <view class="cu-item">
- <view class="content">
- <text class="text-black">鏀惰揣鏁伴噺:</text>
- </view>
- <view class="action">
- <text class="text-grey ">{{item.anfme}}</text>
- </view>
- </view>
-
- </block>
- </view> -->
</view>
</template>
@@ -226,7 +189,8 @@
palletStaBarcode: '',
matNr: '',
makTx: '',
- transferStationNo: ''
+ transferStationNo: '',
+ agvStationName: ''
}
},
computed: {
@@ -238,6 +202,36 @@
this.whAreaId = uni.getStorageSync('whAreaId')
},
methods: {
+ async checkAgvStation() {
+ const that = this
+ if (
+ this.palletStaBarcode === '' ||
+ this.palletStaBarcode === null
+ ) {
+ uni.showToast({
+ title: '绔欑偣鍙蜂负绌�',
+ icon: 'none',
+ position: 'top'
+ })
+ return
+ }
+ const { code, data, msg } = await request('/check/agvStation', {
+ transferStationNo: this.palletStaBarcode
+ })
+ if (code === 200) {
+ this.agvStationName = data.stationId
+ } else {
+ uni.showToast({
+ title: msg,
+ icon: 'none',
+ position: 'top'
+ })
+ setTimeout(function () {
+ that.agvStationName = ''
+ that.palletStaBarcode = ''
+ }, 200)
+ }
+ },
toEmptyIn() {
uni.navigateTo({
url: '/pages/emptyTray/inBound'
@@ -448,20 +442,20 @@
icon: 'success'
})
// 鏇存柊鐗╂枡缂栫爜銆佺墿鏂欏悕绉�
- // this.matNr = item.matnrCode || ''
- // this.makTx = ' 寰呭叆搴撶墿鏂欏悕绉帮細' + (item.makTx || '')
+ this.matNr = item.matnrCode || ''
+ this.makTx = ' 寰呭叆搴撶墿鏂欏悕绉帮細' + (item.makTx || '')
// 浠庡垪琛ㄤ腑绉婚櫎璇ラ」
- // const index = this.bagList.findIndex(
- // (i) => i.palletId === item.palletId
- // )
- // if (index > -1) {
- // this.bagList.splice(index, 1)
- // }
- // // 濡傛灉鍒楄〃涓虹┖锛屽叧闂脊绐�
- // if (this.bagList.length === 0) {
- // this.closeModal()
- // }
+ const index = this.bagList.findIndex(
+ (i) => i.palletId === item.palletId
+ )
+ if (index > -1) {
+ this.bagList.splice(index, 1)
+ }
+ // 濡傛灉鍒楄〃涓虹┖锛屽叧闂脊绐�
+ if (this.bagList.length === 0) {
+ this.closeModal()
+ }
} else {
uni.showToast({
title: msg,
--
Gitblit v1.9.1