diff --git a/src/views/emis/emisTmsScanRecord/arrivalAndDispathScan.vue b/src/views/emis/emisTmsScanRecord/arrivalAndDispathScan.vue index c316a77d..41ae1a0b 100644 --- a/src/views/emis/emisTmsScanRecord/arrivalAndDispathScan.vue +++ b/src/views/emis/emisTmsScanRecord/arrivalAndDispathScan.vue @@ -196,8 +196,12 @@ export default { onStaffSelect(item){ console.log(item) - this.form.dispatchOrSendMan=item.empName; - this.form.dispatchOrSendManCode=item.empCode; + + // this.form.dispatchOrSendMan=item.empName; + // this.form.dispatchOrSendManCode=item.empCode; + + this.form.dispatchOrSendMan=item.empName || this.$store.getters.empName; + this.form.dispatchOrSendManCode=item.empCode || this.$store.getters.empCode; }, getRowsSelect(arr) { this.form.ids= arr.map(item=>item.id) @@ -213,10 +217,10 @@ export default { let newList =[]; console.log(this.ids) this.emisTmsScanRecordList.forEach(item=>{ - if(this.ids.indexOf(item.billCode) == -1){ + if(this.ids.indexOf(item.billCode+item.scanType) == -1){ newList.push(item); }else{ - this.dataMap[item.billCode]=null; + this.dataMap[item.billCode+item.scanType]=null; } }); this.emisTmsScanRecordList = newList; @@ -280,7 +284,7 @@ export default { record.dispatchOrSendMan = null; record.dispatchOrSendManCode = null; let indexBillCode=record.billCode; - this.dataMap[indexBillCode]=record; + this.dataMap[indexBillCode+record.scanType]=record; this.emisTmsScanRecordList.push(record); } }); @@ -313,7 +317,7 @@ export default { record.dispatchOrSendMan = dispatchOrSendMan; record.dispatchOrSendManCode = dispatchOrSendManCode; let indexBillCode=record.billCode; - this.dataMap[indexBillCode]=record; + this.dataMap[indexBillCode+record.scanType]=record; this.emisTmsScanRecordList.push(record); } }); @@ -370,7 +374,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.billCode) + this.ids = selection.map(item => item.billCode+item.scanType) this.single = selection.length!==1 this.multiple = !selection.length @@ -416,7 +420,7 @@ export default { let scanArrivalInfo = {scanType:"30",opType:2,scanData:scanArrivalData} console.log(scanArrivalInfo) - doScan(scanArrivalInfo).then(response => { + scanArrivalData.length > 0 && doScan(scanArrivalInfo).then(response => { console.log(response); let scanRstItem = response.data.scanResult[0]; console.log(scanRstItem); @@ -433,7 +437,7 @@ export default { let scanDispathInfo = {scanType:"40",opType:2,scanData:scanDispathData} console.log(scanDispathInfo) - doScan(scanDispathInfo).then(response => { + scanDispathData.length > 0 && doScan(scanDispathInfo).then(response => { console.log(response); let scanRstItem = response.data.scanResult[0]; console.log(scanRstItem); @@ -459,8 +463,14 @@ export default { return; } - if(this.dataMap[this.form.billCode]){ - this.$message.error("重复扫描"); + if(this.dataMap[this.form.billCode+"30"]){ + this.$message.error("到件重复扫描"); + this.playNoticeTone(1); + return; + } + + if(this.dataMap[this.form.billCode+"40"]){ + this.$message.error("派件重复扫描"); this.playNoticeTone(1); return; } @@ -497,7 +507,7 @@ export default { record.dispatchOrSendManCode=null; console.log(record) let indexBillCode=record.billCode; - this.dataMap[indexBillCode]=record; + this.dataMap[indexBillCode+record.scanType]=record; this.emisTmsScanRecordList.push(record); }); @@ -533,7 +543,7 @@ export default { record.dispatchOrSendManCode = dispatchOrSendManCode; console.log(record) let indexBillCode=record.billCode; - this.dataMap[indexBillCode]=record; + this.dataMap[indexBillCode+record.scanType]=record; this.emisTmsScanRecordList.push(record); }); diff --git a/src/views/emis/emisTmsScanRecord/arrivalScan.vue b/src/views/emis/emisTmsScanRecord/arrivalScan.vue index ffb3e0f2..8b4540d4 100644 --- a/src/views/emis/emisTmsScanRecord/arrivalScan.vue +++ b/src/views/emis/emisTmsScanRecord/arrivalScan.vue @@ -181,6 +181,7 @@ export default { this.form.recordMan=this.$store.getters.empName; this.form.recordManCode=this.$store.getters.empCode; + this.form.dispatchOrSendMan=this.$store.getters.empName; this.form.dispatchOrSendManCode=this.$store.getters.empCode; // this.form.scanWeight = "1.0"; @@ -196,8 +197,11 @@ export default { onStaffSelect(item){ console.log(item) - this.form.dispatchOrSendMan=item.empName; + // this.form.dispatchOrSendMan=item.empName; // this.form.dispatchOrSendManCode=item.empCode; + + this.form.dispatchOrSendMan=item.empName || this.$store.getters.empName; + this.form.dispatchOrSendManCode=item.empCode || this.$store.getters.empCode; }, getRowsSelect(arr) { this.form.ids= arr.map(item=>item.id) diff --git a/src/views/emis/emisTmsScanRecord/deliveryScan.vue b/src/views/emis/emisTmsScanRecord/deliveryScan.vue index 75054776..a11463e2 100644 --- a/src/views/emis/emisTmsScanRecord/deliveryScan.vue +++ b/src/views/emis/emisTmsScanRecord/deliveryScan.vue @@ -186,6 +186,7 @@ export default { this.form.recordMan=this.$store.getters.empName; this.form.recordManCode=this.$store.getters.empCode; + this.form.dispatchOrSendMan=this.$store.getters.empName; this.form.dispatchOrSendManCode=this.$store.getters.empCode; // this.form.scanWeight = "1.0"; @@ -201,8 +202,11 @@ export default { onStaffSelect(item){ console.log(item) - this.form.dispatchOrSendMan=item.empName; - this.form.dispatchOrSendManCode=item.empCode; + // this.form.dispatchOrSendMan=item.empName; + // this.form.dispatchOrSendManCode=item.empCode; + + this.form.dispatchOrSendMan=item.empName || this.$store.getters.empName; + this.form.dispatchOrSendManCode=item.empCode || this.$store.getters.empCode; }, getRowsSelect(arr) { this.form.ids= arr.map(item=>item.id) diff --git a/src/views/emis/emisTmsScanRecord/loadingScan.vue b/src/views/emis/emisTmsScanRecord/loadingScan.vue new file mode 100644 index 00000000..c575f7f9 --- /dev/null +++ b/src/views/emis/emisTmsScanRecord/loadingScan.vue @@ -0,0 +1,446 @@ + + + diff --git a/src/views/emis/emisTmsScanRecord/scanRecord.vue b/src/views/emis/emisTmsScanRecord/scanRecord.vue index c68233b9..41a07bf1 100644 --- a/src/views/emis/emisTmsScanRecord/scanRecord.vue +++ b/src/views/emis/emisTmsScanRecord/scanRecord.vue @@ -186,6 +186,7 @@ export default { this.form.recordMan=this.$store.getters.empName; this.form.recordManCode=this.$store.getters.empCode; + this.form.dispatchOrSendMan=this.$store.getters.empName; this.form.dispatchOrSendManCode=this.$store.getters.empCode; // this.form.scanWeight = "1.0"; @@ -201,8 +202,11 @@ export default { onStaffSelect(item){ console.log(item) - this.form.dispatchOrSendMan=item.empName; - this.form.dispatchOrSendManCode=item.empCode; + // this.form.dispatchOrSendMan=item.empName; + // this.form.dispatchOrSendManCode=item.empCode; + + this.form.dispatchOrSendMan=item.empName || this.$store.getters.empName; + this.form.dispatchOrSendManCode=item.empCode || this.$store.getters.empCode; }, getRowsSelect(arr) { this.form.ids= arr.map(item=>item.id) diff --git a/src/views/emis/emisTmsScanRecord/transmitReceiveScanning.vue b/src/views/emis/emisTmsScanRecord/transmitReceiveScanning.vue new file mode 100644 index 00000000..0699c973 --- /dev/null +++ b/src/views/emis/emisTmsScanRecord/transmitReceiveScanning.vue @@ -0,0 +1,644 @@ + + +