diff --git a/api/good.js b/api/good.js index fe8ee69..487f397 100644 --- a/api/good.js +++ b/api/good.js @@ -17,4 +17,8 @@ export const storeProductListApi = (data) => { */ export const storeProductWholesaleListApi = (data) => { return request.get('/product/product/wholesale_lists', data); -} \ No newline at end of file +} + +export const BranchProductListsApi = (data) => { + return request.get('/branch_product/BranchProduct/lists', data); +} diff --git a/pagesOrder/store_product/index.vue b/pagesOrder/store_product/index.vue index 74b9458..02fc463 100644 --- a/pagesOrder/store_product/index.vue +++ b/pagesOrder/store_product/index.vue @@ -115,8 +115,7 @@ - + @@ -125,18 +124,6 @@ {{ item.store_name }} - - - 售价 - - {{item[priceKey.price]}}/{{ item.unit_name }} - - - - {{item.tag}} - - @@ -145,14 +132,41 @@ - - - 起批量 - {{ item.batch }}{{ item.unit_name }}起卖 + + + + + 铺货量 + + {{item.sales}} + + + + + + 销售量 + + {{item.sales}} + + + + + + 库存 + + {{item.stock}} + + + + + 价值 + + {{item.total_price}} - @@ -176,7 +190,7 @@ } from "vue" import { goodListApi, - storeProductWholesaleListApi, + BranchProductListsApi, goodClassListApi } from "@/api/good.js" @@ -312,7 +326,7 @@ // top_cate_id: "", // two_cate_id: "" } - storeProductWholesaleListApi(data).then(res => { + BranchProductListsApi(data).then(res => { for (let key in res.data.extend) { priceKey[key] = res.data.extend[key] }