Browse Source

分账记录

master
rainbro 3 days ago
parent
commit
0df0289f01
  1. 60
      src/views/agent/payCertSetting.vue

60
src/views/agent/payCertSetting.vue

@ -164,7 +164,20 @@
</div>
</div>
</el-tab-pane>
<el-tab-pane label="分账记录" name="profit_share_list">分账记录</el-tab-pane>
<el-tab-pane label="分账记录" name="profit_share_list">
<GuipTable :border="true" :tableData="profitShareList" :loading="tableLoading">
<el-table-column prop="tid" fixed="left" label="订单号"></el-table-column>
<el-table-column prop="transaction_id" label="微信支付订单号" width="350px"></el-table-column>
<el-table-column prop="out_order_no" label="分账单号"></el-table-column>
<el-table-column prop="receiver_amount" label="分账金额"></el-table-column>
<el-table-column prop="receiver_description" label="分账描述"></el-table-column>
<el-table-column prop="status" label="状态"></el-table-column>
</GuipTable>
<el-pagination background @size-change='handleSizeChange' @current-change='handleCurrentChange'
:current-page="profitShareListCurrentPage" :page-size="profitShareListPageSize" layout="prev, pager, next,jumper"
:total="profitShareListTotal">
</el-pagination>
</el-tab-pane>
</el-tabs>
</el-form>
</div>
@ -246,6 +259,7 @@ import GuipDialog from '@/components/GuipDialog.vue'
import GuipInput from '@/components/GuipInput.vue'
import GuipSelect from '@/components/GuipSelect.vue'
import PromptText from '@/components/PromptText.vue'
import GuipTable from '@/components/GuipTable.vue'
//
const PAY_TYPE_TAOBAO = 0; //
@ -266,6 +280,7 @@ export default {
GuipInput,
GuipSelect,
PromptText,
GuipTable,
},
data() {
return {
@ -294,6 +309,10 @@ export default {
'receiver_name': '',
},
profitShareReceiversRelationType: [],
profitShareList: [],
profitShareListCurrentPage: 1, //
profitShareListPageSize: 1, //
profitShareListTotal: 0, //
showCustomInput: false,
uploadParams: {
@ -301,6 +320,8 @@ export default {
uploadHeaders: {
'Auth': this.token
},
tableLoading: false,
}
},
computed: {
@ -407,6 +428,31 @@ export default {
console.error(error, 'error')
})
},
getProfitShareList() {
this.tableLoading = true
const that = this
that.profitShareList = []
this.$http('POST', '/agentnew/ajax_get_profit_share_list', {
pid: this.$route.query.payid,
cur_page: this.profitShareListCurrentPage,
page_size: this.profitShareListPageSize
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
that.profitShareList = response.data.list
that.profitShareListTotal = response.data.total
console.log(this.profitShareList)
})
}).catch(error => {
console.error(error, 'error')
})
},
cancle() {
this.getPayment();
},
@ -418,9 +464,21 @@ export default {
},
handlePreview(file) {
console.log(file);
},
handleClick(tab, event) {
console.log(tab, event);
if (this.profitShareTab == 'profit_share_list') {
this.getProfitShareList();
}
},
handleSizeChange(val) {
this.profitShareListPageSize = val
this.getProfitShareList()
},
handleCurrentChange(val) {
this.profitShareListCurrentPage = val
this.getProfitShareList()
},
showDialog(type) {
if (type == 'apiv3') {

Loading…
Cancel
Save