#
whycq
2023-07-10 c6a42c10d5e49596bf67a6d6fdf8fa2678f31296
#
1个文件已修改
31 ■■■■ 已修改文件
pages/AGV/AGVStart.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/AGV/AGVStart.vue
@@ -31,7 +31,7 @@
                    <checkbox :value="item.matnr" :checked="item.checked" @click="set(i)"/>
                </view>
                <view class="list-left" style="display: flex;justify-content: center;">
                    {{item.name}}
                    {{item.devNo}}
                </view>
                <view class="list-right">
                    <!-- <uni-icons type="compose" color="#9add8b" size="24" @click="revise(item,i)"></uni-icons> -->
@@ -118,7 +118,7 @@
                token: '',
                barcode: '',
                stationCode: '',
                dataList: [{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'}],
                dataList: [],
                count: 0,
                rowNum: '',
                matnr: '',
@@ -133,8 +133,8 @@
                matFocus: false,
                matData: '',
                removeNum: 0,
                floorList: [1,2,3],
                floor: '',
                floorList: [1,3],
                floor: "",
            }
        },
        onLoad() {
@@ -161,15 +161,18 @@
            getFloor() {
                let that = this
                uni.request({
                    url: that.baseUrl + '/mat/auth',
                    url: that.baseUrl + '/agvMobile/getBasDevp/auth',
                    data: {
                        matnr: that.matnr
                        floor: that.floor
                    },
                    header: {
                        'token': uni.getStorageSync('token')
                    },
                    success(result) {
                    method: 'POST',
                    success(res) {
                        console.log(res);
                        res = res.data
                        that.dataList = res.data
                    }
                });
            },
@@ -381,16 +384,10 @@
            comb() {
                uni.vibrateShort();
                let that = this;
                if (that.barcode === '') {
                    this.messageText = "请扫描托盘条码"
                    this.messageToggle('error')
                    return;
                }
                uni.request({
                    url: that.baseUrl + '/mobile/combBinging/auth',
                    url: that.baseUrl + '/agvMobile/pakin/auth',
                    data: JSON.stringify({
                        barcode: that.barcode,
                        stationCode: that.stationCode
                        devNo: that.devNo
                    }),
                    method: 'POST',
                    header: {
@@ -404,7 +401,7 @@
                            that.messageToggle('success')
                            // const innerAudioContext = uni.createInnerAudioContext();
                            // innerAudioContext.src = '/static/music/pakinOk.mp3';
                            innerAudioContext.play()
                            // innerAudioContext.play()
                        } else if (res.code == 403) {
                            that.messageText = res.msg
                            that.messageToggle('error')