li-guang
2020-12-25 c94eed22ac10480428d5b711bfd90ff746f42d2b
库存查询
4 files modified
2 files added
198 ■■■■■ changed files
hive-app/pages.json 22 ●●●●● patch | view | raw | blame | history
hive-app/pages/manager/analyse.vue 39 ●●●●● patch | view | raw | blame | history
hive-app/pages/manager/storeReport.vue 2 ●●● patch | view | raw | blame | history
hive-app/pages/workbench/index.vue 2 ●●● patch | view | raw | blame | history
hive-app/pages/workbench/stockSearch.vue 51 ●●●●● patch | view | raw | blame | history
hive-app/pages/workbench/storeRecord.vue 82 ●●●●● patch | view | raw | blame | history
hive-app/pages.json
@@ -431,6 +431,28 @@
                    }
                }
            }
        },
        {
            "path": "pages/workbench/stockSearch",
            "style": {
                "navigationBarTitleText": "库存查询",
                "navigationBarBackgroundColor":"#FFFFFF",
                "navigationBarTextStyle":"black",
                "app-plus":{
                    "scrollIndicator": "none"
                }
            }
        },
        {
            "path": "pages/workbench/storeRecord",
            "style": {
                "navigationBarTitleText": "出入库记录",
                "navigationBarBackgroundColor":"#FFFFFF",
                "navigationBarTextStyle":"black",
                "app-plus":{
                    "scrollIndicator": "none"
                }
            }
        }
    ],
    "globalStyle": {
hive-app/pages/manager/analyse.vue
@@ -1,9 +1,48 @@
<template>
    <!-- 专项分析 -->
    <view class="container">
        <view class="content-box font-14 mt-10">
            <view class="content-box-row flex align-center justify-between">
                <text>12月11日</text>
                <text>¥1,712</text>
            </view>
            <view class="content-box-row flex align-center justify-between">
                <text>12月12日</text>
                <text>¥1,712</text>
            </view>
            <view class="content-box-row flex align-center justify-between">
                <text>12月13日</text>
                <text>¥1,712</text>
            </view>
            <view class="content-box-row flex align-center justify-between">
                <text>12月14日</text>
                <text>¥1,712</text>
            </view>
        </view>
    </view>
</template>
<script>
</script>
<style>
    page{
        background: #F6F6F8;
    }
    .container{
        padding: 0 10px;
    }
    .content-box{
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        background: #FFFFFF;
        padding: 0 10px;
    }
    .content-box-row{
        border-bottom: 1px solid #EDEAF4;
        padding: 10px 0;
    }
    .content-box-row:nth-last-child(1){
        border: 0;
    }
</style>
hive-app/pages/manager/storeReport.vue
@@ -69,7 +69,7 @@
            </view>
        </view>
        <view v-if="tabIndex==2">
            <view class="content-box">
            <view class="content-box font-14">
                <navigator url="./analyse" hover-class="none" class="content-row">
                    <text>营业收入</text>
                    <text class="iconfont iconarrow-backimg gray"></text>
hive-app/pages/workbench/index.vue
@@ -131,7 +131,7 @@
            <text class="title">仓库</text>
            <view class="flex align-center mt-10">
                <view class="list-item">
                    <navigator url="./"  hover-class="none">
                    <navigator url="./stockSearch"  hover-class="none">
                        <image class="content-icon" src="../../static/images/warehouse1.png"></image>
                        <text class="font-12 font-dark">库存查询</text>
                    </navigator>
hive-app/pages/workbench/stockSearch.vue
New file
@@ -0,0 +1,51 @@
<template>
    <!-- 库存查询 -->
    <view>
        <search-bar placeholder="商品名称、编号、拼音" class="ml-10 mr-10"></search-bar>
        <view class="content">
            <navigator url="./storeRecord" hover-class="none" class="content-row flex align-center justify-between" v-for="item in 5">
                <view class="flex align-center">
                    <image class="product-img" src="../../static/images/product.jpg"></image>
                    <view class="font-14 ml-10">
                        <text>肽妍氨基酸平衡基础洁面乳</text>
                        <view class="mt-10">
                            <text>在库数量: 5</text>
                            <text class="content-warning ml-20">低于警戒值</text>
                        </view>
                    </view>
                </view>
                <text class="iconfont iconarrow-backimg gray"></text>
            </navigator>
        </view>
    </view>
</template>
<script>
    import searchBar from '../../components/searchBar/index.vue';
    export default {
        components:{
            searchBar
        },
    }
</script>
<style>
    .content{
        padding: 0 10px;
    }
    .content-row{
        border-bottom: 1px solid #EDEAF4;
        padding: 10px 0;
    }
    .product-img{
        width: 48px;
        height: 48px;
        border-radius: 4px;
    }
    .content-warning{
        border: 1px solid #DE5A5A;
        border-radius: 20px;
        font-size: 8px;
        padding: 5px;
    }
</style>
hive-app/pages/workbench/storeRecord.vue
New file
@@ -0,0 +1,82 @@
<template>
    <!-- 出入库记录 -->
    <view>
        <view class="header font-14 flex align-center justify-center">
            <view class="header-time mr-20">
                <text class="blue">2019-08-25</text>
            </view>
            <text class="iconfont iconjian"></text>
            <view class="header-time ml-20">
                <text class="blue">2020-08-25</text>
            </view>
        </view>
        <view class="content">
            <view class="content-row mt-10">
                <view class="content-row-time">
                    <text class="font-14">2020-12-11 11:15</text>
                </view>
                <view class="content-row-record">
                    <view class="font-16 flex align-center justify-between">
                        <text>采购入库</text>
                        <text>入库数量: 2</text>
                    </view>
                    <view class="mt-10">
                        <text class="font-14 gray">订单编号: N1231242412412414</text>
                    </view>
                </view>
            </view>
            <view class="content-row mt-10">
                <view class="content-row-time">
                    <text class="font-14">2020-12-11 11:15</text>
                </view>
                <view class="content-row-record">
                    <view class="font-16 flex align-center justify-between">
                        <text>销售出库</text>
                        <text>出库数量: 2</text>
                    </view>
                    <view class="mt-10">
                        <text class="font-14 gray">订单编号: N1231242412412414</text>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
<script>
</script>
<style>
    page{
        background: #F6F6F8;
    }
    .header{
        background: #FFFFFF;
        padding: 10px 0;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .header-time{
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        padding: 5px 10px;
    }
    .content{
        padding: 0 10px;
    }
    .content-row{
        background: #FFFFFF;
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        padding: 0 10px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .content-row-time{
        padding: 10px 0;
        border-bottom: 1px solid #EDEAF4;
    }
    .content-row-record{
        padding: 10px 0;
    }
</style>