(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d7446"],{"75a3":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:"xmbh"}},[a("a-input",{attrs:{placeholder:"请输入项目编号"},model:{value:e.model.xmbh,callback:function(l){e.$set(e.model,"xmbh",l)},expression:"model.xmbh"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"项目名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xmmc"}},[a("a-input",{attrs:{placeholder:"请输入项目名称"},model:{value:e.model.xmmc,callback:function(l){e.$set(e.model,"xmmc",l)},expression:"model.xmmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"采集人",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"cjr"}},[a("a-input",{attrs:{placeholder:"请输入采集人"},model:{value:e.model.cjr,callback:function(l){e.$set(e.model,"cjr",l)},expression:"model.cjr"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"采集时间",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"cjsj"}},[a("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择采集时间"},model:{value:e.model.cjsj,callback:function(l){e.$set(e.model,"cjsj",l)},expression:"model.cjsj"}})],1)],1)],1)],1)],1)],1)},t=[],s=a("0fea"),i=(a("ca00"),{name:"RmXxcjModal",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:{},url:{add:"/hzz.xxcj/rmXxcj/add",edit:"/hzz.xxcj/rmXxcj/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(s["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()}}}),r=i,n=a("2877"),c=Object(n["a"])(r,o,t,!1,null,null,null);l["default"]=c.exports}}]);