#
whycq
2023-03-19 eb32a99a8ae487f90ffd7f0917c819ec5cc577d7
#
1个文件已修改
1个文件已添加
197 ■■■■■ 已修改文件
pages.json 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/pakin.vue 191 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -1,6 +1,12 @@
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/pakin/pakin",
            "style": {
                "navigationBarTitleText": "组 托"
            }
        },
        {
            "path": "pages/login/login",
            "style": {
                "navigationBarTitleText": "登 录"
pages/pakin/pakin.vue
New file
@@ -0,0 +1,191 @@
<template>
    <view>
        <view class="code">
            <view class="item">
                <view class="code-decs">托盘码:</view>
                <input type="text" placeholder=" 扫码 / 输入">
            </view>
            <view class="item">
                <view class="code-decs">物料码:</view>
                <input type="text" placeholder=" 扫码 / 输入">
                <view class="item-right">
                    <text style="text-align: right;">提取+</text>
                    <uni-icons type="right" color="#c1c1c1"></uni-icons>
                </view>
            </view>
        </view>
        <view class="mat-list-title">
            商品列表
        </view>
        <scroll-view>
            <view class="list" v-for="(item,i) in dataList" :key="i">
                <view class="list-left">
                    <view class="list-left-item">
                        <view class="desc">No:</view>
                        <view>{{i + 1}}</view>
                    </view>
                    <view class="list-left-item">
                        <view class="desc">编码:</view>
                        <view>{{item.matnr}}</view>
                    </view>
                    <view class="list-left-item">
                        <view class="desc">品名:</view>
                        <view>{{item.maktx}}</view>
                    </view>
                    <view class="list-left-item">
                        <view class="desc">规格:</view>
                        <view>{{item.specs}}</view>
                    </view>
                    <view class="list-left-item">
                        <view class="desc">批号:</view>
                        <view>{{item.batch}}</view>
                    </view>
                    <view class="list-left-item">
                        <view class="desc">数量:</view>
                        <view>{{item.anfme}}</view>
                    </view>
                </view>
                <view class="list-right">
                    <uni-icons type="compose" color="#c1c1c1" size="24"></uni-icons>
                    <uni-icons type="trash" color="#c1c1c1" size="24"></uni-icons>
                </view>
            </view>
        </scroll-view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                dataList: [{
                    matnr: "whycq19950520222222-23232",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "100"
                }, {
                    matnr: "whycq19950520",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "12"
                },{
                    matnr: "whycq19950520",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "12"
                },{
                    matnr: "whycq19950520",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "12"
                },{
                    matnr: "whycq19950520",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "12"
                },{
                    matnr: "whycq19950520",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "12"
                },{
                    matnr: "whycq19950520",
                    maktx: "wusuowei",
                    specs: "个",
                    batch: "批号",
                    anfme: "12"
                }
                ]
            }
        },
        onLoad() {
        },
        methods: {}
    }
</script>
<style>
    .code {
        width: 100%;
        position: fixed;
        min-height: 200rpx;
        background-color: #FFF;
        z-index: 999;
    }
    .item {
        display: flex;
        align-items: center;
        height: 100rpx;
        margin-left: 20rpx;
        border-bottom: 1px solid #DCDFE6;
    }
    .item input {
        height: 50rpx;
        line-height: 50rpx;
        /* font-family: PingFang SC; uniapp 默认字体不居中 */
        font-size: 36upx;
        font-family: PingFang SC;
        width: 55vw;
    }
    .code-decs {
        width: 20vw;
        font-size: 18px;
        color: #303133;
    }
    .item-right {
        margin-left: auto;
        margin-right: 20rpx;
    }
    .mat-list-title {
        height: 80rpx;
        line-height: 80rpx;
        width: 100%;
        background-color: white;
        position: fixed;
        margin-top: 200rpx;
        z-index: 998;
        /* border-top: 1px solid #DCDFE6; */
        text-align: center;
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.5);
    }
    .list {
        display: flex;
        min-height: 80rpx;
        background-color: #FFF;
        margin-top: 20rpx;
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.3);
    }
    .list:first-child {
        margin-top: 310rpx;
    }
    .list:last-child {
        margin-bottom: 120rpx;
    }
    .list-left {
        display: flex;
        flex-direction: column;
        margin-left: 20rpx;
        width: 80vw;
    }
    .list-left-item {
        min-height: 40rpx;
        line-height: 40rpx;
        display: flex;
    }
    .list-right {
        display: flex;
        width: 20vw;
        justify-content: space-between;
        align-items: center;
        margin-right: 20rpx;
    }
</style>