From c020f31a67fc5aa5644511bddff075f7ecc85234 Mon Sep 17 00:00:00 2001 From: qinchulong <qinchulong@hnkhzn.com> Date: 星期二, 27 五月 2025 15:35:27 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/HuaYiZhongHeng/ZhongHeLiTiKu --- 代码管理/WMS/WIDESEA_WMSClient/src/views/basic/warehouse.vue | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 179 insertions(+), 0 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/basic/warehouse.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/basic/warehouse.vue" new file mode 100644 index 0000000..5a25672 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/basic/warehouse.vue" @@ -0,0 +1,179 @@ + +<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/basic/warehouse.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "浠撳簱淇℃伅", + name: "warehouse", + url: "/Warehouse/", + sortName: "id", + }); + const editFormFields = ref({ + warehouseCode: "", + warehouseName: "", + warehouseType: "", + warehouseStatus: "", + warehouseDes: "", + }); + const editFormOptions = ref([ + [ + { + title: "浠撳簱缂栧彿", + required: true, + field: "warehouseCode", + type: "string", + }, + { + title: "浠撳簱鍚嶇О", + required: true, + field: "warehouseName", + type: "string", + }, + { + title: "浠撳簱鎻忚堪", + field: "warehouseDes", + type: "textarea", + }, + ], + ]); + const searchFormFields = ref({ + warehouseCode: "", + warehouseName: "", + warehouseType: "", + warehouseStatus: "", + }); + const searchFormOptions = ref([ + [ + { title: "浠撳簱缂栧彿", field: "warehouseCode", type: "like" }, + { title: "浠撳簱鍚嶇О", field: "warehouseName", type: "like" }, + { title: "浠撳簱绫诲瀷", field: "warehouseType", type: "like" }, + { + title: "浠撳簱鐘舵��", + field: "warehouseStatus", + type: "select", + dataKey: "enableEnum", + data: [], + }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "warehouseCode", + title: "浠撳簱缂栧彿", + type: "string", + width: 90, + align: "left", + }, + { + field: "warehouseName", + title: "浠撳簱鍚嶇О", + type: "string", + width: 150, + align: "left", + }, + { + field: "warehouseType", + title: "浠撳簱绫诲瀷", + type: "string", + width: 150, + align: "left", + }, + { + field: "warehouseStatus", + title: "浠撳簱鐘舵��", + type: "decimal", + width: 90, + align: "left", + bind: { key: "enableEnum", data: [] }, + }, + { + field: "warehouseDes", + title: "浠撳簱鎻忚堪", + type: "string", + width: 90, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + 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: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> + \ No newline at end of file -- Gitblit v1.9.3