(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d4f7e41"],{"4cb5":function(e,t,r){"use strict";var a=r("897f"),s=r.n(a);s.a},"897f":function(e,t,r){},a30a:function(e,t,r){"use strict";var a=r("07db"),s={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush"};t["a"]=Object(a["a"])(s,"/hb-manage-web")},d1a4:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{padding:"20px"}},[r("h3",{staticClass:"model-title"},[e._v("\n    企业信息\n    "),r("el-button",{attrs:{type:"text"},on:{click:e.onRefresh}},[e._v("刷新企业")])],1),r("el-form",{attrs:{"label-width":"140px"}},[r("el-form-item",{attrs:{label:"小程序版本"}},[e._v("免费版")]),r("el-form-item",{attrs:{label:"企业名称"}},[r("span",[e._v(e._s(e.enterpriseDetail.wxEnterpriseName))]),r("el-tag",{staticStyle:{margin:"0 10px"},attrs:{type:"verified"==e.enterpriseDetail.corpType?"":"info",effect:"plain"}},[e._v("\n        "+e._s("verified"==e.enterpriseDetail.corpType?"已认证":"未认证")+"\n      ")]),r("span",{staticClass:"end-time"},[e._v("认证到期 "+e._s(e._f("timeStampToYmd")(e.enterpriseDetail.verifiedEndTime)))])],1),r("el-form-item",{attrs:{label:"企业ID"}},[e._v(e._s(e.enterpriseDetail.corpId||"--"))]),r("el-form-item",{attrs:{label:"行业类型"}},[e._v(e._s(e.enterpriseDetail.corpIndustry||"--"))]),r("el-form-item",{attrs:{label:"应用可见范围"}},[e._v("\n      "+e._s(Array.isArray(e.enterpriseDetail.displayRange)&&e.enterpriseDetail.displayRange.length>0?e.enterpriseDetail.displayRange.map((function(e){return e.name})).join("，"):"--")+"\n    ")])],1),Array.isArray(e.enterpriseDetail.secret)&&e.enterpriseDetail.secret.length>0?[r("h3",{staticClass:"model-title"},[e._v("好办自建应用")]),e._l(e.enterpriseDetail.secret,(function(t){return r("div",{key:t.agentId,staticClass:"hb-app"},[r("div",{staticClass:"hb-app-name"},[e._v(e._s(t.secretName))]),r("el-form",{staticClass:"hb-app-info",attrs:{"label-width":"150px"}},[r("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Agentld"}},[e._v(e._s(t.agentId))]),r("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Secret"}},[e._v(e._s(t.secretVal))]),r("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"应用可见范围"}},[e._v("\n          "+e._s(Array.isArray(t.displayRange)&&t.displayRange.length>0?t.displayRange.map((function(e){return e.name})).join("，"):"--")+"\n        ")])],1)],1)}))]:e._e(),r("h3",{staticClass:"model-title"},[e._v("授权信息")]),r("el-table",{attrs:{data:e.enterpriseDetail.enterpriseList}},[r("el-table-column",{attrs:{label:"授权商户"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return r("div",{staticClass:"store-info"},[a.enterpriseLogo?r("div",{staticClass:"store-logo"},[r("img",{attrs:{src:a.enterpriseLogo,alt:""}})]):e._e(),r("span",{staticClass:"store-name"},[e._v(e._s(a.enterpriseName))])])}}])}),r("el-table-column",{attrs:{label:"门店绑定授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[0==a.bindStoreMode?r("span",[e._v("所有门店")]):r("el-button",{attrs:{type:"text"}},[e._v("\n          "+e._s(a.bindCount)+e._s(1==a.bindStoreMode?"个分组":2==a.bindStoreMode?"家门店":"")+"\n        ")])]}}])}),r("el-table-column",{attrs:{label:"门店共享授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[0==a.shareStoreMode?r("span",[e._v("所有门店")]):r("el-button",{attrs:{type:"text"}},[e._v("\n          "+e._s(a.shareCount)+e._s(1==a.shareStoreMode?"个分组":2==a.shareStoreMode?"家门店":"")+"\n        ")])]}}])})],1)],2)},s=[],i=r("a30a"),n=i["a"].getEnterpriseDetail,l=i["a"].refreshEnterpriseInfo,o={name:"enterprise-detail",data:function(){return{bread:[{path:"/enterprise-list",name:"企业列表"},{name:"查看"}],enterpriseId:"",enterpriseDetail:{}}},created:function(){var e=this.$route.query.enterpriseId;if(!e)return this.$router.go(-1);this.enterpriseId=e,this.$emit("updateBread",this.bread)},methods:{getEnterpriseDetail:function(){var e=this;n({wxEnterpriseId:this.enterpriseId}).then((function(t){e.getEnterpriseDetail=t.result||{}}))},onRefresh:function(){l().then(this.getEnterpriseDetail)}}},p=o,d=(r("4cb5"),r("2877")),c=Object(d["a"])(p,a,s,!1,null,"44e3a286",null);t["default"]=c.exports}}]);