(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa603"],{"116c":function(l,e,a){"use strict";a.r(e);var o=function(){var l=this,e=l.$createElement,a=l._self._c||e;return a("j-modal",{attrs:{title:l.title,width:l.width,visible:l.visible,confirmLoading:l.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:l.handleOk,cancel:l.handleCancel}},[a("a-spin",{attrs:{spinning:l.confirmLoading}},[a("a-form-model",{ref:"form",attrs:{model:l.model,rules:l.validatorRules}},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"目标类别",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"mblb"}},[a("j-dict-select-tag",{attrs:{type:"list",dictCode:"lb",placeholder:"请选择目标类别"},model:{value:l.model.mblb,callback:function(e){l.$set(l.model,"mblb",e)},expression:"model.mblb"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"指标分类",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zbfl"}},[a("j-dict-select-tag",{attrs:{type:"list",dictCode:"fl",placeholder:"请选择指标分类"},model:{value:l.model.zbfl,callback:function(e){l.$set(l.model,"zbfl",e)},expression:"model.zbfl"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"主要指标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zyzb"}},[a("a-input",{attrs:{placeholder:"请输入主要指标"},model:{value:l.model.zyzb,callback:function(e){l.$set(l.model,"zyzb",e)},expression:"model.zyzb"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"指标现状",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zbxz"}},[a("a-input",{attrs:{placeholder:"请输入指标现状"},model:{value:l.model.zbxz,callback:function(e){l.$set(l.model,"zbxz",e)},expression:"model.zbxz"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"指标预期",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zbyq"}},[a("a-input",{attrs:{placeholder:"请输入指标预期"},model:{value:l.model.zbyq,callback:function(e){l.$set(l.model,"zbyq",e)},expression:"model.zbyq"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"第一年度",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"dynd"}},[a("a-input",{attrs:{placeholder:"请输入第一年度"},model:{value:l.model.dynd,callback:function(e){l.$set(l.model,"dynd",e)},expression:"model.dynd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"第二年度",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"dernd"}},[a("a-input",{attrs:{placeholder:"请输入第二年度"},model:{value:l.model.dernd,callback:function(e){l.$set(l.model,"dernd",e)},expression:"model.dernd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"第三年度",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"dsnd"}},[a("a-input",{attrs:{placeholder:"请输入第三年度"},model:{value:l.model.dsnd,callback:function(e){l.$set(l.model,"dsnd",e)},expression:"model.dsnd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"责任部门",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zrbm"}},[a("a-input",{attrs:{placeholder:"请输入责任部门"},model:{value:l.model.zrbm,callback:function(e){l.$set(l.model,"zrbm",e)},expression:"model.zrbm"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"意见/备注",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"yjbz"}},[a("a-input",{attrs:{placeholder:"请输入意见/备注"},model:{value:l.model.yjbz,callback:function(e){l.$set(l.model,"yjbz",e)},expression:"model.yjbz"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmMbqdModal",components:{},props:{mainId:{type:String,required:!1,default:""}},data:function(){return{title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{},url:{add:"/hzz.yhyc/rmJbxx/addRmMbqd",edit:"/hzz.yhyc/rmJbxx/editRmMbqd"}}},created:function(){this.modelDefault=JSON.parse(JSON.stringify(this.model))},methods:{add:function(){this.edit(this.modelDefault)},edit:function(l){this.model=Object.assign({},l),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1,this.$refs.form.clearValidate()},handleOk:function(){var l=this,e=this;this.$refs.form.validate((function(a){if(!a)return!1;e.confirmLoading=!0;var o="",t="";l.model.id?(o+=l.url.edit,t="put"):(o+=l.url.add,t="post"),l.model["mainId"]=l.mainId,Object(r["h"])(o,l.model,t).then((function(l){l.success?(e.$message.success(l.message),e.$emit("ok")):e.$message.warning(l.message)})).finally((function(){e.confirmLoading=!1,e.close()}))}))},handleCancel:function(){this.close()}}}),d=s,n=a("2877"),i=Object(n["a"])(d,o,t,!1,null,null,null);e["default"]=i.exports}}]);