(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9e26ef0"],{4697:function(t,e,a){"use strict";a("a83b")},a83b:function(t,e,a){},f1fb:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._m(0),a("div",{staticClass:"app-section-container"},[a("div",{staticClass:"app-section-container-left"},[a("tabbar-left",{attrs:{position:t.position},on:{tabSwitch:t.tabSwitch}},t._l(t.tabbarOptions,(function(t){return a("tabbar-item",{key:t.value,attrs:{label:t.label,"icon-name":t.iconName,name:t.value,disabled:t.disabled}})})),1)],1),a("div",{staticClass:"app-section-container-right"},[a("Form",{directives:[{name:"show",rawName:"v-show",value:"1"==t.position,expression:"position == '1'"}],attrs:{form:t.protocolForm},on:{"update:form":function(e){t.protocolForm=e},submit:t.submitForm,goBack:t.goBack}}),a("CustomTextTemplate",{directives:[{name:"show",rawName:"v-show",value:"2"==t.position,expression:"position == '2'"}],attrs:{customTextTemplate:t.customTextTemplateList},on:{submit:t.submitFormField,"update:customTextTemplate":function(e){t.customTextTemplateList=e},"update:custom-text-template":function(e){t.customTextTemplateList=e},goBack:t.goBack}})],1)])])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container--hd pb-20 mb20"},[a("h3",[t._v("协议新增")])])}],n=(a("2397"),a("ac6a"),a("96cf"),a("1da1")),r=a("d4ec"),c=a("bee2"),s=a("99de"),u=a("7e84"),l=a("262e"),p=a("9ab4"),m=a("60a3"),b=a("ad3d"),d=a("cc94"),f=a("7d41"),v=a("1e5e"),h=a("3a9d");function _(t,e,a){return e=Object(u["a"])(e),Object(s["a"])(t,w()?Reflect.construct(e,a||[],Object(u["a"])(t).constructor):e.apply(t,a))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var O=function(t){function e(){var t;return Object(r["a"])(this,e),t=_(this,e,arguments),t.protocolForm={trade_type_id:"",title:"",status:1,protocol_id:null,protocol:"",mobile_sign:0,is_protocol:1},t.position="1",t.customTextTemplateList=[],t.tabbarOptions=[{label:"基本信息",value:"1",iconName:"icon_project",disabled:!1},{label:"采集项配置",value:"2",iconName:"icon_project",disabled:!0}],t}return Object(l["a"])(e,t),Object(c["a"])(e,[{key:"goBack",value:function(){this.$router.back()}},{key:"tabSwitch",value:function(t){this.position=t}},{key:"submitForm",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["a"])(e);case 3:a=t.sent,o=a.data,this.protocolForm.protocol_id=o.protocol_id,this.position="2",this.tabbarOptions[1].disabled=!1,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"submitFormField",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=JSON.parse(JSON.stringify(this.customTextTemplateList)),e.forEach((function(t,e){t.sort=e,t.field_id=0,t.field_select_value=JSON.stringify(t.field_select_value)})),t.next=4,Object(h["b"])({protocol_id:this.protocolForm.protocol_id,field_info:JSON.stringify(e)});case 4:this.$message.success("操作成功"),this.goBack();case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),e}(m["i"]);O=Object(p["a"])([Object(m["a"])({name:"EditProtocol",components:{Form:f["default"],TabbarLeft:b["a"],tabbarItem:d["a"],CustomTextTemplate:v["default"]}})],O);var T=O,k=T,x=(a("4697"),a("2877")),g=Object(x["a"])(k,o,i,!1,null,"71927bb9",null);e["default"]=g.exports}}]);