|
@@ -11,7 +11,7 @@
|
|
<div class="btn-box">
|
|
<div class="btn-box">
|
|
<ul class="quick-search">
|
|
<ul class="quick-search">
|
|
<li v-for="(itemq,indexq) in quickList" :key="indexq">
|
|
<li v-for="(itemq,indexq) in quickList" :key="indexq">
|
|
- <a @click="qucikSearch(itemq.value,indexq)" :class="[quickIndex===indexq?'active':'']">{{itemq.label}}</a>
|
|
|
|
|
|
+ <a @click="qucikSearch(itemq,indexq)" :class="[quickIndex===indexq?'active':'']">{{itemq.name}}</a>
|
|
<span class="border" :class="[indexq!==quickList.length-1&&quickIndex!==indexq&&quickIndex-1!==indexq?'':'border-no']"></span>
|
|
<span class="border" :class="[indexq!==quickList.length-1&&quickIndex!==indexq&&quickIndex-1!==indexq?'':'border-no']"></span>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
@@ -41,7 +41,7 @@
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
- @change="getList(1)">
|
|
|
|
|
|
+ @change="quickIndex=null;getList(1)">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</div>
|
|
</div>
|
|
<div class="search-item">
|
|
<div class="search-item">
|
|
@@ -135,19 +135,19 @@
|
|
type="index"
|
|
type="index"
|
|
label="#"
|
|
label="#"
|
|
sortable
|
|
sortable
|
|
- width="64"
|
|
|
|
|
|
+ width="54"
|
|
:index="(pageNumber-1)*pageSize+1">
|
|
:index="(pageNumber-1)*pageSize+1">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="sn"
|
|
prop="sn"
|
|
label="交易单号"
|
|
label="交易单号"
|
|
- sortable="custom"
|
|
|
|
- width="128"
|
|
|
|
|
|
+ width="190"
|
|
class-name="user-info">
|
|
class-name="user-info">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="order_time"
|
|
|
|
|
|
+ prop="pay_time"
|
|
label="交易时间"
|
|
label="交易时间"
|
|
|
|
+ sortable="custom"
|
|
width="165">
|
|
width="165">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -159,6 +159,17 @@
|
|
prop="goods_type"
|
|
prop="goods_type"
|
|
label="商品类型"
|
|
label="商品类型"
|
|
width="128" >
|
|
width="128" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span class="items-type" :style="{background:goodsTypeListCss[scope.row.goods_type]?goodsTypeListCss[scope.row.goods_type].bg:'', color:goodsTypeListCss[scope.row.goods_type]?goodsTypeListCss[scope.row.goods_type].color:''}">{{scope.row.goods_type_name}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="is_reservation"
|
|
|
|
+ label="是否预定"
|
|
|
|
+ width="80" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{scope.row.is_reservation==='true'?'是':'否'}}
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="goods_study_phase_name"
|
|
prop="goods_study_phase_name"
|
|
@@ -177,13 +188,24 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="discount_code"
|
|
prop="discount_code"
|
|
label="兑换码"
|
|
label="兑换码"
|
|
- width="144" >
|
|
|
|
|
|
+ width="194" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <template v-if="scope.row.is_use_discount_code=='false'">
|
|
|
|
+ 未使用
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <span class="code" :id="'copy-'+scope.row.discount_code">{{scope.row.discount_code}}</span>
|
|
|
|
+ <svg-icon icon-class="copy" class="copy" @click="CopyToClipboard('copy-'+scope.row.discount_code)"></svg-icon>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="order_amount"
|
|
prop="order_amount"
|
|
label="支付金额"
|
|
label="支付金额"
|
|
- sortable="custom"
|
|
|
|
width="104">
|
|
width="104">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span class="currectPrice">¥{{scope.row.order_amount | cutMoneyFiter}}</span>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="pay_type_name"
|
|
prop="pay_type_name"
|
|
@@ -191,9 +213,8 @@
|
|
width="104" >
|
|
width="104" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="order_amount"
|
|
|
|
|
|
+ prop="transaction_sn"
|
|
label="支付流水"
|
|
label="支付流水"
|
|
- sortable="custom"
|
|
|
|
width="144">
|
|
width="144">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -205,7 +226,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="person_city_name"
|
|
prop="person_city_name"
|
|
label="客户所在省市"
|
|
label="客户所在省市"
|
|
- width="224">
|
|
|
|
|
|
+ width="164">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.person_province_name+'/'+scope.row.person_city_name}}
|
|
{{scope.row.person_province_name+'/'+scope.row.person_city_name}}
|
|
</template>
|
|
</template>
|
|
@@ -214,24 +235,30 @@
|
|
prop="person_org_name"
|
|
prop="person_org_name"
|
|
label="客户所在机构"
|
|
label="客户所在机构"
|
|
sortable="custom"
|
|
sortable="custom"
|
|
- width="224">
|
|
|
|
|
|
+ width="184">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="order_status"
|
|
prop="order_status"
|
|
label="交易状态"
|
|
label="交易状态"
|
|
- sortable="custom"
|
|
|
|
width="112">
|
|
width="112">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div class="status-box">
|
|
|
|
+ <span :style="{background:transactionListCss[scope.row.order_status]?transactionListCss[scope.row.order_status].bg:''}"></span>
|
|
|
|
+ <b>{{transactionListCss[scope.row.order_status]?transactionListCss[scope.row.order_status].text:'-'}}</b>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
fixed="right"
|
|
fixed="right"
|
|
label="操作"
|
|
label="操作"
|
|
- width="120">
|
|
|
|
|
|
+ width="70">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@click.native.prevent="handleEdit(scope.row)"
|
|
@click.native.prevent="handleEdit(scope.row)"
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
- class="red-btn">
|
|
|
|
|
|
+ class="red-btn"
|
|
|
|
+ v-if="scope.row.order_status===1">
|
|
退款
|
|
退款
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -239,7 +266,21 @@
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
class="red-btn"
|
|
class="red-btn"
|
|
- v-if="scope.row.is_use_discount_code==='true'">
|
|
|
|
|
|
+ v-if="scope.row.order_status===2">
|
|
|
|
+ 撤回
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ class="gray-btn"
|
|
|
|
+ v-if="scope.row.order_status===3">
|
|
|
|
+ 退款
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ class="gray-btn"
|
|
|
|
+ v-if="scope.row.order_status===4">
|
|
撤回
|
|
撤回
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -300,33 +341,12 @@ export default {
|
|
text:'交易管理'
|
|
text:'交易管理'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- quickList:[
|
|
|
|
- {
|
|
|
|
- label:'最近一年',
|
|
|
|
- value: -365
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '最近一季',
|
|
|
|
- value: -120
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '最近一月',
|
|
|
|
- value: -30
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '最近一周',
|
|
|
|
- value: -7
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '最近一天',
|
|
|
|
- value: -1
|
|
|
|
- }
|
|
|
|
- ], // 快速查询
|
|
|
|
|
|
+ quickList:[], // 快速查询
|
|
searchInput: '',
|
|
searchInput: '',
|
|
searchQuick:null,
|
|
searchQuick:null,
|
|
quickIndex: null, // 快速搜索的索引
|
|
quickIndex: null, // 快速搜索的索引
|
|
- proceedsNumber:'1209', // 收款单数
|
|
|
|
- proceedsPrice: 789474, // 收款金额
|
|
|
|
|
|
+ proceedsNumber:'', // 收款单数
|
|
|
|
+ proceedsPrice: null, // 收款金额
|
|
proceedsPriceArr: [],
|
|
proceedsPriceArr: [],
|
|
searchType: -1,
|
|
searchType: -1,
|
|
validity:'',
|
|
validity:'',
|
|
@@ -344,11 +364,11 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '支付宝',
|
|
label: '支付宝',
|
|
- value: 1
|
|
|
|
|
|
+ value: 4
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '微信支付',
|
|
label: '微信支付',
|
|
- value: 2
|
|
|
|
|
|
+ value: 3
|
|
}
|
|
}
|
|
],
|
|
],
|
|
orgList:[
|
|
orgList:[
|
|
@@ -368,7 +388,7 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '未使用',
|
|
label: '未使用',
|
|
- value: 2
|
|
|
|
|
|
+ value: 0
|
|
}
|
|
}
|
|
], // 是否使用兑换码
|
|
], // 是否使用兑换码
|
|
transactionList: [
|
|
transactionList: [
|
|
@@ -383,30 +403,94 @@ export default {
|
|
{
|
|
{
|
|
status_name: '兑换成功',
|
|
status_name: '兑换成功',
|
|
status: 2
|
|
status: 2
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ status_name: '已退款',
|
|
|
|
+ status: 3
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ status_name: '已撤回',
|
|
|
|
+ status: 4
|
|
}
|
|
}
|
|
], //交易状态列表
|
|
], //交易状态列表
|
|
|
|
+ transactionListCss: {
|
|
|
|
+ 1:{
|
|
|
|
+ bg:'#00B42A',
|
|
|
|
+ text:'支付成功'
|
|
|
|
+ },
|
|
|
|
+ 2:{
|
|
|
|
+ bg:'#165DFF',
|
|
|
|
+ text:'兑换成功'
|
|
|
|
+ },
|
|
|
|
+ 3:{
|
|
|
|
+ bg:'#F7BA1E',
|
|
|
|
+ text:'已退款'
|
|
|
|
+ },
|
|
|
|
+ 4:{
|
|
|
|
+ bg:'#FF7D00',
|
|
|
|
+ text:'已撤回'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
goodsTypeList:[
|
|
goodsTypeList:[
|
|
{
|
|
{
|
|
goods_name: '全部',
|
|
goods_name: '全部',
|
|
value: -1
|
|
value: -1
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- goods_name: '报纸(讲解版)',
|
|
|
|
- value: 1
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- goods_name: '报纸订阅',
|
|
|
|
|
|
+ goods_name: '报纸',
|
|
value: 2
|
|
value: 2
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- goods_name: '报纸',
|
|
|
|
|
|
+ goods_name: '精读',
|
|
value: 3
|
|
value: 3
|
|
},
|
|
},
|
|
{
|
|
{
|
|
goods_name: '课程',
|
|
goods_name: '课程',
|
|
- value: 4
|
|
|
|
|
|
+ value: 10
|
|
}
|
|
}
|
|
], // 商品类型
|
|
], // 商品类型
|
|
|
|
+ goodsTypeListCss:{
|
|
|
|
+ 2:{
|
|
|
|
+ text:'报纸',
|
|
|
|
+ color:'#165DFF',
|
|
|
|
+ bg:'#E8F7FF'
|
|
|
|
+ },
|
|
|
|
+ // '2':{
|
|
|
|
+ // text:'画刊',
|
|
|
|
+ // color:'#F53F3F',
|
|
|
|
+ // bg:'#FFECE8'
|
|
|
|
+ // },
|
|
|
|
+ '3':{
|
|
|
|
+ text:'精读',
|
|
|
|
+ color:'#0FC6C2',
|
|
|
|
+ bg:'#E8FFFB'
|
|
|
|
+ },
|
|
|
|
+ 0:{
|
|
|
|
+ text:'课程',
|
|
|
|
+ color:'#722ED1',
|
|
|
|
+ bg:'#F5E8FF'
|
|
|
|
+ },
|
|
|
|
+ 1:{
|
|
|
|
+ text:'课程',
|
|
|
|
+ color:'#722ED1',
|
|
|
|
+ bg:'#F5E8FF'
|
|
|
|
+ },
|
|
|
|
+ 10:{
|
|
|
|
+ text:'课程',
|
|
|
|
+ color:'#722ED1',
|
|
|
|
+ bg:'#F5E8FF'
|
|
|
|
+ },
|
|
|
|
+ // '5':{
|
|
|
|
+ // text:'报纸专辑',
|
|
|
|
+ // color:'#165DFF',
|
|
|
|
+ // bg:'#E8F7FF'
|
|
|
|
+ // },
|
|
|
|
+ // '6':{
|
|
|
|
+ // text:'画刊专辑',
|
|
|
|
+ // color:'#F53F3F',
|
|
|
|
+ // bg:'#FFECE8'
|
|
|
|
+ // }
|
|
|
|
+ },
|
|
typeList:[
|
|
typeList:[
|
|
{
|
|
{
|
|
account_type:-1,
|
|
account_type:-1,
|
|
@@ -444,8 +528,9 @@ export default {
|
|
//方法集合
|
|
//方法集合
|
|
methods: {
|
|
methods: {
|
|
qucikSearch(value,index){
|
|
qucikSearch(value,index){
|
|
- this.searchQuick = value,
|
|
|
|
|
|
+ this.validity = [value.date_begin,value.date_end],
|
|
this.quickIndex = index
|
|
this.quickIndex = index
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
handleSort(value){
|
|
handleSort(value){
|
|
let dataSort = {
|
|
let dataSort = {
|
|
@@ -475,19 +560,35 @@ export default {
|
|
}else{
|
|
}else{
|
|
order_column_list = ['create_time:desc']
|
|
order_column_list = ['create_time:desc']
|
|
}
|
|
}
|
|
|
|
+ let province_id_list = null
|
|
|
|
+ let city_id_list = []
|
|
|
|
+ if(this.searchArea.length>0){
|
|
|
|
+ if(this.searchArea[0][0]&&this.searchArea[0][0]==='0'){
|
|
|
|
+ province_id_list = '-1'
|
|
|
|
+ }else{
|
|
|
|
+ province_id_list = []
|
|
|
|
+ this.searchArea.forEach(item => {
|
|
|
|
+ if(province_id_list.indexOf(item[0])===-1){
|
|
|
|
+ province_id_list.push(item[0])
|
|
|
|
+ }
|
|
|
|
+ city_id_list.push(item[1]?item[1]:'')
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
let data = {
|
|
let data = {
|
|
content:this.searchInput.trim(),
|
|
content:this.searchInput.trim(),
|
|
page_capacity:this.pageSize,
|
|
page_capacity:this.pageSize,
|
|
cur_page:this.pageNumber,
|
|
cur_page:this.pageNumber,
|
|
order_column_list: order_column_list,
|
|
order_column_list: order_column_list,
|
|
- pay_status: this.searchStatus,
|
|
|
|
|
|
+ pay_status: 1,
|
|
|
|
+ order_status: this.searchStatus,
|
|
pay_date_begin: this.validity?this.validity[0]:'',
|
|
pay_date_begin: this.validity?this.validity[0]:'',
|
|
pay_date_end: this.validity?this.validity[1]:'',
|
|
pay_date_end: this.validity?this.validity[1]:'',
|
|
goods_study_phase: this.searchStudy,
|
|
goods_study_phase: this.searchStudy,
|
|
goods_type: this.searchGoodsType,
|
|
goods_type: this.searchGoodsType,
|
|
discount_code_use_status: this.searchIsCDKEY,
|
|
discount_code_use_status: this.searchIsCDKEY,
|
|
- person_org_id: this.searchOrgid,
|
|
|
|
- person_province_city_id: this.searchArea.length>0?this.searchArea[1]:'',
|
|
|
|
|
|
+ person_org_id_list: this.searchOrgid?[this.searchOrgid]:null,
|
|
|
|
+ person_province_city_id_list: city_id_list,
|
|
pay_type: this.searchChannel
|
|
pay_type: this.searchChannel
|
|
}
|
|
}
|
|
getLogin(MethodName, data)
|
|
getLogin(MethodName, data)
|
|
@@ -570,11 +671,47 @@ export default {
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.loading = false
|
|
this.loading = false
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 快捷时间按钮列表
|
|
|
|
+ getQuickList(){
|
|
|
|
+ this.quickList = []
|
|
|
|
+ let MethodName = "/ShopServer/Manager/FinanceManager/GetQueryCritDateSpaceList";
|
|
|
|
+ let data = {}
|
|
|
|
+ getLogin(MethodName, data)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if(res.status===1){
|
|
|
|
+ this.quickList = res.date_space_list
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ CopyToClipboard(element) {
|
|
|
|
+ var doc = document,
|
|
|
|
+ text = doc.getElementById(element),
|
|
|
|
+ range,
|
|
|
|
+ selection;
|
|
|
|
+ if (doc.body.createTextRange) {
|
|
|
|
+ range = doc.body.createTextRange();
|
|
|
|
+ range.moveToElementText(text);
|
|
|
|
+ range.select();
|
|
|
|
+ } else if (window.getSelection) {
|
|
|
|
+ selection = window.getSelection();
|
|
|
|
+ range = doc.createRange();
|
|
|
|
+ range.selectNodeContents(text);
|
|
|
|
+ selection.removeAllRanges();
|
|
|
|
+ selection.addRange(range);
|
|
|
|
+ }
|
|
|
|
+ document.execCommand("copy");
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "复制成功",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ window.getSelection().removeAllRanges();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
created() {
|
|
created() {
|
|
this.getTableHeight();
|
|
this.getTableHeight();
|
|
|
|
+ this.getQuickList()
|
|
this.getOrgList()
|
|
this.getOrgList()
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
@@ -693,4 +830,19 @@ export default {
|
|
.search-table{
|
|
.search-table{
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
+.items-type{
|
|
|
|
+ padding: 1px 8px;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ line-height: 22px;
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+}
|
|
|
|
+.code{
|
|
|
|
+ color: #175DFF;
|
|
|
|
+}
|
|
|
|
+.copy{
|
|
|
|
+ color: #C9CDD4;
|
|
|
|
+ margin-left: 8px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|