(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2086cc"],{a579:function(e,l,a){"use strict";a.r(l);var o=function(){var e=this,l=e.$createElement,a=e._self._c||l;return a("j-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[a("a-spin",{attrs:{spinning:e.confirmLoading}},[a("a-form-model",{ref:"form",attrs:{model:e.model,rules:e.validatorRules}},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"河段名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"hdmc"}},[a("j-dict-select-tag",{attrs:{type:"list",dictCode:"hlmc",placeholder:"请选择河段名称"},model:{value:e.model.hdmc,callback:function(l){e.$set(e.model,"hdmc",l)},expression:"model.hdmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"方案名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"famc"}},[a("a-input",{attrs:{placeholder:"请输入方案名称"},model:{value:e.model.famc,callback:function(l){e.$set(e.model,"famc",l)},expression:"model.famc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"编制日期",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"bzrq"}},[a("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择编制日期"},model:{value:e.model.bzrq,callback:function(l){e.$set(e.model,"bzrq",l)},expression:"model.bzrq"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"开始年月",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"ksnf"}},[a("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择开始年月"},model:{value:e.model.ksnf,callback:function(l){e.$set(e.model,"ksnf",l)},expression:"model.ksnf"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"终止年月",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"zznf"}},[a("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择终止年月"},model:{value:e.model.zznf,callback:function(l){e.$set(e.model,"zznf",l)},expression:"model.zznf"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"编制单位",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"bzdw"}},[a("a-input",{attrs:{placeholder:"请输入编制单位"},model:{value:e.model.bzdw,callback:function(l){e.$set(e.model,"bzdw",l)},expression:"model.bzdw"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"bz"}},[a("a-textarea",{attrs:{rows:"4",placeholder:"请输入备注"},model:{value:e.model.bz,callback:function(l){e.$set(e.model,"bz",l)},expression:"model.bz"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"文本方案",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"wbfa"}},[a("j-upload",{model:{value:e.model.wbfa,callback:function(l){e.$set(e.model,"wbfa",l)},expression:"model.wbfa"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"相关图件",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xgtj"}},[a("j-image-upload",{attrs:{isMultiple:""},model:{value:e.model.xgtj,callback:function(l){e.$set(e.model,"xgtj",l)},expression:"model.xgtj"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmJbxxModal",components:{},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:{famc:[{required:!0,message:"请输入方案名称!"}],ksnf:[{required:!0,message:"请输入开始年月!"}],zznf:[{required:!0,message:"请输入终止年月!"}]},url:{add:"/hzz.yhyc/rmJbxx/add",edit:"/hzz.yhyc/rmJbxx/edit"}}},created:function(){this.modelDefault=JSON.parse(JSON.stringify(this.model))},methods:{add:function(){this.edit(this.modelDefault)},edit:function(e){this.model=Object.assign({},e),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1,this.$refs.form.clearValidate()},handleOk:function(){var e=this,l=this;this.$refs.form.validate((function(a){if(!a)return!1;l.confirmLoading=!0;var o="",t="";e.model.id?(o+=e.url.edit,t="put"):(o+=e.url.add,t="post"),Object(r["h"])(o,e.model,t).then((function(e){e.success?(l.$message.success(e.message),l.$emit("ok")):l.$message.warning(e.message)})).finally((function(){l.confirmLoading=!1,l.close()}))}))},handleCancel:function(){this.close()}}}),d=s,i=a("2877"),n=Object(i["a"])(d,o,t,!1,null,null,null);l["default"]=n.exports}}]);