diff --git a/src/api/product/model/productModel.ts b/src/api/product/model/productModel.ts index ddbaca5..edc7db4 100644 --- a/src/api/product/model/productModel.ts +++ b/src/api/product/model/productModel.ts @@ -108,4 +108,15 @@ export interface ProductStockResp { initStockQuantity: number; lowStockQuantity: number; highStockQuantity: number; +} + +export interface UpdateBatchProductInfoReq { + productIds: number[]; + productCategoryId: number | string; + productColor: string; + productWeight: number; + productExpiryNum: number; + enableSerialNumber: string; + enableBatchNumber: string; + remark: string; } \ No newline at end of file diff --git a/src/api/product/product.ts b/src/api/product/product.ts index f5b2c27..ff48768 100644 --- a/src/api/product/product.ts +++ b/src/api/product/product.ts @@ -1,6 +1,11 @@ import {defHttp} from '/@/utils/http/axios'; import {BaseDataResp, BaseResp} from "@/api/model/baseModel"; -import {AddProductReq, ProductInfoDetailResp, QueryProductReq} from "@/api/product/model/productModel"; +import { + AddProductReq, + ProductInfoDetailResp, + QueryProductReq, + UpdateBatchProductInfoReq +} from "@/api/product/model/productModel"; import {ErrorMessageMode} from "#/axios"; enum Api { @@ -10,6 +15,7 @@ enum Api { getProductInfoDetail = '/product/getProductInfoDetail', deleteProduct = '/product/deleteProduct', updateProductStatus = '/product/updateProductStatus', + updateBatchProductInfo = '/product/updateBatchProductInfo', } export function getBarCode() { @@ -70,4 +76,15 @@ export function updateProductStatus(productIds: number[], status: number, mode: errorMessageMode: mode, } ); +} + +export function updateBatchProductInfo(params: UpdateBatchProductInfoReq, mode: ErrorMessageMode = 'notice') { + return defHttp.put( + { + url: Api.updateBatchProductInfo, + params + },{ + errorMessageMode: mode, + } + ); } \ No newline at end of file diff --git a/src/views/product/info/components/BatchEditModal.vue b/src/views/product/info/components/BatchEditModal.vue new file mode 100644 index 0000000..0acff51 --- /dev/null +++ b/src/views/product/info/components/BatchEditModal.vue @@ -0,0 +1,209 @@ + + + \ No newline at end of file diff --git a/src/views/product/info/components/BatchSetPriceModal.vue b/src/views/product/info/components/BatchSetPriceModal.vue index c468905..ea8c5dc 100644 --- a/src/views/product/info/components/BatchSetPriceModal.vue +++ b/src/views/product/info/components/BatchSetPriceModal.vue @@ -19,7 +19,7 @@