#
whycq
2024-05-29 a9bf429ca5886ec03d4a3205f0425a7a421b6b8b
#
2个文件已修改
42 ■■■■■ 已修改文件
pages/phyz/stationManage/pickAgain.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationDetl.vue 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/pickAgain.vue
@@ -155,7 +155,12 @@
                // 判断添加的商品是否和已经添加的重复
                let dataList = this.dataList
                this.index = index
                if (this.dataList[index].stock > this.dataList[index].anfme) {
                    this.maxCount = this.dataList[index].anfme - this.dataList[index].pickedAnfme
                } else {
                this.maxCount = this.dataList[index].stock
                }
                this.$refs.addItem.open()
            },
            addClose() {
pages/phyz/stationManage/stationDetl.vue
@@ -11,7 +11,9 @@
            <view>站点状态:{{station.locSts$}}</view>
            <view class="mt-flex">
                <view class="station-barcode" style="flex: 1">货架码:<text>{{station.barcode ? station.barcode : '--'}}</text></view>
                <view v-if="station.barcode && station.locSts == 'F'"><button size="mini" type="warn" @click="unbind()">解除绑定</button></view>
                <view v-if="station.barcode && station.locSts == 'F'">
                    <!-- <button size="mini" type="warn" @click="unbind()">解除绑定</button> -->
                </view>
            </view>
        </view>
        
@@ -193,9 +195,11 @@
        <!-- 底部操作按钮 -->
        <view class="buttom">
            <button size="mini" :disabled="dis" type="warn" @click="doBack()" v-if="btnType == 'out' || btnType == 'pick'">退库{{sec}}</button>
            <button size="mini" type="primary" @click="handBack()" v-if="btnType == 'handBack'">转手动</button>
            <!-- <button size="mini" type="warn" @click="doBack()" v-if="btnType == 'out' || btnType == 'pick'">退库</button> -->
            <button size="mini" type="primary" @click="emptyPakin()" v-if="btnType == 'emptyPakin'">空板入库</button>
            <button size="mini" type="primary" @click="emptyOut()" v-if="btnType == 'emptyPakin'">呼叫空板</button>
            <button size="mini" type="primary" @click="doContainerMoveOut2()" v-if="btnType == 'out'">货架离场</button>
            <!-- <button size="mini" type="primary" @click="doContainerMoveOut2()" v-if="btnType == 'out'">货架离场</button> -->
            <button size="mini" type="primary" @click="doContainerMoveOut()" v-if="btnType == 'out'">确认出库</button>
            <button size="mini" type="primary" @click="doPickIn()" v-if="btnType == 'pick'">已拣料回库</button>
            <button size="mini" type="primary" @click="doPickIn2()" v-if="btnType == 'pick'">再次拣料</button>
@@ -461,6 +465,9 @@
                                } else if (wrkMast.ioType == 103) {
                                    wrkMast['ioTitle'] = '拣料出库'
                                    _this.btnType = 'pick'
                                } else if (wrkMast.ioType == 109) {
                                    wrkMast['ioTitle'] = '自动回流'
                                    _this.btnType = 'handBack'
                                } else if (wrkMast.ioType == 110) {
                                    wrkMast['ioTitle'] = '空板出库'
                                } else if (wrkMast.ioType == 111) {
@@ -782,6 +789,32 @@
                        }
                    }
                });
            },
            handBack() {
                let that = this
                let params = []
                let param = { devNo: this.station.devNo, containerCode: this.station.barcode, }
                params.push(param)
                uni.request({
                    url: that.baseUrl + '/agvMobile/hand/control/handBack',
                    header: {'token': uni.getStorageSync('token')},
                    data: {devNo: that.station.devNo, barcode: that.barcode},
                    method: 'POST',
                    success(result) {
                        var res = result.data
                        if (res.code === 200) {
                            setTimeout(()=> {
                                that.reloadStation()
                            },1000)
                            uni.showToast({ title: '转换成功', icon: "success", position: 'top' })
                        } else if (res.code == 403) {
                            uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                            setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
                        } else {
                            uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                        }
                    }
                });
            }
            
        }