From 8d558cb173873004cd8a0d6c12f37865f03d7a4f Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 22 十月 2025 10:32:15 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue | 147 ++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 140 insertions(+), 7 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue"
index fb15e01..9d628f1 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue"
@@ -1,4 +1,3 @@
-
<template>
<view-grid
ref="grid"
@@ -13,7 +12,7 @@
>
</view-grid>
</template>
- <script>
+<script>
import extend from "@/extension/taskinfo/task.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
@@ -26,8 +25,136 @@
url: "/Task/",
sortName: "CreateDate",
});
- const editFormFields = ref({});
- const editFormOptions = ref([]);
+
+ // 1. 琛ュ厖锛氫换鍔$紪杈戣〃鍗曞瓧娈碉紙涓庝笟鍔″瓧娈靛搴旓紝瀛樺偍琛ㄥ崟杈撳叆鍊硷級
+ const editFormFields = ref({
+ taskNum: "", // 浠诲姟鍙�
+ palletCode: "", // 鎵樼洏缂栧彿
+ roadway: "", // 鍖哄煙锛堝贩閬撳彿锛�
+ taskType: "", // 浠诲姟绫诲瀷
+ taskState: "", // 浠诲姟鐘舵��
+ sourceAddress: "", // 璧峰鍦板潃
+ targetAddress: "", // 鐩爣鍦板潃
+ currentAddress: "", // 褰撳墠浣嶇疆
+ nextAddress: "", // 涓嬩竴浣嶇疆
+ grade: 0, // 浼樺厛绾э紙榛樿0锛屽彲璋冩暣锛�
+ exceptionMessage: "", // 寮傚父淇℃伅
+ wMSId: "", // WMS浠诲姟涓婚敭
+ remark: "" // 澶囨敞
+ });
+
+ // 2. 琛ュ厖锛氫换鍔$紪杈戣〃鍗曢厤缃紙鎺у埗琛ㄥ崟UI銆佹牎楠岃鍒欍�佷笅鎷夐�夐」绛夛級
+ const editFormOptions = ref([
+ // 绗竴琛岃〃鍗曪紙鏍稿績鏍囪瘑瀛楁锛�
+ [
+ {
+ title: "浠诲姟鍙�",
+ required: true, // 蹇呭~
+ field: "taskNum", // 鍏宠仈editFormFields鐨勫瓧娈�
+ type: "int", // 鏁板�肩被鍨嬶紙浠诲姟鍙烽�氬父涓烘暣鏁帮級
+ placeholder: "璇疯緭鍏ヤ换鍔″彿"
+ },
+ {
+ title: "鎵樼洏缂栧彿",
+ required: true,
+ field: "palletCode",
+ type: "string",
+ placeholder: "璇疯緭鍏ユ墭鐩樼紪鍙�"
+ },
+ {
+ title: "宸烽亾鍙�",
+ required: true,
+ field: "roadway",
+ type: "string",
+ placeholder: "璇疯緭鍏ュ贩閬撳彿/鍖哄煙"
+ },
+ {
+ title: "浠诲姟绫诲瀷",
+ required: true,
+ field: "taskType",
+ type: "select", // 涓嬫媺閫夋嫨鍣�
+ dataKey: "taskType", // 鍏宠仈涓嬫媺閫夐」鏁版嵁婧愮殑key锛堜笌searchFormOptions涓�鑷达級
+ data: [], // 閫夐」鏁版嵁锛堥�氬父浠庢帴鍙e姞杞斤紝姝ゅ鐣欑┖寰呭~鍏咃級
+ placeholder: "璇烽�夋嫨浠诲姟绫诲瀷"
+ }
+ ],
+ // 绗簩琛岃〃鍗曪紙鐘舵�佷笌鍦板潃瀛楁锛�
+ [
+ {
+ title: "浠诲姟鐘舵��",
+ required: true,
+ field: "taskState",
+ type: "select",
+ dataKey: "taskState", // 鍏宠仈浠诲姟鐘舵�佹暟鎹簮
+ data: [],
+ placeholder: "璇烽�夋嫨浠诲姟鐘舵��"
+ },
+
+ {
+ title: "璧峰鍦板潃",
+ required: true,
+ field: "sourceAddress",
+ type: "string",
+ placeholder: "璇疯緭鍏ヤ换鍔¤捣濮嬪湴鍧�"
+ },
+ {
+ title: "鐩爣鍦板潃",
+ required: true,
+ field: "targetAddress",
+ type: "string",
+ placeholder: "璇疯緭鍏ヤ换鍔$洰鏍囧湴鍧�"
+ },
+ {
+ title: "浼樺厛绾�",
+ required: true,
+ field: "grade",
+ type: "int",
+ min: 0, // 浼樺厛绾ф渶浣庝负0
+ max: 10, // 浼樺厛绾ф渶楂樹负10锛堝彲鏍规嵁涓氬姟璋冩暣锛�
+ placeholder: "璇疯緭鍏ヤ紭鍏堢骇锛�0-10锛�"
+ }
+ ],
+ // 绗笁琛岃〃鍗曪紙杈呭姪淇℃伅瀛楁锛�
+ [
+ {
+ title: "褰撳墠浣嶇疆",
+ field: "currentAddress",
+ type: "string",
+ readonly: true, // 褰撳墠浣嶇疆閫氬父鐢辩郴缁熻嚜鍔ㄦ洿鏂帮紝璁句负鍙
+ placeholder: "绯荤粺鑷姩濉厖褰撳墠浣嶇疆"
+ },
+ {
+ title: "涓嬩竴浣嶇疆",
+ field: "nextAddress",
+ type: "string",
+ readonly: true,
+ placeholder: "绯荤粺鑷姩濉厖涓嬩竴浣嶇疆"
+ },
+ {
+ title: "WMS浠诲姟涓婚敭",
+ field: "wMSId",
+ type: "int",
+ placeholder: "璇疯緭鍏MS浠诲姟涓婚敭锛堝彲閫夛級"
+ },
+ {
+ title: "寮傚父淇℃伅",
+ field: "exceptionMessage",
+ type: "string",
+ placeholder: "鏃犲紓甯稿彲鐣欑┖"
+ }
+ ],
+ // 绗洓琛岃〃鍗曪紙澶囨敞瀛楁锛屽崰婊′竴琛岋級
+ [
+ {
+ title: "澶囨敞",
+ field: "remark",
+ type: "textarea", // 澶氳鏂囨湰妗嗭紙閫傚悎闀挎枃鏈級
+ span: 4, // 鍗�4鍒楋紙涓庡墠鍑犺甯冨眬瀵归綈锛�
+ placeholder: "璇疯緭鍏ヤ换鍔$浉鍏冲娉ㄤ俊鎭紙鍙�夛級"
+ }
+ ]
+ ]);
+
const searchFormFields = ref({
taskNum: "",
palletCode: "",
@@ -108,7 +235,7 @@
type: "int",
width: 90,
align: "left",
- bind: { key: "agvStationEnum", data: [] },
+ bind: { key: "taskType", data: [] },
},
{
field: "taskState",
@@ -117,6 +244,13 @@
width: 150,
align: "left",
bind: { key: "taskState", data: [] },
+ },{
+ field: "rgvTaskType",
+ title: "RGV鎵ц绫诲瀷",
+ type: "int",
+ width: 120,
+ align: "left",
+ bind: { key: "rgvtaskTypeEnum", data: [] },
},
{
field: "sourceAddress",
@@ -232,5 +366,4 @@
};
},
});
-</script>
-
\ No newline at end of file
+</script>
\ No newline at end of file
--
Gitblit v1.9.3