webpackJsonp([10],{q1nu:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),i=a("woOf"),l=a.n(i),r=a("oqQY"),u=a.n(r),p=a("gtmD"),s=a("0xDb"),c={name:"yaWeiOrder",components:{SearchTableTemplate:a("NUeu").a},methods:{search:function(t,e){this.tableConfig=l()({},this.tableConfig,{btn:e}),this.searchData=l()({search:!0},{data:t})},logs:function(t,e){var a=this;return new o.a(function(n,o){a.dialogTableData.tableConfig={request:p.b.logs,pageSize:5,pageSizes:5},a.dialogTableData.tableColumn=a.logDialogTableColumn,a.dialogConfig=l()({},a.dialogConfig,{title:e.title,visible:!0}),a.$nextTick(function(){a.dialogTableData.searchData={search:!0,data:{id:t.id}},n()})})},points:function(t,e){var a=this;return new o.a(function(n,o){a.dialogTableData.tableColumn=a.pointsDialogTableColumn,a.dialogTableData.tableConfig={pagination:!1},p.b.points(t).then(function(t){a.dialogTableData.tableData=t.data.data,a.dialogTableData.tableConfig={},a.dialogConfig=l()({},a.dialogConfig,{title:e.title,visible:!0}),n()}).catch(function(){a.dialogTableData.tableData=[],n()})})},finish:function(t){var e=this;return new o.a(function(a,n){e.$confirm("是否完成押位?","完成押位",{type:"warning",showCancelButton:!0}).then(function(){p.b.finish(t).then(function(t){a(),e.$message({message:t.data.code+" : "+t.data.message,type:"success",duration:5e3}),e.list(e.tableConfig.pageNum,e.tableConfig.pageSize)}).catch(function(){return a()})}).catch(function(){return a()})})},repeat:function(t){var e=this;return new o.a(function(a,n){e.$confirm("是否重新押位?","重新押位",{type:"warning",showCancelButton:!0}).then(function(){p.b.repeat(t).then(function(t){a(),e.$message({message:t.data.code+" : "+t.data.message,type:"success",duration:5e3}),e.list(e.tableConfig.pageNum,e.tableConfig.pageSize)}).catch(function(){return a()})}).catch(function(){return a()})})},updatekeep:function(t){var e=this;return new o.a(function(a,n){e.$confirm("是否续押?","续押",{type:"warning",showCancelButton:!0}).then(function(){p.b.updatekeep(t).then(function(t){e.$message({message:t.data.code+" : "+t.data.message,type:"success",duration:5e3}),e.list(e.tableConfig.pageNum,e.tableConfig.pageSize),a()}).catch(function(){return a()})}).catch(function(){return a()})})},account:function(t){var e=this;return new o.a(function(a,n){p.b.account(t).then(function(t){e.$alert("账号: "+t.data.data.userName+"
密码: "+t.data.data.passWord,"押位账号",{dangerouslyUseHTMLString:!0}),a()}).catch(function(){return a()})})}},data:function(){var t=this;return{formInputList:[{label:"出发城市",value:"",type:"text",maxlength:3,name:"fromStation",module:"input",placeholder:"出发城市",handle:function(t){t[this.name]=t[this.name].toUpperCase()}},{label:"到达城市",value:"",type:"text",maxlength:3,module:"input",name:"toStation",placeholder:"到达城市",handle:function(t){t[this.name]=t[this.name].toUpperCase()}},{label:"出发日期",value:"",module:"date",name:"fromDate",format:"yyyy-MM-dd",placeholder:"出发日期"},{label:"状态",value:"",module:"select",name:"state",placeholder:"状态",optionList:t.$store.getters.dic.yaWeiOrder.orderState}],formButtonlist:[{module:"button",title:"搜索",type:"primary",icon:"el-icon-search",loading:!1,handle:function(){t.search(arguments[0],this)}},{module:"reset",title:"重置",type:"text",icon:"el-icon-close"}],tableColumn:[{label:"出发城市",prop:"fromCity"},{label:"到达城市",prop:"toCity"},{label:"出发日期",prop:"fromDate",formatter:function(){return u()(arguments[2]).format("YYYY-MM-DD")}},{label:"航班号",prop:"trainCode"},{label:"状态",prop:"state",formatter:function(){return Object(s.d)(t.$store.getters.dic.yaWeiOrder.orderState,arguments[2])}},{label:"押位积分",prop:"point"},{label:"押位座位数",prop:"seats"},{label:"是否续押",prop:"isKeep",formatter:function(){return arguments[2]?"是":"否"}},{label:"续押次数",prop:"keepNum"},{label:"创建时间",prop:"createTime",formatter:function(){return u()(arguments[2]).format("YYYY-MM-DD
HH:mm:ss")}},{label:"操作",prop:"yaWei",fixed:"right",custom:!0,type:"expand",button:[{module:"button",title:"任务日志",type:"info",prop:"JobLog",handle:function(){var e=arguments,a=this;arguments[0][this.prop+"_loading"]=!0,t.logs(arguments[0],this,arguments[1].$index).then(function(){e[0][a.prop+"_loading"]=!1})}},{module:"button",title:"生单记录",type:"info",prop:"points",handle:function(){var e=arguments,a=this;arguments[0][this.prop+"_loading"]=!0,t.points(arguments[0],this).then(function(){e[0][a.prop+"_loading"]=!1})}},{module:"button",title:"完成押位",type:"info",prop:"finish",handle:function(){var e=arguments,a=this;arguments[0][this.prop+"_loading"]=!0,t.finish(arguments[0]).then(function(){e[0][a.prop+"_loading"]=!1})}},{module:"button",title:"重新押位",type:"info",prop:"repeat",handle:function(){var e=arguments,a=this;arguments[0][this.prop+"_loading"]=!0,t.repeat(arguments[0]).then(function(){e[0][a.prop+"_loading"]=!1})}},{module:"button",title:"是否续押",type:"info",prop:"updatekeep",handle:function(){var e=arguments,a=this;arguments[0][this.prop+"_loading"]=!0,t.updatekeep(arguments[0]).then(function(){e[0][a.prop+"_loading"]=!1})}},{module:"button",title:"押位账号",type:"info",prop:"account",handle:function(){var e=arguments,a=this;arguments[0][this.prop+"_loading"]=!0,t.account(arguments[0]).then(function(){e[0][a.prop+"_loading"]=!1})}}]}],tableConfig:{request:p.b.list},searchData:{},dialogTableData:{tableColumn:[],tableData:[],searchData:{},tableConfig:{}},dialogConfig:{title:"任务日志",visible:!1,type:"table"},logDialogTableColumn:[{label:"创建时间",prop:"createTime",width:90,formatter:function(){return u()(arguments[2]).format("YYYY-MM-DD
HH:mm:ss")}},{label:"任务日志",prop:"logString"}],logSearchData:{},pointsDialogTableColumn:[{label:"创建时间",prop:"createTime",width:90,formatter:function(){return u()(arguments[2]).format("YYYY-MM-DD
HH:mm:ss")}},{label:"uuid",prop:"uuid"},{label:"状态",prop:"state",formatter:function(){return Object(s.d)(t.$store.getters.dic.yaWeiOrder.logState,arguments[2])}},{label:"账号",prop:"userName"},{label:"密码",prop:"passWord"},{label:"支付金额",prop:"paymont"},{label:"支付币种",prop:"currencyCode"},{label:"PNR",prop:"pnr"},{label:"详情",prop:"msg"}]}}},f={render:function(){var t=this.$createElement;return(this._self._c||t)("search-table-template",{ref:"searchTable",attrs:{formInputList:this.formInputList,formButtonlist:this.formButtonlist,tableColumn:this.tableColumn,searchData:this.searchData,tableConfig:this.tableConfig,dialogTableData:this.dialogTableData,dialogConfig:this.dialogConfig}})},staticRenderFns:[]},d=a("VU/8")(c,f,!1,null,null,null);e.default=d.exports}});