Commit fe17c40e by 张立顺

fix 联调bug修复

1 parent 783652de
...@@ -49,6 +49,14 @@ ...@@ -49,6 +49,14 @@
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-data="tableData" :table-data="tableData"
:table-params="tableParams" /> :table-params="tableParams" />
</div>
<div class="table-footer">
<el-button size="small"
type="primary"
@click="handleBack">
返回
</el-button>
</div> </div>
</d2-container> </d2-container>
</template> </template>
...@@ -181,7 +189,7 @@ export default { ...@@ -181,7 +189,7 @@ export default {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
name: " 店端实际交车数统计", name: `填报明细 ${dayjs().format("YYYY-MM-DD")}`,
exportParam: JSON.stringify(params), exportParam: JSON.stringify(params),
status: "waiting", status: "waiting",
timeid: new Date().getTime(), timeid: new Date().getTime(),
...@@ -199,6 +207,9 @@ export default { ...@@ -199,6 +207,9 @@ export default {
}; };
this.$refs.recordTable.refreshTable(); this.$refs.recordTable.refreshTable();
}, },
handleBack() {
this.$router.go(-1);
},
}, },
}; };
</script> </script>
...@@ -225,5 +236,9 @@ export default { ...@@ -225,5 +236,9 @@ export default {
font-weight: 600; font-weight: 600;
} }
} }
.table-footer {
margin-top: 16px;
text-align: center;
}
} }
</style> </style>
...@@ -300,8 +300,9 @@ export default { ...@@ -300,8 +300,9 @@ export default {
prop: "extendedWarrantyToShopCount", prop: "extendedWarrantyToShopCount",
width: 120, width: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
const val = cellValue.staffList?.[0]?.brandList?.[0]?.extendedWarrantyToShopCount ?? cellValue.extendedWarrantyToShopCount; return (cellValue.extendedWarrantyToShopCount ?? "") === ""
return (val ?? "") === "" ? "-" : val; ? "-"
: cellValue.extendedWarrantyToShopCount;
}, },
}, },
{ {
...@@ -309,8 +310,9 @@ export default { ...@@ -309,8 +310,9 @@ export default {
prop: "afterSaleExtendedWarrantyToShopCount", prop: "afterSaleExtendedWarrantyToShopCount",
width: 120, width: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
const val = cellValue.staffList?.[0]?.brandList?.[0]?.afterSaleExtendedWarrantyToShopCount ?? cellValue.afterSaleExtendedWarrantyToShopCount; return (cellValue.afterSaleExtendedWarrantyToShopCount ?? "") === ""
return (val ?? "") === "" ? "-" : val; ? "-"
: cellValue.afterSaleExtendedWarrantyToShopCount;
}, },
}, },
{ {
...@@ -318,8 +320,9 @@ export default { ...@@ -318,8 +320,9 @@ export default {
prop: "realEquityToShopCount", prop: "realEquityToShopCount",
width: 120, width: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
const val = cellValue.staffList?.[0]?.brandList?.[0]?.realEquityToShopCount ?? cellValue.realEquityToShopCount; return (cellValue.realEquityToShopCount ?? "") === ""
return (val ?? "") === "" ? "-" : val; ? "-"
: cellValue.realEquityToShopCount;
}, },
}, },
{ {
...@@ -327,8 +330,9 @@ export default { ...@@ -327,8 +330,9 @@ export default {
prop: "afterSaleRealEquityToShopCount", prop: "afterSaleRealEquityToShopCount",
width: 120, width: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
const val = cellValue.staffList?.[0]?.brandList?.[0]?.afterSaleRealEquityToShopCount ?? cellValue.afterSaleRealEquityToShopCount; return (cellValue.afterSaleRealEquityToShopCount ?? "") === ""
return (val ?? "") === "" ? "-" : val; ? "-"
: cellValue.afterSaleRealEquityToShopCount;
}, },
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!