You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/system/js/chunk-78ce7a00.cda3af04.js

1 lines
7.8 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78ce7a00"],{5200:function(t,e,a){},ba90:function(t,e,a){"use strict";a("5200")},c2c19:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"filter-container"},[a("el-form",{attrs:{inline:!0,size:"small"}},[a("el-form-item",{staticClass:"mr20",attrs:{label:"对账状态:"}},[a("el-select",{attrs:{placeholder:"请选择使用状态"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),a("el-option",{attrs:{label:"未确认",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"已拒绝",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"已确认",value:"2"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"mr10",attrs:{label:"时间选择:"}},[a("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy/MM/dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{staticClass:"mr10",attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入管理员姓名/商户名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"银行卡持卡人:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.bank_name)))])]),t._v(" "),a("el-form-item",{attrs:{label:"开户行地址:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.bank_address)))])]),t._v(" "),a("el-form-item",{attrs:{label:"转账时间:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.accounts_time)))])]),t._v(" "),a("el-form-item",{attrs:{label:"备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.admin_mark)))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reconciliation_id",label:"ID",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"admin.real_name",label:"后台管理员","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"对账状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("reconciliationStatusFilter")(e.row.status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"对账总金额","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"charge",label:"总扣除金额","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"bank",label:"开户行","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"银行卡号","min-width":"150",prop:"bank_number"}}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转账状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("accountStatusFilter")(e.row.is_accounts)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"mr5",attrs:{to:{path:t.roterPre+"/accounts/reconciliation/order/"+e.row.reconciliation_id+"/0"}}},[a("el-button",{attrs:{type:"text",size:"small"}},[t._v("查看订单")])],1),t._v(" "),2===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onAccounts(e.row.reconciliation_id)}}},[t._v("确认转账")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onMark(e.row.reconciliation_id)}}},[t._v("备注")])]}}])})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"请选择转账状态",visible:t.dialogVisible,width:"450px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"转账状态",prop:"status"}},[a("el-radio-group",{model:{value:t.ruleForm.status,callback:function(e){t.$set(t.ruleForm,"status",e)},expression:"ruleForm.status"}},[a("el-radio",{attrs:{label:"1"}},[t._v("已转账")]),t._v(" "),a("el-radio",{attrs:{label:"2"}},[t._v("未转帐")])],1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("提交")])],1)],1)],1)],1)},l=[],n=a("2801"),s=a("83d6"),o={name:"Record",data:function(){return{loading:!1,roterPre:s["roterPre"],timeVal:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]},listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:10,date:"",status:"",keyword:"",reconciliation_id:this.$route.query.reconciliation_id?this.$route.query.reconciliation_id:""},ruleForm:{status:"2"},dialogVisible:!1,rules:{status:[{required:!0,message:"请选择转账状态",trigger:"change"}]},reconciliationId:0}},mounted:function(){this.getList()},methods:{onMark:function(t){var e=this;this.$modalForm(Object(n["v"])(t)).then((function(){return e.getList()}))},onAccounts:function(t){this.reconciliationId=t,this.dialogVisible=!0},handleClose:function(){this.dialogVisible=!1,this.$refs["ruleForm"].resetFields()},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.loading=!0,Object(n["y"])(e.reconciliationId,e.ruleForm).then((function(t){e.$message.success(t.message),e.loading=!1,e.handleClose(),e.getList()})).catch((function(t){e.$message.error(t.message),e.loading=!1}))}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["u"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.chkName="",this.getList()}}},r=o,c=(a("ba90"),a("2877")),u=Object(c["a"])(r,i,l,!1,null,"44bb47fc",null);e["default"]=u.exports}}]);