From f250fe4befac5c9bacaa6eae9fa87738a70663dd Mon Sep 17 00:00:00 2001 From: duyongjia <adu_555@163.com> Date: 星期三, 15 一月 2025 08:45:54 +0800 Subject: [PATCH] 增加AGV重置按钮 --- 代码管理/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js | 39 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js" index e330c74..e3e3741 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js" @@ -1,10 +1,11 @@ //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 import gridBody from './extend/taskExecuteDetail.vue' +import gridHeader from './extend/taskManual.vue' let extension = { components: { //鏌ヨ鐣岄潰鎵╁睍缁勪欢 - gridHeader: '', + gridHeader: gridHeader, gridBody: gridBody, gridFooter: '', //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 @@ -50,7 +51,43 @@ }); } } + var AGVResetButton = this.buttons.find((x) => x.value == "AGVReset"); + if (AGVResetButton) { + AGVResetButton.onClick = () => { + let rows = this.$refs.table.getSelected(); + console.log("rows"+rows); + + this.http + .post("/api/Task/AGVResetTask", {}, true) + .then((x) => { + if (!x.status) return this.$message.error(x.message); + this.options = x.data; + console.log(this.options); + }); + } + } + //浜哄伐鍏ュ簱鎸夐挳 + var ManualButton = this.buttons.find((x) => x.value == "ManualInbound"); + if (ManualButton) { + ManualButton.onClick = () => { + this.$refs.gridHeader.open("inbound"); + } + } + //浜哄伐鍑哄簱鎸夐挳 + var ManualOutButton = this.buttons.find((x) => x.value == "ManualOutbound"); + if (ManualOutButton) { + ManualOutButton.onClick = () => { + this.$refs.gridHeader.open("outbound"); + } + } + //浜哄伐绉诲簱鎸夐挳 + var ManualTransferButton = this.buttons.find((x) => x.value == "ManualTransfer"); + if (ManualTransferButton) { + ManualTransferButton.onClick = () => { + this.$refs.gridHeader.open("transfer"); + } + } var previousButton = this.buttons.find((x) => x.value == "Previous"); if (previousButton) previousButton.hidden = true; var nextButton = this.buttons.find((x) => x.value == "Next"); -- Gitblit v1.9.3