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.
2 lines
16 KiB
2 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-181e31e0"],{"48e8":function(e,t,r){"use strict";r.d(t,"O",(function(){return i})),r.d(t,"P",(function(){return a})),r.d(t,"c",(function(){return u})),r.d(t,"e",(function(){return o})),r.d(t,"Q",(function(){return s})),r.d(t,"R",(function(){return l})),r.d(t,"W",(function(){return d})),r.d(t,"Y",(function(){return c})),r.d(t,"X",(function(){return m})),r.d(t,"Z",(function(){return f})),r.d(t,"bb",(function(){return p})),r.d(t,"ab",(function(){return h})),r.d(t,"f",(function(){return b})),r.d(t,"l",(function(){return T})),r.d(t,"m",(function(){return v})),r.d(t,"g",(function(){return w})),r.d(t,"d",(function(){return g})),r.d(t,"b",(function(){return q})),r.d(t,"S",(function(){return y})),r.d(t,"V",(function(){return O})),r.d(t,"U",(function(){return S})),r.d(t,"T",(function(){return D})),r.d(t,"a",(function(){return E})),r.d(t,"G",(function(){return F})),r.d(t,"L",(function(){return C})),r.d(t,"I",(function(){return G})),r.d(t,"H",(function(){return P})),r.d(t,"i",(function(){return x})),r.d(t,"j",(function(){return k})),r.d(t,"M",(function(){return _})),r.d(t,"o",(function(){return N})),r.d(t,"N",(function(){return B})),r.d(t,"J",(function(){return I})),r.d(t,"q",(function(){return V})),r.d(t,"n",(function(){return j})),r.d(t,"p",(function(){return L})),r.d(t,"K",(function(){return $})),r.d(t,"D",(function(){return R})),r.d(t,"C",(function(){return A})),r.d(t,"F",(function(){return z})),r.d(t,"E",(function(){return Q})),r.d(t,"h",(function(){return U})),r.d(t,"u",(function(){return J})),r.d(t,"B",(function(){return W})),r.d(t,"t",(function(){return H})),r.d(t,"y",(function(){return K})),r.d(t,"v",(function(){return M})),r.d(t,"A",(function(){return X})),r.d(t,"w",(function(){return Y})),r.d(t,"x",(function(){return Z})),r.d(t,"z",(function(){return ee})),r.d(t,"gb",(function(){return te})),r.d(t,"ob",(function(){return re})),r.d(t,"mb",(function(){return ne})),r.d(t,"hb",(function(){return ie})),r.d(t,"jb",(function(){return ae})),r.d(t,"db",(function(){return ue})),r.d(t,"ib",(function(){return oe})),r.d(t,"cb",(function(){return se})),r.d(t,"fb",(function(){return le})),r.d(t,"kb",(function(){return de})),r.d(t,"lb",(function(){return ce})),r.d(t,"nb",(function(){return me})),r.d(t,"eb",(function(){return fe})),r.d(t,"k",(function(){return pe})),r.d(t,"s",(function(){return he})),r.d(t,"r",(function(){return be}));var n=r("b775");r("2c37");function i(e){return n["a"].request({method:"GET",url:"/userArticleOut/countArticleOutNow",params:e})}function a(e){return n["a"].request({method:"GET",url:"/userArticleOut/countPerformed",params:e})}function u(e){return n["a"].request({method:"GET",url:"/complaintPraise/countComplaintNew",params:e})}function o(e){return n["a"].request({method:"GET",url:"/complaintPraise/countPraiseNew",params:e})}function s(e){return n["a"].request({method:"GET",url:"/userDecoration/countDecorationNow",params:e})}function l(e){return n["a"].request({method:"GET",url:"/userDecoration/countPerformed",params:e})}function d(e){return n["a"].request({method:"GET",url:"/vote/countVoteExpectedStart",params:e})}function c(e){return n["a"].request({method:"GET",url:"/vote/findDetailById",params:e})}function m(e){return n["a"].request({method:"GET",url:"/vote/findById",params:e})}function f(e){return n["a"].request({method:"POST",url:"/vote/insert",data:e})}function p(e){return n["a"].request({method:"POST",url:"/vote/update",data:e})}function h(e){return n["a"].request({method:"POST",url:"/vote/release",data:e})}function b(e){return n["a"].request({method:"GET",url:"/advice/findById",params:e})}function T(e){return n["a"].request({method:"GET",url:"/complaintPraise/findById",params:e})}function v(e){return n["a"].request({method:"POST",url:"/complaintPraise/insertDetail",data:e})}function w(e){return n["a"].request({method:"POST",url:"/advice/insertDetail",data:e})}function g(e){return n["a"].request({method:"GET",url:"/advice/countConsultNew",params:e})}function q(e){return n["a"].request({method:"GET",url:"/advice/countAdviceNew",params:e})}function y(e){return n["a"].request({method:"POST",url:"/visitors/cancel",data:e})}function O(e){return n["a"].request({method:"POST",url:"/visitors/update",data:e})}function S(e){return n["a"].request({method:"GET",url:"/visitors/listDetail",params:e})}function D(e){return n["a"].request({method:"GET",url:"/visitors/findById",params:e})}function E(e){return n["a"].request({method:"POST",url:"/doorQRCode/addQrCode",data:e})}function F(e){return n["a"].request({method:"POST",url:"/doorQRCode/removeQrCode",data:e})}function C(e){return n["a"].request({method:"GET",url:"/reportRepair/findRepairDetail",params:e})}function G(e){return n["a"].request({method:"POST",url:"/repairEngineering/insert",data:e})}function P(e){return n["a"].request({method:"GET",url:"/repairEngineering/findById",params:e})}function x(e){return n["a"].request({method:"POST",url:"/article/insert",data:e})}function k(e){return n["a"].request({method:"POST",url:"/article/update",data:e})}function _(e){return n["a"].request({method:"POST",url:"/reportRepair/insert",data:e})}function N(e){return n["a"].request({method:"POST",url:"/dispatch/dispatch",data:e})}function B(e){return n["a"].request({method:"POST",url:"/reportRepair/update",data:e})}function I(e){return n["a"].request({method:"GET",url:"/dispatch/repairWorkOrderDetail",params:e})}function V(e){return n["a"].request({method:"POST",url:"/dispatch/revisit",data:e})}function j(e){return n["a"].request({method:"POST",url:"/dispatch/cancel",data:e})}function L(e){return n["a"].request({method:"GET",url:"/dispatch/findSysUserLikeActualName",params:e})}function $(e){return n["a"].request({method:"GET",url:"/reportRepair/findById",params:e})}function R(e){return n["a"].request({method:"POST",url:"/questionnaire/insert",data:e})}function A(e){return n["a"].request({method:"GET",url:"/questionnaire/findById",params:e})}function z(e){return n["a"].request({method:"POST",url:"/questionnaire/update",data:e})}function Q(e){return n["a"].request({method:"GET",url:"/questionnaire/reportAnalysis",params:e})}function U(e){return n["a"].request({method:"GET",url:"/article/findById",params:e})}function J(e){return n["a"].request({method:"POST",url:"/gambit/insert",data:e})}function W(e){return n["a"].request({method:"POST",url:"/gambit/update",data:e})}function H(e){return n["a"].request({method:"GET",url:"/gambit/findById",params:e})}function K(e){return n["a"].request({method:"GET",url:"/gambitTheme/findCommentByThemeId",params:e})}function M(e){return n["a"].request({method:"GET",url:"/gambitTheme/deleteCommentByCommentId",params:e})}function X(e){return n["a"].request({method:"POST",url:"/gambitTheme/recovery",data:e})}function Y(e){return n["a"].request({method:"GET",url:"/gambitTheme/enableComment",params:e})}function Z(e){return n["a"].request({method:"GET",url:"/gambitTheme/enableTheme",params:e})}function ee(e){return n["a"].request({method:"GET",url:"/gambitTheme/list",params:e})}function te(e){return n["a"].request({method:"GET",url:"/workOrderType/list",params:e})}function re(e){return n["a"].request({method:"POST",url:"/workOrderType/update",data:e})}function ne(e){return n["a"].request({method:"POST",url:"/workOrderType/insert",data:e})}function ie(e){return n["a"].request({method:"GET",url:"/workOrderType/delete",params:e})}function ae(e){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/insert",data:e})}function ue(e){return n["a"].request({method:"POST",url:"/workOrderTimeLimit/insert",data:e})}function oe(e){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/delete",data:e})}function se(e){return n["a"].request({method:"GET",url:"/workOrderTimeLimit/findById",params:e})}function le(e){return n["a"].request({method:"POST",url:"/workOrderTimeLimit/update",data:e})}function de(e){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/update",data:e})}function ce(e){return n["a"].request({method:"GET",url:"/workOrderTypeDetail/findById",params:e})}function me(e){return n["a"].request({method:"GET",url:"/workOrderTypeDetail/list",params:e})}function fe(e){return n["a"].request({method:"GET",url:"/workOrderTimeLimit/list",params:e})}function pe(e){return n["a"].request({method:"POST",url:"/borrow/remind",data:e})}function he(e){return n["a"].request({method:"GET",url:"/gambit/enableGambit",params:e})}function be(e){return n["a"].request({method:"GET",url:"/gambit/disableGambit",params:e})}},6433:function(e,t,r){},"662b":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r("f2d9");var n=r("2b74");async function i(e,t){let r=[];const i=await Object(n["b"])(e);if(r.push(...i.tableList),i.pageCount>1)for(let a=1;a<i.pageCount;a++){e.pageNum=a+1;const u=await Object(n["b"])(e);t.ExcelLoading(a,i.pageCount),r.push(...u.tableList)}return r}async function a(e){let t=[];const r=await Object(n["b"])(e);return console.log(r),t.push(...r.tableList),t}},"6ff7":function(e,t,r){"use strict";r("6433")},"8fd3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{staticStyle:{width:"50px"}},[t("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:e.fetchData,fields:e.json_fields,"before-finish":e.finishDownload,name:"访客记录.xls"}},[t("el-button",{attrs:{size:"mini",icon:"el-icon-folder-add",plain:""}},[e._v("导出Excel")])],1)],1),t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck},scopedSlots:e._u([{key:"visitDateStart",fn:function(r){return[t("div",[e._v(e._s(e._f("capitalize")(r.data.visitDateStart)))])]}}])},[t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"})])],2),t("Drawer",{attrs:{drawerTitle:"访客编辑",drawerVrisible:e.edit_vrisible},on:{drawerClose:e.drawerClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("基本信息")]),[t("VueForm",{ref:"childFrom",attrs:{formObj:e.reviseForm}})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.onSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.drawerClose}},[t("span",[e._v("取消")])])])]),t("Drawer",{attrs:{drawerTitle:"出入记录",drawerVrisible:e.recordVrisible},on:{drawerClose:e.drawerClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("出入记录")]),[t("div",{staticStyle:{margin:"0 auto"}},[t("tableData",{attrs:{config:e.recordConfig}})],1)]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){e.recordVrisible=!1}}},[t("span",[e._v("关闭")])])])])],1)])])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("访客管理")])])}],a=r("662b"),u=r("48e8"),o={data(){return{edit_vrisible:!1,recordVrisible:!1,countNew:0,table_row:[],json_fields:{"拜访房屋名称":"roomName","访客姓名":"name","访客电话":"tel","访客性别":{field:"sex",callback:e=>{switch(e){case 1:return"男";case 2:return"女"}}},"访客车牌号":"carNumber","预约到访日期":{field:"visitDateStart",callback:e=>{if(e)return e.substring(0,10)}},"申请人":"createName","申请时间":"createDate"},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"拜访房屋名称",prop:"roomName",width:"auto"},{label:"访客姓名",prop:"name",width:"auto"},{label:"访客电话",prop:"tel",width:"auto"},{label:"访客性别",prop:"sex",width:"auto",type:"function",callback:(e,t)=>{switch(e.sex){case 1:return"男";case 2:return"女";default:break}}},{label:"访客车牌号",prop:"carNumber",width:"160"},{label:"预约到访日期",prop:"visitDateStart",width:"180",type:"slot",slotName:"visitDateStart"},{label:"申请人",prop:"createName",width:"180"},{label:"申请时间",prop:"createDate",width:"180"}],table_data:[],search_item:[{type:"Input",label:"访客姓名",placeholder:"请输入",prop:"name"},{type:"Int",label:"访客手机号",placeholder:"请输入",prop:"tel"}],url:"visitorsNewList",data:{pageNum:1,size:10}},reviseForm:{ruleForm:{roomName:null,name:null,status:null,tel:null,weight:null,type:null,departureTime:null,visitDate:null},form_item:[{type:"Input",label:"来访房屋",placeholder:"请输入",width:"100%",prop:"roomName",disabled:!0},{type:"Input",label:"访客姓名",placeholder:"请输入",width:"50%",prop:"name"},{type:"Select",label:"访客性别",placeholder:"请输入",options:[{value:1,label:"正常"},{value:2,label:"有误"}],width:"50%",prop:"sex"},{type:"Select",label:"是否开车",placeholder:"请输入",options:[{value:1,label:"业委会"},{value:2,label:"绿化"}],width:"50%",prop:"isDrive"},{type:"Input",label:"车牌号",placeholder:"请输入权重",width:"50%",prop:"carNum"},{type:"DateTime",label:"预计到访时间",placeholder:"请输入预计到访时间",width:"50%",prop:"expectedVisitDate"},{type:"DateTime",label:"通行证时效",placeholder:"请输入通行证时效",disabled:!0,width:"50%",prop:"effectiveTime"},{type:"DateTime",label:"实际到访时间",placeholder:"请输入实际到访时间",width:"50%",prop:"visitDate"},{type:"DateTime",label:"实际离开时间",placeholder:"请输入实际离开时间",width:"50%",prop:"departureTime"},{type:"Select",label:"访客状态",placeholder:"请输入访客状态",options:[{value:1,label:"未到"},{value:2,label:"已到"},{value:3,label:"已过期"},{value:4,label:"作废"}],width:"50%",prop:"visitorStatus"}]},recordConfig:{thead:[{label:"序号",type:"index",width:"110"},{label:"进入时间",prop:"departureTime",width:"auto"},{label:"出去时间",prop:"visitTime",width:" auto"}],checkbox:!1,table_data:[]}}},filters:{capitalize:function(e){return e?(e=e.toString(),e.substring(0,10)):""}},methods:{async fetchData(){let e={url:"visitorsNewList",data:{pageNum:1,size:100}};const t=await Object(a["a"])(e,this);return t},ExcelLoading(e,t){const r=this.$loading({lock:!0,text:"正在导出Excel"+e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});r.text=`正在导出Excel ${e}/${t}`,console.log(r.text)},finishDownload(){const e=this.$loading();e.close()},tableCheck(e){this.table_row=e},onSubmit(){let e={id:this.table_row[0].id,name:this.reviseForm.ruleForm.name,sex:this.reviseForm.ruleForm.sex,isDrive:this.reviseForm.ruleForm.isDrive,carNum:this.reviseForm.ruleForm.carNum,expectedVisitDate:this.reviseForm.ruleForm.expectedVisitDate,visitDate:this.reviseForm.ruleForm.visitDate,departureTime:this.reviseForm.ruleForm.departureTime,effectiveTime:this.reviseForm.ruleForm.effectiveTime,visitorStatus:this.reviseForm.ruleForm.visitorStatus};Object(u["V"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.getTipsData(),this.edit_vrisible=!1)})},record(e){if(e.length){if(e.length>1)return void this.$message({message:"不能批量查看",type:"error"});let t={id:e[0].id};Object(u["U"])(t).then(e=>{e&&(this.recordVrisible=!0,this.recordConfig.table_data=e.voUserVisitorsDetailList),console.log(e)})}else this.$message({message:"请选择需要查看的数据",type:"error"})},edit(e){if(e.length){if(e.length>1)return void this.$message({message:"不能批量编辑",type:"error"});let t={id:e[0].id};Object(u["T"])(t).then(e=>{e&&(this.reviseForm.ruleForm.name=e.name,this.reviseForm.ruleForm.sex=e.sex,this.reviseForm.ruleForm.isDrive=e.isDrive,this.reviseForm.ruleForm.carNum=e.carNum,this.reviseForm.ruleForm.expectedVisitDate=e.expectedVisitDate,this.reviseForm.ruleForm.visitDate=e.visitDate,this.reviseForm.ruleForm.departureTime=e.departureTime,this.reviseForm.ruleForm.effectiveTime=e.effectiveTime,this.reviseForm.ruleForm.visitorStatus=e.visitorStatus,this.edit_vrisible=!0)})}else this.$message({message:"请选择需要编辑的数据",type:"error"})},drawerClose(){this.edit_vrisible=!1,this.recordVrisible=!1},toVoid(e){let t=[];for(let r=0;r<this.table_row.length;r++)t.push(this.table_row[r].id);this.$confirm("确定要将访客信息作废吗?(若访客还未到访,作废将导致该访客无法进入)","作废提示s",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{let e={ids:t};Object(u["S"])(e).then(e=>{e.status&&this.$message({message:e.message,type:"success"})})}).catch(e=>{})},cancel(e){this.dialog_visible=!1},getClose(e){this.drawer_vrisible=!1,this.recordVrisible=!1}}},s=o,l=(r("6ff7"),r("2877")),d=Object(l["a"])(s,n,i,!1,null,"1b55dc4a",null);t["default"]=d.exports}}]);
|
|
//# sourceMappingURL=chunk-181e31e0.5bd0ddce.js.map
|