"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[88927],{88927:function(e,a,t){t.r(a),t.d(a,{default:function(){return s}});var n=function(){var e=this,a=e._self._c;return a("div",{staticStyle:{background:"white"}},[a("div",{staticClass:"g-relative-position"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.dataSource.records},on:{"selection-change":function(a){e.selectedRows=a}}},[a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"showOrderId",label:"主订单号"}}),a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"platformAmount",label:"订单交易金额"}}),a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"channelAmount",label:"支付交易金额"}}),a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"tradeTime",label:"订单创建时间"}}),a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"channelTime",label:"支付创建时间"}}),a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"diffReasonName",label:"差异账原因"}}),a("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"actions",label:"操作"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.manualOperate(t.id)}}},[e._v("手动平账")])]}}])})],1),a("div",{staticClass:"g-pagination-container"},[a("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[20,50,100],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(a){return e.fetchDataSource(null,a)},"current-change":function(a){return e.fetchDataSource(a)}}})],1)],1)])},r=[],l={data(){return{loading:!1,dataSource:{records:[],pageNow:1,pageSize:20}}},mounted(){this.fetchDataSource(1)},methods:{async fetchDataSource(e,a){this.loading=!0;const t={pageNow:e||this.dataSource.pageNow,pageSize:a||this.dataSource.pageSize,id:this.$route.params.id},n=await this.$store.dispatch({type:"finance/queryOrderDiffDetail",payload:t});n&&(this.dataSource=n),this.loading=!1},async manualOperate(e){const a={id:e},t=await this.$store.dispatch({type:"finance/manualOrderOperate",payload:a});t&&this.fetchDataSource(1)}}},i=l,o=t(81656),c=(0,o.A)(i,n,r,!1,null,null,null),s=c.exports}}]);