Commit fe17c40e by 张立顺

fix 联调bug修复

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