You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
27 KiB

7 days ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-053cb896"],{"0490":function(t,e,a){"use strict";a("4517")},"0a5a":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return n})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return o}));var i=a("b775");function s(t){return Object(i["a"])({url:"/api/admin/visit/index",method:"get",params:t})}function n(t){return Object(i["a"])({method:"get",url:"/api/admin/visit/show",params:t})}function c(t){return Object(i["a"])({method:"post",url:"/api/admin/visit/save",data:t})}function o(t){return Object(i["a"])({method:"get",url:"/api/admin/visit/destroy",params:t})}},"22a7":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return c}));var i=a("b775");function s(t){return Object(i["a"])({url:"/api/admin/gate/visit-list",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/api/admin/gate/user-list",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/api/admin/gate/use-code",method:"get",params:t})}},4517:function(t,e,a){},"4dc5":function(t,e,a){},"813a":function(t,e,a){"use strict";a("4dc5")},a597:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listwrap",staticStyle:{padding:"0 20px"}},[a("el-dialog",{attrs:{title:"今日访客",visible:t.listShow,width:"80%"},on:{"update:visible":function(e){t.listShow=e}}},[a("xy-table",{attrs:{"table-item":t.table,list:t.data,total:t.total,height:t.tableHeights,auths:[],"is-page":!1},on:{pageSizeChange:function(e){t.select.page_size=e,t.select.page=1,t.getList()},pageIndexChange:function(e){t.select.page=e,t.getList()}},scopedSlots:t._u([{key:"btns",fn:function(){return[a("div")]},proxy:!0}])}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.listShow=!1}}},[t._v("关 闭")])],1)],1)],1)},s=[],n=a("c14f"),c=a("1da1"),o=a("22a7"),r={components:{},data:function(){return{listShow:!1,tableHeights:0,select:{page:1,rows:999,keyword:"",audit_status:"",start_date:"",end_date:"",is_export:0},selectRange:[],statusList:[{id:-1,value:"待学习"},{id:0,value:"待审核"},{id:1,value:"通过(待进厂)"},{id:2,value:"驳回"},{id:3,value:"已进厂"},{id:4,value:"已离厂"}],total:0,data:[],table:[{label:"序号",type:"index",fixed:"left",width:80},{label:"姓名",sortable:!1,prop:"name",fixed:"left",width:120},{label:"类型",sortable:!1,prop:"type_text",width:120},{label:"状态",sortable:!1,prop:"audit_status_text",width:120},{label:"是否随访",sortable:!1,prop:"follw_people",width:80,formatter:function(t,e,a){return a?"是":"否"}},{label:"预约时间",sortable:!1,prop:"date",width:120},{label:"证件类型",sortable:!1,prop:"credent",width:120,formatter:function(t,e,a){return 1==a?"身份证":"护照"}},{label:"证件号",sortable:!1,prop:"idcard",width:180},{label:"手机号",sortable:!1,prop:"mobile",width:120},{label:"单位名称",sortable:!1,prop:"company_name",width:180},{label:"开始时间",sortable:!1,prop:"start_date",width:180},{label:"结束时间",sortable:!1,prop:"end_date",width:180},{label:"创建时间",sortable:!1,prop:"created_at",width:180}]}},computed:{},mounted:function(){},created:function(){this.tableHeight(),this.getToday()},watch:{listShow:function(t){t&&this.getList()}},methods:{getToday:function(){var t=new Date,e=this.$moment(t).format("YYYY-MM-DD");this.select.start_date=e,this.select.end_date=e,this.selectRange=[e,e]},getList:function(){var t=this;return Object(c["a"])(Object(n["a"])().m((function e(){var a;return Object(n["a"])().w((function(e){while(1)switch(e.n){case 0:return e.n=1,Object(o["b"])(t.select);case 1:a=e.v,t.data=a.data,t.total=a.total;case 2:return e.a(2)}}),e)})))()},selectRangeM:function(t){console.log(t),t?(this.select.start_date=t[0],this.select.end_date=t[1]):(this.select.start_date="",this.select.end_date="")},tableHeight:function(t){this.$nextTick((function(){var t=document.