|
@@ -31,6 +31,9 @@
|
|
|
<Select size="large" placeholder="发票状态" clearable v-model="filter.invoiceStatus" style="width:100px;margin:0 10px 10px 0">
|
|
|
<Option v-for="item in invoiceSta" :value="item.v" :key="item.v">{{ item.n }}</Option>
|
|
|
</Select>
|
|
|
+ <Select size="large" placeholder="审核状态" clearable v-model="filter.course_status" style="width:100px;margin:0 10px 10px 0">
|
|
|
+ <Option v-for="item in auditSta" :value="item.v" :key="item.v">{{ item.n }}</Option>
|
|
|
+ </Select>
|
|
|
<Select size="large" placeholder="付款方式" clearable v-model="filter.payWay" style="width:100px;margin:0 10px 10px 0">
|
|
|
<Option v-for="item in payStatus" :value="item.v" :key="item.v">{{ item.n }}</Option>
|
|
|
</Select>
|
|
@@ -74,6 +77,16 @@
|
|
|
@on-ok="confirmed2"
|
|
|
@on-open-change="opened2"
|
|
|
></DatePicker><br/>
|
|
|
+ <Select
|
|
|
+ size="large"
|
|
|
+ placeholder="会员等级"
|
|
|
+ clearable
|
|
|
+ v-model="filter.level"
|
|
|
+ style="width:100px;margin:0 10px 10px 0"
|
|
|
+ v-show="select4"
|
|
|
+ >
|
|
|
+ <Option v-for="item in classDown" :value="item.v" :key="item.v">{{ item.n }}</Option>
|
|
|
+ </Select>
|
|
|
<Select
|
|
|
size="large"
|
|
|
placeholder="付费类型"
|
|
@@ -103,7 +116,7 @@
|
|
|
v-show="select3"
|
|
|
>
|
|
|
<Option v-for="item in invoicePerson" :value="item.v" :key="item.v">{{ item.n }}</Option>
|
|
|
- </Select><br v-show="select1 || select2 || select3"/>
|
|
|
+ </Select><br v-show="select1 || select2 || select3 || select4"/>
|
|
|
</template>
|
|
|
<template slot="exportData" v-if="flag">
|
|
|
<Button type="primary" size="large" @click="orderExport" style="margin: 0 0 10px 10px">导出结果</Button>
|
|
@@ -115,6 +128,7 @@
|
|
|
ref="selection"
|
|
|
:columns="columns"
|
|
|
:data="list.lists"
|
|
|
+ @on-row-click="rowClick"
|
|
|
stripe
|
|
|
>
|
|
|
<template slot-scope="{ row }" slot="type">
|
|
@@ -125,45 +139,15 @@
|
|
|
{{row.action}}
|
|
|
</Tooltip>
|
|
|
</template>
|
|
|
- <template slot-scope="{ row }" slot="op">
|
|
|
- <Button
|
|
|
- class="find-btn"
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- style="margin-right:5px"
|
|
|
- >
|
|
|
- <router-link :to="{path:'/order/orderList/orderDetail',query:{id:row.id,proType:row.product_type}}" target="_blank" style="color:#fff">查看</router-link>
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- class="find-btn"
|
|
|
- size="small"
|
|
|
- type="error"
|
|
|
- @click="refund(row.order_code)"
|
|
|
- v-if="row.order_status == 1"
|
|
|
- >退款</Button>
|
|
|
- <Button
|
|
|
- class="find-btn"
|
|
|
- size="small"
|
|
|
- type="error"
|
|
|
- disabled
|
|
|
- v-else
|
|
|
- >退款</Button>
|
|
|
- </template>
|
|
|
</Table>
|
|
|
<template slot="options">
|
|
|
<div style="color:#d7d7d7;font-size:14px">共计{{list.total}}个订单,实付金额¥{{list.money>=0?list.money:0}}</div>
|
|
|
</template>
|
|
|
</table-lists>
|
|
|
- <Modal title="退款原因" v-model="models.tShow">
|
|
|
- <Input type="textarea" size="large" :rows="3" placeholder="请填写退款原因" v-model="models.cause"></Input>
|
|
|
- <div slot="footer">
|
|
|
- <Button type="primary" size="large" @click="subSave">提交</Button>
|
|
|
- </div>
|
|
|
- </Modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { ChangeDate,ChangeDate2 } from '../../assets/js/date.js'
|
|
|
+import { ChangeDate } from '../../assets/js/date.js'
|
|
|
export default {
|
|
|
watch: {
|
|
|
'filter.productType': {
|
|
@@ -172,18 +156,31 @@ export default {
|
|
|
this.select1 = true
|
|
|
this.select2 = false
|
|
|
this.select3 = false
|
|
|
+ this.select4 = false
|
|
|
this.filter.dataType = ''
|
|
|
this.filter.invoiceType = ''
|
|
|
+ this.filter.level = ''
|
|
|
} else if (newVal == '2') {
|
|
|
this.select2 = true
|
|
|
this.select1 = false
|
|
|
this.select3 = false
|
|
|
+ this.select4 = false
|
|
|
this.filter.payType = ''
|
|
|
this.filter.invoiceType = ''
|
|
|
+ this.filter.level = ''
|
|
|
} else if (newVal == '4') {
|
|
|
this.select3 = true
|
|
|
this.select1 = false
|
|
|
this.select2 = false
|
|
|
+ this.select4 = false
|
|
|
+ this.filter.dataType = ''
|
|
|
+ this.filter.payType = ''
|
|
|
+ this.filter.level = ''
|
|
|
+ } else if (newVal == '6') {
|
|
|
+ this.select4 = true
|
|
|
+ this.select1 = false
|
|
|
+ this.select2 = false
|
|
|
+ this.select3 = false
|
|
|
this.filter.dataType = ''
|
|
|
this.filter.payType = ''
|
|
|
} else {
|
|
@@ -193,6 +190,7 @@ export default {
|
|
|
this.filter.payType = ''
|
|
|
this.filter.dataType = ''
|
|
|
this.filter.invoiceType = ''
|
|
|
+ this.filter.level = ''
|
|
|
}
|
|
|
},
|
|
|
deep: true
|
|
@@ -219,11 +217,13 @@ export default {
|
|
|
this.filter.orderType = ''
|
|
|
this.filter.orderStatus = ''
|
|
|
this.filter.invoiceStatus = ''
|
|
|
+ this.filter.course_status = ''
|
|
|
this.filter.payMoneyMin = ''
|
|
|
this.filter.payMoneyMax = ''
|
|
|
this.filter.orderTimeStart = ''
|
|
|
this.filter.orderTimeEnd = ''
|
|
|
this.filter.payWay = ''
|
|
|
+ this.filter.level = ''
|
|
|
this.filter.payType = ''
|
|
|
this.filter.dataType = ''
|
|
|
this.filter.invoiceType = ''
|
|
@@ -231,6 +231,10 @@ export default {
|
|
|
this.dataVal2 = ''
|
|
|
}
|
|
|
},
|
|
|
+ rowClick(row) {
|
|
|
+ const news = this.$router.resolve({path:'/order/orderList/orderDetail',query:{id:row.id,proType:row.product_type,orderStas:row.course_status}})
|
|
|
+ window.open(news.href,'_blank')
|
|
|
+ },
|
|
|
handleChange1 (date) {
|
|
|
this.filter.orderTimeStart = date
|
|
|
},
|
|
@@ -277,10 +281,6 @@ export default {
|
|
|
this.confirmed2()
|
|
|
}
|
|
|
},
|
|
|
- refund (code) {
|
|
|
- this.models.tShow = true
|
|
|
- this.models.reCode = code
|
|
|
- },
|
|
|
orderExport() {
|
|
|
if (this.list.lists.length == 0) {
|
|
|
this.$Notice.warning({
|
|
@@ -294,12 +294,14 @@ export default {
|
|
|
productType: this.filter.productType,
|
|
|
orderStatus: this.filter.orderStatus,
|
|
|
invoiceStatus: this.filter.invoiceStatus,
|
|
|
+ course_status: this.filter.course_status,
|
|
|
payWay: this.filter.payWay,
|
|
|
orderTimeStart: this.filter.orderTimeStart,
|
|
|
orderTimeEnd: this.filter.orderTimeEnd,
|
|
|
payMoneyMin: this.filter.payMoneyMin,
|
|
|
payMoneyMax: this.filter.payMoneyMax,
|
|
|
orderType: this.filter.orderType,
|
|
|
+ level: this.filter.level,
|
|
|
payType: this.filter.payType,
|
|
|
dataType: this.filter.dataType,
|
|
|
invoiceType: this.filter.invoiceType
|
|
@@ -322,17 +324,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- subSave () {
|
|
|
- var curTime = new Date().getTime()
|
|
|
- this.$request('/order/orderList/confirmRefund').data({
|
|
|
- orderCode: this.models.reCode,
|
|
|
- applyReason: this.models.cause,
|
|
|
- applyTime: ChangeDate2(curTime)
|
|
|
- }).showSuccessTip().success(() => {
|
|
|
- this.models.tShow = false
|
|
|
- this.reload()
|
|
|
- }).get()
|
|
|
- },
|
|
|
reload () {
|
|
|
this.$refs.tableLists.reload(true)
|
|
|
}
|
|
@@ -346,14 +337,10 @@ export default {
|
|
|
select1: false,
|
|
|
select2: false,
|
|
|
select3: false,
|
|
|
+ select4: false,
|
|
|
flag: true,
|
|
|
filterType: 1,
|
|
|
filterReset: 1,
|
|
|
- models: {
|
|
|
- tShow: false,
|
|
|
- cause: '',
|
|
|
- reCode: ''
|
|
|
- },
|
|
|
proType: [
|
|
|
{v: '', n: '全部'},
|
|
|
{v: '6', n: '大会员'},
|
|
@@ -383,6 +370,13 @@ export default {
|
|
|
{v: '0', n: '未申请'},
|
|
|
{v: '1', n: '已申请'}
|
|
|
],
|
|
|
+ auditSta: [
|
|
|
+ {v: '', n: '全部'},
|
|
|
+ {v: '0', n: '无需审核'},
|
|
|
+ {v: '2', n: '未审核'},
|
|
|
+ {v: '3', n: '未通过'},
|
|
|
+ {v: '4', n: '已通过'}
|
|
|
+ ],
|
|
|
payStatus: [
|
|
|
{v: '', n: '全部'},
|
|
|
{v: '0', n: '支付宝'},
|
|
@@ -408,6 +402,12 @@ export default {
|
|
|
{v: '0', n: '汇学网'},
|
|
|
{v: '1', n: '王凯精品课'}
|
|
|
],
|
|
|
+ classDown: [
|
|
|
+ {v: '', n: '全部'},
|
|
|
+ {v: '3', n: '商机版'},
|
|
|
+ {v: '2', n: '智慧版'},
|
|
|
+ {v: '1', n: '专家版'}
|
|
|
+ ],
|
|
|
filter: {
|
|
|
// keyword: '',
|
|
|
productType: '',
|
|
@@ -418,7 +418,9 @@ export default {
|
|
|
orderTimeEnd: '',
|
|
|
payMoneyMin: '',
|
|
|
payMoneyMax: '',
|
|
|
+ course_status: '',
|
|
|
payWay: '',
|
|
|
+ level: '',
|
|
|
payType: '',
|
|
|
dataType: '',
|
|
|
invoiceType: ''
|
|
@@ -601,10 +603,45 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '操作',
|
|
|
- slot: 'op',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
+ title: '审核状态',
|
|
|
+ key: 'course_status',
|
|
|
+ align: 'center',
|
|
|
+ render: (h, {row}) => {
|
|
|
+ if (row.course_status == 2) {
|
|
|
+ return h('div', {
|
|
|
+ style:{
|
|
|
+ color: '#ffb822'
|
|
|
+ }
|
|
|
+ }, [
|
|
|
+ h('span','未审核')
|
|
|
+ ])
|
|
|
+ } else if (row.course_status == 3) {
|
|
|
+ return h('div', {
|
|
|
+ style:{
|
|
|
+ color: '#f4516c'
|
|
|
+ }
|
|
|
+ }, [
|
|
|
+ h('span','未通过')
|
|
|
+ ])
|
|
|
+ } else if (row.course_status == 4) {
|
|
|
+ return h('div', {
|
|
|
+ style:{
|
|
|
+ color: '#34bfa3'
|
|
|
+ }
|
|
|
+ }, [
|
|
|
+ h('span','已通过')
|
|
|
+ ])
|
|
|
+ } else if (row.course_status < 2) {
|
|
|
+ return h('div', {
|
|
|
+ style:{
|
|
|
+ color: '#36a3f7'
|
|
|
+ }
|
|
|
+ }, [
|
|
|
+ h('span','无需审核')
|
|
|
+ ])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
],
|
|
|
list: []
|
|
|
}
|