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 @@