skyouc
2025-01-14 0c3bd32542709a9c61f3d125fdaaa42d267821cb
#添加出库确认功能
1个文件已添加
3个文件已修改
185 ■■■■■ 已修改文件
pages.json 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/order/orderOutConfirm.vue 147 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/putOn.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -42,7 +42,7 @@
        {
            "path": "pages/pakin/pakin",
            "style": {
                "navigationBarTitleText": "组 托"
                "navigationBarTitleText": "组托入库"
            }
        },
        {
@@ -150,7 +150,7 @@
        {
            "path": "pages/pakin/putOn",
            "style": {
                "navigationBarTitleText": "组托上架"
                "navigationBarTitleText": "平库上架"
            }
        },
        {
@@ -159,7 +159,6 @@
                "navigationBarTitleText": "换板绑定"
            }
        },
        {
            "path": "pages/print/qr",
            "style": {
@@ -204,7 +203,7 @@
            "path" : "pages/stock/outFlat",
            "style" :                                                                                    
            {
                "navigationBarTitleText": "",
                "navigationBarTitleText": "平库下架",
                "enablePullDownRefresh": false
            }
            
@@ -218,6 +217,15 @@
            }
            
        }
        ,{
            "path" : "pages/order/orderOutConfirm",
            "style" :
            {
                "navigationBarTitleText": "订单出库确认",
                "enablePullDownRefresh": false
            }
        }
    ],
    "globalStyle": {
        "navigationBarTextStyle": "black",
pages/home/home.vue
@@ -68,13 +68,13 @@
                        cuIcon: 'pullup',
                        url: '/stock/orderBindSeed'
                    },
                    // {
                    //     title: '订单入库',
                    //     name: 'orderPakin',
                    //     color: 'red',
                    //     cuIcon: 'pullup',
                    //     url: '/order/orderPakin'
                    // },
                    {
                        title: '出库确认',
                        name: 'orderConfirm',
                        color: 'purple',
                        cuIcon: 'check',
                        url: '/order/orderOutConfirm'
                    },
                    // {
                    //     title: '打印',
                    //     name: 'print',
pages/order/orderOutConfirm.vue
New file
@@ -0,0 +1,147 @@
<template>
    <view>
        <view class="list-view">
            <scroll-view style="overflow: hidden;overflow-y: scroll;height: auto;">
                <view>
                    <uni-row :gutter="10">
                        <uni-col :span="3" style="margin: auto;align-items: center;justify-content: center;">
                            <uni-data-checkbox mode="list" icon="left" v-model="value" :localdata="range" @change="change" :multiple="true" />
                        </uni-col>
                        <uni-col :span="20">
                            <view>1112244</view>
                        </uni-col>
                    </uni-row>
                </view>
            </scroll-view>
        </view>
        <!-- 底部操作按钮 -->
        <view class="buttom">
            <button size="middle" type="primary" @click="combConfirm('warn')">确认出库</button>
        </view>
        <!-- 确认上架 -->
        <view>
            <uni-popup ref="combConfirm" type="dialog">
                <uni-popup-dialog :type="msgType" cancelText="取消" confirmText="确认" :title="title" :content="content"
                    @confirm="comb" @close="combClose"></uni-popup-dialog>
            </uni-popup>
        </view>
        <view>
            <!-- 提示信息弹窗 -->
            <uni-popup ref="message" type="message">
                <uni-popup-message :type="msgType1" :message="messageText" :duration="2000"></uni-popup-message>
            </uni-popup>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                msgType1: 'success',
                msgType: 'success',
                messageText: '',
                title: '',
                content: '',
                dataList: [],
                barcode: '',
                matFocus: '',
                value: 0,
                range: [{"value": 0,"texts": "篮球"    },{"value": 1,"texts": "足球"},{"value": 2,"texts": "游泳"}]
            }
        },
        methods: {
            change(data) {
                console.log(data)
            }
        }
    }
</script>
<style>
    @import url('../../static/css/wms.css/wms.css');
    .uni-section {
        margin-top: 0rpx;
        .uni-section__content-title {
            font-size: 16px !important;
        }
    }
    .buttom uni-button {
        width: 60%;
    }
    .list-view {
        width: 100%;
        position: relative;
        .uni-data-checklist .checklist-group .checklist-box.is--list {
            padding-left: 30rpx;
        }
    }
    .list {
        display: flex;
        min-height: 80rpx;
        background-color: #FFF;
        margin: 20rpx;
        border-radius: 20rpx;
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.2);
    }
    .list:first-child {
        margin-top: 300rpx;
    }
    .list:last-child {
        margin-bottom: 120rpx;
    }
    .code {
        width: 100%;
        position: fixed;
        background: white;
        min-height: 200rpx;
        background-color: #FFF;
        z-index: 10;
    }
    .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;
        position: fixed;
        line-height: 80rpx;
        font-size: 24px;
        width: 100%;
        background: white;
        font-weight: 500;
    }
</style>
pages/pakin/putOn.vue
@@ -17,7 +17,9 @@
        </view>
        <view class="list-view">
            <scroll-view style="overflow: hidden;overflow-y: scroll;height: auto;">
                <view class="list" v-for="(item,i) in dataList" :key="i">
                        <uni-data-checkbox mode="list" icon="left" v-model="value" :localdata="range" @change="change"></uni-data-checkbox>
                <!-- <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>
@@ -46,7 +48,7 @@
                            <view class="left-item">{{item.anfme}}</view>
                        </view>
                    </view>
                </view>
                </view> -->
            </scroll-view>
        </view>
        <!-- 底部操作按钮 -->
@@ -150,7 +152,7 @@
            comb() {
                uni.vibrateShort();
                let that = this;
                this.$toast.loading('加载中...')
                this.$toast.loading('上架中...')
                uni.request({
                    url: that.baseUrl + '/pda/matnr/in/barcode',
                    data: JSON.stringify({