1(self["webpackChunkapplication"]=self["webpackChunkapplication"]||[]).push([[1371],{38946:function(e){e.exports={record_Index:"record_Index___3hZ-V",tabs_sub:"tabs_sub___1bPRI",tabs_row:"tabs_row___2B_h9","ant-card-body":"ant-card-body___3B8re",tabs_img:"tabs_img___2tk_k",page_list:"page_list___23iXo",tabs_card:"tabs_card___1oWFa",tabs_header:"tabs_header___1ZJit",shadow_box:"shadow_box___W-TSs",record_title:"record_title___lxDUD",tag_box_user:"tag_box_user___nsn2Q",tag_box_staff:"tag_box_staff___3rWt5",tag_box_container:"tag_box_container___2dMzV"}},87937:function(e,i,l){"use strict";l.r(i),l.d(i,{default:function(){return C}});l(71194);var t=l(50146),n=(l(13062),l(71230)),s=(l(12968),l(62462)),a=(l(88983),l(47933)),d=(l(57663),l(71577)),o=(l(89032),l(15746)),r=(l(94233),l(51890)),c=(l(34792),l(48086)),h=l(2824),u=(l(47673),l(4107)),v=l(42004),p=l(67294),x=l(72709),m=l(83647),g=l(38946),_=l.n(g),y=l(27806),f=l(1958),b=l.n(f),j=l(38448),S=l(85893);const w=u.Z.TextArea,k=[{title:"\u5230\u8bbf",name:"visit"},{title:"\u79bb\u8bbf",name:"leave"}],N=[{title:"\u5ba1\u6838\u72b6\u6001",name:"status"},{title:"\u5ba1\u6838\u5907\u6ce8",name:"note"},{title:"\u5ba1\u6838\u65f6\u95f4",name:"time"}],Z=j.VK;function C(e){const i=(0,v.YB)(),l=(0,p.useState)(""),u=(0,h.Z)(l,2),g=u[0],f=u[1],j=(0,p.useState)("0"),C=(0,h.Z)(j,2),T=C[0],z=C[1],P=(0,p.useState)(!1),A=(0,h.Z)(P,2),F=A[0],D=A[1],H=(0,p.useState)({}),L=(0,h.Z)(H,2),J=L[0],O=L[1],Q=(0,p.useState)({}),E=(0,h.Z)(Q,2),I=E[0],B=E[1],W=(0,p.useState)([]),R=(0,h.Z)(W,2),M=R[0],q=R[1],V=(0,p.useState)(""),Y=(0,h.Z)(V,2),G=Y[0],K=Y[1],U=(0,p.useState)([]),X=(0,h.Z)(U,2),$=X[0],ee=X[1],ie=(0,p.useState)(1),le=(0,h.Z)(ie,2),te=le[0],ne=le[1],se=(0,p.useState)([]),ae=(0,h.Z)(se,2),de=ae[0],oe=ae[1],re=(0,p.useState)([]),ce=(0,h.Z)(re,2),he=ce[0],ue=ce[1],ve=(0,p.useState)([]),pe=(0,h.Z)(ve,2),xe=pe[0],me=pe[1],ge=(0,p.useState)(""),_e=(0,h.Z)(ge,2),ye=_e[0],fe=_e[1],be=(0,p.useState)(!1),je=(0,h.Z)(be,2),Se=je[0],we=je[1],ke=(0,p.useState)({}),Ne=(0,h.Z)(ke,2),Ze=Ne[0],Ce=Ne[1],Te=(0,p.useState)(0),ze=(0,h.Z)(Te,2),Pe=ze[0],Ae=ze[1],Fe=(0,p.useState)({status:"",note:"",time:""}),De=(0,h.Z)(Fe,2),He=De[0],Le=De[1],Je=(0,p.useState)({visit:{url:"",time:""},leave:{url:"",time:""}}),Oe=(0,h.Z)(Je,2),Qe=Oe[0],Ee=Oe[1],Ie=(0,v.QT)(x.e24,{manual:!0,debounceInterval:1e3,onSuccess:(i,l)=>{c.ZP.success("\u79fb\u9664\u6284\u9001\u4eba\u6210\u529f").then(),ee(JSON.parse(l[0].recipients)),Ce({}),we(!1),Ae(0),e.setLoading(!1)},onError:i=>{e.setLoading(!1),c.ZP.error(null===i||void 0===i?void 0:i.errorMessage).then()}}),Be=(0,v.QT)(x.Qgw,{manual:!0,onSuccess:()=>{c.ZP.destroy(),c.ZP.success("\u5ba1\u6279\u6210\u529f").then(),v.m8.push("/pc/record")},onError:e=>{c.ZP.destroy(),c.ZP.error(null===e||void 0===e?void 0:e.errorMessage).then()}}),We=(0,v.QT)(x.Rtf,{manual:!0,onSuccess:async({data:i})=>{e.setLoading(!1);let l=(0,m.I8)(JSON.parse(null===i||void 0===i?void 0:i.recipients));if(l&&(null===l||void 0===l?void 0:l.length)>0)for(let e in l){var t;if(null!==(t=l[e])&&void 0!==t&&t.value){var n,s;let i=await Me.run({rid:null===(n=l[e])||void 0===n?void 0:n.value}).then();if(null!==i&&void 0!==i&&null!==(s=i.data)&&void 0!==s&&s.rid){const t=null===i||void 0===i?void 0:i.data,n=t.name,s=t.face,a=t.dep,d=t.phone;l[e].name=n,l[e].face=s,l[e].phone=d,l[e].dep=null===a||void 0===a?void 0:a.join(",")}}}ee([...l])},onError:()=>{e.setLoading(!1),ee([])}}),Re=(0,v.QT)(x.PqD,{manual:!0,onSuccess:({data:e})=>{var i;const l=e.phone,t=e.name,n=e.user,s=e.face,a=e.unit,d=e.insideName,o=e.insideFace,r=e.inside,c=e.insidePhone,h=e.arrive;O({name:t,phone:l,rid:n,face:s,company:a}),B({name:d,phone:c,rid:r,face:o});const u=e.catchPhoto,v=e.visitTime,p=e.leaveTime,x=e.leaveCatchPhoto;Ee({visit:{url:u,time:v},leave:{url:x,time:p}});let m="1";h>0?m="3":"0"!=T&&(m="2"),z(m);const g=e.form,_=e.childCompany,y=e.expire;console.log("--form--",g),K(y);let f=null===(i=JSON.parse(g))||void 0===i?void 0:i.slice(1),b=e;if(_){const i=e.childCompanyCache,l=e.childCompanyAreaCache,t=JSON.parse(i);null!==t&&void 0!==t&&t.name&&(f.splice(2,0,{id:"4546kds34",disabled:!0,name:"deviceCompany",required:1,title:"\u62dc\u8bbf\u5355\u4f4d",type:"input"},{id:"4546sds34",disabled:!0,name:"deviceCompanyArea",required:1,title:"\u62dc\u8bbf\u533a\u57df",type:"input"},{id:"4546kds09",disabled:!0,name:"deviceAddress",required:1,title:"\u62dc\u8bbf\u5730\u5740",type:"input"}),b.deviceCompany=t.name,b.deviceAddress=JSON.parse(l).address,b.deviceCompanyArea=JSON.parse(l).name)}for(let S in f){var j;if("peer"===(null===(j=f[S])||void 0===j?void 0:j.type)){f.splice(Number(S),1);break}}console.log("--DYform--",f),Ye(f,b)}}),Me=(0,v.QT)(x.Cpe,{manual:!0}),qe=(0,v.QT)(x.fxv,{manual:!0,onSuccess:async({data:e},i)=>{var l;const t=e.current,n=e.showCheck,s=e.showBack;let a=[];if((null===t||void 0===t?void 0:t.length)>0)for(let o in t)if(t[o]){var d;const e=await Me.run({rid:t[o]});a.push(null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.name)}ue(a),D(n),oe(s?[{name:"\u901a\u8fc7",value:1},{name:"\u62d2\u7edd",value:2},{name:"\u9000\u56de",value:4}]:[{name:"\u901a\u8fc7",value:1},{name:"\u62d2\u7edd",value:2}]),We.run({pk:null===(l=i[0])||void 0===l?void 0:l.pk}).then()},onError:()=>{e.setLoading(!1)}}),Ve=(0,v.QT)(x.WvH,{manual:!0,onSuccess:async({data:i},l)=>{const t=i.list;if("1"==T){var n;for(let e in t){let i=t[e];if(i.name="\u7cfb\u7edf\u5ba1\u6279",null!==i&&void 0!==i&&i.approval_uuid){var s;const e=await Me.run({rid:i.approval_uuid}).then();if(null!==e&&void 0!==e&&null!==(s=e.data)&&void 0!==s&&s.rid){const l=e.data,t=l.name,n=l.face;i.name=t,i.face=n}}else i.face=b()}me(t),qe.run({pk:null===(n=l[0])||void 0===n?void 0:n.pk}).then()}else{const i=(null===t||void 0===t?void 0:t.length)-1,l=t[i];Le({status:Ge(null===l||void 0===l?void 0:l.status),note:null===l||void 0===l?void 0:l.remark,time:null===l||void 0===l?void 0:l.time}),e.setLoading(!1)}},onError:()=>{e.setLoading(!1)}});(0,p.useEffect)((()=>{let i=(0,m.Iu)();const l=i["pk"];sessionStorage.setItem("pk",l),l&&(f(l),e.setLoading(!0),Re.run({rid:l}).then())}),[]),(0,p.useEffect)((()=>{T&&Ve.run({pk:g}).then()}),[T]),(0,p.useEffect)((()=>{null!==Be&&void 0!==Be&&Be.loading&&c.ZP.loading("\u6b63\u5728\u63d0\u4ea4\u6570\u636e",0).then()}),[Be.loading]);const Ye=(e,i)=>{const l=i.extendField?JSON.parse(i.extendField):[];for(let t in e){["file","textTip"].includes(e[t].type)||(e[t].type="input");let n=e[t].name;if(-1===Z.indexOf(n)&&l.length>0){for(let i in l)if(l[i].key===n){e[t].value=l[i].value;break}}else e[t].value=i[e[t].name]}q(e)},Ge=e=>{switch(e){case 1:return"\u901a\u8fc7";case 2:return"\u62d2\u7edd";case 3:return"\u9a73\u56de";case 4:return"\u9000\u56de";default:return"\u5ba1\u6279\u4e2d"}},Ke=e=>{let i="";switch(e){case"\u5ba1\u6279":i="none","1"===T&&F&&"\u5df2\u8fc7\u671f"!=G&&(i="");break;case"\u6b63\u5728\u5ba1\u6838":"1"===T&&he.length>0&&"\u5df2\u8fc7\u671f"!=G&&(i="1");break;case"\u63d0\u4ea4":case"\u6284\u9001\u4eba":i="none","1"==T&&F&&!G&&(i="");break;default:break}return i};return(0,S.jsx)("div",{style:{width:"100%",minHeight:"80vh",padding:"2vh 0 1vh",fontSize:"1rem"},className:"global_flex_xy",children:(0,S.jsxs)("div",{className:_().shadow_box,style:{paddingBottom:"60px",position:"relative"},children:[(0,S.jsxs)(n.Z,{children:[(0,S.jsxs)(o.Z,{span:6,children:[(0,S.jsx)("div",{style:{width:"100%"},children:(0,S.jsxs)("div",{className:_().tag_box_container,children:[(0,S.jsx)("span",{className:_().tag_box_user,children:"\u5458\u5de5"}),(0,S.jsx)(r.C,{style:{width:100,height:100,marginTop:"5%"},src:(null===I||void 0===I?void 0:I.face)||b()}),(0,S.jsx)("span",{className:"global_hidden_line",style:{lineHeight:2,color:"#868D96",width:"100%",padding:"0 10px",display:"block"},children:(null===I||void 0===I?void 0:I.name)||"-"}),(0,S.jsx)("span",{style:{color:"#868D96"},children:(0,m.WN)(null===I||void 0===I?void 0:I.phone)||"-"})]})}),(0,S.jsx)("div",{style:{width:"100%",marginTop:"25%"},children:(0,S.jsxs)("div",{className:_().tag_box_container,children:[(0,S.jsx)("span",{className:_().tag_box_staff,children:"\u8bbf\u5ba2"}),(0,S.jsx)(r.C,{style:{width:100,height:100,marginTop:"5%"},src:(null===J||void 0===J?void 0:J.face)||b()}),(0,S.jsx)("span",{className:"global_hidden_line",style:{lineHeight:2,color:"#868D96",width:"100%",padding:"0 10px",display:"block"},children:(null===J||void 0===J?void 0:J.name)||"-"}),(0,S.jsx)("span",{style:{color:"#868D96"}
1,children:(0,m.WN)(null===J||void 0===J?void 0:J.phone)||"-"})]})})]}),(0,S.jsxs)(o.Z,{span:14,offset:2,children:[(0,S.jsxs)("h4",{className:_().record_title,children:["\u8bb0\u5f55",(0,S.jsx)("span",{style:{color:"#FF4D4F",lineHeight:"23px"},children:G&&`(${G})`})]}),(0,S.jsx)(y.Z,{rows:M,fontSize:14,thisColor:"rgba(0, 0, 0, 0.6)"}),(0,S.jsxs)("div",{style:{display:"1"===T?"none":""},children:[(0,S.jsx)("h4",{className:_().record_title,children:"\u5ba1\u6279"}),N.map(((e,i)=>(0,S.jsxs)("div",{className:"global_flex_xy",style:{justifyContent:"space-between",width:"100%",color:"rgba(0, 0, 0, 0.6)",lineHeight:"30px"},children:[(0,S.jsx)("label",{style:{width:"26%"},children:null===e||void 0===e?void 0:e.title}),(0,S.jsx)("span",{className:"global_hidden_line",style:{width:"60%",textAlign:"right",display:"inline-block",fontSize:".9rem"},children:He[null===e||void 0===e?void 0:e.name]})]},i+(null===e||void 0===e?void 0:e.name))))]}),(0,S.jsxs)("div",{style:{display:Ke("\u6284\u9001\u4eba")},children:[(0,S.jsx)("h4",{className:_().record_title,children:"\u6284\u9001\u4eba"}),$.map(((e,i)=>(0,S.jsxs)("div",{className:"global_flex_xy",style:{justifyContent:"space-between"},children:[(0,S.jsxs)("div",{className:"global_flex_y",style:{marginBottom:"5px",width:"90%"},children:[(0,S.jsx)("img",{alt:"",src:null!==e&&void 0!==e&&e.face?null===e||void 0===e?void 0:e.face:b(),style:{marginRight:"10px",width:"40px",height:"40px"}}),(0,S.jsx)("span",{className:"global_hidden_line",style:{color:"rgba(0,0,0,.65)",display:"inline-block",maxWidth:"80%"},children:null===e||void 0===e?void 0:e.name})]}),(0,S.jsx)("p",{style:{display:F?"inline-block":"none",cursor:"pointer",color:"#FF4D4F"},onClick:()=>{Ce(e),we(!0),Ae(i)},children:"\u79fb\u9664"})]},i+(null===e||void 0===e?void 0:e.value)))),(0,S.jsx)(d.Z,{style:{border:"0.03rem dashed rgba(0, 0, 0, 0.15)",marginTop:"10px",height:"38px",lineHeight:"38px",fontSize:"1.1rem",width:"100%",padding:0,display:F?"":"none"},onClick:()=>v.m8.push("/pc/my/sender"),children:"\u6dfb\u52a0\u6284\u9001\u4eba"})]}),(0,S.jsxs)("div",{className:"global_shadow_box",style:{marginTop:"10px",display:"1"!==T?"none":""},children:[(0,S.jsx)("h4",{className:_().record_title,children:"\u6d41\u7a0b"}),(null===xe||void 0===xe?void 0:xe.length)>0?xe.map((e=>(0,S.jsx)("div",{children:(0,S.jsxs)("div",{className:"global_flex_y",style:{marginBottom:"8px",justifyContent:"flex-start"},children:[(0,S.jsx)("img",{src:null!==e&&void 0!==e&&e.avatar?e.avatar:b(),alt:"\u5934\u50cf",style:{marginRight:"15px",width:"40px",height:"40px"}}),(0,S.jsx)("div",{style:{width:"100%"},className:"global_hidden_content",children:(0,S.jsxs)("div",{style:{color:"rgba(0, 0, 0, 0.6)"},children:[e.name,(0,S.jsx)("span",{style:{color:1==e.status?"#1890ff":"#ff4d4f"},children:Ge(e.status)}),"(",e.remark,")",(0,S.jsx)("span",{style:{float:"right",fontSize:".9rem"},children:e.time.substring(0,16)})]})})]})},(null===e||void 0===e?void 0:e.time)+(null===e||void 0===e?void 0:e.remark)))):(0,S.jsx)("p",{style:{fontSize:"16px",color:"rgba(0, 0, 0, 0.6)"},children:"\u6682\u65e0\u6d41\u7a0b"}),Ke("\u6b63\u5728\u5ba1\u6838")&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("h4",{className:_().record_title,children:"\u6b63\u5728\u5ba1\u6838"}),(0,S.jsx)("p",{style:{fontSize:"16px"},children:he.join("\u3001")})]}),(0,S.jsxs)("div",{style:{display:Ke("\u5ba1\u6279")},children:[(0,S.jsx)("h4",{className:_().record_title,children:"\u5ba1\u6279"}),(0,S.jsx)("div",{className:"global_flex_y",style:{padding:"2px 0"},children:(0,S.jsx)(a.ZP.Group,{onChange:e=>{var i;return ne(null===e||void 0===e||null===(i=e.target)||void 0===i?void 0:i.value)},value:te,children:de.map((e=>(0,S.jsx)(a.ZP,{value:null===e||void 0===e?void 0:e.value,style:{fontSize:"1rem",color:"rgba(0, 0, 0, 0.6)"},children:null===e||void 0===e?void 0:e.name},"item"+(null===e||void 0===e?void 0:e.value))))})}),(0,S.jsx)("h4",{className:_().record_title,children:"\u5907\u6ce8"}),(0,S.jsx)(w,{rows:3,placeholder:"\u8bf7\u8f93\u5165\u5ba1\u6279\u7684\u5907\u6ce8\u4fe1\u606f",maxLength:50,value:ye,style:{fontSize:"14px"},onChange:e=>{var i;return fe(null===e||void 0===e||null===(i=e.target)||void 0===i?void 0:i.value)}})]})]}),(0,S.jsxs)("div",{style:{display:"3"===T?"":"none"}
1,children:[(0,S.jsx)("h4",{className:_().record_title,style:{paddingTop:"15px"},children:"\u73b0\u573a"}),k.map(((e,i)=>{var l;return(0,S.jsxs)("div",{className:"global_flex_xy",style:{justifyContent:"space-between",width:"100%",color:"rgba(0, 0, 0, 0.6)",lineHeight:"30px"},children:[(0,S.jsxs)("div",{children:[Qe[null===e||void 0===e?void 0:e.name].url&&(0,S.jsx)(s.Z,{src:Qe[null===e||void 0===e?void 0:e.name].url,width:40}),(0,S.jsx)("label",{style:{width:"26%"},children:null===e||void 0===e?void 0:e.title})]}),(0,S.jsx)("p",{className:"global_hidden_line",style:{width:"60%",textAlign:"right",cursor:"pointer",fontSize:".9rem"},children:null===(l=Qe[null===e||void 0===e?void 0:e.name])||void 0===l?void 0:l.time})]},i+(null===e||void 0===e?void 0:e.title))}))]})]})]}),(0,S.jsxs)(t.Z,{width:310,closable:!1,title:null,centered:!0,visible:Se,onCancel:()=>we(!1),footer:null,bodyStyle:{padding:"0"},children:[(0,S.jsx)("div",{style:{padding:"42px 10px",textAlign:"center"},children:(0,S.jsxs)("p",{style:{fontSize:"16px"},children:["\u786e\u5b9a\u79fb\u9664\u6284\u9001\u4eba(",null===Ze||void 0===Ze?void 0:Ze.name,")"]})}),(0,S.jsxs)("div",{className:"global_flex_xy",style:{fontSize:"18px",borderTop:"1px solid #d9d9d9"},children:[(0,S.jsx)("span",{onClick:()=>we(!1),style:{width:"50%",textAlign:"center",display:"inline-block",height:"50px",lineHeight:"50px",cursor:"pointer",borderRight:"1px solid #d9d9d9"},children:i.formatMessage({id:"project.package.button.cancel"})}),(0,S.jsx)("a",{onClick:()=>{if(!Ie.loading){let i=(0,m.I8)($);i.splice(Pe,1),e.setLoading(!0),(0,m.sA)(Ie,{pk:g,recipients:JSON.stringify(i)})}},style:{width:"50%",textAlign:"center",display:"inline-block",height:"50px",lineHeight:"50px",color:"rgb(0, 149, 255)"},children:i.formatMessage({id:"project.package.button.confirm"})})]})]}),(0,S.jsx)(n.Z,{style:{position:"absolute",bottom:"16px",right:"0",width:"100%"},children:(0,S.jsx)(o.Z,{span:16,offset:8,children:(0,S.jsxs)("div",{className:"global_flex_xy",style:{justifyContent:"center"},children:[(0,S.jsx)(d.Z,{style:{width:"120px",marginRight:"20px",display:Ke("\u63d0\u4ea4")},size:"large",type:"primary",disabled:te>1&&!ye||Be.loading,onClick:()=>{(0,m.sA)(Be,{pk:g,remark:ye||"\u540c\u610f",status:te})},children:"\u63d0\u4ea4"}),(0,S.jsx)(d.Z,{size:"large",style:{width:"120px"},onClick:()=>v.m8.push("/pc/record?sub="+T),children:"\u8fd4\u56de"})]})})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.