#
whycq
2024-03-26 e91b83a895a9521d2b7a426417fdff73368aafed
#
3个文件已修改
1个文件已添加
158 ■■■■■ 已修改文件
pages.json 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/inOutManage.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/menuHome.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationManage.vue 124 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -490,6 +490,14 @@
                "navigationBarTitleText" : "空板入出库",
                "enablePullDownRefresh" : false
            }
        },
        {
            "path" : "pages/phyz/stationManage/stationManage",
            "style" :
            {
                "navigationBarTitleText" : "站点查询维护",
                "enablePullDownRefresh" : false
            }
        }
        
        
pages/home/inOutManage.vue
@@ -26,13 +26,6 @@
                project: 'tzsk',
                elements2: [
                    {
                        title: '组托',
                        name: 'pakin',
                        color: 'blue',
                        // cuIcon: 'pullup',
                        url: `/phyz/AGV/AGVPakin`
                    },
                    {
                        title: '空板入出库',
                        name: 'emptyIn',
                        color: 'blue',
@@ -40,11 +33,11 @@
                        url: `/phyz/AGV/emptyPakin`
                    },
                    {
                        title: '采购入库-后转订单',
                        name: 'AGVPick',
                        color: 'cyan',
                        title: '组托',
                        name: 'pakin',
                        color: 'blue',
                        // cuIcon: 'pullup',
                        url: `/tzsk/AGV/AGVPick`
                        url: `/phyz/AGV/AGVPakin`
                    },
                    
                    {
pages/home/menuHome.vue
@@ -26,9 +26,16 @@
                project: 'tzsk',
                elements2: [
                    {
                        title: '站点查询维护',
                        name: 'stationManage',
                        color: 'cyan',
                        // cuIcon: 'pullup',
                        url: `/phyz/stationManage/stationManage`
                    },
                    {
                        title: '入出库管理',
                        name: 'inOutManage',
                        color: 'cyan',
                        color: 'purple',
                        // cuIcon: 'pullup',
                        url: `/home/inOutManage`
                    },
@@ -42,7 +49,7 @@
                    {
                        title: '工作档管理',
                        name: 'ordeManage',
                        color: 'mauve',
                        color: 'brown',
                        // cuIcon: 'pullup',
                        url: `/home/wrkMastManage`
                    },
pages/phyz/stationManage/stationManage.vue
New file
@@ -0,0 +1,124 @@
<template>
    <view>
        <view class="code">
            <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput()"
                maxlength="500" ancel="cancel" @clear="clear" placeholder="输入 / 扫描 订单号">
            </uni-search-bar>
        </view>
        <view class="list" v-if="station">
            <view class="list-left">
                <view>站点编号:{{station.stationCode}}</view>
                <view>工位编号:{{station.devNo}}</view>
                <view>工位状态:{{station.locSts$}}</view>
                <view>条形码:{{station.barcode}}</view>
                <!-- <view class="card-id">{{i + 1}}</view> -->
            </view>
            <view class="list-right" @click="getOrderDetl(item)">
                <uni-icons type="right" color="#c1c1c1"></uni-icons>
            </view>
        </view>
        <view class="list" v-if="wrkMast">
            <view class="list-left">
                <view>工作号:{{wrkMast.wrkNo}}</view>
                <view>工作状态:{{wrkMast.wrkSts$}}</view>
                <view>入出库类型:{{wrkMast.ioType$}}</view>
                <view>源库位:{{wrkMast.sourceLocNo}}</view>
                <view>目标库位:{{wrkMast.locNo}}</view>
                <view>料箱码:{{wrkMast.barcode}}</view>
                <!-- <view class="card-id">{{i + 1}}</view> -->
            </view>
            <view class="list-right" @click="getOrderDetl(item)">
                <uni-icons type="right" color="#c1c1c1"></uni-icons>
            </view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                baseUrl: '',
                token: '',
                searchValueFocus: true,
                searchValue: '',
                station: '',
                wrkMast: ''
            }
        },
        onLoad() {
            this.baseUrl = uni.getStorageSync('baseUrl');
            this.token = uni.getStorageSync('token');
        },
        onShow() {
        },
        methods: {
            searchValueInput() {
                this.getBasDevp()
            },
            // 获取暂存位
            getBasDevp() {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/agv/basDevp/list/auth`,
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        curr: 1,
                        limit: 1000,
                        dev_no: _this.searchValue
                    },
                    method: 'GET',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                            for (let item of res.data.records) {
                                _this.station = item
                                _this.getWrkMast(item.barcode)
                            }
                        }
                    }
                })
            },
            // 获取工作档
            getWrkMast(barcode) {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/agv/wrkMast/list/auth`,
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        curr: 1,
                        limit: 1000,
                        condition: barcode
                    },
                    method: 'GET',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                            for (let item of res.data.records) {
                                _this.wrkMast = item
                            }
                        }
                    }
                })
            }
        }
    }
</script>
<style>
    @import url('../../../static/css/common/order.css');
    .list-anfme {
        color: #0082ff;
        font-weight: bold;
    }
    .list-qty-1 {
        color: #33ba43;
        font-weight: bold;
    }
    .list-qty-2 {
        color: #e2231a;
        font-weight: bold;
    }
</style>