From 0ad7f0acfb00f5339682765c38557ced09555690 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 6 Feb 2024 12:44:39 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ERP=EF=BC=9A=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=85=B6=E5=AE=83=E5=85=A5=E5=BA=93=E7=9A=84=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=2040%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 53c94af0271aba3dd0620970745b997a19bf4797) --- src/api/erp/stock/stock/index.ts | 5 + src/components/UploadFile/src/UploadFile.vue | 2 +- src/views/erp/stock/in/StockInForm.vue | 79 ++++---- .../stock/in/components/StockInItemForm.vue | 174 +++++++++++++----- 4 files changed, 168 insertions(+), 92 deletions(-) diff --git a/src/api/erp/stock/stock/index.ts b/src/api/erp/stock/stock/index.ts index 2c5bf5ec..9296efa0 100644 --- a/src/api/erp/stock/stock/index.ts +++ b/src/api/erp/stock/stock/index.ts @@ -24,6 +24,11 @@ export const StockApi = { return await request.get({ url: `/erp/stock/get?id=` + id }) }, + // 查询产品库存详情 + getStock2: async (productId: number, warehouseId: number) => { + return await request.get({ url: `/erp/stock/get`, params: { productId, warehouseId } }) + }, + // 导出产品库存 Excel exportStock: async (params) => { return await request.download({ url: `/erp/stock/export-excel`, params }) diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 576dc054..c91f977a 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -158,7 +158,7 @@ const emitUpdateModelValue = () => { // 情况1:数组结果 let result: string | string[] = fileList.value.map((file) => file.url!) // 情况2:逗号分隔的字符串 - if (isString(props.modelValue)) { + if (props.limit === 1 || isString(props.modelValue)) { result = result.join(',') } emit('update:modelValue', result) diff --git a/src/views/erp/stock/in/StockInForm.vue b/src/views/erp/stock/in/StockInForm.vue index fe9cb68f..fb0f66ab 100644 --- a/src/views/erp/stock/in/StockInForm.vue +++ b/src/views/erp/stock/in/StockInForm.vue @@ -8,54 +8,54 @@ v-loading="formLoading" > - + + - + - + + - + - - + - + + + + + + - - - - - - - - - - - - - + + + + + + +