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
22 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e750458"],{"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 r}));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 r(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})}},"3a1e":function(t,e,a){"use strict";a("7b66")},"6ef8":function(t,e,a){},"7b66":function(t,e,a){},b3d3:function(t,e,a){"use strict";a("6ef8")},c119: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",[a("div",{staticClass:"gatewrap"},[a("div",{staticClass:"gateRight"},[a("span",[t._v(" "+t._s(t.gateName)),a("span",{on:{click:function(e){t.gateShow=!0}}},[t._v("切换")])]),a("span",{on:{click:t.screen}},[t._v(t._s(t.fullscreen?"取消全屏":"打开全屏"))])]),a("div",{staticClass:"gatecode"},[a("div",[t._v(" 拜访日期: "),a("el-date-picker",{staticStyle:{width:"400px","vertical-align":"middle"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.selectRangeM},model:{value:t.selectRange,callback:function(e){t.selectRange=e},expression:"selectRange"}})],1),a("div",[t._v(" 核验销码: "),a("el-input",{ref:"codeInput",staticStyle:{width:"160px","margin-right":"10px"},attrs:{clearable:"",size:"mini",placeholder:"请输入核销码或扫码"},model:{value:t.select.code,callback:function(e){t.$set(t.select,"code",e)},expression:"select.code"}})],1),a("div",[t._v(" 身份证件: "),a("el-input",{ref:"idInput",staticStyle:{width:"160px","margin-right":"10px"},attrs:{clearable:"",size:"mini",placeholder:"请输入身份证"},model:{value:t.select.idcard,callback:function(e){t.$set(t.select,"idcard",e)},expression:"select.idcard"}}),a("el-button",{attrs:{type:"primary"},on:{click:t.getIdcard}},[t._v("查询身份证")])],1),a("div",[a("el-button",{staticClass:"getButton",attrs:{type:"primary"},on:{click:t.getList}},[t._v("查询")])],1)])]),a("showVisit",{ref:"showVisit",on:{refresh:t.clearCode}}),a("el-dialog",{attrs:{title:"请先选择门岗人员",visible:t.gateShow,width:"60%","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(e){t.gateShow=e}}},[a("el-radio-group",{model:{value:t.gateAdminId,callback:function(e){t.gateAdminId=e},expression:"gateAdminId"}},t._l(t.gateData,(function(e){return a("el-radio",{attrs:{label:e.id,border:""}},[t._v(t._s(e.name))])})),1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.confirmGate}},[t._v("确 定")])],1)],1)],1)},s=[],n=a("c7eb"),c=a("b85c"),r=a("1da1"),o=(a("d81d"),a("b0c0"),a("ac1f"),a("5319"),a("a78e")),l=a.n(o),d=a("bc3a"),u=a.n(d),m=a("fcc0"),f=a("22a7"),p={components:{showVisit:m["default"]},data:function(){return{fullscreen:!1,clientHeight:0,gateShow:!1,gateAdminId:"",gateName:"",gateData:[],gateUser:{},selectRange:[],select:{page:1,rows:10,keyword:"",audit_status:"",start_date:"",end_date:"",is_export:0,code:"",idcard:""},data:[]}},computed:{},mounted:function(){},created:function(){this.getUserList(),this.getToday()},methods:{init:function(){var t=document.documentElement.clientHeight;this.clientHeight=t},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]},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="")},clearCode:function(){var t=this;this.select.code="",this.select.idcard="",this.$nextTick((function(){t.$refs.codeInput.focus()}))},getList:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var a,i,s,r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=t.select.code||""!=t.select.idcard){e.next=3;break}return t.$successMessage("请输入核销码或身份证件","","warning"),e.abrupt("return");case 3:return e.next=5,Object(f["b"])(t.select);case 5:if(a=e.sent,t.data=a.data,t.data.length>0){i=Object(c["a"])(t.data);try{for(i.s();!(s=i.n()).done;)r=s.value,1==r.audit_status||3==r.audit_status?(t.$refs["showVisit"].form=t.data[0],t.$refs["showVisit"].formDataType="coderecord",t.$refs["showVisit"].gateAdminId=t.gateAdminId,t.$refs["showVisit"].isShow=!0):t.$successMessage(r.audit_status_text,"","success")}catch(n){i.e(n)}finally{i.f()}}else t.$successMessage("未查询到记录","","warning");case 8:case"end":return e.stop()}}),e)})))()},getUserList:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.gateUser=l.a.get("gateUser")?JSON.parse(l.a.get("gateUser")):"",console.log(t.gateUser),e.next=4,Object(f["c"])();case 4:if(a=e.sent,t.gateData=a,!t.gateUser.gateAdminId){e.next=13;break}return t.gateAdminId=t.gateUser.gateAdminId,t.gateName=t.gateUser.gateName,t.gateShow=!1,e.abrupt("return");case 13:t.gateShow=!0;case 14:case"end":return e.stop()}}),e)})))()},confirmGate:function(){var t=this;this.gateAdminId?(this.gateData.map((function(e){t.gateAdminId==e.id&&(t.gateName=e.name)})),l.a.set("gateUser",{gateName:this.gateName,gateAdminId:this.gateAdminId}),this.$nextTick((function(){t.$refs.codeInput.focus()})),this.gateShow=!1):this.$successMessage("请先选择门岗","","warning")},getIdcard:function(){var t=this,e=this;u.a.get("https://127.0.0.1:24011/ZKIDROnline/ScanReadIdCardInfo?OP-DEV=1&CMD-URL=4&REPEAT=1&READTYPE=1",{headers:{"Content-Type":"application/json"}}).then((function(t){if(console.log(t),console.log(t.data),t.data){var a=t.data?t.data.split('"IDNumber"'):"";console.log("data1",a);var i=a[1].split(",");console.log("data2",i);var s=i[0].replace(/[^\d]/g,"");console.log("data3",s),e.select.idcard=s,e.getList()}})).catch((function(e){console.log(e),t.$successMessage(e.statusText,"","warning")}))},screen:function(){var t=document.documentElement;this.fullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen(),this.fullscreen=!this.fullscreen},enterfullscreen:function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():elem.msRequestFullscreen&&elem.msRequestFullscreen()},exitfullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}}},v=p,h=(a("3a1e"),a("2877")),y=Object(h["a"])(v,i,s,!1,null,"4aa8af62",null);e["default"]=y.exports},fcc0: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",[a("xy-dialog",{ref:"dialog",attrs:{width:70,"is-show":t.isShow,type:"form",title:""+t.form.type_text,form:t.formData},on:{"update:isShow":function(e){t.isShow=e},"update:is-show":function(e){t.isShow=e}},scopedSlots:t._u([{key:"logs",fn:function(){return[a("el-timeline",{attrs:{reverse:!0}},t._l(t.form.logs,(function(e,i){return a("el-timeline-item",{key:i,attrs:{timestamp:e.created_at}},[t._v(" "+t._s(e.remark)+" ")])})),1)]},proxy:!0},"coderecord"==t.formDataType?{key:"checkcode",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label",staticStyle:{"font-size":"32px",width:"230px!important"}},[t._v(" 核销码: ")]),a("div",{staticClass:"xy-table-item-content"},[a("div",{staticStyle:{"font-size":"32px",padding:"25px",width:"400px"}},[t._v(" "+t._s(t.form.code)+" ")])])])]},proxy:!0}:null,"coderecord"==t.formDataType?{key:"codeType",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label",staticStyle:{"font-size":"32px",width:"280px!important"}},[t._v(" 核销状态: ")]),a("div",{staticClass:"xy-table-item-content"},[a("div",{staticStyle:{"font-size":"32px",padding:"25px",width:"400px"}},[a("el-radio-group",{model:{value:t.codeForm.type,callback:function(e){t.$set(t.codeForm,"type",e)},expression:"codeForm.type"}},t._l(t.codeTypeList,(function(e){return a("el-radio",{attrs:{label:e.id}},[t._v(t._s(e.value))])})),1)],1)])])]},proxy:!0}:null,"coderecord"==t.formDataType?{key:"person_no",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label",staticStyle:{"font-size":"32px",width:"230px!important"}},[t._v(" 入场牌: ")]),a("div",{staticClass:"xy-table-item-content"},[a("el-input",{staticStyle:{"font-size":"32px",padding:"25px",width:"400px"},attrs:{placeholder:"请输入入场牌"},model:{value:t.codeForm.person_no,callback:function(e){t.$set(t.codeForm,"person_no",e)},expression:"codeForm.person_no"}})],1)])]},proxy:!0}:null,"coderecord"==t.formDataType?{key:"car_no",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label",staticStyle:{"font-size":"32px",width:"230px!important"}},[t._v(" 停车牌: ")]),a("div",{staticClass:"xy-table-item-content"},[a("el-input",{staticStyle:{"font-size":"32px",padding:"25px",width:"400px"},attrs:{placeholder:"请输入停车牌"},model:{value:t.codeForm.car_no,callback:function(e){t.$set(t.codeForm,"car_no",e)},expression:"codeForm.car_no"}})],1)])]},proxy:!0}:null,{key:"visitinfo",fn:function(){return[a("div",{staticStyle:{width:"600px"}},[t._v(" 拜访信息 ")])]},proxy:!0},{key:"date",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("到访日期: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.date)+" ")])])]},proxy:!0},{key:"visit_time_id",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("到访时段: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.visit_time?t.form.visit_time.start_time:"")+"至"+t._s(t.form.visit_time?t.form.visit_time.end_time:"")+" ")])])]},proxy:!0},{key:"visit_area_id",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("前往区域: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.visit_area?t.form.visit_area.name:"")+" ")])])]},proxy:!0},1==t.form.type?{key:"reason",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("到访事由: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.reason)+" ")])])]},proxy:!0}:null,2==t.form.type?{key:"workRange",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("施工时段: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.work_start_time)+"至"+t._s(t.form.work_end_time)+" ")])])]},proxy:!0}:null,3==t.form.type?{key:"plate",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v(" 停车区域: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.plate)+" ")])])]},proxy:!0}:null,{key:"remark",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v(" 备注: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.remark)+" ")])])]},proxy:!0},{key:"visitorinfo",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-content",staticStyle:{width:"400px"}},[t._v(" 拜访人信息: ")])])]},proxy:!0},{key:"name",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("姓名: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.name)+" ")])])]},proxy:!0},{key:"mobile",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("联系电话: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.mobile)+" ")])])]},proxy:!0},{key:"credent",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v("证件类型: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(1==t.form.credent?"身份证":"护照")+" ")])])]},proxy:!0},{key:"idcard",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v(" 证件号码: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.idcard)+" ")])])]},proxy:!0},{key:"company_name",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v(" 单位名称: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.company_name)+" ")])])]},proxy:!0},{key:"cars",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v(" 到访车辆: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.cars?t.form.cars.join(","):"")+" ")])])]},proxy:!0},1==t.form.type||2==t.form.type?{key:"follw_people",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("随访人员: ")]),a("div",{staticClass:"xy-table-item-content"},[a("xy-table",{staticStyle:{width:"620px"},attrs:{height:260,"is-page":!1,list:t.form.follw_people,"table-item":t.followTable},scopedSlots:t._u([{key:"btns",fn:function(){},proxy:!0}],null,!1,992159138)})],1)])]},proxy:!0}:null,{key:"long_time",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("长访客申请: ")]),a("div",{staticClass:"xy-table-item-content",staticStyle:{width:"620px"}},[t._v(" "+t._s(0==t.form.long_time?"否":"是")+" "),1==t.form.long_time?a("div",{staticStyle:{display:"inline-block","vertical-align":"middle","margin-left":"10px"}},[t._v(" "+t._s(t.form.start_date)+"至"+t._s(t.form.end_date)+" ")]):t._e()])])]},proxy:!0},{key:"visitorinfos",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-content",staticStyle:{width:"400px"}},[t._v(" 被访人信息: ")])])]},proxy:!0},{key:"accept_admin_id",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("人员: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.accept_admin?t.form.accept_admin.name:"")+" ")])])]},proxy:!0},3==t.form.type?{key:"accept_goods_admin_id",fn:function(){return[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[a("span",{staticStyle:{color:"red","font-weight":"600","padding-right":"4px"}}),t._v("收货人: ")]),a("div",{staticClass:"xy-table-item-content"},[t._v(" "+t._s(t.form.accept_goods_admin?t.form.accept_goods_admin.name:"")+" ")])])]},proxy:!0}:null,"checkrecord"==t.formDataType?{key:"checkRecord",fn:function(){return[a("div",{staticStyle:{width:"600px"}},[t._v(" 审核 ")])]},proxy:!0}:null,0==t.form.audit_status&&t.isCheck?{key:"checkForm",fn:function(){return[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{prop:"checkForm.status"}},[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v("状态: ")]),a("div",{staticClass:"xy-table-item-content"},[a("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择"},model:{value:t.checkForm.status,callback:function(e){t.$set(t.checkForm,"status",e)},expression:"checkForm.status"}},t._l(t.statusList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})})),1)],1)])]),a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{prop:"checkForm.reason"}},[a("div",{staticClass:"xy-table-item"},[a("div",{staticClass:"xy-table-item-label"},[t._v(" 备注: ")]),a("div",{staticClass:"xy-table-item-content"},[a("el-input",{staticStyle:{width:"300px"},attrs:{type:"textarea",placeholder:"请输入备注"},model:{value:t.checkForm.reason,callback:function(e){t.$set(t.checkForm,"reason",e)},expression:"checkForm.reason"}})],1)])])]},proxy:!0}:null,0!=t.form.audit_status||t.isCheck?null:{key:"checkText",fn:function(){return[a("div",{staticClass:"checkforms dbitem",staticStyle:{padding:"30rpx"}},[t._v(" "+t._s(t.checkText)+" ")])]},proxy:!0},{key:"footerContent",fn:function(){return[a("div",[a("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.reset}},[t._v("取消")]),"checkrecord"==t.formDataType&&t.isCheck?a("Button",{attrs:{type:"primary"},on:{click:t.checkSubmit}},[t._v("审核")]):t._e(),"coderecord"==t.formDataType?a("Button",{attrs:{type:"primary"},on:{click:t.codeSubmit}},[t._v("确认")]):t._e()],1)]},proxy:!0}],null,!0)})],1)},s=[],n=a("5530"),c=a("53ca"),r=a("b85c"),o=a("c7eb"),l=a("1da1"),d=(a("d81d"),a("b0c0"),a("3ca3"),a("ddb0"),a("b775"));function u(t){return Object(d["a"])({method:"post",url:"/api/admin/visit_audit/save",data:t})}var m=a("0a5a"),f=a("22a7"),p=a("c24f"),v=(a("a78e"),{components:{},data:function(){return{isShow:!1,id:"",userId:"",formDataType:"",formData:{checkcode:"",codeType:"",car_no:"",person_no:"",visitinfo:"",date:"",visit_time_id:"",visit_area_id:"",workRange:"",reason:"",plate:"",remark:"",visitorinfo:"",name:"",mobile:"",credent:1,idcard:"",company_name:"",cars:"",follw_people:[],long_time:0,longrange:"",visitorinfos:"",accpet_department_id:"",accept_admin_id:"",accept_goods_admin_id:"",checkRecord:"",checkForm:{},checkText:""},form:{},checkForm:{status:1},codeForm:{type:1,car_no:"",person_no:""},codeTypeList:[{id:1,value:"入场"},{id:2,value:"离场"}],gateAdminId:"",check_admin_name:"",followTable:[{label:"姓名",prop:"name",width:200},{label:"联系电话",prop:"mobile",width:200},{label:"证件类型",prop:"credent",width:200,formatter:function(t,e,a){return 1==a?"身份证":"护照"}},{label:"证件号码",prop:"idcard",width:200}],statusList:[{id:1,value:"通过"},{id:2,value:"驳回"}],checkLevel:[{id:1,value:"请等待一级审核完成"},{id:2,value:"请等待二级审核完成"},{id:3,value:"请等待三级审核完成"}],checkText:"",isCheck:!1}},created:function(){},watch:{isShow:function(t){if(t){"checkrecord"==this.formDataType&&(this.checkForm.visit_id=this.id,this.getUserId(),this.getDetail()),"coderecord"==this.formDataType&&(this.codeForm.code=this.form.code,this.codeForm.admin_id=parseInt(this.gateAdminId),this.codeForm.type=1==this.form.audit_status?1:3==this.form.audit_status?2:"")}else this.reset()}},methods:{selectLevel:function(t){var e=this;this.form.audit.map((function(a){a.level==t&&(e.checkForm.level=a.level,e.checkForm.id=a.id,e.checkForm.audit_admin_id=a.audit_admin_id,e.check_admin_name=a.audit_admin?a.audit_admin.name:"")}))},getUserId:function(){var t=this;return Object(l["a"])(Object(o["a"])().mark((function e(){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(p["b"])();case 2:a=e.sent,t.userId=a.id;case 4:case"end":return e.stop()}}),e)})))()},getDetail:function(){var t=this;return Object(l["a"])(Object(o["a"])().mark((function e(){var a,i,s,n,l,d;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(m["d"])({id:t.id});case 2:a=e.sent,i=t,t.form=a,s=Object(r["a"])(i.form.audit),e.prev=6,l=Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=n.value,0!=e.status){t.next=15;break}if(e.audit_admin_id!=i.userId){t.next=10;break}return i.checkForm.level=e.level,i.checkForm.id=e.id,i.checkForm.audit_admin_id=e.audit_admin_id,i.isCheck=!0,t.abrupt("return",{v:void 0});case 10:return i.checkLevel.map((function(t){e.level==t.id&&(i.checkText=t.value)})),i.isCheck=!1,t.abrupt("return",{v:void 0});case 13:t.next=16;break;case 15:i.isCheck=!1;case 16:case"end":return t.stop()}}),t)})),s.s();case 9:if((n=s.n()).done){e.next=16;break}return e.delegateYield(l(),"t0",11);case 11:if(d=e.t0,"object"!==Object(c["a"])(d)){e.next=14;break}return e.abrupt("return",d.v);case 14:e.next=9;break;case 16:e.next=21;break;case 18:e.prev=18,e.t1=e["catch"](6),s.e(e.t1);case 21:return e.prev=21,s.f(),e.finish(21);case 24:case"end":return e.stop()}}),e,null,[[6,18,21,24]])})))()},reset:function(){this.id="",this.formDataType="",this.checkForm={},this.check_admin_name="",this.codeForm={},this.codeType="",this.gateAdminId="",this.isShow=!1,this.$refs["dialog"].reset()},checkSubmit:function(){var t=this;console.log(this.checkForm);var e=this;u(Object(n["a"])({},e.checkForm)).then((function(e){t.$successMessage("审核成功"),t.isShow=!1,t.$emit("refresh")}))},codeSubmit:function(){var t=this,e=this;console.log(this.codeForm),Object(f["a"])(Object(n["a"])({},e.codeForm)).then((function(e){t.$successMessage("核销成功"),t.isShow=!1,t.$emit("refresh")}))}}}),h=v,y=(a("b3d3"),a("2877")),b=Object(y["a"])(h,i,s,!1,null,"a245b41c",null);e["default"]=b.exports}}]);