From 02685498659b4d03818c73b66df4393e171ad692 Mon Sep 17 00:00:00 2001 From: PQZ Date: Sat, 14 Sep 2024 09:37:33 +0800 Subject: [PATCH 1/3] 1 --- src/views/repair/project/form/RepairProjectForm.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/views/repair/project/form/RepairProjectForm.vue b/src/views/repair/project/form/RepairProjectForm.vue index ab3b60a..57141d2 100644 --- a/src/views/repair/project/form/RepairProjectForm.vue +++ b/src/views/repair/project/form/RepairProjectForm.vue @@ -15,7 +15,6 @@ - @@ -28,7 +27,6 @@ - @@ -44,7 +42,6 @@ - From 12f230e212dd4ed8e3b14009f047e2f54ee23429 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 18 Sep 2024 08:46:25 +0800 Subject: [PATCH 2/3] 1 --- src/api/repair/wares/index.js | 45 ++++++ src/views/repair/wares/WaresForm.vue | 173 ++++++++++++++++++++ src/views/repair/wares/index.vue | 234 +++++++++++++++++++++++++++ 3 files changed, 452 insertions(+) create mode 100644 src/api/repair/wares/index.js create mode 100644 src/views/repair/wares/WaresForm.vue create mode 100644 src/views/repair/wares/index.vue diff --git a/src/api/repair/wares/index.js b/src/api/repair/wares/index.js new file mode 100644 index 0000000..32a9707 --- /dev/null +++ b/src/api/repair/wares/index.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +// 创建配件库 +export function createWares(data) { + return request({ + url: '/repair/wares/create', + method: 'post', + data: data + }) +} + +// 更新配件库 +export function updateWares(data) { + return request({ + url: '/repair/wares/update', + method: 'put', + data: data + }) +} + +// 删除配件库 +export function deleteWares(id) { + return request({ + url: '/repair/wares/delete?id=' + id, + method: 'delete' + }) +} + +// 获得配件库 +export function getWares(id) { + return request({ + url: '/repair/wares/get?id=' + id, + method: 'get' + }) +} + +// 获得配件库分页 +export function getWaresPage(params) { + return request({ + url: '/repair/wares/page', + method: 'get', + params + }) +} + diff --git a/src/views/repair/wares/WaresForm.vue b/src/views/repair/wares/WaresForm.vue new file mode 100644 index 0000000..cb22ee0 --- /dev/null +++ b/src/views/repair/wares/WaresForm.vue @@ -0,0 +1,173 @@ + + + diff --git a/src/views/repair/wares/index.vue b/src/views/repair/wares/index.vue new file mode 100644 index 0000000..c62e651 --- /dev/null +++ b/src/views/repair/wares/index.vue @@ -0,0 +1,234 @@ + + + From 683c9adf1674354de06a358031827faff9ab6ec6 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 18 Sep 2024 14:12:35 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E5=BA=93=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.js | 4 + .../repair/project/form/RepairProjectForm.vue | 2 +- src/views/repair/wares/WaresForm.vue | 285 ++++++++++++++---- src/views/repair/wares/index.vue | 114 ++----- 4 files changed, 261 insertions(+), 144 deletions(-) diff --git a/src/utils/dict.js b/src/utils/dict.js index 5a4734a..90d41bc 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -198,6 +198,10 @@ export const DICT_TYPE = { REPAIR_PART_DISPOSAL: 'repair_part_disposal', //单位 REPAIR_UNIT: 'repair_unit', + //配件属性 + REPAIR_WARES_ATTRIBUTE: 'wares_attribute', + //配件来源 + REPAIR_WARES_DATA_FORM: 'wares_data_form', } /** diff --git a/src/views/repair/project/form/RepairProjectForm.vue b/src/views/repair/project/form/RepairProjectForm.vue index 57141d2..f4134df 100644 --- a/src/views/repair/project/form/RepairProjectForm.vue +++ b/src/views/repair/project/form/RepairProjectForm.vue @@ -1,7 +1,7 @@