chunk-28512df2.e4e4779a.js 9.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28512df2"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(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,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,s,i,t);r(o),l<t?n(e):a&&"function"===typeof a&&a()};u()}},"5bdf":function(e,t,a){},ad73:function(e,t,a){"use strict";a("5bdf")},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return i}));var n=a("ade3"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),o=a.n(r);var s=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var n=e[a],r=a.toLocaleUpperCase();t.push({label:n,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},i=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(n["a"])(t,a[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(r):""),Object(n["a"])(t,a[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(r):""),t):{}}},f3a6:function(e,t,a){"use strict";a.r(t);var n=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:"scope.row.state == 1 ? 'tenantInfo/opsState/stop' : 'tenantInfo/opsState/open'"}],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()]}}])})],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"}})],1)},r=[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("15fd")),s=(a("96cf"),a("1da1")),i=a("5530"),c=a("333d"),l=a("641c"),u=a("a21b"),p=a("ed08"),m=a("61f7"),d={search:null,state:null,createTimer:[],payState:null,createdName:null},f={components:{pagination:c["a"],QrCode:l["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(i["a"])({},d),qrcodeStatus:!1,codeUrl:null}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.createTimer,n=Object(o["a"])(t,["createTimer"]),e.next=4,Object(u["e"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},n),Object(p["a"])(a,["startDate","endDate"],"YYYY-MM-DD")),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}));case 4:r=e.sent,this.pageInfo.total=r.data.total,this.tableList=r.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(i["a"])({},d),this.search()},onQrCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(m["f"])()+"/#/tenantPay/"+e.id},changeOrgan:function(e){var t=this,a=1==e.state?"停用":"启用",n=1==e.state?2:1;this.$confirm("是否".concat(a,"?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(u["d"])({id:e.id,state:n});case 3:t.$message.success(a+"成功"),t.getList(),r.next=9;break;case 7:r.prev=7,r.t0=r["catch"](0);case 9:case"end":return r.stop()}}),r,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+"机构"}))}}},v=f,h=(a("ad73"),a("2877")),b=Object(h["a"])(v,n,r,!1,null,"140dcaa6",null);t["default"]=b.exports}}]);