From 2640c40b17df07c77756375e98c262775f17f4ff Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Tue, 16 Apr 2024 17:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=B1=E6=9D=86=E9=85=8D=E5=A5=97=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/.prettierrc | 16 + sgzb-ui/src/api/store/poleConfig.js | 52 +++ .../src/views/store/poleConfig/poleConfig.vue | 350 ++++++++++++++++++ 3 files changed, 418 insertions(+) create mode 100644 sgzb-ui/.prettierrc create mode 100644 sgzb-ui/src/api/store/poleConfig.js create mode 100644 sgzb-ui/src/views/store/poleConfig/poleConfig.vue diff --git a/sgzb-ui/.prettierrc b/sgzb-ui/.prettierrc new file mode 100644 index 00000000..d6d4baf0 --- /dev/null +++ b/sgzb-ui/.prettierrc @@ -0,0 +1,16 @@ +{ + "printWidth": 120, + "tabWidth": 2, + "singleQuote": true, + "semi": false, + "bracketSpacing": true, + "jsxBracketSameLine": true, + "arrowParens": "avoid", + "endOfLine": "lf", + "useTabs": false, + "trailingComma": "es5", + "bracketSameLine": false, + "htmlWhitespaceSensitivity": "ignore", + "vueIndentScriptAndStyle": false, + "singleAttributePerLine": false + } \ No newline at end of file diff --git a/sgzb-ui/src/api/store/poleConfig.js b/sgzb-ui/src/api/store/poleConfig.js new file mode 100644 index 00000000..fb5bbb24 --- /dev/null +++ b/sgzb-ui/src/api/store/poleConfig.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +const maTypeUrl = '/base/type/getMaType' // 物品类型+配件 +const addUrl = '/material/maWhole/add' // 添加 +const selectListUrl = '/material/maWhole/selectList' // 查询首页 +const selectListByIdUrl = '/material/maWhole/selectListById' // 查询详情 +const deleteByIdUrl = '/material/maWhole/deleteById' // 删除 + +// 物品类型 选择配件 +export function getMaType(query) { + return request({ + url: maTypeUrl, + method: 'get', + params: query, + }) +} + +// 新增 +export function addMaWhole(data) { + return request({ + url: addUrl, + method: 'post', + data, + }) +} + +// 查询首页 +export function searchSelectList(data = {}) { + return request({ + url: selectListUrl, + method: 'post', + data, + }) +} + +// 查询详情 +export function searchSelectListById(data) { + return request({ + url: selectListByIdUrl, + method: 'post', + data, + }) +} + +// 删除 +export function deleteById(data) { + return request({ + url: deleteByIdUrl, + method: 'post', + data, + }) +} diff --git a/sgzb-ui/src/views/store/poleConfig/poleConfig.vue b/sgzb-ui/src/views/store/poleConfig/poleConfig.vue new file mode 100644 index 00000000..c4d40bfc --- /dev/null +++ b/sgzb-ui/src/views/store/poleConfig/poleConfig.vue @@ -0,0 +1,350 @@ + + + + +