|
@@ -242,11 +242,7 @@ export default {
|
|
|
this.socketInit()
|
|
|
}, 500);
|
|
|
} else {
|
|
|
- console.log({
|
|
|
- fromPlcStationCode: sessionStorage.getItem('plcCode'),
|
|
|
- toPlcStationCode: this.toPlcStationCode,
|
|
|
- rfidList: this.scanData.rfidTagItems.map(item => item.rfidCode)
|
|
|
- })
|
|
|
+
|
|
|
if (!this.toPlcStationCode) {
|
|
|
return this.$Message.error('请选择仓库')
|
|
|
}
|
|
@@ -255,7 +251,7 @@ export default {
|
|
|
fromPlcStationCode: sessionStorage.getItem('plcCode'),
|
|
|
toPlcStationCode: this.toPlcStationCode,
|
|
|
|
|
|
- rfidList: this.scanData.rfidTagItems.map(item => item.rfidCode)
|
|
|
+ rfidList: this.scanData.rfidTagItems.map(item => item.rfid)
|
|
|
}).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.$Message.info('调仓成功!')
|
|
@@ -271,12 +267,19 @@ export default {
|
|
|
)
|
|
|
},
|
|
|
getScanList(rfidTagItems) {
|
|
|
+ const rfidTagItemsCopy = []
|
|
|
if(!rfidTagItems) return
|
|
|
+ for (let i = 0; i < rfidTagItems.length; i++) {
|
|
|
+ const element = rfidTagItems[i];
|
|
|
+ if(element){
|
|
|
+ rfidTagItemsCopy.push(element)
|
|
|
+ }
|
|
|
+ }
|
|
|
this.reading = false
|
|
|
- console.log(rfidTagItems)
|
|
|
+ console.log(rfidTagItemsCopy)
|
|
|
this.scanData.rfidTagItems = [
|
|
|
...this.scanData.rfidTagItems,
|
|
|
- ...rfidTagItems,
|
|
|
+ ...rfidTagItemsCopy,
|
|
|
]
|
|
|
this.scanData.materialItems = [
|
|
|
...this.scanData.materialItems,
|
|
@@ -406,6 +409,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.tempDelData = []
|
|
|
+
|
|
|
//this.getScanList()
|
|
|
this.socketInit()
|
|
|
this.getStockHouse()
|