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