zwl
2025-09-01 99f4df4fa37075ff41b68f74921527e30f0c525b
新增AGV补空托盘
2个文件已修改
43 ■■■■ 已修改文件
pages/AGV/AGVkongban.vue 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/AGV/AGVkongban.vue
@@ -5,8 +5,21 @@
                <view class="code-decs">站点:</view>
                <input type="text" placeholder=" 扫码 / 输入" v-model="stationCode" :focus="stationCodeFocus"
                    >
            </view>
            </view>
            <view class="item">
            <view class="code-decs" style="width: 25vw;">大小托盘:</view>
            <radio-group @change="isFullPlt">
                <label>
                    <radio :checked="ck1" style="transform: scale(0.7)"/><text>小托盘</text>
                </label>
                <label>
                    <radio :checked="ck2" style="margin-left: 50rpx;transform: scale(0.7);"/><text>大托盘</text>
                </label>
            </radio-group>
            </view>
        </view>
        
        <view class="mat-list-title">
            <view style="-webkit-flex: 1;flex: 1;"></view>
@@ -125,6 +138,9 @@
                devNo: [],
                staList:[],
                sta:'',    
                fullPlt: 'N',
                ck1: true,
                ck2: false,
            }
        },
        onLoad() {
@@ -134,11 +150,22 @@
            this.token = uni.getStorageSync('token');
        },
        methods: {
            // 大小托盘
            isFullPlt() {
                var temp = this.ck1
                this.ck1 = this.ck2
                this.ck2 = temp
                if (this.ck1) {
                    this.fullPlt = '1'
                } else {
                    this.fullPlt = '2'
                }
            },
            stationCodeInput() {
                let that = this;
                that.staList = []
                uni.request({
                    url: that.baseUrl + '/mobile/AGVSite?locNo='+that.stationCode,
                    url: that.baseUrl + '/mobile/FillEmptyPallets?locNo='+that.stationCode+'&size='+that.fullPlt,
                    
                    header: {
                        'token': uni.getStorageSync('token')
@@ -436,12 +463,9 @@
                    return;
                }
                uni.request({
                    url: that.baseUrl + '/mobile/supplementEmpty',
                    url: that.baseUrl + '/mobile/FillEmptyPallets?locNo='+that.stationCode+'&size='+that.fullPlt,
                    header: {
                        'token': uni.getStorageSync('token')
                    },
                    data:{
                        locNo: that.stationCode
                    },
                    method: 'POST',
                    success(result) {
pages/home/home.vue
@@ -52,6 +52,13 @@
                        cuIcon: 'order',
                        url: '/AGV/AGVStart'
                    },
                    {
                        title: '补空托盘',
                        name: 'AGVFillEmptyPallets',
                        color: 'green',
                        cuIcon: 'order',
                        url: '/AGV/AGVkongban'
                    },
                    // {
                    //     title: 'AGV呼叫空托盘',
                    //     name: 'AGVkongban',