#
zhou zhou
1 天以前 05e891c85909a0716a161987941e321879bc5d52
#
1个文件已修改
39 ■■■■ 已修改文件
pages/emptyTray/outBound.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/emptyTray/outBound.vue
@@ -5,7 +5,8 @@
                <view class="title">接驳站点</view>
                <input
                    placeholder=" 请扫描接驳站点条码"
                    v-model="barcode"
                    v-model="agvStationInput"
                    @input="checkAgvStation"
                />
            </view>
@@ -55,7 +56,9 @@
            range: [],
            curCode: '',
            palletTypeId: '',
            isconfirm : false
            isconfirm: false,
            agvStationInput: '', // AGV站点输入值
            agvStationName: ''
        }
    },
    computed: {
@@ -66,6 +69,33 @@
            (this.palletTypeId = uni.getStorageSync('palletTypeId'))
    },
    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)
            }
        },
        selChange(val) {
            uni.setStorageSync('palletTypeId', val.value)
        },
@@ -133,7 +163,7 @@
        },
        async confirm() {
            if (this.barcode === '' || this.barcode === null) {
            if (this.agvStationName === '' || this.agvStationName === null) {
                uni.showToast({
                    title: '接驳站点不能为空',
                    icon: 'none'
@@ -152,7 +182,7 @@
                    const { code, data, msg } = await request(
                        '/callForEmptyContainers',
                        {
                            staNo: this.barcode,
                            staNo: this.agvStationName,
                            type: this.palletTypeId
                        }
                    )
@@ -173,7 +203,6 @@
                }finally{
                    this.isconfirm = false
                }
            }
            // const {