From ba814d605ad50da217a3dd422bcc7db5360b092f Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期六, 05 八月 2023 17:51:50 +0800
Subject: [PATCH] 销售模块详情页
---
src/views/sales/refundForm/index.vue | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 54 insertions(+), 6 deletions(-)
diff --git a/src/views/sales/refundForm/index.vue b/src/views/sales/refundForm/index.vue
index 01da30f..df1d464 100644
--- a/src/views/sales/refundForm/index.vue
+++ b/src/views/sales/refundForm/index.vue
@@ -1,6 +1,10 @@
<template>
<div class="refund-form">
- <div class="top">
+ <div v-if="isDetail" class="detail-top">
+ <DetailListCommonBtn :query-class-options="queryClassOptions" />
+ <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
+ </div>
+ <div v-else class="top">
<SearchCommonView
ref="searchCommonView"
:query-class-options="queryClassOptions"
@@ -11,7 +15,13 @@
<PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
</div>
</div>
- <TableCommonView ref="tableListRef" :table-list="tableList">
+ <TableCommonView
+ ref="tableListRef"
+ :table-list="tableList"
+ :select-box="!isDetail"
+ @selClientClick="selClientClick"
+ @selCommonClick="selCommonClick"
+ >
<template slot="tableButton">
<el-table-column label="鎿嶄綔" width="100">
<template slot-scope="scope">
@@ -23,6 +33,10 @@
</TableCommonView>
<!-- 鏂板缓/缂栬緫 -->
<AddRefundFormDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
+ <!-- 閿�鍞��璐у崟璇︽儏 -->
+ <DetailRefundForm v-if="refundFormDetail.visible" :refund-form-detail="refundFormDetail" />
+ <!-- 瀹㈡埛璇︽儏 -->
+ <DetailClientManage v-if="clientDeail.visible" :client-manage-detail="clientDeail" />
</div>
</template>
@@ -30,13 +44,21 @@
import AddRefundFormDialog from "@/views/sales/refundForm/AddRefundFormDialog"
import { getSalesRefundList, getDelSalesRefund } from "@/api/sales/refundForm"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
+import DetailRefundForm from "@/views/sales/refundForm/DetailRefundForm"
export default {
name: "RefundForm",
- props: {},
+ props: {
+ isDetail: {
+ type: Boolean,
+ default: false
+ }
+ },
mixins: [pageMixin],
components: {
- AddRefundFormDialog
+ AddRefundFormDialog,
+ DetailRefundForm,
+ DetailClientManage: () => import("@/views/client/client/DetailClientManage")
},
computed: {
searchCommonHeight() {
@@ -67,6 +89,14 @@
visible: false,
title: "鏂板缓",
infomation: {}
+ },
+ refundFormDetail: {
+ visible: false,
+ infomation: {}
+ },
+ clientDeail: {
+ visible: false,
+ infomation: {}
}
}
},
@@ -79,8 +109,8 @@
this.tableList = {
tableInfomation: [],
tableColumn: [
- { label: "閫�娆惧崟缂栧彿", prop: "number" },
- { label: "瀹㈡埛鍚嶇О", prop: "clientId", min: 120 },
+ { label: "閫�娆惧崟缂栧彿", prop: "number", isCommonClick: true },
+ { label: "瀹㈡埛鍚嶇О", prop: "clientId", min: 120, isClientClick: true },
{ label: "閫�娆炬棩鏈�", prop: "refundDate", isTime: true, min: 130 },
{ label: "璐︽埛", prop: "accountId" },
{ label: "鏄惁寮�绁�", prop: "isInvoice", min: 100 },
@@ -164,6 +194,18 @@
},
getSelectArray(val) {
console.log(val)
+ },
+ // 瀹㈡埛鍚嶇О璇︽儏
+ selClientClick(row) {
+ console.log(row)
+ this.clientDeail.visible = true
+ this.clientDeail.infomation = { ...row, client_name: row.name }
+ },
+ // 鑱旂郴浜鸿鎯�
+ selCommonClick(row) {
+ console.log(row)
+ this.refundFormDetail.visible = true
+ this.refundFormDetail.infomation = { ...row }
}
}
}
@@ -181,5 +223,11 @@
}
}
}
+ .detail-top {
+ display: flex;
+ .page {
+ margin-left: auto;
+ }
+ }
}
</style>
--
Gitblit v1.8.0