diff --git a/src/api/base/qualityInspectionItem.js b/src/api/base/qualityInspectionItem.js index b6287b2..94528c7 100644 --- a/src/api/base/qualityInspectionItem.js +++ b/src/api/base/qualityInspectionItem.js @@ -9,6 +9,15 @@ export function listQualityInspectionItem(query) { }) } +// 查询缺陷下拉框 +export function getDefectList(query) { + return request({ + url: '/base/qualityInspectionItem/getDefectList', + method: 'get', + params: query + }) +} + // 查询质检项信息维护详细 export function getQualityInspectionItem(objId) { return request({ diff --git a/src/api/base/stationDefectRelation.js b/src/api/base/stationDefectRelation.js new file mode 100644 index 0000000..907687f --- /dev/null +++ b/src/api/base/stationDefectRelation.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询质检工位/缺陷维护列表 +export function listStationDefectRelation(query) { + return request({ + url: '/base/stationDefectRelation/list', + method: 'get', + params: query + }) +} + +// 查询质检工位/缺陷维护详细 +export function getStationDefectRelation(objId) { + return request({ + url: '/base/stationDefectRelation/' + objId, + method: 'get' + }) +} + +// 新增质检工位/缺陷维护 +export function addStationDefectRelation(data) { + return request({ + url: '/base/stationDefectRelation', + method: 'post', + data: data + }) +} + +// 修改质检工位/缺陷维护 +export function updateStationDefectRelation(data) { + return request({ + url: '/base/stationDefectRelation', + method: 'put', + data: data + }) +} + +// 删除质检工位/缺陷维护 +export function delStationDefectRelation(objId) { + return request({ + url: '/base/stationDefectRelation/' + objId, + method: 'delete' + }) +} diff --git a/src/api/production/calendarInfo.js b/src/api/production/calendarInfo.js new file mode 100644 index 0000000..abbce29 --- /dev/null +++ b/src/api/production/calendarInfo.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询生产日历列表 +export function listCalendarInfo(query) { + return request({ + url: '/production/calendarInfo/list', + method: 'get', + params: query + }) +} + +// 查询生产日历详细 +export function getCalendarInfo(objId) { + return request({ + url: '/production/calendarInfo/' + objId, + method: 'get' + }) +} + +// 新增生产日历 +export function addCalendarInfo(data) { + return request({ + url: '/production/calendarInfo', + method: 'post', + data: data + }) +} + +// 新增SAP生产日历 +export function addSAPCalendar(data) { + return request({ + url: '/production/calendarInfo/addSAPCalendar', + method: 'post', + data: data + }) +} + +// 修改生产日历 +export function updateCalendarInfo(data) { + return request({ + url: '/production/calendarInfo', + method: 'put', + data: data + }) +} + +// 删除生产日历 +export function delCalendarInfo(objId) { + return request({ + url: '/production/calendarInfo/' + objId, + method: 'delete' + }) +} diff --git a/src/views/base/processStation/index.vue b/src/views/base/processStation/index.vue index 8bf89d3..2031ce9 100644 --- a/src/views/base/processStation/index.vue +++ b/src/views/base/processStation/index.vue @@ -2,7 +2,7 @@