md
This commit is contained in:
parent
feb7cf19b6
commit
170522b411
@ -35,6 +35,13 @@ export function queryLastRecord(billCode) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getNormalLastScanRecord(billCode) {
|
||||||
|
return request({
|
||||||
|
url: '/emis/emisTmsScanRecord/getNormalLastScanRecord',
|
||||||
|
method: 'get',
|
||||||
|
params:{billCode:billCode}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ import BillPicList from './billPicList.vue';
|
|||||||
|
|
||||||
import WaybillDetailReadOnly from '@/views/emis/emisWaybill/waybillDetailReadOnly.vue';
|
import WaybillDetailReadOnly from '@/views/emis/emisWaybill/waybillDetailReadOnly.vue';
|
||||||
import { getWaybillDetail } from "@/api/emis/emisWaybill";
|
import { getWaybillDetail } from "@/api/emis/emisWaybill";
|
||||||
import { queryLastRecord,getTraceListByBillCode } from "@/api/emis/emisTmsScanRecord";
|
import { getNormalLastScanRecord,getTraceListByBillCode } from "@/api/emis/emisTmsScanRecord";
|
||||||
|
|
||||||
import {timeDiffTime,timeFormat} from '@/utils/dateUtils'
|
import {timeDiffTime,timeFormat} from '@/utils/dateUtils'
|
||||||
|
|
||||||
@ -156,30 +156,52 @@ export default {
|
|||||||
this.canViewDetail=true;
|
this.canViewDetail=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.billDetail.waybillStatus=='10'){
|
// if(this.billDetail.waybillStatus=='10'){
|
||||||
this.active=1;
|
// this.active=1;
|
||||||
}
|
// }
|
||||||
else if(this.billDetail.waybillStatus=='20'){
|
// else if(this.billDetail.waybillStatus=='20'){
|
||||||
this.active=2;
|
// this.active=2;
|
||||||
}
|
// }
|
||||||
else if(this.billDetail.waybillStatus=='30'){
|
// else if(this.billDetail.waybillStatus=='30'){
|
||||||
this.active=3;
|
// this.active=3;
|
||||||
}
|
// }
|
||||||
else if(this.billDetail.waybillStatus=='40'){
|
// else if(this.billDetail.waybillStatus=='40'){
|
||||||
this.active=4;
|
// this.active=4;
|
||||||
}
|
// }
|
||||||
else if(this.billDetail.waybillStatus=='50'){
|
// else if(this.billDetail.waybillStatus=='50'){
|
||||||
this.active=5;
|
// this.active=5;
|
||||||
|
// }else{
|
||||||
|
// this.active=2;
|
||||||
|
// }
|
||||||
|
this.setLastStepFlag();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
setLastStepFlag(){
|
||||||
|
getNormalLastScanRecord(this.scanBillCode).then(response => {
|
||||||
|
let scanRecord=response.data;
|
||||||
|
if(scanRecord){
|
||||||
|
if(scanRecord.scanType=='10'){
|
||||||
|
this.active=1;
|
||||||
|
}
|
||||||
|
else if(scanRecord.scanType=='20'){
|
||||||
|
this.active=2;
|
||||||
|
}
|
||||||
|
else if(scanRecord.scanType=='30'){
|
||||||
|
this.active=3;
|
||||||
|
}
|
||||||
|
else if(scanRecord.scanType=='40'){
|
||||||
|
this.active=4;
|
||||||
|
}
|
||||||
|
else if(scanRecord.scanType=='50'){
|
||||||
|
this.active=5;
|
||||||
|
}else{
|
||||||
|
this.active=2;
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
this.active=2;
|
this.active=2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
showLastTrace(billCode){
|
|
||||||
queryLastRecord(item.billCode).then(response => {
|
|
||||||
let data=response.data;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
onCanSeeBillDetail(isCan){
|
onCanSeeBillDetail(isCan){
|
||||||
console.log("======>onCanSeeBillDetail=====>",isCan);
|
console.log("======>onCanSeeBillDetail=====>",isCan);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user