归档详情物流问题
This commit is contained in:
@@ -53,17 +53,6 @@ export default {
|
||||
noData: false,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
detailform: {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.caseApplicationObj = val.caseApplication;
|
||||
this.caselogDataArr = val.caseLogRecordList;
|
||||
this.deliveryDataArr = val.logisticsInfoVOList;
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
handleClick(tab, event) {
|
||||
// console.log(tab, event);
|
||||
@@ -72,6 +61,11 @@ export default {
|
||||
this.$emit("cancelpaymentdetails");
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.caseApplicationObj = this.detailform.caseApplication;
|
||||
this.caselogDataArr = this.detailform.caseLogRecordList;
|
||||
this.deliveryDataArr = this.detailform.logisticsInfoVOList;
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -50,30 +50,27 @@ export default {
|
||||
},
|
||||
created() {
|
||||
console.log(this.deliveryDataArr, "deliveryDataArr");
|
||||
if ((this.deliveryDataArr && this.deliveryDataArr, length > 0)) {
|
||||
if (this.deliveryDataArr && this.deliveryDataArr.length > 0) {
|
||||
this.deliveryDataArr.forEach((item) => {
|
||||
if (item.identityType == 1) {
|
||||
let applicantdata = item.logisticsInfo;
|
||||
this.applicantdelivery = JSON.parse(applicantdata);
|
||||
this.expressOne = this.applicantdelivery;
|
||||
console.log(this.expressOne, "this.expressOne");
|
||||
if (this.expressOne.length > 0) {
|
||||
this.expressOne.list.forEach((item) => {
|
||||
if (this.applicantdelivery.list) {
|
||||
this.applicantdelivery.list.forEach((item) => {
|
||||
item.content = item.datetime;
|
||||
item.timestamp = item.remark;
|
||||
});
|
||||
this.expressOne = this.applicantdelivery;
|
||||
}
|
||||
} else {
|
||||
let applicantdata = item.logisticsInfo;
|
||||
this.applicantdelivery = JSON.parse(applicantdata);
|
||||
if (this.applicantdelivery.list) {
|
||||
this.applicantdelivery.list.forEach((item) => {
|
||||
item.content = item.datetime;
|
||||
item.timestamp = item.remark;
|
||||
});
|
||||
this.expressTwo = this.applicantdelivery;
|
||||
if (this.expressOne.length > 0) {
|
||||
this.expressTwo.forEach((item) => {
|
||||
item.content = item.datetime;
|
||||
item.timestamp = item.remark;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user