| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow title="å¥é¤å¡è¯¦æ
" :visible.sync="isShowModal" width="1000px" @close="close" @confirm="close"> |
| | | <div> |
| | | <div class="modal_title">å¥é¤åç§°ï¼{{ detail.name }}</div> |
| | | <div class="place"> |
| | | <span>å¥é¤å·ï¼{{ detail.code }}</span> |
| | | <span v-if="detail.useType == 1">æææï¼{{ detail.useStartDate }}è³{{ detail.useEndDate }}</span> |
| | | <span v-if="detail.useType == 0">æææï¼{{ detail.useStartDate }}è³{{ detail.useEndDate }}</span> |
| | | <span v-if="detail.useType == 2">æææï¼{{ detail.useStartDate }}è³{{ detail.useEndDate }}</span> |
| | | </div> |
| | | <div class="df_ac"> |
| | | <el-tabs style="flex: 1;" v-model="activeTab" @tab-click="handleClick"> |
| | | <el-tab-pane label="å¥é¤ä½¿ç¨æç»" name="0" /> |
| | | <el-tab-pane label="å¥é¤æä½è®°å½" name="2" /> |
| | | </el-tabs> |
| | | <div style="border-bottom: 2px solid #e5e7ec; margin-top: 1px;">{{ activeTab == 0 ? 'ä½¿ç¨æ
åµ' : 'æä½æ
åµ' }}ï¼{{ pagination.total }}次</div> |
| | | </div> |
| | | <el-table v-if="activeTab == 0" v-loading="loading" :data="list" stripe border> |
| | | <el-table-column prop="createDate" align="center" label="ä½¿ç¨æ¶é´" min-width="120" show-overflow-tooltip /> |
| | | <el-table-column prop="goodsorderId" align="center" label="å
³è订å" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="" align="center" label="éªè½¦æ¶é¿" min-width="80" show-overflow-tooltip> |
| | | <template v-slot="{ row }"> |
| | | {{ row.rideTime }}åé |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="ridePrice" align="center" label="æµæ£éé¢" min-width="100" show-overflow-tooltip /> |
| | | </el-table> |
| | | <el-table v-if="activeTab == 2" v-loading="loading" :data="list" stripe border> |
| | | <el-table-column prop="createDate" align="center" label="æä½æ¶é´" min-width="120" show-overflow-tooltip /> |
| | | <el-table-column prop="info" align="center" label="æä½ç±»å" min-width="100" show-overflow-tooltip> |
| | | <template v-slot="{ row }"> |
| | | <span v-if="row.type == 0">ç¨æ·éªè¡ä½¿ç¨</span> |
| | | <span v-if="row.type == 1">å¥é¤ä½åº</span> |
| | | <span v-if="row.type == 2">å¥é¤è°æ´</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="editInfo" align="center" label="æä½å¤æ³¨" min-width="200" show-overflow-tooltip /> |
| | | <el-table-column prop="creatorName" align="center" label="æä½äºº" min-width="80" show-overflow-tooltip /> |
| | | </el-table> |
| | | <div class="table_btns"> |
| | | <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> |
| | | </div> |
| | | </div> |
| | | </GlobalWindow> |
| | | </template> |
| | | <script> |
| | | import { comboSalerDetailPost, discountLogLog } from '@/api/business/combo.js' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import BasePageTemp from '@/components/base/BasePageTemp' |
| | | export default { |
| | | name: 'ComboDetail', |
| | | extends: BasePageTemp, |
| | | components: { |
| | | GlobalWindow |
| | | }, |
| | | data() { |
| | | return { |
| | | isShowModal: false, |
| | | activeTab: '0', |
| | | detail: {}, |
| | | pagination: { |
| | | page: 1, |
| | | rows: 10 |
| | | }, |
| | | totalCount: 0, |
| | | list: [], |
| | | loading: false |
| | | } |
| | | }, |
| | | created() { |
| | | // this.detail = this.$route.query |
| | | // this.comboDetail() |
| | | }, |
| | | methods: { |
| | | getDetail(row) { |
| | | comboSalerDetailPost(row.id).then(res => { |
| | | this.detail = res |
| | | this.activeTab = '0' |
| | | this.getList() |
| | | }, () => { |
| | | |
| | | }) |
| | | }, |
| | | handleClick(val) { |
| | | this.getList() |
| | | }, |
| | | getList(page) { |
| | | const { pagination, activeTab, detail } = this |
| | | this.loading = true |
| | | if (page) { pagination.page = page } |
| | | discountLogLog({ |
| | | model: { |
| | | type: activeTab, |
| | | discountMemberId: detail.id |
| | | }, |
| | | capacity: pagination.pageSize, |
| | | page: pagination.page, |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.list = res.records || [] |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | close() { |
| | | this.isShowModal = false |
| | | this.$emit('close') |
| | | }, |
| | | currentPageChange(val) { |
| | | this.pagination.page = val |
| | | this.comboDetail() |
| | | }, |
| | | pageSizeChange(val) { |
| | | this.pagination.rows = val |
| | | this.comboDetail() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .modal_title { |
| | | font-size: 18px; |
| | | font-weight: 500; |
| | | margin-bottom: 6px; |
| | | } |
| | | |
| | | .place { |
| | | color: #999999; |
| | | font-size: 13px; |
| | | display: flex; |
| | | margin-bottom: 8px; |
| | | |
| | | span { |
| | | margin-right: 60px; |
| | | } |
| | | } |
| | | </style> |