|
|
|
|
@ -13,12 +13,12 @@
|
|
|
|
|
>商家罚款
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Select v-model="select.merchantId" class="select" style="width:200px;margin-right: 10px;" :clearable="true"
|
|
|
|
|
<Select v-model="select.merchantId" class="select" style="width:160px;margin-right: 10px;" :clearable="true"
|
|
|
|
|
placeholder="所属商家" filterable
|
|
|
|
|
>
|
|
|
|
|
<Option v-for="item in merchants" :value="item.id" :key="item.id">{{ item.username }}</Option>
|
|
|
|
|
<Option v-for="item in merchants" :value="item.id" :key="item.id">{{ item.name }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<Select v-model="select.type" class="select" style="width:200px;margin-right: 10px;" :clearable="true"
|
|
|
|
|
<Select v-model="select.type" class="select" style="width:100px;margin-right: 10px;" :clearable="true"
|
|
|
|
|
placeholder="类型" filterable
|
|
|
|
|
>
|
|
|
|
|
<Option v-for="item in [{label:'佣金',value:'fee'},{label:'充值',value:'recharge'},{label:'退款',value:'fine'}]"
|
|
|
|
|
@ -26,6 +26,7 @@
|
|
|
|
|
>{{ item.label }}
|
|
|
|
|
</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<Input v-model="select.serial" style="width: 140px;margin-right: 10px;" clearable placeholder="请输入订单编号"/>
|
|
|
|
|
|
|
|
|
|
<Button icon="ios-search" type="primary" style="margin-right: 10px;" @click="getFlow">搜索</Button>
|
|
|
|
|
<Button icon="ios-repeat" type="primary" style="margin-right: 10px;"
|
|
|
|
|
@ -67,7 +68,8 @@ export default {
|
|
|
|
|
pageIndex: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
merchantId: '',
|
|
|
|
|
type: ''
|
|
|
|
|
type: '',
|
|
|
|
|
serial:''
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
merchants: [],
|
|
|
|
|
@ -82,6 +84,11 @@ export default {
|
|
|
|
|
align: 'left',
|
|
|
|
|
fixed:'left'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop:'order.serial',
|
|
|
|
|
label:'订单编号',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'money',
|
|
|
|
|
label: '金额',
|
|
|
|
|
@ -118,7 +125,16 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
downloadExel() {
|
|
|
|
|
download('/api/admin/finance/index', 'get', { is_export: 1 }, '财务流水.xlsx')
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/finance/index',
|
|
|
|
|
'get',
|
|
|
|
|
{
|
|
|
|
|
merchant_id: this.select.merchantId,
|
|
|
|
|
type: this.select.type,
|
|
|
|
|
serial: this.select.serial,
|
|
|
|
|
is_export: 1
|
|
|
|
|
},
|
|
|
|
|
'财务流水.xlsx')
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
pageChange(e) {
|
|
|
|
|
@ -135,7 +151,8 @@ export default {
|
|
|
|
|
page: this.select.pageIndex,
|
|
|
|
|
page_size: this.select.pageSize,
|
|
|
|
|
merchant_id: this.select.merchantId,
|
|
|
|
|
type: this.select.type
|
|
|
|
|
type: this.select.type,
|
|
|
|
|
serial: this.select.serial
|
|
|
|
|
})
|
|
|
|
|
this.list = res.data
|
|
|
|
|
this.total = res.total
|
|
|
|
|
|