(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0af44f"],{"0e37":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("a-spin",{attrs:{spinning:l.confirmLoading}},[a("j-form-container",{attrs:{disabled:l.formDisabled}},[a("a-form-model",{ref:"form",attrs:{slot:"detail",model:l.model,rules:l.validatorRules},slot:"detail"},[a("a-row",[a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"河流名称",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"hlmc"}},[a("j-popup",{attrs:{field:"hlmc","org-fields":"id,hdmc","dest-fields":"hlid,hlmc",code:"hllist",multi:!0},on:{input:l.popupCallback},model:{value:l.model.hlmc,callback:function(e){l.$set(l.model,"hlmc",e)},expression:"model.hlmc"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"剖面编号",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"pmbh"}},[a("a-input",{attrs:{placeholder:"请输入剖面编号"},model:{value:l.model.pmbh,callback:function(e){l.$set(l.model,"pmbh",e)},expression:"model.pmbh"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"起点横坐标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"qdhzb"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入起点横坐标"},model:{value:l.model.qdhzb,callback:function(e){l.$set(l.model,"qdhzb",e)},expression:"model.qdhzb"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"起点纵坐标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"qdzzb"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入起点纵坐标"},model:{value:l.model.qdzzb,callback:function(e){l.$set(l.model,"qdzzb",e)},expression:"model.qdzzb"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"终点横坐标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zdhzb"}},[a("a-input",{attrs:{placeholder:"请输入终点横坐标"},model:{value:l.model.zdhzb,callback:function(e){l.$set(l.model,"zdhzb",e)},expression:"model.zdhzb"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"终点纵坐标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zdzzb"}},[a("a-input",{attrs:{placeholder:"请输入终点纵坐标"},model:{value:l.model.zdzzb,callback:function(e){l.$set(l.model,"zdzzb",e)},expression:"model.zdzzb"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"高程",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"gc"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高程"},model:{value:l.model.gc,callback:function(e){l.$set(l.model,"gc",e)},expression:"model.gc"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"行政区划",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"xzqh"}},[a("j-area-linkage",{attrs:{type:"cascader",placeholder:"请输入省市区"},model:{value:l.model.xzqh,callback:function(e){l.$set(l.model,"xzqh",e)},expression:"model.xzqh"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"备注",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"bz"}},[a("a-textarea",{attrs:{rows:"4",placeholder:"请输入备注"},model:{value:l.model.bz,callback:function(e){l.$set(l.model,"bz",e)},expression:"model.bz"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"地图标志",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"flag"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入地图标志"},model:{value:l.model.flag,callback:function(e){l.$set(l.model,"flag",e)},expression:"model.flag"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"剖面图片",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"pmtp"}},[a("j-image-upload",{attrs:{isMultiple:""},model:{value:l.model.pmtp,callback:function(e){l.$set(l.model,"pmtp",e)},expression:"model.pmtp"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmPmtxxForm",components:{},props:{disabled:{type:Boolean,default:!1,required:!1}},data:function(){return{model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{},url:{add:"/hzz.hdpm.pmtxx/rmPmtxx/add",edit:"/hzz.hdpm.pmtxx/rmPmtxx/edit",queryById:"/hzz.hdpm.pmtxx/rmPmtxx/queryById"}}},computed:{formDisabled:function(){return this.disabled}},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},submitForm:function(){var l=this,e=this;this.$refs.form.validate((function(a){if(a){e.confirmLoading=!0;var o="",t="";l.model.id?(o+=l.url.edit,t="put"):(o+=l.url.add,t="post"),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}))}}))},popupCallback:function(l,e){this.model=Object.assign(this.model,e)}}}),p=s,d=a("2877"),m=Object(d["a"])(p,o,t,!1,null,null,null);e["default"]=m.exports}}]);