From 844c7c3ce2c39139490a6ecb0f35170f6cade290 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 28 四月 2026 16:31:54 +0800
Subject: [PATCH] 1

---
 吉安PDA/pages/stash/Syncretism.vue |  121 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 121 insertions(+), 0 deletions(-)

diff --git "a/\345\220\211\345\256\211PDA/pages/stash/Syncretism.vue" "b/\345\220\211\345\256\211PDA/pages/stash/Syncretism.vue"
new file mode 100644
index 0000000..cf5f238
--- /dev/null
+++ "b/\345\220\211\345\256\211PDA/pages/stash/Syncretism.vue"
@@ -0,0 +1,121 @@
+<template>
+	<view>
+		<view class="itemstyle">
+			<uni-forms label-width="180">
+				<uni-forms-item label="鍘熷鎵樼洏鏉$爜:">
+					<uni-easyinput type="text" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' :focus="sourceFocus"
+						v-model="soussAddress" @input="barcodeInput" />
+				</uni-forms-item>
+				<uni-forms-item label="鐩爣鎵樼洏鏉$爜:">
+					<uni-easyinput type="text" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' :focus="targetFocus"
+						v-model="targetAddress" @input="barcodeInput" />
+				</uni-forms-item>
+				<uni-forms-item>
+					<button @click="AGVTasks" type="primary" size="default" style="margin-top: 2%;">纭瀹屾垚</button>
+				</uni-forms-item>
+			</uni-forms>
+		</view>
+		<u-toast ref="uToast" />
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				sourceFocus: true, // 榛樿鍘熷鎵樼洏杈撳叆妗嗚幏寰楃劍鐐�
+				targetFocus: false, // 鐩爣鎵樼洏杈撳叆妗嗕笉鑾峰緱鐒︾偣
+				soussAddress: "",
+				targetAddress: "",
+				warehouseId: "",
+			}
+		},
+		onLoad(res) {
+			this.warehouseId = res.warehouseId;
+		},
+		methods: {
+			barcodeInput(type) {
+				if (type != '') {
+					if (this.soussAddress == "") {
+						setTimeout(() => {
+							this.sourceFocus = false;
+							this.targetFocus = true;
+						}, 100);
+					}
+				}
+			},
+			AGVTasks() {
+				if (this.soussAddress == "") {
+					this.$refs.uToast.show({
+						title: "璇锋壂鎻忓師濮嬫墭鐩樻潯鐮�",
+						type: 'error'
+					})
+					this.sourceFocus = true;
+					this.targetFocus = false;
+					return;
+				}
+				if (this.targetAddress == "") {
+					this.$refs.uToast.show({
+						title: "璇锋壂鎻忕洰鏍囨墭鐩樻潯鐮�",
+						type: 'error'
+					})
+					this.sourceFocus = false;
+					this.targetFocus = true;
+					return;
+				}
+
+				var postDate = {
+					MainData: {
+						soussAddress: this.soussAddress,
+						targetAddress: this.targetAddress,
+						warehouseId: this.warehouseId,
+					}
+				}
+				this.$u.post('/api/InboundOrder/SYMaterielGroup', postDate).then(
+					res => {
+						if (res.status) {
+							this.$refs.uToast.show({
+								title: "鍚堟墭鎴愬姛",
+								type: "success"
+							})
+							this.soussAddress = "";
+							this.targetAddress = "";
+							this.sourceFocus = true;
+							this.targetFocus = false;
+						} else {
+							this.$refs.uToast.show({
+								title: res.message,
+								type: "error"
+							})
+							
+							this.sourceFocus = true;
+							this.targetFocus = false;
+						}
+					})
+			},
+		}
+	}
+</script>
+
+<style lang="scss">
+	@import '@/common/uni-ui.scss';
+
+	.content {
+		display: flex;
+		height: 150px;
+	}
+
+	.content-text {
+		font-size: 14px;
+		color: #666;
+	}
+
+	.itemstyle {
+		margin-top: 30px;
+		margin-left: 5%;
+	}
+
+	.headerstyle {
+		width: 90%;
+	}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3