From 89c0ea49d1cf5157bd5b52be03bdd154f6a1405c Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" Date: Mon, 31 Mar 2025 17:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=94=B6=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../receive/asnDetail/asn-detail-api.ts | 7 ++ .../src/api/business/receive/receive-api.ts | 19 +++ .../business/base/location/location-form.vue | 2 +- .../views/business/receive/asn/asn-list.vue | 8 +- .../receive/asn/receive-detail-list.vue | 109 ++++++++++++++++-- .../receive/asnDetail/asn-detail-form.vue | 11 +- 6 files changed, 144 insertions(+), 12 deletions(-) create mode 100644 smart-admin-web-typescript/src/api/business/receive/receive-api.ts diff --git a/smart-admin-web-typescript/src/api/business/receive/asnDetail/asn-detail-api.ts b/smart-admin-web-typescript/src/api/business/receive/asnDetail/asn-detail-api.ts index fce8e14..50645b4 100644 --- a/smart-admin-web-typescript/src/api/business/receive/asnDetail/asn-detail-api.ts +++ b/smart-admin-web-typescript/src/api/business/receive/asnDetail/asn-detail-api.ts @@ -45,4 +45,11 @@ export const asnDetailApi = { return postRequest('/asnDetail/batchDelete', idList); }, + /** + * 批量收货 @author 霍锦 + */ + batchReceive: (idList: number[]) => { + return postRequest('/asnDetail/batchReceive', idList); + }, + }; diff --git a/smart-admin-web-typescript/src/api/business/receive/receive-api.ts b/smart-admin-web-typescript/src/api/business/receive/receive-api.ts new file mode 100644 index 0000000..55ce390 --- /dev/null +++ b/smart-admin-web-typescript/src/api/business/receive/receive-api.ts @@ -0,0 +1,19 @@ +/** + * 入库明细 api 封装 + * + * @Author: 霍锦 + * @Date: 2025-03-26 15:16:28 + * @Copyright 友仓 + */ +import {postRequest} from '/@/lib/axios'; + +export const receiveApi = { + + /** + * 批量收货 @author 霍锦 + */ + batchReceive: (idList: number[]) => { + return postRequest('/receive/batchReceive', idList); + }, + +}; diff --git a/smart-admin-web-typescript/src/views/business/base/location/location-form.vue b/smart-admin-web-typescript/src/views/business/base/location/location-form.vue index 8b4fc1c..627639f 100644 --- a/smart-admin-web-typescript/src/views/business/base/location/location-form.vue +++ b/smart-admin-web-typescript/src/views/business/base/location/location-form.vue @@ -118,7 +118,7 @@ function changeAreaSelect(selectValue: any) { async function onSubmit() { try { await formRef.value.validateFields(); - save(); + await save(); } catch (err) { message.error('参数验证错误,请仔细填写表单数据!'); } diff --git a/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue b/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue index 5df6c2b..20c1de3 100644 --- a/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue +++ b/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue @@ -92,6 +92,10 @@ 编辑 - + @@ -214,6 +219,7 @@ const columns = ref([ { title: '操作', dataIndex: 'action', + align: 'center', fixed: 'right', width: 140, }, diff --git a/smart-admin-web-typescript/src/views/business/receive/asn/receive-detail-list.vue b/smart-admin-web-typescript/src/views/business/receive/asn/receive-detail-list.vue index c0d7194..f576a0e 100644 --- a/smart-admin-web-typescript/src/views/business/receive/asn/receive-detail-list.vue +++ b/smart-admin-web-typescript/src/views/business/receive/asn/receive-detail-list.vue @@ -18,19 +18,29 @@
- + 添加明细 - + + 批量收货 + + 批量移除 +
@@ -48,13 +58,15 @@