feat: 修改配置文件和页面逻辑,优化商品采购和订单获取功能
This commit is contained in:
parent
3069b34763
commit
79cef97d78
|
@ -17,4 +17,8 @@ export const storeProductListApi = (data) => {
|
|||
*/
|
||||
export const storeProductWholesaleListApi = (data) => {
|
||||
return request.get('/product/product/wholesale_lists', data);
|
||||
}
|
||||
}
|
||||
|
||||
export const BranchProductListsApi = (data) => {
|
||||
return request.get('/branch_product/BranchProduct/lists', data);
|
||||
}
|
||||
|
|
|
@ -115,8 +115,7 @@
|
|||
</viewPopup>
|
||||
<scroll-view class="list" id='drag_area' style="overscroll-behavior: none;" @scroll="hideHeadView"
|
||||
scroll-y @scrolltolower="loadMoreGood">
|
||||
<view class="shop-item" v-for="(item, index) in goodList" :key="item.id"
|
||||
>
|
||||
<view class="shop-item" v-for="(item, index) in goodList" :key="item.id">
|
||||
<view class="shop-img"
|
||||
:style="{ backgroundImage: `url(${item.image}?x-oss-process=image/format,webp)` }">
|
||||
</view>
|
||||
|
@ -125,18 +124,6 @@
|
|||
<view class="goods-name" style="font-size: 28rpx;color: #060606;">
|
||||
{{ item.store_name }}
|
||||
</view>
|
||||
<view class="shop-content-li" v-if="priceKey.off_activity==1">
|
||||
<view class="shop-content-li-l">
|
||||
售价
|
||||
</view>
|
||||
<view class="shop-content-li-r" style="color:#FC452F ;">¥<text
|
||||
style="font-size: 30rpx;">{{item[priceKey.price]}}</text>/{{ item.unit_name }}
|
||||
</view>
|
||||
<view class="tag" v-if="item.tag">
|
||||
<view class="icon" />
|
||||
{{item.tag}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="shop-content-li" style="justify-content: space-between;"
|
||||
v-if="item.store_info">
|
||||
<view style="display: flex;">
|
||||
|
@ -145,14 +132,41 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
<view class="shop-content-li" style="justify-content: space-between;" v-if="item.batch">
|
||||
<view style="display: flex;">
|
||||
<view class="shop-content-li-l">起批量</view>
|
||||
<view class="shop-content-li-r">{{ item.batch }}{{ item.unit_name }}起卖</view>
|
||||
|
||||
<view class="shop-content-li">
|
||||
<view style="margin-right: 60rpx;">
|
||||
<span class="shop-content-li-l">
|
||||
铺货量
|
||||
</span>
|
||||
<span class="shop-content-li-r" style="color:#FC452F ;"><text
|
||||
style="font-size: 30rpx;">{{item.sales}}</text>
|
||||
</span>
|
||||
</view>
|
||||
<view >
|
||||
|
||||
<span class="shop-content-li-l">
|
||||
销售量
|
||||
</span>
|
||||
<span class="shop-content-li-r" style="color:#FC452F ;"><text
|
||||
style="font-size: 30rpx;">{{item.sales}}</text>
|
||||
</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="shop-content-li">
|
||||
<view class="shop-content-li-l">
|
||||
库存
|
||||
</view>
|
||||
<view class="shop-content-li-r" style="color:#FC452F ;"><text
|
||||
style="font-size: 30rpx;">{{item.stock}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="shop-content-li">
|
||||
<view class="shop-content-li-l">
|
||||
价值
|
||||
</view>
|
||||
<view class="shop-content-li-r" style="color:#FC452F ;">¥<text
|
||||
style="font-size: 30rpx;">{{item.total_price}}</text>
|
||||
</view>
|
||||
<!-- <view class="btn">
|
||||
<u--icon name="plus-circle-fill" size="20" color="#20b128"></u--icon>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue