#
whycq
2024-04-22 cf810e81a6718cb926616cbcf80b9d348bee7c83
#
2个文件已修改
1个文件已添加
83 ■■■■■ 已修改文件
pages.json 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/pickAgain.vue 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationDetl.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -654,6 +654,14 @@
                "navigationBarTitleText" : "商品详情",
                "enablePullDownRefresh" : false
            }
        },
        {
            "path" : "pages/phyz/stationManage/pickAgain",
            "style" :
            {
                "navigationBarTitleText" : "再次拣料",
                "enablePullDownRefresh" : false
            }
        }
    ],
    "globalStyle": {
pages/phyz/stationManage/pickAgain.vue
New file
@@ -0,0 +1,56 @@
<template>
    <view>
        <view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
            }
        },
        onShow() {
            let _this = this
            this.baseUrl = uni.getStorageSync('baseUrl');
            this.token = uni.getStorageSync('token');
            // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
            const eventChannel = this.getOpenerEventChannel();
            // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
            eventChannel.on('item', function(data) {
                console.log(data);
            })
        },
        methods: {
            getLocDetl() {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/agvMobile/query/locDetl/v1`,
                    header: { 'token': uni.getStorageSync('token') },
                    data: {
                    },
                    method: 'POST',
                    success(res) {
                        res = res.data
                        console.log(res);
                        if (res.code === 200) {
                        } 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' })
                        }
                    }
                })
            }
        }
    }
</script>
<style>
</style>
pages/phyz/stationManage/stationDetl.vue
@@ -163,6 +163,7 @@
            <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>
            <button size="mini" type="primary" @click="startPakin()" v-if="btnType == 'start'">启动入库</button>
        </view>
    </view>
@@ -553,6 +554,24 @@
                    }
                })
            },
            // 再次拣料
            doPickIn2() {
                let _this = this
                let item = this.wrkMast
                uni.navigateTo({
                    url: './pickAgain',
                    success(res) {
                        res.eventChannel.emit('item', {
                            item: item
                        })
                    },
                    events: {
                        acceptDataFromOpenedPage: function(data) {
                        }
                    }
                })
            },
            // 拣料出库 确认后回库
            doPickIn() {
                this.$refs.doPickIn.open()