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/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 ab3b60a..f4134df 100644 --- a/src/views/repair/project/form/RepairProjectForm.vue +++ b/src/views/repair/project/form/RepairProjectForm.vue @@ -1,7 +1,7 @@