From 33f55e3be906cbc0390e1ae7a20d6561dfc06140 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期四, 19 三月 2026 10:10:22 +0800
Subject: [PATCH] 添加平库前端页面
---
代码管理/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_StationInfo.vue | 323 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 323 insertions(+), 0 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_StationInfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_StationInfo.vue"
new file mode 100644
index 0000000..ef3060d
--- /dev/null
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_StationInfo.vue"
@@ -0,0 +1,323 @@
+<template>
+ <view-grid
+ ref="grid"
+ :columns="columns"
+ :editFormFields="editFormFields"
+ :editFormOptions="editFormOptions"
+ :searchFormFields="searchFormFields"
+ :searchFormOptions="searchFormOptions"
+ :table="table"
+ :extend="extend"
+ >
+ </view-grid>
+</template>
+
+<script>
+import extend from "@/extension/basicinfo/Dt_trackloginfo.js";
+import { ref, defineComponent } from "vue";
+
+export default defineComponent({
+ setup() {
+ const table = ref({
+ key: "id",
+ footer: "Foots",
+ cnName: "绔欏彴淇℃伅",
+ name: "stationInfo",
+ url: "/stationInfo/",
+ sortName: "createDate",
+ });
+
+ const editFormFields = ref({
+ id: "",
+ stationCode: "",
+ stationName: "",
+ stationType: "",
+ floorNumber: "",
+ isOccupied: "",
+ remark: "",
+ creater: "",
+ createDate: "",
+ modifier: "",
+ modifyDate: "",
+ });
+
+ const editFormOptions = ref([
+ [
+ {
+ title: "绔欏彴缂栧彿",
+ field: "stationCode",
+ type: "input",
+ width: 220,
+ require: true,
+ },
+ {
+ title: "绔欏彴鍚嶇О",
+ field: "stationName",
+ type: "input",
+ width: 220,
+ require: false,
+ },
+ {
+ title: "绔欏彴绫诲瀷",
+ field: "stationType",
+ type: "select",
+ width: 150,
+ require: true,
+ data: [
+ { key: "1", value: "鍙叆" },
+ { key: "2", value: "鍙嚭" },
+ { key: "3", value: "鍙叆鍙嚭" },
+ ],
+ },
+ {
+ title: "鎵�鍦ㄦゼ灞�",
+ field: "floorNumber",
+ type: "input",
+ width: 150,
+ require: true,
+ },
+ ],
+ [
+ {
+ title: "绔欏彴鐘舵��",
+ field: "isOccupied",
+ type: "select",
+ width: 150,
+ require: true,
+ data: [
+ { key: "0", value: "绌洪棽" },
+ { key: "1", value: "鍗犵敤" },
+ { key: "2", value: "绂佺敤" },
+ ],
+ },
+ {
+ title: "澶囨敞",
+ field: "remark",
+ type: "input",
+ width: 400,
+ require: false,
+ },
+ ],
+ [
+ {
+ title: "涓婚敭ID",
+ field: "id",
+ type: "input",
+ width: 100,
+ hidden: true,
+ readonly: true,
+ },
+ {
+ title: "鍒涘缓浜�",
+ field: "creater",
+ type: "input",
+ width: 120,
+ hidden: true,
+ readonly: true,
+ },
+ {
+ title: "鍒涘缓鏃堕棿",
+ field: "createDate",
+ type: "datetime",
+ width: 150,
+ hidden: true,
+ readonly: true,
+ },
+ {
+ title: "淇敼浜�",
+ field: "modifier",
+ type: "input",
+ width: 120,
+ hidden: true,
+ readonly: true,
+ },
+ {
+ title: "淇敼鏃堕棿",
+ field: "modifyDate",
+ type: "datetime",
+ width: 150,
+ hidden: true,
+ readonly: true,
+ },
+ ],
+ ]);
+
+ // 鎼滅储琛ㄥ崟缁戝畾瀛楁
+ const searchFormFields = ref({
+ stationCode: "",
+ stationName: "",
+ stationType: "",
+ floorNumber: "",
+ isOccupied: "",
+ creater: "",
+ createDate: "",
+ });
+
+ // 鎼滅储琛ㄥ崟甯冨眬閰嶇疆椤�
+ const searchFormOptions = ref([
+ [
+ {
+ title: "绔欏彴缂栧彿",
+ field: "stationCode",
+ type: "like"
+ },
+ {
+ title: "绔欏彴鍚嶇О",
+ field: "stationName",
+ type: "like"
+ },
+ {
+ title: "鎵�鍦ㄦゼ灞�",
+ field: "floorNumber",
+ type: "like"
+ },
+ ],
+ [
+ {
+ title: "绔欏彴绫诲瀷",
+ field: "stationType",
+ type: "select",
+ data: [
+ { key: "1", value: "鍙叆" },
+ { key: "2", value: "鍙嚭" },
+ { key: "3", value: "鍙叆鍙嚭" },
+ ],
+ },
+ {
+ title: "绔欏彴鐘舵��",
+ field: "isOccupied",
+ type: "select",
+ data: [
+ { key: "0", value: "绌洪棽" },
+ { key: "1", value: "鍗犵敤" },
+ { key: "2", value: "绂佺敤" },
+ ],
+ },
+ ],
+ [
+ {
+ title: "鍒涘缓浜�",
+ field: "creater",
+ type: "like"
+ },
+ {
+ title: "鍒涘缓鏃堕棿",
+ field: "createDate",
+ type: "datetime"
+ },
+ ],
+ ]);
+
+ // 琛ㄦ牸鍒楅厤缃� - 1:1 瀵瑰簲鍚庣Dt_StationInfo瀹炰綋鎵�鏈夊瓧娈�+鍏叡瀛楁
+ const columns = ref([
+ {
+ field: "id",
+ title: "搴忓彿",
+ type: "int",
+ width: 90,
+ hidden: true,
+ readonly: true,
+ require: true,
+ align: "left",
+ },
+ {
+ field: "stationCode",
+ title: "绔欏彴缂栧彿",
+ type: "string",
+ width: 140,
+ align: "left",
+ require: true,
+ },
+ {
+ field: "stationName",
+ title: "绔欏彴鍚嶇О",
+ type: "string",
+ width: 160,
+ align: "left",
+ },
+ {
+ field: "stationType",
+ title: "绔欏彴绫诲瀷",
+ type: "select",
+ width: 120,
+ align: "left",
+ bind: {
+ key: "value",
+ data: [
+ { key: "1", value: "鍙叆" },
+ { key: "2", value: "鍙嚭" },
+ { key: "3", value: "鍙叆鍙嚭" },
+ ],
+ },
+ },
+ {
+ field: "floorNumber",
+ title: "鎵�鍦ㄦゼ灞�",
+ type: "string",
+ width: 120,
+ align: "left",
+ },
+ {
+ field: "isOccupied",
+ title: "绔欏彴鐘舵��",
+ type: "select",
+ width: 120,
+ align: "left",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "绌洪棽" },
+ { key: "1", value: "鍗犵敤" },
+ { key: "2", value: "绂佺敤" },
+ ],
+ },
+ },
+ {
+ field: "creater",
+ title: "鍒涘缓浜�",
+ type: "string",
+ width: 100,
+ align: "left",
+ },
+ {
+ field: "createDate",
+ title: "鍒涘缓鏃堕棿",
+ type: "datetime",
+ width: 150,
+ align: "left",
+ },
+ {
+ field: "modifier",
+ title: "淇敼浜�",
+ type: "string",
+ width: 100,
+ align: "left",
+ },
+ {
+ field: "modifyDate",
+ title: "淇敼鏃堕棿",
+ type: "datetime",
+ width: 160,
+ align: "left",
+ },
+ {
+ field: "remark",
+ title: "澶囨敞",
+ type: "string",
+ width: 200,
+ align: "left",
+ },
+ ]);
+
+ return {
+ table,
+ extend,
+ editFormFields,
+ editFormOptions,
+ searchFormFields,
+ searchFormOptions,
+ columns
+ };
+ },
+});
+</script>
\ No newline at end of file
--
Gitblit v1.9.3