This commit is contained in:
linfso 2024-10-07 19:23:28 +08:00
parent feb7cf19b6
commit 170522b411
2 changed files with 49 additions and 20 deletions

View File

@ -35,6 +35,13 @@ export function queryLastRecord(billCode) {
}) })
} }
export function getNormalLastScanRecord(billCode) {
return request({
url: '/emis/emisTmsScanRecord/getNormalLastScanRecord',
method: 'get',
params:{billCode:billCode}
})
}

View File

@ -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,28 +156,50 @@ export default {
this.canViewDetail=true; this.canViewDetail=true;
} }
if(this.billDetail.waybillStatus=='10'){ // if(this.billDetail.waybillStatus=='10'){
// this.active=1;
// }
// else if(this.billDetail.waybillStatus=='20'){
// this.active=2;
// }
// else if(this.billDetail.waybillStatus=='30'){
// this.active=3;
// }
// else if(this.billDetail.waybillStatus=='40'){
// this.active=4;
// }
// else if(this.billDetail.waybillStatus=='50'){
// 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; this.active=1;
} }
else if(this.billDetail.waybillStatus=='20'){ else if(scanRecord.scanType=='20'){
this.active=2; this.active=2;
} }
else if(this.billDetail.waybillStatus=='30'){ else if(scanRecord.scanType=='30'){
this.active=3; this.active=3;
} }
else if(this.billDetail.waybillStatus=='40'){ else if(scanRecord.scanType=='40'){
this.active=4; this.active=4;
} }
else if(this.billDetail.waybillStatus=='50'){ else if(scanRecord.scanType=='50'){
this.active=5; this.active=5;
}else{ }else{
this.active=2; this.active=2;
} }
}); }else{
}, this.active=2;
showLastTrace(billCode){ }
queryLastRecord(item.billCode).then(response => {
let data=response.data;
}); });
}, },