#
whycq
2024-04-05 6624afc7e320466a370e54fa4c34b37b2f92a7a2
#
2个文件已修改
36 ■■■■ 已修改文件
pages/phyz/stationManage/stationDetl.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationManage.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationDetl.vue
@@ -17,7 +17,7 @@
        
        
        <!-- 工作档 -->
        <view class="wrkMast">
        <view class="wrkMast" v-if="wrkMast">
            <view class="wrkMast-wrkNo">
                <view style="flex:3">工作号: {{wrkMast.wrkNo}}</view>
                <view style="flex:2;text-align: right;">{{wrkMast.ioTitle}}</view>
@@ -87,8 +87,8 @@
        <view class="buttom">
            <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="containerMoveOut()" v-if="btnType == 'out'">确认出库</button>
            <button size="mini" type="primary" @click="pickIn()" v-if="btnType == 'pick'">已拣料回库</button>
            <button size="mini" type="primary" @click="containerMoveOut()" v-if="btnType == 'out' && station.locSts == 'F'">确认出库</button>
            <button size="mini" type="primary" @click="pickIn()" v-if="btnType == 'pick' && station.locSts == 'F'">已拣料回库</button>
        </view>
    </view>
</template>
@@ -308,7 +308,7 @@
                    method: 'GET',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                        if (res.code === 200 && res.data.records.length > 0) {
                            if (res.data.records[0].ioType == 1) {
                                res.data.records[0]['ioTitle'] = '入库'
                            } else if (res.data.records[0].ioType == 10) {
@@ -320,6 +320,7 @@
                                _this.btnType = 'out'
                            } else if (res.data.records[0].ioType == 103) {
                                res.data.records[0]['ioTitle'] = '拣料出库'
                                _this.btnType = 'pick'
                            } else if (res.data.records[0].ioType == 110) {
                                res.data.records[0]['ioTitle'] = '空板出库'
                            }
@@ -349,6 +350,7 @@
                    }
                })
            },
            // 全板出库 确认出库
            containerMoveOut() {
                let _this = this
                let devNo = {devNo:[this.station.devNo]}
@@ -366,14 +368,28 @@
                            uni.showToast({ title: '确认完成', icon: "success", position: 'top' }) 
                        } else {
                            uni.showToast({ title: res.msg, icon: "error", position: 'top' }) 
                            setTimeout(()=> {
                                _this.searchValue = ''
                                _this.getBasDevp()
                            },2000)
                        }
                    }
                })
            },
            // 拣料出库 确认后回库
            pickIn() {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/agv/basDevp/visualized/container/pickIn`,
                    data: {devNo: _this.station.devNo},
                    method: 'POST',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                            _this.barcode = ''
                            _this.reloadStation()
                        } else {
                            uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                        }
                    }
                })
            }
        }
    }
</script>
pages/phyz/stationManage/stationManage.vue
@@ -122,6 +122,7 @@
            this.baseUrl = uni.getStorageSync('baseUrl');
            this.token = uni.getStorageSync('token');
            this.getBasDevp('all')
            this.searchValueFocus = true
        },
        methods: {
            searchValueInput() {
@@ -384,8 +385,7 @@
                    events: {
                        // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的
                        acceptDataFromOpenedPage: function(data) {
                            // _this.matnr = data.data
                            _this.input(_this.matnr)
                            _this.searchValueFocus = true
                        },
                    },
                });