From 3b3d7f7c492ae2a8e4385fcbf387770bfcf2f3e8 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Sat, 15 Feb 2025 16:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=A2=B0=E5=8C=96=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=A0=87=E5=87=86=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 2 +- src/api/ma/base.js | 99 +++ .../material/ma/mechEquipConfigMgmt/index.vue | 690 ++++++++++++++++++ vue.config.js | 2 +- 4 files changed, 791 insertions(+), 2 deletions(-) create mode 100644 src/views/material/ma/mechEquipConfigMgmt/index.vue diff --git a/.prettierrc b/.prettierrc index d4daf05b..f124b4e6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,6 +1,6 @@ { "printWidth": 120, - "tabWidth": 4, + "tabWidth": 2, "singleQuote": true, "semi": false, "bracketSpacing": true, diff --git a/src/api/ma/base.js b/src/api/ma/base.js index 2cb2c020..cf154e8a 100644 --- a/src/api/ma/base.js +++ b/src/api/ma/base.js @@ -122,3 +122,102 @@ export function getMaTypeHistoryList(query) { params: query }) } + +// 标准配置清单-tree +export function getConfigTreeSelect(query) { + return request({ + url: '/material/standardConfig/getConfigTreeSelect', + method: 'get', + params: query + }) +} + +// 标准配置清单-tree新增 +export function addConfig(data) { + return request({ + url: '/material/standardConfig/add', + method: 'post', + data, + }) +} + +// 标准配置清单-tree修改 +export function editConfig(data) { + return request({ + url: '/material/standardConfig/edit', + method: 'post', + data, + }) +} + +// 标准配置清单-tree删除 +export function delConfig(data) { + return request({ + url: '/material/standardConfig/del', + method: 'post', + data + }) +} + +// 标准配置清单-列表 +export function getListByConfigId(query) { + return request({ + url: '/material/standardConfig/getListByConfigId', + method: 'get', + params: query + }) +} + +// 标准配置清单-select +export function getConfigList(data = {}) { + return request({ + url: '/material/standardConfig/getConfigLevelTwoList', + method: 'post', + data + }) +} + +// 物资名称-tree +export function getEquipmentThreeType(query) { + return request({ + url: '/material/ma_type/equipmentThreeType', + method: 'get', + params: query + }) +} + +// 规格型号-select +export function getMaTypeOpt(data) { + return request({ + url: '/material/select/getMaType', + method: 'post', + data + }) +} + +// 新增配置明细 +export function addConfigDetails(data) { + return request({ + url: '/material/standardConfig/addConfigDetails', + method: 'post', + data + }) +} + +// 修改配置明细 +export function editConfigDetails(data) { + return request({ + url: '/material/standardConfig/editConfigDetails', + method: 'post', + data + }) +} + +// 删除配置明细 +export function delConfigDetails(data) { + return request({ + url: '/material/standardConfig/delConfigDetails', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/views/material/ma/mechEquipConfigMgmt/index.vue b/src/views/material/ma/mechEquipConfigMgmt/index.vue new file mode 100644 index 00000000..8d3a87f6 --- /dev/null +++ b/src/views/material/ma/mechEquipConfigMgmt/index.vue @@ -0,0 +1,690 @@ + + + + diff --git a/vue.config.js b/vue.config.js index 9bb3fbad..af82ad38 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,7 +36,7 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://localhost:18080`, - target: `http://192.168.2.247:18080`,//马 + target: `http://192.168.0.15:18080`,//马 // target: `http://192.168.0.244:18580`,//测试 // target: `http://192.168.2.223:18080`,//山 // target: `http://192.168.2.23:18080`,//洪