From f3bc8e6410d0b405cb71bd895bfeffc14b41ef44 Mon Sep 17 00:00:00 2001 From: yangchunlong <292345300@qq.com> Date: Wed, 22 Oct 2025 16:03:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9A=80=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=85=B3=E7=B3=BB=E5=92=8C=E4=BB=93=E4=BD=8D=E6=89=BE=E8=B4=A7?= =?UTF-8?q?=E4=BC=98=E5=85=88=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/foundation/set/goods/add.vue | 0 .../set/goods/constant/list/addButton.ts | 15 +++ .../set/goods/constant/list/button.ts | 10 ++ .../set/goods/constant/list/index.ts | 4 + .../set/goods/constant/list/search.ts | 30 ++++++ .../set/goods/constant/list/table.ts | 41 ++++++++ src/views/foundation/set/goods/index.vue | 95 +++++++++++++++++++ 7 files changed, 195 insertions(+) create mode 100644 src/views/foundation/set/goods/add.vue create mode 100644 src/views/foundation/set/goods/constant/list/addButton.ts create mode 100644 src/views/foundation/set/goods/constant/list/button.ts create mode 100644 src/views/foundation/set/goods/constant/list/index.ts create mode 100644 src/views/foundation/set/goods/constant/list/search.ts create mode 100644 src/views/foundation/set/goods/constant/list/table.ts create mode 100644 src/views/foundation/set/goods/index.vue diff --git a/src/views/foundation/set/goods/add.vue b/src/views/foundation/set/goods/add.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/foundation/set/goods/constant/list/addButton.ts b/src/views/foundation/set/goods/constant/list/addButton.ts new file mode 100644 index 0000000..d6ce2ca --- /dev/null +++ b/src/views/foundation/set/goods/constant/list/addButton.ts @@ -0,0 +1,15 @@ +export const BUTTON = [ + { + text: "保存", + permission: "foundationSetGoodsBtnSave", + type: "save", + props: { + type: "primary" + } + }, + { + text: "预览(请先保存)", + permission: "foundationSetGoodsBtnPreview", + type: "preview" + } +]; diff --git a/src/views/foundation/set/goods/constant/list/button.ts b/src/views/foundation/set/goods/constant/list/button.ts new file mode 100644 index 0000000..3ab20a6 --- /dev/null +++ b/src/views/foundation/set/goods/constant/list/button.ts @@ -0,0 +1,10 @@ +export const BUTTON = [ + { + text: "新增", + permission: "foundationSetGoodsBtnAdd", + type: "add", + props: { + type: "primary" + } + } +]; diff --git a/src/views/foundation/set/goods/constant/list/index.ts b/src/views/foundation/set/goods/constant/list/index.ts new file mode 100644 index 0000000..ed4bc49 --- /dev/null +++ b/src/views/foundation/set/goods/constant/list/index.ts @@ -0,0 +1,4 @@ +import { FORM_DATA, RULE_FORM } from "./search"; +import { COLUMNS } from "./table"; +import { BUTTON } from "./button"; +export { FORM_DATA, RULE_FORM, COLUMNS, BUTTON }; diff --git a/src/views/foundation/set/goods/constant/list/search.ts b/src/views/foundation/set/goods/constant/list/search.ts new file mode 100644 index 0000000..b4e252e --- /dev/null +++ b/src/views/foundation/set/goods/constant/list/search.ts @@ -0,0 +1,30 @@ +interface FormItem { + prop: string; + label?: string; + placeholder?: string; + type: string; + isCopy?: boolean; + optionProps?: any; + startPlaceholder?: string; + endPlaceholder?: string; + options?: any; + isArray?: boolean; + startDate?: string; //开始时间(传入后台需要的参数) + endDate?: string; //结束时间(传入后台需要的参数) + startProp?: string; + endProp?: string; + isInteger?: boolean; +} +export const FORM_DATA: FormItem[] = [ + { + prop: "org_number", + placeholder: "请输入仓库", + type: "input", + label: "仓库: " + } +]; + +export const RULE_FORM = { + page: 1, + size: 50 +}; diff --git a/src/views/foundation/set/goods/constant/list/table.ts b/src/views/foundation/set/goods/constant/list/table.ts new file mode 100644 index 0000000..4fa56f0 --- /dev/null +++ b/src/views/foundation/set/goods/constant/list/table.ts @@ -0,0 +1,41 @@ +// import { RenderScope } from "@/components/ProTable/interface"; +export const COLUMNS = [ + { type: "selection", fixed: "left", width: 40 }, + { + align: "left", + fixed: true, + label: "金蝶仓库", + prop: "material_number", + width: 200 + }, + { + align: "left", + label: "金蝶子仓库", + prop: "sku", + fixed: true, + width: 200 + }, + { + align: "left", + label: "对应聚水潭仓库", + prop: "material_name", + width: 200 + }, + { + align: "left", + label: "对应领星仓库", + prop: "org_name", + width: 200 + }, + { + align: "left", + label: "更新人", + prop: "product_line" + }, + + { + align: "left", + label: "更新时间", + prop: "bar_code" + } +]; diff --git a/src/views/foundation/set/goods/index.vue b/src/views/foundation/set/goods/index.vue new file mode 100644 index 0000000..9c9b5d3 --- /dev/null +++ b/src/views/foundation/set/goods/index.vue @@ -0,0 +1,95 @@ + + + + + +