| | |
| | | "navigationBarTitleText" : "商品详情", |
| | | "enablePullDownRefresh" : false |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/phyz/stationManage/pickAgain", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "再次拣料", |
| | | "enablePullDownRefresh" : false |
| | | } |
| | | } |
| | | ], |
| | | "globalStyle": { |
New file |
| | |
| | | <template> |
| | | <view> |
| | | <view> |
| | | |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | onShow() { |
| | | let _this = this |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | console.log(data); |
| | | }) |
| | | }, |
| | | methods: { |
| | | getLocDetl() { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agvMobile/query/locDetl/v1`, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | data: { |
| | | }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | <button size="mini" type="primary" @click="doContainerMoveOut2()" v-if="btnType == 'out'">货架离场</button> |
| | | <button size="mini" type="primary" @click="doContainerMoveOut()" v-if="btnType == 'out'">确认出库</button> |
| | | <button size="mini" type="primary" @click="doPickIn()" v-if="btnType == 'pick'">已拣料回库</button> |
| | | <button size="mini" type="primary" @click="doPickIn2()" v-if="btnType == 'pick'">再次拣料</button> |
| | | <button size="mini" type="primary" @click="startPakin()" v-if="btnType == 'start'">启动入库</button> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 再次拣料 |
| | | doPickIn2() { |
| | | let _this = this |
| | | let item = this.wrkMast |
| | | uni.navigateTo({ |
| | | url: './pickAgain', |
| | | success(res) { |
| | | res.eventChannel.emit('item', { |
| | | item: item |
| | | }) |
| | | }, |
| | | events: { |
| | | acceptDataFromOpenedPage: function(data) { |
| | | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 拣料出库 确认后回库 |
| | | doPickIn() { |
| | | this.$refs.doPickIn.open() |