(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15141f17"],{"065e":function(e,r,t){"use strict";var a=t("a223"),n=t.n(a);n.a},1615:function(e,r,t){"use strict";t.d(r,"a",(function(){return n})),t.d(r,"b",(function(){return c}));var a=t("b775");function n(e){return Object(a["a"])({url:"/charge/chargelist",method:"Get",params:e})}function c(e){return Object(a["a"])({url:"/charge/payfee",method:"POST",data:e})}},1830:function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"charge-container"},[t("el-form",{ref:"chargeForm",staticClass:"charge-form",attrs:{model:e.chargeForm,"label-width":"120px",rules:e.chargeRules}},[t("el-form-item",{attrs:{label:"缴费人名称",prop:"name"}},[t("el-input",{staticClass:"charge-input",attrs:{placeholder:"请输入缴费人姓名"},model:{value:e.chargeForm.name,callback:function(r){e.$set(e.chargeForm,"name",r)},expression:"chargeForm.name"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"缴费人档案号",prop:"cre_num"}},[t("el-input",{staticClass:"charge-input",attrs:{placeholder:"请输入缴费人档案号"},model:{value:e.chargeForm.cre_num,callback:function(r){e.$set(e.chargeForm,"cre_num",r)},expression:"chargeForm.cre_num"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"选择时间",prop:"month"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"month","value-format":"yyyy-MM",placeholder:"请选择缴费时间"},model:{value:e.chargeForm.month,callback:function(r){e.$set(e.chargeForm,"month",r)},expression:"chargeForm.month"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"缴费金额",prop:"fee"}},[t("el-input",{attrs:{min:"0",oninput:"value=value.replace(/[^\\d.]/g,'')",placeholder:"请输入缴费金额"},model:{value:e.chargeForm.fee,callback:function(r){e.$set(e.chargeForm,"fee",r)},expression:"chargeForm.fee"}})],1),e._v(" "),t("el-button",{staticClass:"btn-submit",attrs:{type:"primary"},on:{click:e.submitPay}},[e._v("确认缴费")])],1)],1)},n=[],c=(t("7f7f"),t("1615")),o={props:{handInfo:{type:Object,default:function(){return{name:"",cre_num:""}}}},data:function(){return{chargeForm:{name:"",month:"",cre_num:"",fee:""},chargeRules:{name:[{required:!0,message:"请选择缴费人",trigger:"change"}],month:[{required:!0,message:"请选择缴纳月份",trigger:"change"}],fee:[{required:!0,message:"请输入缴费金额",trigger:"blur"}],cre_num:[{required:!0,message:"请输入档案号",trigger:"blur"},{min:8,max:8,message:"长度为8个字符",trigger:"change"}]}}},watch:{handInfo:{handler:function(e){this.chargeForm.name=e.name,this.chargeForm.cre_num=e.cre_num},immediate:!0,deep:!0}},methods:{submitPay:function(){var e=this;this.$refs.chargeForm.validate((function(r){if(!r)return!1;var t=e;Object(c["b"])(e.chargeForm).then((function(r){if(r){var a=r.error_code,n=r.msg;e.$message({message:n,type:200===a?"success":"error"}),200===a&&(t.chargeForm={name:"",month:"",cre_num:"",fee:""},t.$refs.chargeForm.resetFields(),e.$emit("tohandSuccess"))}}))}))},close:function(){this.chargeForm={name:"",month:"",cre_num:"",fee:""}}}},m=o,s=(t("065e"),t("2877")),i=Object(s["a"])(m,a,n,!1,null,null,null);r["default"]=i.exports},a223:function(e,r,t){}}]);