feat: 订单列表页面详情弹窗关闭时刷新列表

This commit is contained in:
2025-03-07 11:07:00 +08:00
parent 8e52613f08
commit 73057865da
3 changed files with 10 additions and 4 deletions

View File

@@ -296,6 +296,7 @@ export default {
reset() {
this.user = "";
this.allSelected = false;
this.$emit("close");
},
returnPayType(payType) {
if (!payType) {
@@ -375,7 +376,7 @@ export default {
if (item === "all") {
for (let i in this.detail.detailMap) {
this.detail.detailMap[i].map((v) => {
if (v.checked) {
if (v.checked && v.selNumber) {
arr.push(v);
}
});

View File

@@ -105,7 +105,7 @@
</template>
</page-modal>
<orderDetail ref="refDetail"></orderDetail>
<orderDetail ref="refDetail" @close="refresh"></orderDetail>
</div>
</template>
@@ -135,6 +135,11 @@ const {
handleFilterChange,
} = usePage();
function refresh() {
console.log("refresh");
contentRef.value?.fetchPageData();
}
//计算订单原金额
function returnOriginAmount(order: OrderInfoVo) {
let amount = 0;

View File

@@ -757,7 +757,7 @@ $pl: 30px;
display: flex;
max-height: calc(100vh - 256px);
.left {
width: 1;
flex: 1;
padding-right: 14px;
box-sizing: border-box;
display: flex;
@@ -770,7 +770,7 @@ $pl: 30px;
}
}
.right {
flex: 3;
flex: 4;
overflow-x: hidden;
overflow-y: scroll;
&::-webkit-scrollbar {