|
@@ -31,9 +31,10 @@
|
|
|
<el-table-column align="center" fixed="right" :label="$t('publics.operating')" width="auto">
|
|
<el-table-column align="center" fixed="right" :label="$t('publics.operating')" width="auto">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<div class="text-btn-con">
|
|
<div class="text-btn-con">
|
|
|
- <div class="default-btn text-btn" @click="viewCardList(scope.row)">查看清单</div>
|
|
|
|
|
- <div class="default-btn text-btn" @click="toCardLibPage(scope.row)">去选图</div>
|
|
|
|
|
|
|
+ <div class="default-btn text-btn" @click="viewCardList(scope.row)">详情</div>
|
|
|
|
|
+ <div class="default-btn text-btn" @click="toCardLibPage(scope.row)">选图</div>
|
|
|
<div class="default-btn text-btn" @click="addOrUpdateHandle(scope.row)">修改</div>
|
|
<div class="default-btn text-btn" @click="addOrUpdateHandle(scope.row)">修改</div>
|
|
|
|
|
+ <div class="default-btn text-btn" @click="viewTableStat(scope.row)">统计</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -69,6 +70,49 @@
|
|
|
<div class="default-btn primary-btn" @click="cardUserPurchaseFormSubmit">确定</div>
|
|
<div class="default-btn primary-btn" @click="cardUserPurchaseFormSubmit">确定</div>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <el-dialog top="1vh" title="清单统计详情" :close-on-click-modal="false" v-if="tableStatVisible" :visible.sync="tableStatVisible" width="40%">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="tableStatData"
|
|
|
|
|
+ border
|
|
|
|
|
+ stripe
|
|
|
|
|
+ height="800"
|
|
|
|
|
+ :header-row-style="{fontSize: '20px', fontWeight: 'bold', color: 'blue'}"
|
|
|
|
|
+ :row-style="{fontSize: '16px', color: 'black'}"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="seq"
|
|
|
|
|
+ label="序号"
|
|
|
|
|
+ width="180">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{scope.$index + 1}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="seriesName"
|
|
|
|
|
+ label="团体组合"
|
|
|
|
|
+ width="180">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{scope.row.seriesName}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="personName"
|
|
|
|
|
+ label="成员名称">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{scope.row.personName}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="cardCount"
|
|
|
|
|
+ label="张数">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{scope.row.cardCount}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -88,9 +132,11 @@ export default {
|
|
|
currentPage: 1, // 当前页数
|
|
currentPage: 1, // 当前页数
|
|
|
pageSize: 10 // 每页显示多少条
|
|
pageSize: 10 // 每页显示多少条
|
|
|
},
|
|
},
|
|
|
|
|
+ tableStatData: [],
|
|
|
searchForm: {}, // 搜索
|
|
searchForm: {}, // 搜索
|
|
|
dataListLoading: false,
|
|
dataListLoading: false,
|
|
|
addOrUpdateVisible: false,
|
|
addOrUpdateVisible: false,
|
|
|
|
|
+ tableStatVisible: false,
|
|
|
addOrUpdatePersonVisible: false,
|
|
addOrUpdatePersonVisible: false,
|
|
|
usageList:[],
|
|
usageList:[],
|
|
|
seriesList: [],
|
|
seriesList: [],
|
|
@@ -107,6 +153,22 @@ export default {
|
|
|
mounted () {
|
|
mounted () {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ viewTableStat(row){
|
|
|
|
|
+ this.$http({
|
|
|
|
|
+ url: this.$http.adornUrl('/card/cardUserPurchase/tableStat'),
|
|
|
|
|
+ method: 'get',
|
|
|
|
|
+ params: this.$http.adornParams(
|
|
|
|
|
+ Object.assign({
|
|
|
|
|
+ size: 200,
|
|
|
|
|
+ id: row.id
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
|
|
+ }).then(({data}) => {
|
|
|
|
|
+ this.tableStatData = data
|
|
|
|
|
+ })
|
|
|
|
|
+ this.tableStatVisible = true
|
|
|
|
|
+ },
|
|
|
cardUserPurchaseFormSubmit(){
|
|
cardUserPurchaseFormSubmit(){
|
|
|
this.$http({
|
|
this.$http({
|
|
|
url: this.$http.adornUrl('/card/cardUserPurchase'),
|
|
url: this.$http.adornUrl('/card/cardUserPurchase'),
|