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 a0ef08d6..5e9c8f3a 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -160,7 +160,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" > - + + - + - + + - + - - + - + + + + + + - - - - - - - - - - - - - + + + + + + +