From a683d399538b38ba07a8ef89efd1320bfc0818f8 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期三, 10 九月 2025 19:21:05 +0800
Subject: [PATCH] 增加agv点位
---
H5/Js/Cpbdsj.js | 28 +++++++++++++++++++++++++++-
H5/Cpdbsj.aspx | 14 +++++++++++++-
2 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/H5/Cpdbsj.aspx b/H5/Cpdbsj.aspx
index 3d63ea6..68b47f0 100644
--- a/H5/Cpdbsj.aspx
+++ b/H5/Cpdbsj.aspx
@@ -159,6 +159,16 @@
</template>
</van-field>
+
+ <van-field
+ ref="AgvDw"
+ v-model="AgvDw"
+ label="鐐逛綅"
+ placeholder="璇烽�夋嫨鐐逛綅"
+ autofocus="true"
+ @click.native="selectDW">
+ </van-field>
+
<van-field
ref="xtName"
v-model="xtName"
@@ -199,6 +209,8 @@
</div>
<van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet>
+
+ <van-action-sheet v-model="showAgvDw" :actions="actionsAgvDw" @select="onSelectAgvDw" ></van-action-sheet>
<van-tabs color="#000" title-active-color="#0283EF">
<van-tab title="绠辨槑缁�" class="mySolid font">
@@ -253,5 +265,5 @@
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
- <script src="Js/Cpbdsj.js?<%=12111111421514 %>"></script>
+ <script src="Js/Cpbdsj.js?<%=1212111421515 %>"></script>
</asp:Content>
\ No newline at end of file
diff --git a/H5/Js/Cpbdsj.js b/H5/Js/Cpbdsj.js
index e2fa8a3..7763b71 100644
--- a/H5/Js/Cpbdsj.js
+++ b/H5/Js/Cpbdsj.js
@@ -32,7 +32,10 @@
actions: [],//鍒楄〃鐨勫��
xtName: "",//绾夸綋鍚嶇О
xtNum: "",//绾夸綋缂栧彿
+ AgvDw: "",//AGV鐐逛綅
agvChecked: false,//鏄惁鍕鹃�堿GV
+ showAgvDw: false,//鐐逛綅灞曠ず
+ actionsAgvDw: [],//鍒楄〃AGV鐐逛綅
}
},
mounted() {
@@ -43,6 +46,13 @@
};
},
methods: {
+ handleAgvPositions(positionStr) {
+ if (!positionStr) return [];
+ // 灏嗗瓧绗︿覆鎸夐�楀彿鍒嗗壊骞惰浆鎹负閫夐」鏁扮粍
+ return positionStr.split(',').map(pos => ({
+ name: pos.trim() // 鍘婚櫎鍙兘鐨勭┖鏍�
+ }));
+ },
getKbBarInfo() {
var that = this;
that.isLoading = true;
@@ -52,13 +62,18 @@
}, false)
.then(function (res) {
var json = res;
+
if (json.status == 0) {
+ console.log(json.data.tbBillList.kbBarInfo[0].agvPostion);
that.KbBarInfo = json.data.tbBillList.kbBarInfo[0];
that.DAA001 = that.KbBarInfo.daA001;
that.KbBarMxInfo = json.data.tbBillList.kbBarMxInfo;
that.$refs.XBar.focus();
that.XbarInfo = [];
that.XBar = "";
+ that.AgvDw = json.data.tbBillList.kbBarInfo[0].agvPostion.split(',')[0];
+
+ that.actionsAgvDw = that.handleAgvPositions(json.data.tbBillList.kbBarInfo[0].agvPostion);
}
else {
that.$playSound('error');
@@ -371,6 +386,16 @@
this.xtName = action.name; // 缁戝畾name鍒皒tName瀛楁
this.show = false;
},
+
+ onSelectAgvDw(action) {
+ this.AgvDw = action.name;
+ this.showAgvDw = false;
+ },
+
+ selectDW() {
+ this.showAgvDw = true;
+ },
+
//鑾峰彇鍙懠鍙獳GV鐨勭嚎浣�
selectXt() {
this.show = true;
@@ -449,7 +474,8 @@
that.isLoading = true;
that.AxiosHttp("post", 'Womdaa/handleAGVInspection', {
KbBar: that.KbBar,
- userAccount: that.userInfo.loginAccount
+ userAccount: that.userInfo.loginAccount,
+ AgvDw: that.AgvDw
}, false)
.then(function (res) {
var json = res;
--
Gitblit v1.9.3