From d01295c254063b3349a86a4474e04a62b284bd19 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 24 三月 2026 16:26:07 +0800
Subject: [PATCH] 一些配置

---
 Code/WMS/WIDESEA_WMSClient/src/views/stock/stock.vue |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/views/stock/stock.vue b/Code/WMS/WIDESEA_WMSClient/src/views/stock/stock.vue
new file mode 100644
index 0000000..d1973a1
--- /dev/null
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/stock/stock.vue
@@ -0,0 +1,111 @@
+锘�<template>
+  <view-grid
+    ref="grid"
+    :columns="columns"
+    :detail="detail"
+    :editFormFields="editFormFields"
+    :editFormOptions="editFormOptions"
+    :searchFormFields="searchFormFields"
+    :searchFormOptions="searchFormOptions"
+    :table="table"
+    :extend="extend"
+  >
+  </view-grid>
+</template>
+<script>
+import extend from "@/extension/stock/stock.js";
+import { ref, defineComponent } from "vue";
+
+export default defineComponent({
+  setup() {
+    // 搴撳瓨鍩虹椤碉細瀵规帴 Stock 鎺у埗鍣紝鏀寔搴撳瓨涓昏褰曟煡璇㈢淮鎶ゃ��
+    const table = ref({
+      key: "id",
+      footer: "Foots",
+      cnName: "搴撳瓨",
+      name: "stock",
+      url: "/Stock/",
+      sortName: "id",
+    });
+
+    const editFormFields = ref({
+      palletCode: "",
+      palletType: "",
+      locationId: "",
+      locationCode: "",
+      warehouseId: "",
+      stockStatus: "",
+      outboundDate: "",
+      remark: "",
+    });
+
+    const editFormOptions = ref([
+      [
+        { field: "palletCode", title: "鎵樼洏缂栧彿", type: "string", required: true },
+        { field: "palletType", title: "鎵樼洏绫诲瀷", type: "number" },
+        { field: "locationCode", title: "璐т綅缂栧彿", type: "string" },
+      ],
+      [
+        { field: "warehouseId", title: "浠撳簱", type: "select", dataKey: "warehouses", data: [] },
+        { field: "stockStatus", title: "搴撳瓨鐘舵��", type: "select", dataKey: "stockStatusEmun", data: [] },
+        { field: "outboundDate", title: "鍑哄簱鏃ユ湡", type: "datetime" },
+      ],
+      [{ field: "remark", title: "澶囨敞", type: "textarea" }],
+    ]);
+
+    const searchFormFields = ref({
+      palletCode: "",
+      locationCode: "",
+      warehouseId: "",
+      stockStatus: "",
+      outboundDate: "",
+    });
+
+    const searchFormOptions = ref([
+      [
+        { title: "鎵樼洏缂栧彿", field: "palletCode", type: "like" },
+        { title: "璐т綅缂栧彿", field: "locationCode", type: "like" },
+        { title: "浠撳簱", field: "warehouseId", type: "select", dataKey: "warehouses", data: [] },
+      ],
+      [
+        { title: "搴撳瓨鐘舵��", field: "stockStatus", type: "select", dataKey: "stockStatusEmun", data: [] },
+        { title: "鍑哄簱鏃ユ湡", field: "outboundDate", type: "datetime" },
+      ],
+    ]);
+
+    const columns = ref([
+      { field: "id", title: "Id", type: "int", width: 90, hidden: true, readonly: true, require: true, align: "left" },
+      { field: "palletCode", title: "鎵樼洏缂栧彿", type: "string", width: 130, align: "left" },
+      { field: "palletType", title: "鎵樼洏绫诲瀷", type: "int", width: 110, align: "left" },
+      { field: "locationId", title: "璐т綅ID", type: "int", width: 110, align: "left", hidden: true },
+      { field: "locationCode", title: "璐т綅缂栧彿", type: "string", width: 130, align: "left" },
+      { field: "warehouseId", title: "浠撳簱", type: "select", width: 110, align: "left", bind: { key: "warehouses", data: [] } },
+      { field: "stockStatus", title: "搴撳瓨鐘舵��", type: "int", width: 120, align: "left", bind: { key: "stockStatusEmun", data: [] } },
+      { field: "outboundDate", title: "鍑哄簱鏃ユ湡", type: "datetime", width: 160, align: "left" },
+      { field: "creater", title: "鍒涘缓浜�", type: "string", width: 100, align: "left" },
+      { field: "createDate", title: "鍒涘缓鏃堕棿", type: "datetime", width: 160, align: "left" },
+      { field: "modifier", title: "淇敼浜�", type: "string", width: 100, align: "left", hidden: true },
+      { field: "modifyDate", title: "淇敼鏃堕棿", type: "datetime", width: 160, align: "left", hidden: true },
+      { field: "remark", title: "澶囨敞", type: "string", width: 140, align: "left" },
+    ]);
+
+    const detail = ref({
+      cnName: "#detailCnName",
+      table: "",
+      columns: [],
+      sortName: "",
+    });
+
+    return {
+      table,
+      extend,
+      editFormFields,
+      editFormOptions,
+      searchFormFields,
+      searchFormOptions,
+      columns,
+      detail,
+    };
+  },
+});
+</script>

--
Gitblit v1.9.3