(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["OrderProduct~f71cff67"],{"43f7":function(t,e,n){},"68d0":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"theme-template"},[n("h2",[t._v(t._s(t.$lang.commodity_order_settings))]),n("el-row",{staticClass:"topform_wrap",attrs:{gutter:15}},[n("el-form",{ref:"orderForm",staticClass:"mt-20",attrs:{model:t.orderForm,"label-width":"100px","label-position":"top"}},[n("el-form-item",{attrs:{label:t.$lang.phone_binding,prop:"custom_invoice_id_start"}},[n("el-switch",{attrs:{"active-value":"1","inactive-value":"0","active-text":t.$lang.phone_binding_active},model:{value:t.orderForm.buy_product_must_bind_phone,callback:function(e){t.$set(t.orderForm,"buy_product_must_bind_phone",e)},expression:"orderForm.buy_product_must_bind_phone"}})],1),n("el-form-item",{attrs:{label:t.$lang.compulsory_real_name_authentication,prop:"certifi_isrealname"}},[n("el-switch",{attrs:{"active-value":"1","inactive-value":"0","active-text":t.$lang.compulsory_real_name_authentication_active},model:{value:t.orderForm.certifi_isrealname,callback:function(e){t.$set(t.orderForm,"certifi_isrealname",e)},expression:"orderForm.certifi_isrealname"}})],1)],1)],1),n("div",{staticClass:"bottomOperationAdd"},[n("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.submitForm}},[t._v(t._s(t.$lang.save_the_changes))]),n("el-button",{attrs:{size:"small"},on:{click:t.resetForm}},[t._v(t._s(t.$lang.cancel_changes))])],1)],1)},a=[],o=n("ce3c"),i={metaInfo:{title:window.zjmf_cw_lang.commodity_order_settings},data:function(){return{btnLoading:!1,orderForm:{buy_product_must_bind_phone:"",certifi_isrealname:""},themes_templates:[]}},mounted:function(){this.getData()},methods:{submitForm:function(){var t=this;this.btnLoading=!0,Object(o["f"])(this.orderForm).then((function(e){200!==e.data.status?(t.$message({message:e.data.msg,type:"error"}),t.btnLoading=!1):(t.$message({message:e.data.msg,type:"success"}),t.getData(),t.btnLoading=!1)}))},resetForm:function(){this.$refs.orderForm.resetFields(),this.getData()},getData:function(){var t=this,e=[];for(var n in this.orderForm)e.push(n);Object(o["a"])({param:e}).then((function(e){200!==e.data.status?t.$message({message:e.data.msg,type:"error"}):t.orderForm=e.data.data}))}}},c=i,s=(n("ac7a"),n("2877")),u=Object(s["a"])(c,r,a,!1,null,"241daf87",null);e["default"]=u.exports},ac7a:function(t,e,n){"use strict";var r=n("43f7"),a=n.n(r);a.a},ce3c:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return c})),n.d(e,"i",(function(){return s})),n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return d})),n.d(e,"h",(function(){return m}));var r=n("a27e");function a(t){return Object(r["a"])({url:"config_general/getConfig",method:"post",data:t})}function o(t){return Object(r["a"])({url:"config_general/getConfigOption",method:"post",data:t})}function i(t){return Object(r["a"])({url:"config_general/newGeneral",method:"post",data:t})}function c(){return Object(r["a"])({url:"contract/setting"})}function s(t){return Object(r["a"])({url:"contract/setting",method:"post",data:t})}function u(t){return Object(r["a"])({url:"config_general/debugmodel",method:"post",data:t})}function l(){return Object(r["a"])({url:"config_general/debugmodel"})}function d(){return Object(r["a"])({url:"config_general/new_login"})}function m(t){return Object(r["a"])({url:"config_general/new_login",method:"post",data:t})}}}]);