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/materielInfo.vue | 221 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 221 insertions(+), 0 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/basic/materielInfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/basic/materielInfo.vue" new file mode 100644 index 0000000..c0490f8 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/basic/materielInfo.vue" @@ -0,0 +1,221 @@ + +<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/materielInfo.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鐗╂枡淇℃伅", + name: "materielInfo", + url: "/MaterielInfo/", + sortName: "id", + }); + const editFormFields = ref({ + areaId: "", + materielCode: "", + materielName: "", + materielDes: "", + isMixBatch: "", + isMixMateriel: "", + }); + const editFormOptions = ref([ + [ + { + title: "鍖哄煙", + required: true, + field: "areaId", + type: "string", + }, + { + title: "鐗╂枡缂栧彿", + required: true, + field: "materielCode", + type: "string", + }, + { + title: "鐗╂枡鍚嶇О", + required: true, + field: "materielName", + type: "string", + }, + { + title: "璁¢噺鍗曚綅", + required: true, + field: "unit", + type: "string", + }, + ], + [ + + { + title: "鐗╂枡鎻忚堪", + field: "materielDes", + type: "textarea", + }, + ], + ]); + const searchFormFields = ref({ + materielCode: "", + materielName: "", + areaId: "", + }); + const searchFormOptions = ref([ + [ + { title: "鐗╂枡缂栧彿", field: "materielCode", type: "like" }, + { title: "鐗╂枡鍚嶇О", field: "materielName", type: "like" }, + { title: "璁惧鐘舵��", field: "deviceStatus" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "areaId", + title: "鍖哄煙涓婚敭", + type: "string", + width: 90, + align: "left", + }, + { + field: "materielCode", + title: "鐗╂枡缂栧彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 150, + align: "left", + }, + { + field: "materielDes", + title: "鐗╂枡鎻忚堪", + type: "decimal", + width: 90, + align: "left", + }, + { + field: "cotainerType", + title: "瀹瑰櫒绫诲瀷", + type: "string", + width: 90, + align: "left", + }, + { + field: "packspes", + title: "鍖呰瑙勬牸", + type: "int", + width: 120, + align: "left", + }, + { + field: "attribute", + title: "鐗╂枡灞炴��", + type: "string", + width: 200, + align: "left", + }, + { + field: "unit", + title: "璁¢噺鍗曚綅", + type: "string", + width: 180, + align: "left", + }, + { + field: "validity", + title: "鏈夋晥鏈�", + type: "string", + width: 120, + align: "left", + }, + { + field: "safetyStock", + title: "瀹夊叏搴撳瓨", + type: "string", + width: 120, + 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