chunk-013e72b3.f6bfe415.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-013e72b3"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var s=o(),i=e-s,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var o=Math.easeInOutQuad(c,s,i,t);n(o),c<t?r(e):a&&"function"===typeof a&&a()};u()}},a2be:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"b",(function(){return u}));var r=a("b775"),n=a("4328"),o=a.n(n),s="/api-web";function i(e){return Object(r["a"])({url:s+"/paymentConfig/getPaymentConfigs",method:"get",params:e})}function l(e){return Object(r["a"])({url:s+"/paymentConfig/addTypeRoute",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:o.a.stringify(e)})}function c(e){return Object(r["a"])({url:s+"/paymentConfig/updateTypeRoute",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:o.a.stringify(e)})}function u(e){return Object(r["a"])({url:s+"/paymentConfig/delTypeRoute",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:o.a.stringify(e)})}},ed89:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.reset}},[a("el-form-item",{attrs:{prop:"memberId"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入商户号"},model:{value:e.searchForm.memberId,callback:function(t){e.$set(e.searchForm,"memberId","string"===typeof t?t.trim():t)},expression:"searchForm.memberId"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入公司名称"},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择审核状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"处理中",value:"pending"}}),e._v(" "),a("el-option",{attrs:{label:"成功",value:"succeeded"}}),e._v(" "),a("el-option",{attrs:{label:"失败",value:"failed"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"adapay/createMember",expression:"'adapay/createMember'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.onOperationAccount("create")}}},[e._v("创建账号")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"商户号",align:"center",prop:"memberId"}}),e._v(" "),a("el-table-column",{attrs:{label:"法人",align:"center",prop:"legalPerson"}}),e._v(" "),a("el-table-column",{attrs:{label:"法人手机号",align:"center",prop:"legalMp"}}),e._v(" "),a("el-table-column",{attrs:{label:"法人身份证号",align:"center",prop:"legalCertId"}}),e._v(" "),a("el-table-column",{attrs:{label:"公司名称",align:"center",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"统一社会信用码",align:"center",prop:"socialCreditCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"银行卡号",align:"center",prop:"cardNo"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注",align:"center",prop:"memo"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"250px",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"adapay/updateMember",expression:"'adapay/updateMember'"}],attrs:{type:"text"},on:{click:function(a){return e.onOperationAccount("update",t.row)}}},[e._v("修改")]),e._v(" "),"succeeded"===t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"adapay/createSettleAccount",expression:"'adapay/createSettleAccount'"}],attrs:{type:"text"},on:{click:function(a){return e.onUpdateAccount(t.row)}}},[e._v("修改结算账户")]):e._e(),e._v(" "),"succeeded"===t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"adapay/updateMonthMaxReceipt",expression:"'adapay/updateMonthMaxReceipt'"}],attrs:{type:"text"},on:{click:function(a){return e.onMoneyAccount(t.row)}}},[e._v("设置金额")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"绑定结算账户",visible:e.zeroVisible,width:"400px"},on:{"update:visible":function(t){e.zeroVisible=t},close:function(t){return e.onFormClose("maskForm")}}},[a("el-form",{ref:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"银行卡号",prop:"cardNo"}},[a("el-input",{attrs:{placeholder:"请输入银行卡号"},model:{value:e.maskForm.cardNo,callback:function(t){e.$set(e.maskForm,"cardNo",t)},expression:"maskForm.cardNo"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属银行",prop:"bankCode"}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择所属银行"},model:{value:e.maskForm.bankCode,callback:function(t){e.$set(e.maskForm,"bankCode",t)},expression:"maskForm.bankCode"}},e._l(e.backList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.title,value:e.value}})})),1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.zeroVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addZero("maskForm")}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"设置金额",visible:e.moneyVisible,width:"500px"},on:{"update:visible":function(t){e.moneyVisible=t},close:function(t){return e.onFormClose("moneyForm")}}},[a("el-form",{ref:"moneyForm",attrs:{model:e.moneyForm,rules:e.moneyRules,"label-width":"160px","label-position":"right"}},[a("el-form-item",{attrs:{label:"每日最大收款金额",prop:"monthMaxReceipt"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v("\n 每日最大收款金额\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("每日最大收款金额,0不限制")]),e._v(" "),a("i",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherSalary",expression:"'export/teacherSalary'"}],staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])]},proxy:!0}])},[e._v(" "),a("el-input",{attrs:{type:"number",placeholder:"请输入每日最大收款金额"},model:{value:e.moneyForm.monthMaxReceipt,callback:function(t){e.$set(e.moneyForm,"monthMaxReceipt",t)},expression:"moneyForm.monthMaxReceipt"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"满额转到收款账户",prop:"organId"}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择满额转到收款账户"},on:{change:e.onBranchChange},model:{value:e.moneyForm.organId,callback:function(t){e.$set(e.moneyForm,"organId",t)},expression:"moneyForm.organId"}},e._l(e.calcBranchList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:"满额转到收款账户",prop:"routeMemberId"}},[a("el-input",{attrs:{disabled:"",placeholder:"请输入满额转到收款账户"},model:{value:e.moneyForm.routeMemberId,callback:function(t){e.$set(e.moneyForm,"routeMemberId",t)},expression:"moneyForm.routeMemberId"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.moneyVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMaxMoney("moneyForm")}}},[e._v("确 定")])],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 汇付账号管理\n ")])}],o=(a("386d"),a("ac6a"),a("c80c")),s=(a("96cf"),a("3b8d")),i=a("db72"),l=a("333d"),c=a("da21"),u=a("2d3a"),m=a("a2be"),p=(a("e40d"),a("9724")),d=a("e3eb"),b=a.n(d),f={memberId:null,name:null,status:null},h={components:{pagination:l["a"],AccountForm:c["default"]},data:function(){return{zeroVisible:!1,backList:p["a"],rules:{limit:20,page:1,total:0,page_size:[10,20,50,100]},tableList:[],searchForm:Object(i["a"])({},f),maskRules:{cardNo:[{required:!0,message:"请输入银行卡号",trigger:"blur"}],bankCode:[{required:!0,message:"请选择所属银行",trigger:"change"}]},maskForm:{memberId:null,cardNo:null,bankCode:null},moneyVisible:!1,moneyForm:{monthMaxReceipt:null,organId:null,routeMemberId:null},moneyRules:{monthMaxReceipt:[{required:!0,message:"请输入每日最大收款金额",trigger:"blur"}],organId:[{required:!0,message:"请选择满额转分部",trigger:"change"}]},calcBranchList:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t,a=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,t.page=this.rules.page,t.rows=this.rules.limit,e.next=6,Object(u["c"])(b()(t)).then((function(e){200==e.code&&(a.tableList=e.data.rows,a.rules.total=e.data.total)}));case 6:e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),getCalcBranchList:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(m["c"])({payType:"ADAPAY"}).then((function(e){t.calcBranchList=[],200==e.code&&e.data&&e.data.forEach((function(e){t.calcBranchList.push({label:e.hfMerNo,value:e.organId,hfMerNo:e.hfMerNo})}))}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},reset:function(){this.searchForm=Object(i["a"])({},f),this.search()},onFormClose:function(e){this.$refs[e].resetFields()},onOperationAccount:function(e,t){var a="创建";"update"==e&&(a="修改"),this.$router.push({path:"/systemManager/adapayOperation",query:{type:e,row:JSON.stringify(t)}},(function(e){e.meta.title=a+"汇付账号"}))},onUpdateAccount:function(e){var t=this;this.zeroVisible=!0,this.$nextTick((function(){t.maskForm={memberId:e.memberId,cardNo:e.cardNo,bankCode:e.bankCode}}))},addZero:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(u["b"])(b()(t.maskForm)).then((function(e){200==e.code?(t.$message.success("修改结算账户成功"),t.zeroVisible=!1,t.getList()):t.$message.error(e.msg)}))}))},onBranchChange:function(e){var t=this;this.calcBranchList.forEach((function(a){a.value==e&&(t.moneyForm.routeMemberId=a.hfMerNo)}))},onMoneyAccount:function(e){var t=this;this.moneyVisible=!0,this.$nextTick((function(){t.moneyForm={id:e.id,organId:e.routeOrganId||null,monthMaxReceipt:e.monthMaxReceipt,routeMemberId:e.routeMemberId}})),this.getCalcBranchList()},addMaxMoney:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=5;break}return e.next=3,Object(u["e"])(b()(t.moneyForm)).then((function(e){200==e.code?(t.$message.success("设置金额成功"),t.moneyVisible=!1,t.getList()):t.$message.error(e.msg)}));case 3:e.next=6;break;case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},filters:{formatStatus:function(e){var t={pending:"处理中",succeeded:"成功",failed:"失败"};return t[e]}}},v=h,y=a("2877"),g=Object(y["a"])(v,r,n,!1,null,"61741792",null);t["default"]=g.exports}}]);