webpackJsonp([15],{yp6Q:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("fZjL"),o=a.n(r),n=a("//Fk"),l=a.n(n),i=a("Dd8w"),d=a.n(i),p=a("woOf"),u=a.n(p),s=a("oqQY"),c=a.n(s),f=a("vLgD"),m={search:function(e){return Object(f.a)({data:e,timeout:6e4,url:"/order/orderInfo/listOrders"})},orderInfo:function(e){return Object(f.a)({data:e,url:"/order/orderInfo/orderinfo"})},export:function(e){return Object(f.a)({data:e,download:!0,url:"/order/orderInfo/dowland"})}},b=a("0xDb"),g={name:"orderSearch",components:{SearchTableTemplate:a("NUeu").a},methods:{search:function(e,t){this.tableConfig=u()({},this.tableConfig,{btn:t}),this.searchData=u()({search:!0},{data:d()({},e,{startDate:e.orderDate[0],endDate:e.orderDate[1]})})},orderInfo:function(e){var t=this;return new l.a(function(a,r){m.orderInfo({orderNo:e.orderNo}).then(function(e){t.dialogCollapselist[0].dialogTableData.tableData=[e.data.data.orderInfo],t.dialogCollapselist[1].dialogTableData.tableData=o()(e.data.data.flightSegments).reduce(function(t,a){var r=e.data.data.flightSegments[t].map(function(e){return e.flightType=t,e});if(e.data.data.flightSegments[a].length){var o=e.data.data.flightSegments[a].map(function(e){return e.flightType=a,e});r=r.concat(o)}return r.sort(function(e,t){return c()(c()(e.departureDate).format("YYYY-MM-DD")+" "+e.departureTime).unix()>c()(c()(t.departureDate).format("YYYY-MM-DD")+" "+t.departureTime).unix()})}),t.dialogCollapselist[2].dialogTableData.tableData=e.data.data.flightPassengers,t.dialogCollapselist[3].dialogTableData.tableData=e.data.data.oaAddSer,t.dialogCollapselist[4].dialogTableData.tableData=e.data.data.ticketInfos,t.dialogConfig=u()({},t.dialogConfig,{visible:!0}),a()}).catch(function(){return a()})})},export:function(e,t){var a=this;this.$prompt("请输入导出数量","导出",{inputType:"number",inputValue:50,inputValidator:function(e){return""===e?"导出数量不能为空":e<0?"导出数量不能为负数":!(e>500)||"导出数量不能大于500条"}}).then(function(r){var n=r.value,l=void 0;o()(a.searchData).length?l=u()({},a.searchData,{size:n}):(a.searchData=u()({},e,{startDate:e.orderDate[0],endDate:e.orderDate[1]}),l=u()({},a.searchData,{size:n})),t.disabled=!0;var i=a.$loading({target:a.$refs.searchTable.$el});m.export(l).then(function(){t.disabled=!1,i.close()}).catch(function(){t.disabled=!1,i.close()})})}},data:function(){var e=this;return{formInputList:[{label:"订单起止日期",value:[c()().format("YYYY-MM-DD"),c()().format("YYYY-MM-DD")],module:"date",name:"orderDate",type:"daterange",format:"yyyy-MM-dd",startPlaceholder:"开始",endPlaceholder:"结束",pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}}},{label:"订单号",value:"",type:"text",module:"input",name:"orderNo",placeholder:"订单号"},{label:"PNR",value:"",maxlength:6,type:"text",module:"input",name:"pnrCode",placeholder:"PNR",handle:function(e){e[this.name]=e[this.name].toUpperCase()}},{label:"订单状态",value:"",module:"select",name:"status",placeholder:"订单状态",optionList:e.$store.getters.dic.orderSearch.status},{label:"订单源",value:"ctrip",module:"select",name:"orderSource",readonly:!0,hidden:!0,placeholder:"订单源",optionList:e.$store.getters.dic.orderSearch.orderSource}],formButtonlist:[{module:"button",title:"搜索",type:"primary",icon:"el-icon-search",loading:!1,handle:function(){e.search(arguments[0],this)}},{module:"button",title:"导出",disabled:!1,handle:function(){e.export(arguments[0],this)}},{module:"reset",title:"重置",type:"text"}],tableColumn:[{label:"订单号",prop:"orderNo",minWidth:90},{label:"订单状态",prop:"status",minWidth:130,formatter:function(){return 1===arguments[2]?'