归档详情物流问题

This commit is contained in:
Your Name
2023-10-12 10:39:01 +08:00
parent db400b2d7f
commit 1a04d916f0
4 changed files with 44 additions and 26 deletions
+2 -4
View File
@@ -144,7 +144,7 @@ export default {
dataList: [],
detailform: {}, //详情数据
showarchiveDetails: false, //详情数据弹框
flagLoading: true, //详情弹框loading
flagLoading: false, //详情弹框loading
};
},
created() {
@@ -177,7 +177,6 @@ export default {
// model框显示
showDetail(row) {
this.getDetail({ id: row.id });
this.showarchiveDetails = true;
},
// 关闭弹窗
cancelpaymentdetails() {
@@ -185,10 +184,9 @@ export default {
},
/** 查询详情 */
getDetail(parms) {
this.flagLoading = true;
adjudicationArchives(parms).then((res) => {
this.detailform = res.data;
this.flagLoading = false;
this.showarchiveDetails = true;
});
},
},
@@ -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;
});
}
}
}
});