(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cf4f6"],{"62bf":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("CaseForm",{key:this.$route.query.bizId,ref:"caseinfo",attrs:{fminfo:e.metaInfo,noExpandAuth:""},scopedSlots:e._u([{key:"default",fn:function(t){return[s("Button",{on:{click:e.subcaseclick}},[e._v("提交")])]}}])})],1)},a=[],n=(s("9a33"),s("0086")),o=s("db7f"),i=s("7e1e"),l={name:"creatScheme",data:function(){return{metaInfos:{ICP:{name:"ICP许可证申请方案",main:[{title:"方案信息",key:"baseinfo",cols:1,ctls:[{type:"label",label:"服务类型",prop:"business_type_name",style:"width: 60%; transform: translateX(10px)",disabled:!1,rules:[]},{type:"input",prop:"company_name",label:"公司名称",placeHolder:"请输入企业名称",style:"width: 60%; ",disabled:!1,rules:[{required:!0,message:"请输入企业名称",trigger:"blur"}]},{type:"adds-select",label:"申请区域",isMulti:!1,prop:"address",style:"width: 60%;",productName:"icp",rules:[{required:!0,message:"请选择申请区域",trigger:"blur"}]},{type:"switch",label:"年报服务",prop:"annual_report",opentext:"是",closetext:"否",style:"",rules:[],remark:"注：该服务包含一个ICP许可证有效期限内（5年）年报服务。"},{type:"textarea",label:"方案备注",prop:"remark",placeHolder:"请输入该方案备注",style:"width: 60%; transform: translateX(10px)",disabled:!1,rules:[]}]}],lists:[]},EDI:{name:"EDI许可证申请方案",main:[{title:"方案信息",key:"baseinfo",cols:1,ctls:[{type:"label",label:"服务类型",prop:"business_type_name",style:"width: 60%; transform: translateX(10px)",disabled:!1,rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",prop:"company_name",label:"公司名称",placeHolder:"请输入企业名称",style:"width: 60%; ",disabled:!1,rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"adds-select",label:"申请区域",isMulti:!1,prop:"address",productName:"edi",style:"width: 60%;",rules:[{required:!0,message:"请选择申请区域",trigger:"blur"}]},{type:"switch",label:"年报服务",prop:"annual_report",opentext:"是",closetext:"否",style:"",rules:[],remark:"注：该服务包含一个EDI许可证有效期限内（5年）年报服务。"},{type:"textarea",label:"方案备注",prop:"remark",placeHolder:"请输入该方案其他备注",style:"width: 60%; transform: translateX(10px)",disabled:!1,rules:[]}]}],lists:[]}},bizType:this.$route.query.type}},components:{CaseForm:n["a"]},mounted:function(){this.initDataSource()},computed:{metaInfo:function(){return this.metaInfos[this.bizType]}},watch:{$route:function(e,t){this.initDataSource()}},methods:{initDataSource:function(){var e=this;this.bizType=this.$route.query.type,this.$nextTick((function(){e.$refs.caseinfo.formModel.business_type_name=o["a"]["business_type"][e.bizType],"update"===e.$route.query.operation&&Object(i["q"])({bizopt_id:e.$route.query.bizId}).then((function(t){var s=t.data;0===s.status?(s=s.data,e.$refs.caseinfo.formModel.company_name=s.scheme_info.companyName,e.$refs.caseinfo.formModel.address="".concat(s.scheme_info.addressCode,"-").concat(s.scheme_info.address),e.$refs.caseinfo.formModel.annual_report=s.scheme_info.annual_report,e.$refs.caseinfo.formModel.remark=s.remark_info):(console.log(s),e.$Message.error("获取数据错误"))}))}))},subcaseclick:function(){var e=this;this.$refs.caseinfo.validate((function(t){if(t){var s=e.$refs.caseinfo.formModel;s={scheme_info:{address:s.address.split("-")[1],addressCode:s.address.split("-")[0],companyName:s.company_name,annual_report:s.annual_report},remark_info:s.remark,bizopt_id:e.$route.query.bizId},Object(i["g"])(s).then((function(t){var s=t.data;0===s.status?(e.$Message.success("当前操作已完成"),e.$router.push({name:"wailtingDispose"})):e.$Message.error(s.msg)}))}}))}}},u=l,d=s("4023"),p=Object(d["a"])(u,r,a,!1,null,null,null);t["default"]=p.exports}}]);