1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c108a3c"],{"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 o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var s=n(),i=e-s,l=20,c=0;t="undefined"===typeof t?500:t;var p=function e(){c+=l;var n=Math.easeInOutQuad(c,s,i,t);o(n),c<t?r(e):a&&"function"===typeof a&&a()};p()}},"7b19":function(e,t,a){"use strict";a("8e81")},"868a":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.protocolVersions}},[a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"协议名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractName||e.name)+" "+e._s(t.row.version?"v"+t.row.version:null))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签署时间",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onDownloadProtocol(t.row)}}},[e._v("下载")])],1)]}}])})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$listeners.close()}}},[e._v("取 消")])],1)],1)},o=[],n={name:"protocolModel",props:{name:{type:String,default:"产品与服务协议"},protocolVersions:{type:[Array,Object],default:function(){return[]}}},methods:{onDownloadProtocol:function(e){window.location.href=e.url}}},s=n,i=(a("7b19"),a("2877")),l=Object(i["a"])(s,r,o,!1,null,"07e9e40c",null);t["a"]=l.exports},"8e81":function(e,t,a){},"9d64":function(e,t,a){e.exports=a.p+"static/img/logo.ae7b11a3.png"},c91b:function(e,t,a){},f3a6: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",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,saveKey:"platformServiceManager",model:e.searchForm},on:{submit:e.search,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[a("el-form-item",{attrs:{rules:[]}},[a("el-input",{attrs:{placeholder:"机构编号/名称/电话"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"createTimer"}},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.createTimer,callback:function(t){e.$set(e.searchForm,"createTimer","string"===typeof t?t.trim():t)},expression:"searchForm.createTimer"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"createdName"}},[a("el-input",{attrs:{placeholder:"请输入添加人"},model:{value:e.searchForm.createdName,callback:function(t){e.$set(e.searchForm,"createdName",t)},expression:"searchForm.createdName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"payState"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择支付状态",clearable:""},model:{value:e.searchForm.payState,callback:function(t){e.$set(e.searchForm,"payState","string"===typeof t?t.trim():t)},expression:"searchForm.payState"}},[a("el-option",{attrs:{label:"未缴费",value:0}}),e._v(" "),a("el-option",{attrs:{label:"已缴费",value:1}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"state"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择机构状态",clearable:""},model:{value:e.searchForm.state,callback:function(t){e.$set(e.searchForm,"state","string"===typeof t?t.trim():t)},expression:"searchForm.state"}},[a("el-option",{attrs:{label:"启动",value:1}}),e._v(" "),a("el-option",{attrs:{label:"停用",value:2}})],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:"tenantInfo/add",expression:"'tenantInfo/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.openService("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:{align:"center",prop:"id",label:"机构编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"机构名称",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"联系人",prop:"contacts"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"联系人电话",prop:"phone"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"服务",prop:"serveName"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"人数",prop:"studentUpLimit"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.studentCount)+"/"+e._s(t.row.studentUpLimit)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"有效期到期时间",prop:"expireDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimer")(t.row.expireDate))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费状态",prop:"payState"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("organPayState")(t.row.payState))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"添加人",prop:"createdName"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"机构状态",prop:"state"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("organState")(t.row.state))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"tenantInfo/info",expression:"'tenantInfo/info'"}],attrs:{type:"text"},on:{click:function(a){return e.openService("look",t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"tenantInfo/update",expression:"'tenantInfo/update'"}],attrs:{type:"text"},on:{click:function(a){return e.openService("update",t.row)}}},[e._v("修改")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:1==t.row.state?"tenantInfo/opsState/stop":"tenantInfo/opsState/open",expression:"\n scope.row.state == 1\n ? 'tenantInfo/opsState/stop'\n : 'tenantInfo/opsState/open'\n "}],attrs:{type:"text"},on:{click:function(a){return e.changeOrgan(t.row)}}},[e._v(e._s(1==t.row.state?"停用":"启用"))]),e._v(" "),1!=t.row.payState?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onQrCode(t.row)}}},[e._v("缴费二维码")]):e._e(),e._v(" "),1===t.row.payState&&e.$helpers.permission("tenantContractRecord/queryPage")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onDownloadProtocol(t.row)}}},[e._v("下载协议")]):e._e(),e._v(" "),e.$helpers.permission("hfMerchantConfig/queryByTenantId")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.setHfMerchant(t.row)}}},[e._v("汇付账号设置")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{saveKey:"platformServiceManager",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("qr-code",{attrs:{title:"机构缴费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"协议下载",visible:e.protocolVisible,width:"650px"},on:{"update:visible":function(t){e.protocolVisible=t}}},[e.protocolVisible?a("protocol-model",{attrs:{protocolVersions:e.protocolVersions},on:{close:function(t){e.protocolVisible=!1}}}):e._e()],1),e._v(" "),a("hfPayCount",{ref:"hfPayCount"})],1)},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 机构列表\n ")])}],n=(a("386d"),a("c7eb")),s=a("15fd"),i=(a("96cf"),a("1da1")),l=a("5530"),c=a("333d"),p=a("641c"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"汇付账号设置",visible:e.nextVisible,width:"650px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"170px"}},[a("el-form-item",{attrs:{label:"汇付ApiKey",prop:"apiKey",rules:[{required:!0,message:"请输入汇付ApiKey"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入汇付ApiKey"},model:{value:e.form.apiKey,callback:function(t){e.$set(e.form,"apiKey",t)},expression:"form.apiKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"汇付AppId",prop:"appId",rules:[{required:!0,message:"请输入汇付AppId"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入汇付AppId"},model:{value:e.form.appId,callback:function(t){e.$set(e.form,"appId",t)},expression:"form.appId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户Key",prop:"merKey",rules:[{required:!0,message:"请输入商户Key"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入商户Key"},model:{value:e.form.merKey,callback:function(t){e.$set(e.form,"merKey",t)},expression:"form.merKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"汇付MockApiKey",prop:"mockApiKey",rules:[{required:!0,message:"请输入汇付MockApiKey"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入汇付MockApiKey"},model:{value:e.form.mockApiKey,callback:function(t){e.$set(e.form,"mockApiKey",t)},expression:"form.mockApiKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"平台收款子账户号",prop:"platformPayeeMemberId",rules:[{required:!0,message:"请输入平台收款子账户号"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入平台收款子账户号"},model:{value:e.form.platformPayeeMemberId,callback:function(t){e.$set(e.form,"platformPayeeMemberId",t)},expression:"form.platformPayeeMemberId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户私钥",prop:"rsaPrivateKey",rules:[{required:!0,message:"请输入商户私钥"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入商户私钥"},model:{value:e.form.rsaPrivateKey,callback:function(t){e.$set(e.form,"rsaPrivateKey",t)},expression:"form.rsaPrivateKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"汇付公钥",prop:"rsaPublicKey",rules:[{required:!0,message:"请输入汇付公钥"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入汇付公钥"},model:{value:e.form.rsaPublicKey,callback:function(t){e.$set(e.form,"rsaPublicKey",t)},expression:"form.rsaPublicKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"微信公众号开发者ID",prop:"wxAppId",rules:[{required:!0,message:"请输入微信公众号开发者ID"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入微信公众号开发者ID"},model:{value:e.form.wxAppId,callback:function(t){e.$set(e.form,"wxAppId",t)},expression:"form.wxAppId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"微信公众号开发者密码",prop:"wxAppSecret",rules:[{required:!0,message:"请输入微信公众号开发者密码"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入微信公众号开发者密码"},model:{value:e.form.wxAppSecret,callback:function(t){e.$set(e.form,"wxAppSecret",t)},expression:"form.wxAppSecret"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.nextVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},m=[],f=(a("bc3a"),a("5f87"),a("3908"),a("ed08")),d=a("a21b"),b={data:function(){return{form:{apiKey:"",appId:"",createTime:"",expendParams:"",id:0,merKey:"",mockApiKey:"",platformPayeeMemberId:"",rsaPrivateKey:"",rsaPublicKey:"",tenantId:0,updateTime:"",wxAppId:"",wxAppSecret:""},nextVisible:!1,isNew:!1,activeId:""}},created:function(){},mounted:function(){},methods:{init:function(e){this.form.tenantId=e.id,this.activeId=e.id,this.gethfInfo(),this.nextVisible=!0},gethfInfo:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["d"])(this.form.tenantId);case 3:t=e.sent,t.data?(this.form=Object(l["a"])(Object(l["a"])({},this.form),t.data),this.isNew=!1):(this.form={apiKey:"",appId:"",createTime:"",expendParams:"",id:0,merKey:"",mockApiKey:"",platformPayeeMemberId:"",rsaPrivateKey:"",rsaPublicKey:"",tenantId:0,updateTime:"",wxAppId:"",wxAppSecret:""},this.$refs.form.resetFields(),this.form.tenantId=this.activeId,this.isNew=!0),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),submitInfo:function(){var e=this;this.$refs.form.validate(function(){var t=Object(i["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=19;break}if(t.prev=1,!e.isNew){t.next=9;break}return t.next=5,Object(d["a"])(Object(l["a"])({},e.form));case 5:t.sent,e.$message.success("新增成功"),t.next=13;break;case 9:return t.next=11,Object(d["e"])(Object(l["a"])({},e.form));case 11:t.sent,e.$message.success("修改成功");case 13:e.nextVisible=!1,t.next=19;break;case 16:t.prev=16,t.t0=t["catch"](1),console.log(t.t0);case 19:case"end":return t.stop()}}),t,null,[[1,16]])})));return function(e){return t.apply(this,arguments)}}())}}},v=b,h=a("2877"),y=Object(h["a"])(v,u,m,!1,null,"ff0ef436",null),g=y.exports,_=a("868a"),w=a("61f7"),x=["createTimer"],k={search:null,state:null,createTimer:[],payState:null,createdName:null},I={components:{pagination:c["a"],QrCode:p["a"],protocolModel:_["a"],hfPayCount:g},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(l["a"])({},k),qrcodeStatus:!1,codeUrl:null,protocolVisible:!1,protocolVersions:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(){var t,a,r,o;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.createTimer,r=Object(s["a"])(t,x),e.next=4,Object(d["j"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},r),Object(f["d"])(a,["startDate","endDate"],"YYYY-MM-DD")),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}));case 4:o=e.sent,this.pageInfo.total=o.data.total,this.tableList=o.data.rows,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.pageInfo.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},reset:function(){this.searchForm=Object(l["a"])({},k),this.search()},onDownloadProtocol:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(t){var a,r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["f"])({tenantId:t.id});case 3:r=e.sent,console.log(r),this.protocolVersions=(null===(a=r.data)||void 0===a?void 0:a.rows)||[],this.protocolVisible=!0,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),onQrCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(w["g"])()+"/#/tenantPay/"+e.id},changeOrgan:function(e){var t=this,a=1==e.state?"停用":"启用",r=1==e.state?2:1;this.$confirm("是否".concat(a,"?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(i["a"])(Object(n["a"])().mark((function o(){return Object(n["a"])().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,Object(d["i"])({id:e.id,state:r});case 3:t.$message.success(a+"成功"),t.getList(),o.next=9;break;case 7:o.prev=7,o.t0=o["catch"](0);case 9:case"end":return o.stop()}}),o,null,[[0,7]])}))))},openService:function(e,t){var a="创建";"update"==e?a="修改":"look"==e&&(a="查看"),this.$router.push({path:"/platformManager/organOperation",query:{type:e,id:(null===t||void 0===t?void 0:t.id)||null}},(function(e){e.meta.title=a+"机构"}))},setHfMerchant:function(e){console.log("setHfMerchant",e),this.$refs.hfPayCount.init(e)}}},S=I,O=(a("f831"),Object(h["a"])(S,r,o,!1,null,"1588ef02",null));t["default"]=O.exports},f831:function(e,t,a){"use strict";a("c91b")}}]);
|