(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8375f768"],{3206:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"padding24 container",attrs:{id:"orderList"}},[e("a-spin",{attrs:{spinning:t.spinning,size:"large",tip:t.tip}},[e("div",{staticClass:"top"},[e("a-form",{attrs:{layout:"inline"}},[e("a-form-item",{attrs:{label:"订单编号"}},[e("a-input",{attrs:{placeholder:"请输入订单编号"},on:{pressEnter:t.searchClick},model:{value:t.params.orderId,callback:function(a){t.$set(t.params,"orderId",a)},expression:"params.orderId"}})],1),e("a-form-item",{attrs:{label:"商品名称"}},[e("a-input",{attrs:{placeholder:"请输入商品名称"},on:{pressEnter:t.searchClick},model:{value:t.params.productName,callback:function(a){t.$set(t.params,"productName",a)},expression:"params.productName"}})],1),e("a-form-item",{attrs:{label:"联系手机号"}},[e("a-input",{attrs:{placeholder:"请输入联系手机号"},on:{pressEnter:t.searchClick},model:{value:t.params.phone,callback:function(a){t.$set(t.params,"phone",a)},expression:"params.phone"}})],1),e("a-form-item",{attrs:{label:"支付时间"}},[e("a-range-picker",{attrs:{value:t.rangePicker,"show-time":"",format:"YYYY-MM-DD HH:mm:ss"},on:{change:t.onChange}})],1),e("a-form-item",{attrs:{label:"登记状态"}},[e("a-select",{staticStyle:{width:"100px"},on:{change:function(a){return t.handleSelectChange("checkInStatus",a)}},model:{value:t.params.checkInStatus,callback:function(a){t.$set(t.params,"checkInStatus",a)},expression:"params.checkInStatus"}},t._l(t.checkInStatusArr,(function(a){return e("a-select-option",{key:a.key},[t._v(" "+t._s(a.value)+" ")])})),1)],1),e("a-form-item",[e("a-button",{attrs:{icon:"search",type:"primary",disabled:t.isDisableSearch},on:{click:t.searchClick}},[t._v(" 搜索 ")])],1),e("a-form-item",[e("a-button",{attrs:{icon:"redo",type:"primary"},on:{click:t.resetClick}},[t._v(" 重置 ")])],1)],1)],1),e("a-table",{attrs:{columns:t.registerListColumns,"data-source":t.tableData,pagination:!1,loading:t.tableLoading,"row-key":"id",scroll:{x:1500}},scopedSlots:t._u([{key:"operation",fn:function(a,n){return e("span",{},[e("a-button",{attrs:{type:"link"},on:{click:function(a){return t.handleDetail(n)}}},[t._v("修改信息")])],1)}},{key:"contacts",fn:function(a,n){return e("span",{},t._l(n.contacts,(function(a){return e("div",[t._v(t._s(a.name)+": "+t._s(a.idCard))])})),0)}}])}),e("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!t.tableLoading,expression:"!tableLoading"}],attrs:{count:t.count,pageNo:t.params.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}}),e("a-back-top",{attrs:{target:t.targetFn,visibilityHeight:100}})],1),e("UpdateModal",{attrs:{visible:t.showModal,info:t.currentRecord},on:{close:function(a){t.showModal=!1}}})],1)},i=[],r=e("1da1"),s=(e("159b"),e("96cf"),e("c1df")),o=e.n(s),c=e("703a"),l=e("f2e4"),u=e("6ffe"),d=e("b893"),p=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("a-modal",{attrs:{title:"修改信息",visible:t.visible,"confirm-loading":t.confirmLoading,footer:null},on:{cancel:t.handleCancel}},[e("a-form-model",{attrs:{model:t.info,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[e("a-form-model-item",{attrs:{label:"出行日期"}},[e("span",{staticClass:"inline-block"},[t._v(t._s(t.info.goTime))]),e("a-button",{attrs:{type:"primary"},on:{click:t.handleChange}},[t._v("修改")])],1),e("a-form-model-item",{attrs:{label:"出行场次"}},[e("span",{staticClass:"inline-block"},[t._v(t._s(t.info.times))]),e("a-button",{attrs:{type:"primary"},on:{click:t.handleChange}},[t._v("修改")])],1),e("a-form-model-item",{attrs:{label:"联系方式"}},[e("a-input",{attrs:{type:"text",placeholder:"请输入手机号码"},model:{value:t.info.phone,callback:function(a){t.$set(t.info,"phone",a)},expression:"info.phone"}})],1),e("a-form-model-item",{attrs:{label:"紧急联系人"}},[e("a-input",{attrs:{type:"text",placeholder:"请输入紧急联系人手机号"},model:{value:t.info.contactPhone,callback:function(a){t.$set(t.info,"contactPhone",a)},expression:"info.contactPhone"}})],1),e("a-form-model-item",{attrs:{label:"出行人信息"}},[t._l(t.info.userList,(function(a,n){return e("div",[t._v(" "+t._s(n+1)+". "+t._s(a.name)+": "+t._s(a.cardId))])})),e("div",{staticClass:"tips"},[t._v("(姓名+身份证号)")])],2),e("a-form-model-item",{attrs:{"wrapper-col":{span:14,offset:4}}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleOk}},[t._v(" 保存 ")]),e("a-button",{staticStyle:{"margin-left":"10px"},on:{click:t.handleCancel}},[t._v(" 取消 ")])],1)],1)],1),e("a-modal",{attrs:{title:"修改出行信息",visible:t.dataPanel,"confirm-loading":t.confirmLoading},on:{cancel:function(a){t.dataPanel=!1},ok:t.handleSelect}},[e("div",{staticClass:"container-box"},[e("a-calendar",{attrs:{fullscreen:!1,value:t.defaultValue,valueFormat:"yyyy-MM-DD"},on:{change:t.onPanelChange}}),e("div",{staticClass:"time-info"},[e("div",{staticClass:"title"},[t._v(" 场次-库存 ")]),e("a-radio-group",{model:{value:t.info.times,callback:function(a){t.$set(t.info,"times",a)},expression:"info.times"}},[e("a-radio",{staticClass:"radio-item",attrs:{value:1}},[e("span",{staticStyle:{"margin-right":"30px"}},[t._v("09:00 ~ 10:00")]),e("span",[t._v("库存: 20")])]),e("a-radio",{staticClass:"radio-item",attrs:{value:2}},[e("span",{staticStyle:{"margin-right":"30px"}},[t._v("09:00 ~ 10:00")]),e("span",[t._v("20")])]),e("a-radio",{staticClass:"radio-item",attrs:{value:3}},[e("span",{staticStyle:{"margin-right":"30px"}},[t._v("09:00 ~ 10:00")]),e("span",[t._v("20")])]),e("a-radio",{staticClass:"radio-item",attrs:{value:4}},[e("span",{staticStyle:{"margin-right":"30px"}},[t._v("09:00 ~ 10:00")]),e("span",[t._v("20")])])],1)],1)],1)])],1)},m=[],h={props:{visible:{type:Boolean,default:!1},info:{type:Object,default:function(){return{}}}},data:function(){return{ModalText:"Content of the modal",confirmLoading:!1,labelCol:{span:5},wrapperCol:{span:14},dataPanel:!1,defaultValue:""}},methods:{handleChange:function(){this.defaultValue=this.info.goTime,this.dataPanel=!0},handleSelect:function(){this.dataPanel=!1},onPanelChange:function(t){console.log(t),this.defaultValue=t},handleOk:function(t){var a=this;this.ModalText="The modal will be closed after two seconds",this.confirmLoading=!0,setTimeout((function(){a.confirmLoading=!1}),2e3)},handleCancel:function(t){this.$emit("close")},onSubmit:function(){console.log("submit!",this.form)}}},f=h,g=(e("425b"),e("2877")),b=Object(g["a"])(f,p,m,!1,null,"5cde54ff",null),v=b.exports,k={components:{MyPagination:u["a"],UpdateModal:v},created:function(){this.fetchData(),this.isShowOrderExport=Object(d["a"])("listenerOrderExport")},data:function(){return{showModal:!1,currentRecord:{},spinning:!1,tip:"",params:{pageNo:1,pageSize:20,orderId:"",productName:"",orderStatus:0,checkInStatus:0,dateStart:"",dateEnd:""},rangePicker:[],count:0,isDisableSearch:!1,tableLoading:!0,registerListColumns:c["d"],tableData:[],isShowOrderExport:!1,form:{},checkInStatusArr:c["a"],orderStatusArr:c["c"]}},methods:{moment:o.a,changeOrderType:function(t){this.pageNo=1,this.orderType=t,this.fetchData()},handleSelectChange:function(t,a){this.pageNo=1,this.params[t]=a,this.fetchData()},onChange:function(t,a){""!==a[0]?(this.params.dateStart=a[0],this.params.dateEnd=a[1],this.rangePicker=[o()(a[0],"YYYY-MM-DD HH:mm:ss"),o()(a[1],"YYYY-MM-DD HH:mm:ss")]):(this.params.dateStart="",this.params.dateEnd="",this.rangePicker=[])},searchClick:function(){var t=this;this.pageNo=1,this.isDisableSearch=!0,setTimeout((function(){t.isDisableSearch=!1}),3e3),this.fetchData()},resetClick:function(){this.params=this.$options.data().params,this.rangePicker=[]},exportClick:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var e,n,i,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.tip="订单导出中",t.spinning=!0,e=t.params,a.next=5,exportCompanyAPI(e);case 5:if(n=a.sent,i=n.code,r=n.data,t.spinning=!1,200===i){a.next=11;break}return a.abrupt("return");case 11:window.location.href=r,t.spinning=!1,t.$message.success("导出订单成功");case 14:case"end":return a.stop()}}),a)})))()},showSizeChangeFn:function(t,a){this.params.pageNo=t,this.params.pageSize=a,this.fetchData()},handleDetail:function(t){this.showModal=!0,this.currentRecord=t},fetchData:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var e,n,i,r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.tableLoading=!0,e=t.params,a.next=4,Object(l["p"])(e);case 4:if(n=a.sent,i=n.code,r=n.data,t.tableLoading=!1,200===i){a.next=10;break}return a.abrupt("return");case 10:t.count=r.count,s=r.checkinList,s.forEach((function(t){var a=t.checkinInfo;a&&Object.assign(t,a)})),t.tableData=r.checkinList;case 14:case"end":return a.stop()}}),a)})))()},targetFn:function(){return document.querySelector("#orderList")}}},C=k,y=(e("6741"),Object(g["a"])(C,n,i,!1,null,"78d52dd0",null));a["default"]=y.exports},3332:function(t,a,e){},"425b":function(t,a,e){"use strict";e("3332")},"5cb1":function(t,a,e){},6741:function(t,a,e){"use strict";e("5cb1")}}]); //# sourceMappingURL=chunk-8375f768.2eea2a90.js.map