diff --git a/src/api/firstOrder/inbound.js b/src/api/firstOrder/inbound.js index 1a31f50..ccb04c9 100644 --- a/src/api/firstOrder/inbound.js +++ b/src/api/firstOrder/inbound.js @@ -72,7 +72,6 @@ export const submitData = (sizeForm) => { }) } export const editList = (onePutStorageId) => { - console.log('api中的数据',onePutStorageId) return request({ url: '/smartpark/onePutStorage/detail', method: 'get', diff --git a/src/api/materials/expend.js b/src/api/materials/expend.js index 8cb1abb..4955e11 100644 --- a/src/api/materials/expend.js +++ b/src/api/materials/expend.js @@ -13,3 +13,14 @@ export const getList = (current, size, params) => { cryptoData: false }) } +//归还和报废 +export const returnMaterial = (LdDurableFormDto) => { + console.log(LdDurableFormDto,'api传的參') + return request({ + url: '/smartpark/durableForm/restoreAndScrap ', + method: 'post', + data: LdDurableFormDto, + cryptoToken: false, + cryptoData: false + }) +} diff --git a/src/api/materials/index.js b/src/api/materials/index.js new file mode 100644 index 0000000..8a13f26 --- /dev/null +++ b/src/api/materials/index.js @@ -0,0 +1,11 @@ +import request from '@/router/axios'; + +export const upload = (file) => { + return request({ + url: '/smartpark/material/upload ', + method: 'post', + data: file, + cryptoToken: false, + cryptoData: false + }) +} diff --git a/src/views/firstOrder/inbound.vue b/src/views/firstOrder/inbound.vue index 7049616..b460ef5 100644 --- a/src/views/firstOrder/inbound.vue +++ b/src/views/firstOrder/inbound.vue @@ -135,7 +135,7 @@ export default { width: 180, headerAlign: "center", align: "center", - slot: "purchaseEndInfo" + slot: "purchaseEndInfo", width: 150, align: "center", formatter: (row, column) => { diff --git a/src/views/materials/components/returnDialog.vue b/src/views/materials/components/returnDialog.vue index 4739c16..fccf57f 100644 --- a/src/views/materials/components/returnDialog.vue +++ b/src/views/materials/components/returnDialog.vue @@ -6,7 +6,7 @@ width="30%" @close="closeDialog" > - + diff --git a/src/views/materials/index.vue b/src/views/materials/index.vue index 70f8c65..296ab74 100644 --- a/src/views/materials/index.vue +++ b/src/views/materials/index.vue @@ -5,33 +5,15 @@ :table-loading="loading" @row-update="rowUpdate" @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset" :page.sync="page"> -