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 @@ + + + + + +