(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{449:function(t,e,n){},517:function(t,e,n){"use strict";var r=n(449);n.n(r).a},589:function(t,e,n){"use strict";n.r(e);n(16),n(31);var r=n(3),o={data:function(){return{props:{multiple:!0},id:"",detailData:"",radio:"3",reason:"",company_verify_status:"未认证",show:!0,showEditStatus:!1,form:{},formLabelWidth:"120px",industries:[],tech_types:[],bindCatForm:{},bindTagForm:{},bindCatDialog:!1,bindTagDialog:!1,choiceDialog:!1,bindCatData:[],bindTagData:[],catData:[],class_map:[],serviceTypeData:[],tag_map:{},is_choice:!1,choice:!1,statusData:[{id:"0",name:"草稿"},{id:"1",name:"审核"},{id:"2",name:"通过"},{id:"3",name:"拒绝"},{id:"4",name:"下架"}],dimensionData:[{id:"1",name:"产品"},{id:"2",name:"集合"}],tempTitle:"",tempDescription:"",tempStatus:"",tempDimension:""}},mounted:function(){this.id=this.$route.query.id,this.getDetail(),this.getOptions()},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"}},checked_status:function(t){if(t)switch(t){case"审核通过":return"success";case"审核拒绝":return"danger";default:return"info"}}},methods:{showEdit:function(){event.stopPropagation(),this.showEditStatus=!0},updateSolution: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:if(t.form.industry){e.next=3;break}return t.$message.error("请选择行业"),e.abrupt("return");case 3:return t.form.tech_type||t.$message.error("请选择技术类型"),e.next=6,t.$post("/api/admin/kaifawu/changeTag",{id:t.id,industry:t.form.industry,tech_type:t.form.tech_type});case 6:1===e.sent.status&&(t.showEditStatus=!1,t.$message.success("修改成功"),t.getDetail());case 8:case"end":return e.stop()}}),e)})))()},getOptions:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/kaifawu/getOptions");case 2:n=e.sent,t.industries=n.data.industries,t.tech_types=n.data.tech_types;case 5:case"end":return e.stop()}}),e)})))()},getDetail:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,data,r,o,c,l,i,d,m,v,f,_,h,y,w;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=25;break}r.data.verifying=r.data.verifying||{},1==r.data.verifying.is_choice?(t.is_choice=!0,t.choice=!0):(t.is_choice=!1,t.choice=!1),t.detailData=r.data,t.tempTitle=t.detailData.verifying.title,t.tempDescription=t.detailData.verifying.description,t.tempStatus=t.detailData.verifying.status,t.tempDimension=t.detailData.verifying.dimension,e.t0=t.detailData.companyInfo.applyInfo.status,e.next="0"===e.t0?17:"1"===e.t0?19:"2"===e.t0?21:"3"===e.t0?23:25;break;case 17:return t.company_verify_status="未申请",e.abrupt("break",25);case 19:return t.company_verify_status="申请中",e.abrupt("break",25);case 21:return t.company_verify_status="通过",e.abrupt("break",25);case 23:return t.company_verify_status="拒绝",e.abrupt("break",25);case 25:return e.next=27,t.$post("/api/admin/kaifain/getClasses",data);case 27:return(o=e.sent)&&1===o.status&&(t.bindCatForm.classes=o.data.classes,t.bindCatForm.serviceTypes=o.data.serviceTypes),e.next=31,t.$post("/api/admin/kaifain/getSpCat",data);case 31:for((c=e.sent)&&1===c.status&&(t.bindCatData=c.data.list),l=t.bindCatForm.classes,i=0;i0)for(i=0;i