6aa77d5ebfb294c7edb4.js 12 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[35],{412:function(t,e,n){},459:function(t,e,n){"use strict";var r=n(412);n.n(r).a},506:function(t,e,n){"use strict";n.r(e);n(30);var r=n(3),o={data:function(){return{id:"",detailData:"",radio:"3",reason:"",company_verify_status:"未认证",show:!0}},mounted:function(){this.id=this.$route.query.id,this.getDetail()},computed:{verifying_status:function(){if(this.detailData.verifying.status_name)switch(this.detailData.verifying.status_name){case"审核通过":return"success";case"审核拒绝":return"danger";default:return"info"}}},methods:{getDetail:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,data,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,1,data={id:n,page:1},e.next=5,t.$post("/api/admin/kaifawu/getDetail",data);case 5:if(!(r=e.sent)||1!==r.status){e.next=20;break}r.data.verifying=r.data.verifying||{},t.detailData=r.data,e.t0=t.detailData.companyInfo.applyInfo.status,e.next="0"===e.t0?12:"1"===e.t0?14:"2"===e.t0?16:"3"===e.t0?18:20;break;case 12:return t.company_verify_status="未申请",e.abrupt("break",20);case 14:return t.company_verify_status="申请中",e.abrupt("break",20);case 16:return t.company_verify_status="通过",e.abrupt("break",20);case 18:return t.company_verify_status="拒绝",e.abrupt("break",20);case 20:case"end":return e.stop()}}),e)})))()},userinfo:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.location.href,window.open(e.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t));case 2:case"end":return n.stop()}}),n)})))()},woinfo:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.location.href,window.open(e.$store.state.domainConfig.siteUrl+"/wo/".concat(t));case 2:case"end":return n.stop()}}),n)})))()},returnPage:function(){return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.location.href,window.open("/main/solution/","_self");case 2:case"end":return t.stop()}}),t)})))()},companyVerifyStatus:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.location.href,window.open(e.$store.state.domainConfig.siteUrl+"/rooter/companyVerifyAuditItem?uid=".concat(t));case 2:case"end":return n.stop()}}),n)})))()},updateStatus:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,data,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return 3,r="您的解决方案"+t.title+"审核被拒绝!",data={id:t.id,result:3,auditData:r},n.next=5,e.$post("/api/admin/kaifawu/auditProvider",data);case 5:(o=n.sent)&&1===o.status&&(e.$message({message:"修改成功!",type:"success"}),e.getDetail());case 7:case"end":return n.stop()}}),n)})))()},sendEmail:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,data,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.radio,o="",o=e.reason,!e.show||0!=e.reason.length){n.next=6;break}return e.$message({message:"请输入拒绝原因!",type:"warning"}),n.abrupt("return",!1);case 6:return data={id:t.id,result:r,auditData:o},n.next=9,e.$post("/api/admin/kaifawu/auditProvider",data);case 9:(c=n.sent)&&1===c.status&&(e.$message({message:"修改成功!",type:"success"}),e.getDetail());case 11:case"end":return n.stop()}}),n)})))()},refuse:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.show=!0;case 1:case"end":return e.stop()}}),e)})))()},pass:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.show=!1;case 1:case"end":return e.stop()}}),e)})))()},jumpToDetail:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:console.log("item",t),r=t.id,window.location.href,window.open(e.$store.state.domainConfig.siteUrl+"/kaifain/s/".concat(r,".html"),"_black");case 4:case"end":return n.stop()}}),n)})))()}}},c=(n(459),n(2)),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.detailData?n("div",[n("el-row",[n("el-col",{attrs:{span:24}},[t._v("企业认证审核")])],1),t._v(" "),n("el-row",[n("el-col",{attrs:{span:16}},[n("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t.detailData.verifying&&t.detailData.verifying.icon_url}})],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(e){return t.userinfo(t.detailData.verifying.uid)}}},[t._v("用户信息")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(e){return t.woinfo(t.detailData.verifying.uid)}}},[t._v("主页")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(e){return t.returnPage()}}},[t._v("返回")])],1)],1),t._v(" "),n("div",{staticStyle:{height:"8px",background:"#F7F7F7"}}),t._v(" "),n("el-row",{staticStyle:{padding:"14px"}},[n("el-col",{attrs:{span:18}},[n("span",{staticClass:"h2-title"},[t._v("企业认证")])]),t._v(" "),n("el-col",{attrs:{span:5}},[n("el-button",{attrs:{size:"mini"}},[t._v(t._s(this.company_verify_status))]),t._v(" "),n("el-link",{attrs:{type:"primary"},on:{click:function(e){return t.companyVerifyStatus(t.detailData.verifying.uid)}}},[t._v("查看详情")])],1)],1),t._v(" "),n("div",{staticStyle:{height:"8px",background:"#F7F7F7"}}),t._v(" "),t.detailData.companyInfo.base?n("div",[n("el-row",{staticStyle:{padding:"14px"}},[n("el-col",{attrs:{span:19}},[n("span",{staticClass:"h2-title"},[t._v("基本信息")])])],1),t._v(" "),n("div",{staticStyle:{height:"2px",background:"#F7F7F7","margin-bottom":"20px"}}),t._v(" "),n("el-row",{staticStyle:{"margin-left":"14px"}},[n("el-col",{attrs:{span:2}},[n("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t.detailData.companyInfo.base.logo}})],1),t._v(" "),n("el-col",{attrs:{span:22}},[t._v("\n "+t._s(t.detailData.companyInfo.applyInfo.name)+"\n ")])],1),t._v(" "),n("br"),t._v(" "),n("el-row",{staticStyle:{"margin-left":"14px"}},[n("el-col",{attrs:{span:4}},[n("span",{staticClass:"title-text"},[t._v("企业联系人")]),n("span",{staticClass:"content-text"},[t._v("fasdf")])]),t._v(" "),n("el-col",{attrs:{span:4}},[n("span",{staticClass:"title-text"},[t._v("联系方式")]),n("span",{staticClass:"content-text"},[t._v(t._s(t.detailData.companyInfo.applyInfo.phone))])]),t._v(" "),n("el-col",{attrs:{span:4}},[n("span",{staticClass:"title-text"},[t._v("职位")]),n("span",{staticClass:"content-text"},[t._v(t._s(t.detailData.companyInfo.applyInfo.phone))])])],1),t._v(" "),n("br"),t._v(" "),n("el-row",{staticStyle:{"margin-left":"14px"}},[n("el-col",{attrs:{span:20}},[n("span",{staticClass:"title-text"},[t._v("企业介绍")]),t._v(" "),n("span",{staticClass:"content-text"},[t._v("\n "+t._s(t.detailData.companyInfo.base.description)+"\n ")])])],1)],1):t._e(),t._v(" "),n("div",{staticStyle:{height:"8px",background:"#F7F7F7","margin-top":"10px","margin-bottom":"10px"}}),t._v(" "),n("el-row",[n("el-row",{staticStyle:{padding:"14px 20px","font-size":"16px","font-weight":"500",color:"rgba(29,42,58,1)","line-height":"22px"}},[t._v("\n 已认证解决方案\n ")]),t._v(" "),n("div",{staticStyle:{"padding-left":"20px"}},t._l(t.detailData.verifyList,(function(e){return n("el-row",{key:e.id,staticStyle:{"margin-bottom":"18px",padding:"10px",cursor:"pointer"},nativeOn:{click:function(n){return t.jumpToDetail(e)}}},[n("el-col",{attrs:{span:3}},[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.images}})],1),t._v(" "),n("el-col",{attrs:{span:15}},[n("h3",[t._v(t._s(e.title))]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("方案简介:"+t._s(e.description))]),t._v(" "),n("p",[t._v("成功案例:"+t._s(e.successCase||"暂未添加"))])]),t._v(" "),n("el-col",{attrs:{span:6}},[n("p",[t._v("当前状态\n "),n("el-button",{attrs:{size:"mini"}},[t._v(t._s(e.status_name))])],1),t._v(" "),n("br"),t._v(" "),n("p",[t._v("\n 修改状态\n "),n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(n){return n.stopPropagation(),t.updateStatus(e)}}},[t._v("不通过")])],1)])],1)})),1)],1),t._v(" "),n("div",{staticStyle:{height:"8px",background:"#F7F7F7","margin-top":"10px","margin-bottom":"10px"}}),t._v(" "),n("div",{staticStyle:{"padding-left":"20px"}},[n("el-row",[n("el-row",{staticStyle:{padding:"5px","margin-bottom":"10px"}},[n("span",{staticClass:"h2-title"},[t._v("当前申请")])]),t._v(" "),n("el-row",{staticStyle:{padding:"10px","box-shadow":"0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)",cursor:"pointer"},nativeOn:{click:function(e){return t.jumpToDetail(t.detailData.verifying)}}},[n("el-col",{attrs:{span:3}},[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.detailData.verifying.images}})],1),t._v(" "),n("el-col",{attrs:{span:15}},[n("h3",[t._v(t._s(t.detailData.verifying.title))]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("方案简介:"+t._s(t.detailData.verifying.description))]),t._v(" "),n("p",[t._v("成功案例:"+t._s(t.detailData.verifying.successCase||"暂未添加"))])]),t._v(" "),n("el-col",{attrs:{span:6}},[n("p",[t._v("当前状态:\n "),n("el-tag",{attrs:{type:t.verifying_status}},[t._v(" "+t._s(t.detailData.verifying.status_name))])],1)])],1)],1),t._v(" "),n("br"),t._v(" "),n("el-row",[n("el-radio",{attrs:{label:"3"},on:{change:function(e){return t.refuse()}},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("拒绝")]),t._v(" "),n("el-radio",{attrs:{label:"2"},on:{change:function(e){return t.pass()}},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("通过")])],1),t._v(" "),n("br"),t._v(" "),n("el-row",[n("h4",{staticStyle:{"border-bottom":"solid 1px brown"}},[t._v("邮件内容")]),t._v(" "),t.show?n("el-row",{attrs:{id:"emailRefuseInfo"}},[n("p",[t._v("Hi,"+t._s(t.detailData.verifying.nickname)+",您好!")]),t._v(" "),n("p",[t._v("谢谢您的申请")]),t._v(" "),n("p",[t._v("您的解决方案 "+t._s(t.detailData.verifying.title)+" 暂时不符合我们的认证标准,主要原因是:")]),t._v(" "),n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}}),t._v(" "),n("p",[t._v("您可以满足以上要求后,继续申请认证.")]),t._v(" "),n("p",[t._v("谢谢您的支持!")]),t._v(" "),n("p",[t._v("程序员客栈敬上:)")])],1):n("el-row",{attrs:{id:"emailPassInfo"}},[n("p",[t._v("Hi,"+t._s(t.detailData.verifying.nickname)+",您好!")]),t._v(" "),n("p",[t._v("恭喜您的解决方案 "+t._s(t.detailData.verifying.title)+" 通过审核!")]),t._v(" "),n("p",[t._v("谢谢您的支持!")]),t._v(" "),n("p",[t._v("程序员客栈敬上:)")])]),t._v(" "),n("br"),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.sendEmail(t.detailData.verifying)}}},[t._v("确定并发送邮件")])],1)],1),t._v(" "),n("br"),t._v(" "),n("el-row",{staticStyle:{"border-bottom":"solid 3px green"}},[t._v("\n 审核记录\n ")]),t._v(" "),n("br"),t._v(" "),t._l(t.detailData.audit_record,(function(e){return n("el-row",{key:e.id,staticStyle:{"box-shadow":"0 2px 4px #ccc, 0 0 6px #ccc"}},[n("el-col",{attrs:{span:18}},[n("h4",{staticStyle:{"border-bottom":"solid 1px brown",padding:"10px"}},[t._v(t._s(e.status_name))])]),t._v(" "),n("el-col",{attrs:{span:6}},[n("p",{staticStyle:{"border-bottom":"solid 1px brown",padding:"10px"}},[t._v(t._s(e.nickname)+" "+t._s(e.audit_time))])]),t._v(" "),n("p",{staticStyle:{padding:"10px"}},[t._v("邮件内容")]),t._v(" "),n("div",{staticStyle:{"background-color":"#ccc",padding:"10px"},domProps:{innerHTML:t._s(e.audit_data)}},[t._v("\n "+t._s(e.audit_data)+"\n ")])],1)}))],2):t._e()}),[],!1,null,"927f4430",null);e.default=component.exports}}]);