diff --git a/src/api/distribution/distributionParcelDetails.js b/src/api/distribution/distributionParcelDetails.js new file mode 100644 index 00000000..aed8bafa --- /dev/null +++ b/src/api/distribution/distributionParcelDetails.js @@ -0,0 +1,50 @@ +import request from '@/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/blade-distributionParcelDetails/distributionParcelDetails/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/blade-distributionParcelDetails/distributionParcelDetails/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/blade-distributionParcelDetails/distributionParcelDetails/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/blade-distributionParcelDetails/distributionParcelDetails/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/blade-distributionParcelDetails/distributionParcelDetails/submit', + method: 'post', + data: row + }) +} + diff --git a/src/option/distribution/distributionParcelDetails.js b/src/option/distribution/distributionParcelDetails.js new file mode 100644 index 00000000..cab91c51 --- /dev/null +++ b/src/option/distribution/distributionParcelDetails.js @@ -0,0 +1,122 @@ +export default { + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "预留1", + prop: "reserve1", + display: false, + hide: true, + }, + { + label: "预留2", + prop: "reserve2", + display: false, + hide: true, + }, + { + label: "预留3", + prop: "reserve3", + display: false, + hide: true, + }, + { + label: "预留4", + prop: "reserve4", + display: false, + hide: true, + }, + { + label: "预留5", + prop: "reserve5", + display: false, + hide: true, + }, + { + label: "包件清单id", + prop: "parcelListId", + }, + { + label: "订单ID", + prop: "stockArticleId", + }, + { + label: "包件码", + prop: "packageCode", + }, + { + label: "编码", + prop: "encoded", + search: true, + }, + { + label: "名称", + prop: "name", + search: true, + }, + { + label: "尺寸", + prop: "dimensions", + }, + { + label: "数量", + prop: "number", + }, + ] +} diff --git a/src/option/distribution/distributionStockList.js b/src/option/distribution/distributionStockList.js index 8a76d846..6e7d6080 100644 --- a/src/option/distribution/distributionStockList.js +++ b/src/option/distribution/distributionStockList.js @@ -109,10 +109,10 @@ export default { label: "在库箱数", prop: "warehouse", }, - // { - // label: "商场", - // prop: "market", - // }, + { + label: "拆包", + prop: "market", + }, { label: "拆包数", prop: "cargoUnit", diff --git a/src/views/distribution/inventory/distributionParcelDetails.vue b/src/views/distribution/inventory/distributionParcelDetails.vue new file mode 100644 index 00000000..117a4336 --- /dev/null +++ b/src/views/distribution/inventory/distributionParcelDetails.vue @@ -0,0 +1,300 @@ + + + diff --git a/src/views/distribution/inventory/distributionStockListDetails.vue b/src/views/distribution/inventory/distributionStockListDetails.vue index a262d233..9182d541 100644 --- a/src/views/distribution/inventory/distributionStockListDetails.vue +++ b/src/views/distribution/inventory/distributionStockListDetails.vue @@ -344,6 +344,7 @@ export default { }, onLoad (page, params = {}) { this.loading = true; + // this.query. getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { const data = res.data.data; this.page.total = data.total;