#
zhou zhou
5 小时以前 b4681ce365588afecf9b225b1571179936a3bdf6
#
1个文件已修改
37 ■■■■ 已修改文件
pages/AGV/StartInTask.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/AGV/StartInTask.vue
@@ -3,7 +3,7 @@
        <form>
            <view class="cu-form-group margin-top">
                <view class="title">接驳站点</view>
                <input placeholder="请扫描接驳站点条码" v-model="agvStation" ></input>
                <input placeholder="请扫描接驳站点条码" v-model="agvStationInput" @input="checkAgvStation"></input>
                <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
            </view>    
            <view class="cu-form-group">
@@ -104,8 +104,8 @@
                whAreaId:'',
                repeatClick: false,
                buttonPermissions: [] ,// 按钮权限列表
                agvStation:''
                agvStationInput: '', // AGV站点输入值
                agvStationName: ''
            }
        },
        computed: {
@@ -120,6 +120,33 @@
            console.log('当前页面按钮权限:', this.buttonPermissions);
        },
        methods: {
            async checkAgvStation() {
                const that = this
                if (this.agvStationInput === '' || this.agvStationInput === null) {
                    uni.showToast({
                        title: '容器码为空',
                        icon: 'none',
                        position: 'top'
                    })
                    return
                }
                const { code, data, msg } = await request('/check/agvStation', {
                    transferStationNo: this.agvStationInput
                })
                if (code === 200) {
                    this.agvStationName = data.stationName
                } else {
                    uni.showToast({
                        title: msg,
                        icon: 'none',
                        position: 'top'
                    })
                    setTimeout(function () {
                        that.agvStationName = ''
                        that.agvStationInput = ''
                    }, 200)
                }
            },
            hasButtonPermission(route) {
                return this.buttonPermissions.includes(route);
            },
@@ -183,7 +210,7 @@
            },
            async confirm() {                
                if(this.agvStation === '' || this.agvStation ===null){
                if(this.agvStationName === '' || this.agvStationName ===null){
                    uni.showToast({
                        title: "接驳站点不能为空",
                        icon: "none",
@@ -210,7 +237,7 @@
                    data,
                    msg
                } = await request('/AGV/task/start',{
                        staNo: this.agvStation,
                        staNo: this.agvStationName,
                        area: this.whAreaId,
                        barcode:this.barcode
                    }