(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212c43"],{aa8e:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,okButtonProps:{props:{disabled:e.disableSubmit}},confirmLoading:e.confirmLoading,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-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"航班号",prop:"ticketCode",hasFeedback:""}},[a("a-input",{attrs:{placeholder:"请输入航班号",readOnly:e.disableSubmit},model:{value:e.model.ticketCode,callback:function(t){e.$set(e.model,"ticketCode",t)},expression:"model.ticketCode"}})],1),a("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"航班时间",prop:"tickectDate",hasFeedback:""}},[a("j-date",{model:{value:e.model.tickectDate,callback:function(t){e.$set(e.model,"tickectDate",t)},expression:"model.tickectDate"}})],1),a("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号码",hidden:e.hiding,hasFeedback:""},model:{value:this.orderId,callback:function(t){e.$set(this,"orderId",t)},expression:"this.orderId"}},[a("a-input",{attrs:{disabled:"disabled"},model:{value:e.model.orderId,callback:function(t){e.$set(e.model,"orderId",t)},expression:"model.orderId"}})],1),a("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"创建人",hidden:e.hiding,hasFeedback:""}},[a("a-input",{attrs:{readOnly:e.disableSubmit},model:{value:e.model.createBy,callback:function(t){e.$set(e.model,"createBy",t)},expression:"model.createBy"}})],1),a("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"创建时间",hidden:e.hiding,hasFeedback:""}},[a("a-input",{attrs:{readOnly:e.disableSubmit},model:{value:e.model.createTime,callback:function(t){e.$set(e.model,"createTime",t)},expression:"model.createTime"}})],1)],1)],1)],1)},i=[],o=a("0fea"),d=a("c1df"),s=a.n(d),r=a("2dab"),n={components:{JDate:r["default"]},name:"JeecgOrderTicketModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},moment:s.a,format:"YYYY-MM-DD HH:mm:ss",disableSubmit:!1,orderId:"",hiding:!1,confirmLoading:!1,validatorRules:{ticketCode:[{required:!0,message:"请输入航班号!"}],tickectDate:[{required:!0,message:"请输入航班时间!"}]},url:{add:"/test/order/addTicket",edit:"/test/order/editTicket"}}},created:function(){},methods:{add:function(e){e?this.edit({orderId:e},""):this.$message.warning("请选择一条航班数据")},detail:function(e){this.edit(e,"d")},edit:function(e,t){"e"==t?(this.hiding=!1,this.disableSubmit=!1):"d"==t?(this.hiding=!1,this.disableSubmit=!0):(this.hiding=!0,this.disableSubmit=!1),this.model=Object.assign({},e),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1,this.$refs.form.resetFields()},handleOk:function(){var e=this,t=this;this.$refs.form.validate((function(a){if(!a)return!1;t.confirmLoading=!0;var l="",i="";e.model.id?(l+=e.url.edit,i="put"):(l+=e.url.add,i="post"),e.model.mainId=e.model.orderId,Object(o["h"])(l,e.model,i).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}))},handleCancel:function(){this.close()}}},c=n,m=a("2877"),u=Object(m["a"])(c,l,i,!1,null,"1c960cda",null);t["default"]=u.exports}}]);