1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c47f2ee"],{"1a02":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container bgHeight"},[a("div",{ref:"box",staticClass:"searchStys transition_dom"},[a("el-form",{ref:"query",attrs:{model:t.query}},[a("div",{ref:"form_box",staticClass:"searchBar"},[a("div",{staticClass:"searchInput"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"carNumber"}},[a("el-input",{attrs:{placeholder:"车牌",clearable:""},model:{value:t.query.carNumber,callback:function(e){t.$set(t.query,"carNumber",e)},expression:"query.carNumber"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"authType"}},[a("el-select",{attrs:{clearable:"",placeholder:"放行类型"},model:{value:t.query.authType,callback:function(e){t.$set(t.query,"authType",e)},expression:"query.authType"}},t._l(t.authType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"direction"}},[a("el-select",{attrs:{clearable:"",placeholder:"进出类型"},model:{value:t.query.direction,callback:function(e){t.$set(t.query,"direction",e)},expression:"query.direction"}},[a("el-option",{attrs:{label:"入场",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"出场",value:"2"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"searchBtn"},[a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm("query")}}},[t._v("重置")]),t._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),t.is_show||"80px"==t.height?t._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:t.upAndDown}},[t._v("展开"),a("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),t.is_show&&"80px"!=t.height?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:t.upAndDown}},[t._v("收起"),a("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1)],1)])])],1),t._v(" "),a("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[a("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"planTitle"},[t._v("车辆进出记录")])]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{border:"",data:t.listRecord,"header-cell-style":t.headClass,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"项目"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.projectName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"停车场"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.carPackName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"车牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.carNumber))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"通道名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.laneName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"放行时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.passTime))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"进出类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1===e.row.direction?"入场":"出场"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"放行类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.getAuthType(e.row.authType)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"抓拍图片",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-image",{staticClass:"bannerImg",attrs:{src:e.row.carImageUrl,fit:"contain","preview-src-list":e.row.list}},[a("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[t._v("\n 加载中"),a("span",{staticClass:"dot"},[t._v("...")])]),t._v(" "),a("div",{staticClass:"image-error-slot",attrs:{slot:"error"},slot:"error"},[t._v("-")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"车辆颜色"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.carColor?e.row.carColor:"-"))])]}}])})],1),t._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},n=[],o=a("722f"),s=a("dd26"),i=a.n(s),l={name:"recordsList",components:{},data:function(){return{is_show:!1,height:"",isShow:!1,listLoading:!1,pageTotal:0,listRecord:[],query:{pageNumber:1,pageSize:10,carNumber:null,phone:null,name:null,direction:null,authType:null,startDate:null,endDate:null},authType:[{value:1,label:"白名单"},{value:2,label:"临时车"},{value:3,label:"预授权/预约车"},{value:4,label:"异常放行"},{value:5,label:"自动放行"},{value:6,label:"预交费"},{value:7,label:"共享车位作为临时车"},{value:8,label:"共享车位作为长租车"},{value:9,label:"黑名单"},{value:10,label:"专有车位车"}],time:null}},beforeRouteEnter:function(t,e,a){a((function(e){var a=t.name,r=JSON.parse(sessionStorage.getItem(a));r&&(e.query=r),e.getlistData()}))},created:function(){},mounted:function(){this.getRealHeight();var t=i()().startOf("day").format("YYYY-MM-DD")+" 00:00:00",e=i()().endOf("day").format("YYYY-MM-DD")+" 23:59:59";this.time=[t,e],this.getlistData()},methods:{findArrBykey:function(t,e,a){var r=t.filter((function(t){return t[e]===a}));return r},getlistData:function(){var t=this;this.query.projectUuid=this.$store.state.community_uuid,this.time?(this.query.startDate=this.time[0],this.query.endDate=this.time[1]):(this.query.startDate=null,this.query.endDate=null),this.listLoading=!0,Object(o["c"])(this.query).then((function(e){0===e.code?(t.listRecord=e.data.records,t.pageTotal=e.data.rowsCount,t.getDrawerTableList(),t.listLoading=!1):t.listLoading=!1,sessionStorage.setItem(t.$route.name,JSON.stringify(t.query))})).catch((function(e){t.listLoading=!1}))},getAuthType:function(t){if(console.log("val",t),t){var e=this.findArrBykey(this.authType,"value",t);return e.length>0?e[0].label:"-"}return"-"},onSearch:function(){this.query.pageNumber=1,this.getlistData()},resetForm:function(t){this.time="",this.query.pageNumber=1,this.$refs[t].resetFields(),this.getlistData()},handleSlow:function(){this.isShow=!this.isShow},handleSizeChange:function(t){this.query.pageSize=t,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},headClass:function(){return"text-align:center;background:#FAFAFA;"},upAndDown:function(){this.is_show?this.$refs.box.style.height="80px":this.$refs.box.style.height=this.height,this.is_show=!this.is_show},getRealHeight:function(){this.$nextTick((function(){this.height=this.$refs.form_box.offsetHeight+"px"}))},getDrawerTableList:function(t){this.list=[];for(var e=0;e<this.listRecord.length;e++)this.list.push(this.listRecord[e].carImageUrl);for(e=0;e<this.listRecord.length;e++){var a=this.list,r=a.slice(0,e),n=a.slice(e,this.listRecord.length),o=n.concat(r);this.listRecord[e].list=o}}}},u=l,c=(a("a1e8"),a("829d")),p=Object(c["a"])(u,r,n,!1,null,"0f7cfd5b",null);e["default"]=p.exports},"722f":function(t,e,a){"use strict";a.d(e,"q",(function(){return n})),a.d(e,"d",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"i",(function(){return i})),a.d(e,"h",(function(){return l})),a.d(e,"g",(function(){return u})),a.d(e,"p",(function(){return c})),a.d(e,"c",(function(){return p})),a.d(e,"s",(function(){return d})),a.d(e,"a",(function(){return f})),a.d(e,"k",(function(){return h})),a.d(e,"e",(function(){return m})),a.d(e,"n",(function(){return b})),a.d(e,"l",(function(){return g})),a.d(e,"o",(function(){return v})),a.d(e,"m",(function(){return y})),a.d(e,"r",(function(){return _})),a.d(e,"f",(function(){return j})),a.d(e,"j",(function(){return w}));var r=a("b775");function n(t){return Object(r["a"])({url:"/appproject/CarPark/pageList",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/appproject/CarPark/create",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/appproject/CarMonthlyCard/pageList",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/appproject/CarPark/findMsgTypeByProjectId",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/appproject/CarPark/findCarTypeByProjectId",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/appproject/CarPark/findCarAreaByProjectId",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/appproject/CarBusinessRel/pageList",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/appproject/CarInOutRecord/pageList",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/appproject/CarPark/update",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/appproject/CarPark/ListCarLanes",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/appproject/PurchaseInfo/listAccount",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/appproject/PurchaseInfo/findById",method:"post",data:t})}function b(t){return Object(r["a"])({url:"/appproject/CarInfo/listByUserId",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/appproject/OrderInfo/listByAccountNo",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/appproject/PurchaseInfo/pageList",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/appproject/PurchaseInfo/listByPurchaseId",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/appproject/OrderAccountTradeInfo/list",method:"post",data:t})}function j(t){return Object(r["a"])({url:"/appproject/CarPark/findByProjectUUID",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/appproject/CarPark/findSpaceTypeByProjectUuid",method:"post",data:t})}},a1e8:function(t,e,a){"use strict";a("f735")},f735:function(t,e,a){}}]); |