From 3311f02194604247c1fb0384ecc43cc3ef3f04be Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期日, 08 六月 2025 20:59:31 +0800
Subject: [PATCH] 1

---
 代码管理/ZhongHePDA/pages/task/AgvTask.vue |   69 +++++++++++++++++-----------------
 1 files changed, 35 insertions(+), 34 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/task/AgvTask.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/task/AgvTask.vue"
index ec4b025..5cace51 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/task/AgvTask.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/task/AgvTask.vue"
@@ -5,9 +5,9 @@
 		<view v-show="current === 0">
 			<view style="padding: 5%;">
 				<uni-forms label-width="120">
-					<uni-forms-item label="鎵樼洏缂栫爜">
-						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="PalletCode"
-							placeholder="璇疯緭鍏ユ墭鐩樼紪鐮�" ref='midInput' />
+					<uni-forms-item label="鎵樼洏鏁伴噺">
+						<uni-easyinput type="text" :focus="istrue" @input="carNoInputChange" v-model="PalletCode"
+							placeholder="璇疯緭鍏ユ墭鐩樻暟閲�" ref='midInput' />
 					</uni-forms-item>
 					<uni-forms-item label="缁戝畾璐т綅">
 						<uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Point"
@@ -54,8 +54,8 @@
 				range: [],
 				EndAddress: "",
 				StartAddress: "",
-				PalletCode:"",
-				Point:"",
+				PalletCode: "",
+				Point: "",
 				items: ['璐т綅缁戝畾', '鍙枡', '鎼繍'],
 				current: 0
 			}
@@ -70,26 +70,27 @@
 				}
 			},
 			Bind() {
-				if (this.PalletCode.length <= 0&&this.Point.length) {
+				if (this.PalletCode.length == "" || this.Point.length == "") {
 					this.$refs.BindluToast.show({
-						title: "鎵樼洏缂栫爜璺熺粦瀹氳揣浣嶄笉鑳戒负绌�",
+						title: "鎵樼洏鏁伴噺璺熺粦瀹氳揣浣嶄笉鑳戒负绌�",
 						type: "error"
 					})
 					return;
 				}
-				var param = {
-					MainData: {
-						"PalletCode": this.PalletCode,
-						"Point":this.Point
-					},
-				}
-				this.$u.post('/api/PDA/CallMateriel', param).then(res => {
+				// var param = {
+				// 	MainData: {
+				// 		"PalletCode": this.PalletCode,
+				// 		"Point": this.Point
+				// 	},
+				// }
+				this.$u.post('/api/PDA/Bind?qty=' + this.PalletCode + '&point=' + this.Point, {}).then(res => {
 					if (res.status) {
-						this.$refs.uToast.show({
-							title: "鍛煎彨Agv鎼繍鎴愬姛",
+						this.$refs.BindluToast.show({
+							title: "缁戝畾鎴愬姛",
 							type: "success"
 						})
-						this.EndAddress = "";
+						this.Point = "";
+						this.PalletCode = "";
 						this.istrue = false;
 					} else {
 						this.$refs.BindluToast.show({
@@ -100,22 +101,22 @@
 				})
 			},
 			CallMateriel() {
-				if (this.EndAddress.length <= 0) {
+				if (this.EndAddress == "") {
 					this.$refs.CallMaterieluToast.show({
 						title: "璇疯緭鍏ョ粓鐐�",
 						type: "error"
 					})
 					return;
 				}
-				var param = {
-					MainData: {
-						"endPoint": this.EndAddress
-					},
-				}
-				this.$u.post('/api/PDA/CallMateriel', param).then(res => {
+				// var param = {
+				// 	MainData: {
+				// 		"endPoint": this.EndAddress
+				// 	},
+				// }
+				this.$u.post('/api/PDA/CallMateriel?endPoint=' + this.EndAddress, {}).then(res => {
 					if (res.status) {
-						this.$refs.uToast.show({
-							title: "鍛煎彨Agv鎼繍鎴愬姛",
+						this.$refs.CallMaterieluToast.show({
+							title: "鍙枡鎴愬姛",
 							type: "success"
 						})
 						this.EndAddress = "";
@@ -129,21 +130,21 @@
 				})
 			},
 			MaterielCarry() {
-				if (this.StartAddress.length <= 0) {
+				if (this.StartAddress == "") {
 					this.$refs.MaterielCarryuToast.show({
 						title: "璇疯緭鍏ヨ捣鐐�",
 						type: "error"
 					})
 					return;
 				}
-				var param = {
-					MainData: {
-						"startPoint": this.StartAddress
-					},
-				}
-				this.$u.post('/api/PDA/MaterielCarry', param).then(res => {
+				// var param = {
+				// 	MainData: {
+				// 		"startPoint": this.StartAddress
+				// 	},
+				// }
+				this.$u.post('/api/PDA/MaterielCarry?startPoint=' + this.StartAddress, {}).then(res => {
 					if (res.status) {
-						this.$refs.uToast.show({
+						this.$refs.MaterielCarryuToast.show({
 							title: "鍛煎彨Agv鎼繍鎴愬姛",
 							type: "success"
 						})

--
Gitblit v1.9.3