| | |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | <<<<<<< HEAD |
| | | "versionName" : "20250108A", |
| | | ======= |
| | | "versionName" : "20241128A", |
| | | >>>>>>> 248ef3ba3de9994dc83d2b36690542893f9fb6e6 |
| | | "versionCode" : 136, |
| | | "versionCode" : 137, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | <view>货架码:{{containerDetl.barcode}}</view> |
| | | <view>库存品类:{{containerDetl.count}}</view> |
| | | </view> |
| | | <view class="list-right" @click="goToLocDetl(containerDetl)"> |
| | | <view class="list-right" @click="goToLocDetl(containerDetl,'con')"> |
| | | <uni-icons type="right" size="25" color="#fff"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | <view>货架码:{{locDetl.barcode}}</view> |
| | | <view>库存品类:{{locDetl.count}}</view> |
| | | </view> |
| | | <view class="list-right" @click="goToLocDetl(locDetl)"> |
| | | <view class="list-right" @click="goToLocDetl(locDetl,'loc')"> |
| | | <uni-icons type="right" size="25" color="#fff"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | if (res.data.containerCode.length > 0) { |
| | | _this.dataList = res.data.containerCode |
| | |
| | | } |
| | | }) |
| | | }, |
| | | goToLocDetl(item) { |
| | | goToLocDetl(item,type) { |
| | | let _this = this |
| | | if (item.data.length <= 0) { |
| | | uni.showToast({ title: '没有库存', icon: "error", position: 'top' }) |
| | |
| | | url: "./locDetlList", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('item', { |
| | | item: item |
| | | // res.eventChannel.emit('item', { |
| | | // item: item |
| | | // }) |
| | | res.eventChannel.emit('baseInfo', { |
| | | info: {locNo:_this.locNo,barcode:_this.barcode,type: type} |
| | | }) |
| | | }, |
| | | events: { |
| | |
| | | <view>货架码:{{containerDetl.barcode}}</view> |
| | | <view>库存品类:{{containerDetl.count}}</view> |
| | | </view> |
| | | <view class="list-right" @click="goToLocDetl(containerDetl)"> |
| | | <view class="list-right" @click="goToLocDetl(containerDetl,'con')"> |
| | | <uni-icons type="right" size="25" color="#fff"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | <view>货架码:{{locDetl.barcode}}</view> |
| | | <view>库存品类:{{locDetl.count}}</view> |
| | | </view> |
| | | <view class="list-right" @click="goToLocDetl(locDetl)"> |
| | | <view class="list-right" @click="goToLocDetl(locDetl,'loc')"> |
| | | <uni-icons type="right" size="25" color="#fff"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | url: "./locDetlList2", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('item', { |
| | | item: item |
| | | // res.eventChannel.emit('item', { |
| | | // item: item |
| | | // }) |
| | | res.eventChannel.emit('baseInfo', { |
| | | info: {locNo:_this.locNo,barcode:_this.barcode,type: type} |
| | | }) |
| | | }, |
| | | events: { |
| | |
| | | orderNo: '', |
| | | threeCode: '', |
| | | processSts$: '', |
| | | type: '', |
| | | processSts$List: ['待加工','已加工','无需加工'] |
| | | } |
| | | }, |
| | |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | // eventChannel.on('item', function(data) { |
| | | // console.log(data); |
| | | // _this.locNo = data.item.locNo |
| | | // _this.barcode = data.item.barcode |
| | | // for (let k of data.item.data) { |
| | | // k['count'] = k.anfme |
| | | // } |
| | | // _this.dataList = data.item.data |
| | | // }) |
| | | eventChannel.on('baseInfo', function(data) { |
| | | console.log(data); |
| | | _this.locNo = data.item.locNo |
| | | _this.barcode = data.item.barcode |
| | | for (let k of data.item.data) { |
| | | k['count'] = k.anfme |
| | | } |
| | | _this.dataList = data.item.data |
| | | _this.getLocDetl(data.info.locNo,data.info.barcode) |
| | | _this.locNo = data.info.locNo |
| | | _this.barcode = data.info.barcode |
| | | _this.type = data.info.type |
| | | }) |
| | | }, |
| | | methods: { |
| | | getLocDetl(locNo,barcode) { |
| | | let _this = this |
| | | let param = {locNo:locNo,containerCode: barcode} |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agvMobile/check/detl/v1`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: param, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | if (_this.type == 'con') { |
| | | _this.dataList = res.data.containerCode |
| | | } else { |
| | | _this.dataList = res.data.locNo |
| | | } |
| | | |
| | | } 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' }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | add() { |
| | | let _this = this |
| | | uni.navigateTo({ |
| | |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | // eventChannel.on('item', function(data) { |
| | | // console.log(data); |
| | | // _this.locNo = data.item.locNo |
| | | // _this.barcode = data.item.barcode |
| | | // for (let k of data.item.data) { |
| | | // k['count'] = k.anfme |
| | | // } |
| | | // _this.dataList = data.item.data |
| | | // }) |
| | | eventChannel.on('baseInfo', function(data) { |
| | | console.log(data); |
| | | _this.locNo = data.item.locNo |
| | | _this.barcode = data.item.barcode |
| | | for (let k of data.item.data) { |
| | | k['count'] = k.anfme |
| | | } |
| | | _this.dataList = data.item.data |
| | | _this.getLocDetl(data.info.locNo,data.info.barcode) |
| | | _this.locNo = data.info.locNo |
| | | _this.barcode = data.info.barcode |
| | | _this.type = data.info.type |
| | | }) |
| | | }, |
| | | methods: { |
| | | getLocDetl(locNo,barcode) { |
| | | let _this = this |
| | | let param = {locNo:locNo,containerCode: barcode} |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agvMobile/check/detl/v1`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: param, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | if (_this.type == 'con') { |
| | | _this.dataList = res.data.containerCode |
| | | } else { |
| | | _this.dataList = res.data.locNo |
| | | } |
| | | |
| | | } 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' }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | add() { |
| | | let _this = this |
| | | uni.navigateTo({ |
| | |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | console.log(data); |
| | | for (let k of data.item) { |
| | | k['maxCount'] = k.anfme |
| | | _this.getWrkDetl(k.wrkNo) |
| | | } |
| | | _this.dataList = require('lodash').cloneDeep(data.item) |
| | | // _this.dataList = require('lodash').cloneDeep(data.item) |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 获取工作明细 |
| | | getWrkDetl(wrkNo) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/wrkDetl/list/auth`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: { |
| | | curr: 1, |
| | | limit: 1000, |
| | | wrk_no: wrkNo |
| | | }, |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | for (let k of res.data.records) { |
| | | k['maxCount'] = k.anfme |
| | | } |
| | | _this.dataList = res.data.records |
| | | } 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' }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | processed() { |
| | | this.$refs.process.open() |
| | | }, |
| | |
| | | _this.pickList = data.wrkDetls |
| | | _this.wrkNo = data.wrkDetls[0].wrkNo |
| | | _this.locNo = data.item.sourceLocNo |
| | | _this.getLocDetl(data.item.sourceLocNo) |
| | | _this.getWrkDetl(data.wrkDetls[0].wrkNo) |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | }) |
| | | }, |
| | | // 获取工作明细 |
| | | getWrkDetl(wrkNo) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/wrkDetl/list/auth`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: { |
| | | curr: 1, |
| | | limit: 1000, |
| | | wrk_no: wrkNo |
| | | }, |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.pickList = res.data.records |
| | | _this.getLocDetl(_this.locNo) |
| | | } 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' }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 已选拣料列表 |
| | | chosed(wrkDetls,locDetls) { |
| | | console.log(wrkDetls,locDetls); |