#
whycq
2023-03-20 dc512a5c085b6735b0895830109c8b3e5295bd51
#
2个文件已修改
1个文件已添加
1个文件已删除
224 ■■■■■ 已修改文件
pages.json 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mat/matQuery.vue 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mat/matSelect.vue 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mat/matSelected.vue 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -1,7 +1,13 @@
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/mat/matSelect",
            "path": "pages/mat/matSelected",
            "style": {
                "navigationBarTitleText": "物料"
            }
        },
        {
            "path": "pages/mat/matQuery",
            "style": {
                "navigationBarTitleText": "物料"
            }
pages/mat/matQuery.vue
@@ -1,8 +1,72 @@
<template>
    <view>
        <!-- 搜索框 -->
        <view class="search-bar">
            <uni-search-bar placeholder=" 扫码 / 输入" bgColor="#EEEEEE" @confirm="search" />
        </view>
        <scroll-view>
            <view class="tag-list" v-for="(item,i) in tagList" :key="i">
                <view class="tag">
                    <view style="display: flex;">
                        <view class="wms-tag" :style="baColor" >分类</view>
                    </view>
                </view>
                <view class="tag-item">{{desc}} {{item.name}}</view>
            </view>
        </scroll-view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                tagList: [{name:"whhhsupp"},{},{}],
                matList: [],
                tag: '分类',
                baColor: "background-color: #0081ff;",
                desc: '编码:'
            }
        },
        onLoad() {
        },
        methods: {
            search() {
            }
        }
    }
</script>
<style>
    @import url('../../static/css/wms.css/wms.css');
    .tag-list {
        width: 94%;
        min-height: 160rpx;
        margin: 10px auto;
        background-color: #FFF;
        border-radius: 5px;
        box-shadow: 0 5upx 20upx rgba(0, 0, 0, 0.2);
    }
    .tag {
        display: flex;
        flex-direction: column;
        min-height: 80rpx;
        border-bottom: 1px solid #e2e2e2;
    }
    .wms-tag {
        min-width: 60rpx;
        margin-left: 50rpx;
        margin-top: 30rpx;
        color: #FFF;
        font-size: 14px;
        padding: 4rpx 12rpx;
    }
    .tag-item {
        width: 100%;
        min-height: 60rpx;
        line-height: 2;
        padding-left: 50rpx;
        color: #606266;
        font-size: 14px;
    }
</style>
pages/mat/matSelect.vue
File was deleted
pages/mat/matSelected.vue
New file
@@ -0,0 +1,80 @@
<template>
    <view>
        <view class="form">
            <view class="form-item">
                <view class="form-item-desc"><text>商品编码</text></view>
                <view class="form-item-content"><text>{{4561234}}</text></view>
            </view>
            <view class="form-item">
                <view class="form-item-desc"><text>商品名称</text></view>
                <view class="form-item-content"><text>{{"45681asda"}}</text></view>
            </view>
            <view class="form-item">
                <view class="form-item-desc"><text>规格</text></view>
                <view class="form-item-content"><text>{{"45681asda"}}</text></view>
            </view>
            <view class="form-item">
                <view class="form-item-desc"><text>批号</text></view>
                <view class="form-item-content">
                    <view class="form-input">
                        <input type="text">
                    </view>
                </view>
            </view>
            <view class="form-item">
                <view class="form-item-desc"><text>数量</text></view>
                <view class="form-item-content">
                    <uni-number-box :max="99999999" :step='1' color="#747474" />
                </view>
            </view>
        </view>
        <!-- 底部操作按钮 -->
        <view class="buttom">
            <button size="mini" type="primary">提取</button>
        </view>
    </view>
</template>
<script>
</script>
<style>
    @import url('../../static/css/wms.css/wms.css');
    .form {
        min-height: 80rpx;
        background-color: #FFF;
        margin-top: 10px;
        color: #606266;
        box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.2) ;
    }
    .form-item {
        height: 100rpx;
        line-height: 100rpx;
        border-bottom: 1px solid #DCDFE6;
        margin-left: 40rpx;
        display: flex;
        align-items: center;
    }
    .form-item-desc {
        width: 30%;
    }
    .form-item-content {
        width: 60%;
    }
    .form-item:last-child {
        border: none;
    }
    .form-input {
        display: flex;
        align-items: center;
        width: 50vw;
        height: 50rpx;
        padding: 2px 5px;
        border-bottom: 1px solid #E4E7ED;
        border-radius: 5rpx;
    }
    .form-input input{
        color: #606266;
    }
</style>