#
whycq
2023-04-11 28a1197bac94552ff4b0353fa7654a7ee5ee885f
#
4个文件已修改
1个文件已添加
117 ■■■■■ 已修改文件
manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/changePallet.vue 94 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/outPakin.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -2,7 +2,7 @@
    "name" : "中扬WMS",
    "appid" : "__UNI__DA5854D",
    "description" : "",
    "versionName" : "20220825A",
    "versionName" : "20230411B",
    "versionCode" : 103,
    "transformPx" : false,
    /* 5+App特有相关 */
pages.json
@@ -126,6 +126,15 @@
                "enablePullDownRefresh": false
                
            }
        },
        {
            "path" : "pages/basics/changePallet",
            "style" :
            {
                "navigationBarTitleText": "换板绑定",
                "enablePullDownRefresh": false
            }
        }
        
        
pages/basics/changePallet.vue
New file
@@ -0,0 +1,94 @@
<template>
    <view >
        <scroll-view scroll-y catch:touchmove="touchmove">
            <view class="square-2">
                <view class="square-title">
                    <view class="title-sign"><view class="sign"></view></view>
                    <view class="title-text"><text>原托盘码</text></view>
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input readonly="value" v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8"
                        :focus="barcodeFocus" @input="nextInput">
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
                    </view>
                </view>
            </view>
            <view class="square-2">
                <view class="square-title">
                    <view class="title-sign"><view class="sign"></view></view>
                    <view class="title-text"><text>转换托盘码</text></view>
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input v-model="matnrId" type="text" placeholder="扫码 / 输入" @input="findMat()"
                        :focus="focus"@focus="empty()">
                         <!-- :focus="focus" @blur="clear "> -->
                        <!-- @focus="focuss" -->
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons>
                    </view>
                </view>
            </view>
        </scroll-view>
        <view class="footer flex justify-around">
            <view>
                <button class="cu-btn lg" @click="resst()">重置</button>
            </view>
            <view>
                <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">组托</button>
            </view>
        </view>
    </view>
</template>
<script>
    import permision from "@/common/permission.js"
    export default {
        data() {
            return {
                commonUrl:null,
                barcode: '',
                barcodeFocus:true,
                focus:false,
                hide:true,
                msgType: 'success',
                messageText: '这是一条成功提示',
            }
        },
        mounted(){
            const UIP = uni.getStorageSync('UIP');
            this.baseIP = UIP;
            const UPORT = uni.getStorageSync('UPORT');
            this.basePORT = UPORT
            const PROJ = uni.getStorageSync('UPROJ');
            this.baseUrl = PROJ
            this.getUrl()
        },
        onLoad() {
            // #ifdef APP
            setInterval(()=>{
                if (this.hide) {
                    uni.hideKeyboard()
                } else {
                }
            },20)
            // #endif
        },
        methods: {
            // 获取url
            getUrl() {
                this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
            },
        }
    }
</script>
<style>
    .pakin-btn {
        background-color: #1E9FFF;
    }
</style>
pages/basics/outPakin.vue
@@ -29,7 +29,7 @@
                    </view>
                </view>
            </view>
            <view class="square-1">
            <!-- <view class="square-1">
                <view class="square-title" style="display: flex;">
                    <view class="title-sign"><view class="sign"></view></view>
                    <view class="title-text" style="width: 200rpx;"><text>拥有者</text></view>
@@ -37,7 +37,7 @@
                        <uni-combox :candidates="ownerList" placeholder="请选择拥有者" v-model="owner"></uni-combox>
                    </view>
                </view>
            </view>
            </view> -->
            <view class="square-1">
                <view class="square-title">
                    <view class="title-sign"><view class="sign"></view></view>
@@ -227,7 +227,7 @@
                    data: JSON.stringify({
                        barcode: that.barcode,
                        origin: that.origin,
                        owner: that.ownerId,
                        owner: 1,
                        combMats: that.matList
                    }),
                    method: 'POST',
pages/index/index.vue
@@ -60,6 +60,12 @@
                        cuIcon: 'safe'
                    },
                    {
                        title: '换板绑定',
                        name: 'changePallet',
                        color: 'blue',
                        cuIcon: 'refresh'
                    },
                    {
                        title: '组托入库',
                        name: 'pakin',
                        color: 'grey',