diff --git a/src/api/claimAndRefund/second-manage.js b/src/api/claimAndRefund/second-manage.js index bc90865..8eff5f9 100644 --- a/src/api/claimAndRefund/second-manage.js +++ b/src/api/claimAndRefund/second-manage.js @@ -16,3 +16,24 @@ export function getMaStatusByMaIdApi(data) { params: data, }) } +// 二级库出库接口 +export function outboundApi(data) { + return request({ + url: '/material/secondaryWarehouse/operate', + method: 'post', + data, + }) +} + +/** + * 出库记录 退库记录 + */ + +// 出库记录 +export function getRecordsApi(data) { + return request({ + url: '/material/secondaryWarehouse/getRecords', + method: 'get', + params: data, + }) +} diff --git a/src/views/claimAndRefund/secondStore/outbound-record/index.vue b/src/views/claimAndRefund/secondStore/outbound-record/index.vue index 6de5ae4..08208fa 100644 --- a/src/views/claimAndRefund/secondStore/outbound-record/index.vue +++ b/src/views/claimAndRefund/secondStore/outbound-record/index.vue @@ -7,14 +7,15 @@ size="small" :inline="true" > - + - + - - + > + + + @@ -70,7 +81,7 @@ - + + @@ -128,31 +145,26 @@ :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" - @pagination="getConfigList()" + @pagination="getRecordsList()" /> diff --git a/src/views/claimAndRefund/secondStore/second-manage/components/home-pages.vue b/src/views/claimAndRefund/secondStore/second-manage/components/home-pages.vue index 865a846..fc179ca 100644 --- a/src/views/claimAndRefund/secondStore/second-manage/components/home-pages.vue +++ b/src/views/claimAndRefund/secondStore/second-manage/components/home-pages.vue @@ -318,7 +318,7 @@ export default { this.$modal.msgError('请先选择需要操作的二级库!') return } - this.$emit('onClickSecond', type) + this.$emit('onClickSecond', type, this.queryParams.unitId) }, }, created() { diff --git a/src/views/claimAndRefund/secondStore/second-manage/index.vue b/src/views/claimAndRefund/secondStore/second-manage/index.vue index a28b44c..0ef8b80 100644 --- a/src/views/claimAndRefund/secondStore/second-manage/index.vue +++ b/src/views/claimAndRefund/secondStore/second-manage/index.vue @@ -3,7 +3,13 @@
- +
@@ -23,13 +29,18 @@ export default { } }, methods: { - onClickSecond(type) { + // 操作二级库 + onClickSecond(type, unitId) { this.isHandleType = type + this.unitId = unitId this.isShowHome = false }, goBack() { this.isShowHome = true }, + openHomePage() { + this.isShowHome = true + }, }, }