Merge branches 'master' and 'master' of http://git.xdadan.loc/tanex/emis-frontend
This commit is contained in:
commit
6dde42a28c
@ -391,7 +391,7 @@ export default {
|
||||
|
||||
},
|
||||
// 扫描上传
|
||||
handleScanUpload(){
|
||||
async handleScanUpload(){
|
||||
var selData = this.$refs.multipleTable.selection;
|
||||
console.log(selData);
|
||||
|
||||
@ -420,26 +420,38 @@ export default {
|
||||
let scanArrivalInfo = {scanType:"30",opType:2,scanData:scanArrivalData}
|
||||
console.log(scanArrivalInfo)
|
||||
|
||||
scanArrivalData.length > 0 && doScan(scanArrivalInfo).then(response => {
|
||||
console.log(response);
|
||||
let scanRstItem = response.data.scanResult[0];
|
||||
console.log(scanRstItem);
|
||||
if(scanArrivalData.length > 0){
|
||||
let res = await doScan(scanArrivalInfo);
|
||||
// console.log(response);
|
||||
let scanRstItem = res.data.scanResult[0];
|
||||
// console.log(scanRstItem);
|
||||
if(scanRstItem.result != 'success'){
|
||||
this.$modal.msgError(scanRstItem.message);
|
||||
return;
|
||||
}
|
||||
|
||||
this.$modal.msgSuccess("到件扫描上传"+scanRstItem.message);
|
||||
}
|
||||
|
||||
// scanArrivalData.length > 0 && doScan(scanArrivalInfo).then(response => {
|
||||
// console.log(response);
|
||||
// let scanRstItem = response.data.scanResult[0];
|
||||
// console.log(scanRstItem);
|
||||
// if(scanRstItem.result != 'success'){
|
||||
// this.$modal.msgError(scanRstItem.message);
|
||||
// return;
|
||||
// }
|
||||
|
||||
});
|
||||
// this.$modal.msgSuccess("到件扫描上传"+scanRstItem.message);
|
||||
|
||||
// });
|
||||
|
||||
// 派件扫描上传
|
||||
let scanDispathInfo = {scanType:"40",opType:2,scanData:scanDispathData}
|
||||
console.log(scanDispathInfo)
|
||||
|
||||
scanDispathData.length > 0 && doScan(scanDispathInfo).then(response => {
|
||||
console.log(response);
|
||||
let scanRstItem = response.data.scanResult[0];
|
||||
if(scanDispathData.length > 0){
|
||||
let res = await doScan(scanDispathInfo);
|
||||
let scanRstItem = res.data.scanResult[0];
|
||||
console.log(scanRstItem);
|
||||
if(scanRstItem.result != 'success'){
|
||||
this.$modal.msgError(scanRstItem.message);
|
||||
@ -447,8 +459,20 @@ export default {
|
||||
}
|
||||
|
||||
this.$modal.msgSuccess("派件扫描上传"+scanRstItem.message);
|
||||
}
|
||||
|
||||
// .then(response => {
|
||||
// console.log(response);
|
||||
// let scanRstItem = response.data.scanResult[0];
|
||||
// console.log(scanRstItem);
|
||||
// if(scanRstItem.result != 'success'){
|
||||
// this.$modal.msgError(scanRstItem.message);
|
||||
// return;
|
||||
// }
|
||||
|
||||
});
|
||||
// this.$modal.msgSuccess("派件扫描上传"+scanRstItem.message);
|
||||
|
||||
// });
|
||||
|
||||
},
|
||||
handleScanInput(){
|
||||
|
||||
@ -465,7 +465,7 @@ export default {
|
||||
|
||||
},
|
||||
// 扫描上传
|
||||
handleScanUpload(){
|
||||
async handleScanUpload(){
|
||||
var selData = this.$refs.multipleTable.selection;
|
||||
console.log(selData);
|
||||
|
||||
@ -499,9 +499,9 @@ export default {
|
||||
let scanRecordInfo = {scanType:"10",opType:2,scanData:scanRecordData}
|
||||
console.log(scanRecordInfo)
|
||||
|
||||
scanRecordData.length > 0 && doScan(scanRecordInfo).then(response => {
|
||||
console.log(response);
|
||||
let scanRstItem = response.data.scanResult[0];
|
||||
if(scanRecordData.length > 0){
|
||||
let res = await doScan(scanRecordInfo);
|
||||
let scanRstItem = res.data.scanResult[0];
|
||||
console.log(scanRstItem);
|
||||
if(scanRstItem.result != 'success'){
|
||||
this.$modal.msgError(scanRstItem.message);
|
||||
@ -509,16 +509,27 @@ export default {
|
||||
}
|
||||
|
||||
this.$modal.msgSuccess("揽件扫描上传"+scanRstItem.message);
|
||||
}
|
||||
// scanRecordData.length > 0 && doScan(scanRecordInfo).then(response => {
|
||||
// console.log(response);
|
||||
// let scanRstItem = response.data.scanResult[0];
|
||||
// console.log(scanRstItem);
|
||||
// if(scanRstItem.result != 'success'){
|
||||
// this.$modal.msgError(scanRstItem.message);
|
||||
// return;
|
||||
// }
|
||||
|
||||
});
|
||||
// this.$modal.msgSuccess("揽件扫描上传"+scanRstItem.message);
|
||||
|
||||
// });
|
||||
|
||||
// 发件扫描上传
|
||||
let scanOutgoingInfo = {scanType:"20",opType:2,scanData:scanOutgoingData}
|
||||
console.log(scanOutgoingInfo)
|
||||
|
||||
scanOutgoingData.length > 0 && doScan(scanOutgoingInfo).then(response => {
|
||||
console.log(response);
|
||||
let scanRstItem = response.data.scanResult[0];
|
||||
if(scanOutgoingData.length > 0){
|
||||
let res = await doScan(scanOutgoingInfo);
|
||||
let scanRstItem = res.data.scanResult[0];
|
||||
console.log(scanRstItem);
|
||||
if(scanRstItem.result != 'success'){
|
||||
this.$modal.msgError(scanRstItem.message);
|
||||
@ -526,8 +537,19 @@ export default {
|
||||
}
|
||||
|
||||
this.$modal.msgSuccess("发件扫描上传"+scanRstItem.message);
|
||||
}
|
||||
// scanOutgoingData.length > 0 && doScan(scanOutgoingInfo).then(response => {
|
||||
// console.log(response);
|
||||
// let scanRstItem = response.data.scanResult[0];
|
||||
// console.log(scanRstItem);
|
||||
// if(scanRstItem.result != 'success'){
|
||||
// this.$modal.msgError(scanRstItem.message);
|
||||
// return;
|
||||
// }
|
||||
|
||||
});
|
||||
// this.$modal.msgSuccess("发件扫描上传"+scanRstItem.message);
|
||||
|
||||
// });
|
||||
|
||||
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user