| | |
| | | </view> |
| | | <view class="cu-form-group "> |
| | | <view class="title">接驳站点</view> |
| | | <input placeholder="请扫描接驳站点条码" v-model="barcode" ></input> |
| | | <input placeholder="请扫描接驳站点条码" v-model="agvStationInput" @input="checkAgvStation"></input> |
| | | </view> |
| | | </form> |
| | | |
| | |
| | | list: [], |
| | | range: [], |
| | | curCode: '', |
| | | agvStationInput: '', // AGV站点输入值 |
| | | agvStationName: '', |
| | | buttonPermissions: [] // 按钮权限列表 |
| | | } |
| | | }, |
| | |
| | | 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) |
| | | } |
| | | }, |
| | | async search() { |
| | | const { |
| | | code, |
| | |
| | | }) |
| | | return ; |
| | | } |
| | | if(this.barcode === '' || this.barcode ===null){ |
| | | if(this.agvStationName === '' || this.agvStationName ===null){ |
| | | uni.showToast({ |
| | | title: "接驳站码不能为空", |
| | | icon: "none", |
| | |
| | | msg |
| | | } = await request('/in/emptyContainer/warehousing',{ |
| | | containerNo: this.container, |
| | | transferStationNo: this.barcode |
| | | transferStationNo: this.agvStationName |
| | | } |
| | | ) |
| | | if (code === 200) { |