diff --git a/src/api/system/details.js b/src/api/system/details.js index 548f470..62bc70b 100644 --- a/src/api/system/details.js +++ b/src/api/system/details.js @@ -69,3 +69,13 @@ export function delDetails(id) { method: 'delete' }) } + +// 导入电气BOM(Excel) +export function importElectricalBom(formData) { + return request({ + url: '/system/details/importElectricalBom', + method: 'post', + data: formData, + headers: { 'Content-Type': 'multipart/form-data' } + }) +} diff --git a/src/api/system/orderPro.js b/src/api/system/orderPro.js index 8f7e642..5bd5ba7 100644 --- a/src/api/system/orderPro.js +++ b/src/api/system/orderPro.js @@ -140,8 +140,19 @@ export function uploadPDF(id) { // 下载生产工艺计划表 export function exportRoute(id) { return request({ - url: `/system/orderPro/exportRoute2?id=${id}`, - method: 'post', + url: '/system/orderPro/exportRoute2', + method: 'get', + params: { id }, + responseType: 'blob' + }) +} + +// 下载工艺计划表(新路径 exportRoute3) +export function exportRoute3(id) { + return request({ + url: '/system/orderPro/exportRoute3', + method: 'get', + params: { id }, responseType: 'blob' }) } diff --git a/src/api/system/spec100r.js b/src/api/system/spec100r.js new file mode 100644 index 0000000..bf3c402 --- /dev/null +++ b/src/api/system/spec100r.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询100R设备规格参数列表 +export function listSpec100r(query) { + return request({ + url: '/system/spec100r/list', + method: 'get', + params: query + }) +} + +// 查询100R设备规格参数详细 +export function getSpec100r(id) { + return request({ + url: '/system/spec100r/' + id, + method: 'get' + }) +} + +// 新增100R设备规格参数 +export function addSpec100r(data) { + return request({ + url: '/system/spec100r', + method: 'post', + data: data + }) +} + +// 修改100R设备规格参数 +export function updateSpec100r(data) { + return request({ + url: '/system/spec100r', + method: 'put', + data: data + }) +} + +// 删除100R设备规格参数 +export function delSpec100r(id) { + return request({ + url: '/system/spec100r/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/spec40r.js b/src/api/system/spec40r.js new file mode 100644 index 0000000..40c635e --- /dev/null +++ b/src/api/system/spec40r.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询40R设备规格参数列表 +export function listSpec40r(query) { + return request({ + url: '/system/spec40r/list', + method: 'get', + params: query + }) +} + +// 查询40R设备规格参数详细 +export function getSpec40r(id) { + return request({ + url: '/system/spec40r/' + id, + method: 'get' + }) +} + +// 新增40R设备规格参数 +export function addSpec40r(data) { + return request({ + url: '/system/spec40r', + method: 'post', + data: data + }) +} + +// 修改40R设备规格参数 +export function updateSpec40r(data) { + return request({ + url: '/system/spec40r', + method: 'put', + data: data + }) +} + +// 删除40R设备规格参数 +export function delSpec40r(id) { + return request({ + url: '/system/spec40r/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/spec40s.js b/src/api/system/spec40s.js new file mode 100644 index 0000000..e491cc0 --- /dev/null +++ b/src/api/system/spec40s.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询40S设备规格参数列表 +export function listSpec40s(query) { + return request({ + url: '/system/spec40s/list', + method: 'get', + params: query + }) +} + +// 查询40S设备规格参数详细 +export function getSpec40s(id) { + return request({ + url: '/system/spec40s/' + id, + method: 'get' + }) +} + +// 新增40S设备规格参数 +export function addSpec40s(data) { + return request({ + url: '/system/spec40s', + method: 'post', + data: data + }) +} + +// 修改40S设备规格参数 +export function updateSpec40s(data) { + return request({ + url: '/system/spec40s', + method: 'put', + data: data + }) +} + +// 删除40S设备规格参数 +export function delSpec40s(id) { + return request({ + url: '/system/spec40s/' + id, + method: 'delete' + }) +} diff --git a/src/views/system/orderPro/index.vue b/src/views/system/orderPro/index.vue index 444a7b6..1b08e20 100644 --- a/src/views/system/orderPro/index.vue +++ b/src/views/system/orderPro/index.vue @@ -129,23 +129,15 @@ - - +