#
whycq
2024-04-06 e278a3eef9893be2e0a8221e6de710503a732662
#
3个文件已修改
43 ■■■■ 已修改文件
pages/phyz/order/outOrder.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationDetl.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationManage.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/order/outOrder.vue
@@ -1,7 +1,7 @@
<template>
    <view class="container">
        <view class="code">
            <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput()"
            <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput2()"
                maxlength="500" ancel="cancel" @clear="clear" placeholder="输入 / 扫描 订单号">
            </uni-search-bar>
            <view class="code-title">
@@ -57,6 +57,25 @@
        },
        
        methods: {
            searchValueInput2() {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/order/head/page/auth`,
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        curr: 1,
                        limit: 30,
                        order_no: _this.searchValue
                    },
                    method: 'GET',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                            _this.dataList = res.data.records
                        }
                    }
                })
            },
            searchValueInput() {
                let count = 0
                let sign = 0
@@ -108,14 +127,13 @@
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        curr: 1,
                        limit: 1000,
                        limit: 30,
                    },
                    method: 'GET',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                            _this.dataList = res.data
                            _this.oldDataList = [..._this.dataList]
                        } 
                    }
                })
pages/phyz/stationManage/stationDetl.vue
@@ -147,6 +147,7 @@
            // 更新站点
            reloadStation()  {
                let _this = this
                console.log(_this.station.devNo);
                _this.reload.loading = true
                _this.reload.loadingText = '更新中...'
                uni.request({
pages/phyz/stationManage/stationManage.vue
@@ -17,17 +17,16 @@
                <uni-icons type="right" color="#fff"></uni-icons>
            </view>
        </view>
        <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station">
        <!-- <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station">
            <view class="list-left">
                <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="#fff"></uni-icons>
            </view>
        </view>
        </view> -->
        <view class="list" style="background-color: #019fe8;color: #fff;" v-if="wrkMast">
            <view class="list-left">
                <view>工作号:{{wrkMast.wrkNo}}</view>
@@ -128,6 +127,7 @@
            searchValueInput() {
                if (this.searchValue == '') {
                    this.station = ''
                    this.stations = []
                    this.wrkMast = ''
                    this.wrkDetls = []
                } else {
@@ -140,6 +140,7 @@
            },
            // 获取暂存位
            getBasDevp(type) {
                console.log(this.searchValue);
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/agv/basDevp/list/auth`,
@@ -163,16 +164,15 @@
                                }
                                _this.stations = res.data.records  
                            } else {
                                console.log(123213);
                                res.data.records
                                for (let item of res.data.records) {
                                    if (item.locSts != 'O') {
                                        item['style'] = 'station-wrk'
                                    } else {
                                        item['style'] = 'station-nowrk'
                                    }
                                    _this.station = item
                                    _this.getOrderDetl(_this.station)
                                }
                                _this.getOrderDetl(res.data.records[0])
                            }
                            
                        }
@@ -371,14 +371,16 @@
                this.$refs.revise.close()
            },
            // 前往站点明细页面
            getOrderDetl(item) {
            getOrderDetl(e) {
                console.log(e);
                let _this = this
                uni.navigateTo({
                    url: "./stationDetl",
                    success: function(res) {
                        // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的
                        console.log(e);
                        res.eventChannel.emit('item', {
                            item: item
                            item: e
                        }),
                        _this.searchValue = ''
                    },