1 |
- import{P as L,V as S}from"./vue3-pdf-embed-3a5703cb.js";import{K as q,r as $,f as m,o as v,c as z,i as e,w as t,x as D,F as B,t as U,j as n,A,l as r,v as b,a as N,m as H,p as E,q as P,Q as J,R as K,_ as O,u as Q,b as W}from"./index-e497b666.js";import{c as G}from"./Task-28f1f3c2.js";import{g as X,u as Y}from"./TaskData-11f744cb.js";import{g as Z}from"./DeviceClassList-c188dd4c.js";import{c as ee,b as te,a as ne,_ as ae}from"./Tabs-3c1baf8d.js";import{_ as j}from"./Scrollbar-cb9be281.js";import{_ as se}from"./DatePicker-02d3d64b.js";import{_ as F}from"./Space-84278c21.js";import{_ as oe}from"./DataTable-41a24bfd.js";import{u as _e,a as le,_ as ce}from"./index-f2c1e765.js";import{_ as ie}from"./PageHeader-74caddbf.js";import"./vue.runtime.esm-bundler-8d6a0dde.js";import"./Add-f2559956.js";import"./RadioGroup-6edab0a1.js";import"./get-slot-1efb97e5.js";const pe=c=>(J("data-v-c30cdf6a"),c=c(),K(),c),re={class:"h-full grid grid-cols-4 gap-x-3"},ue=pe(()=>N("h2",null,"校准证书",-1)),de={class:"flex justify-end"},fe={__name:"TabThree",props:{task:{required:!0,default:{}},height:{required:!0,default:{}}},setup(c){const k=$({T_sn:"",T_class:c.task.T_class}),s=m(""),i=m([]),l=m(null),u=a=>{s.value=a.T_pdf},o=()=>{l.value.print()};return(async()=>{try{const{data:a}=await Z(k);i.value=a.Data.List||[]}catch(a){console.log(a)}})(),(a,h)=>{const x=H,_=E,C=ee,p=j,T=te,f=P;return v(),z("div",re,[e(_,null,{default:t(()=>[e(T,null,{header:t(()=>[ue]),default:t(()=>[e(p,{style:D({maxHeight:`${c.height-400}px`,paddingRight:"20px"}),trigger:"none"},{default:t(()=>[(v(!0),z(B,null,U(n(i),y=>(v(),A(C,{key:y},{suffix:t(()=>[e(x,{type:"primary",onClick:I=>u(y)},{default:t(()=>[r("查看")]),_:2},1032,["onClick"])]),default:t(()=>[e(_,{embedded:"",bordered:!1,"content-style":{padding:"5px",textAlign:"center"}},{default:t(()=>[r(" 【"+b(y.T_id)+"】"+b(y.T_Certificate_sn),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["style"])]),_:1})]),_:1}),e(_,{class:"col-span-3"},{default:t(()=>[N("div",de,[e(x,{text:"",style:{"font-size":"24px"},onClick:o},{default:t(()=>[e(f,null,{default:t(()=>[e(n(L))]),_:1})]),_:1})]),e(p,{style:D({maxHeight:`${c.height-400}px`}),trigger:"none"},{default:t(()=>[e(n(S),{ref_key:"pdfRef",ref:l,source:n(s)},null,8,["source"])]),_:1},8,["style"])]),_:1})])}}},me=q(fe,[["__scopeId","data-v-c30cdf6a"]]),ge={__name:"TabFour",props:{task:{required:!0,default:{}}},setup(c){const g=c,k=a=>{a?(s.Time_start=a[0],s.Time_end=a[1]):(s.Time_start=null,s.Time_end=null)},s=$({T_task_id:g.task.T_task_id,T_id:"",T_sn:"",Time_start:null,Time_end:null,page:1,page_z:10}),i=m([]),l=m(!1),u=[{title:"布局编号",key:"T_id"},{title:"证书编号",key:"T_Certificate_sn"},{title:"温度℃",key:"T_t"},{title:"湿度%",key:"T_rh"},{title:"记录时间",key:"T_time"}],o=$({page:s.page,pageSize:s.page_z,itemCount:0,onChange:a=>{o.page=a,s.page=a,d()}}),d=async()=>{try{l.value=!0;const{data:a}=await X(s);console.log("数据",a),i.value=a.Data.List||[],o.itemCount=a.Data.Num}catch(a){console.log(a)}finally{l.value=!1}};return d(),(a,h)=>{const x=O,_=se,C=H,p=F,T=oe;return v(),z(B,null,[e(p,null,{default:t(()=>[e(x,{value:n(s).T_id,"onUpdate:value":h[0]||(h[0]=f=>n(s).T_id=f),type:"text",placeholder:"请输入布局编号搜索"},null,8,["value"]),e(_,{type:"datetimerange",format:"yyyy-MM-dd HH:mm","time-picker-props":{format:"HH:mm"},"onUpdate:formattedValue":k,clearable:""}),e(C,{type:"primary",onClick:d},{default:t(()=>[r("搜索")]),_:1})]),_:1}),e(T,{remote:"",loading:n(l),columns:u,data:n(i),pagination:n(o),bordered:!1,"flex-height":"",class:"flex-1"},null,8,["loading","data","pagination"])],64)}}};const ye={class:"h-full flex flex-col gap-y-3"},ke={__name:"index",setup(c){const{height:g}=_e(),k=Q(),s=W(),i=$({pdf1:"",pdf2:""}),l=window.sessionStorage.getItem("task")?JSON.parse(window.sessionStorage.getItem("task")):{},u=m(null),o=m({}),d=()=>{u.value.print()},a=()=>{k.info({title:"审核",content:"请仔细检查报告内容、报告证书、报告数据都是否有误?",positiveText:"确定都没有问题",negativeText:"取消",maskClosable:!1,onPositiveClick:h})},h=async()=>{const{data:_}=await Y({T_task_id:l.T_task_id});_.Code===200&&s.success(_.Msg)};return(async()=>{const{data:_}=await G({T_task_id:l.T_task_id});o.value=_.Data||{},i.pdf1=o.value.T_pdf1,i.pdf2=o.value.T_pdf2})(),(_,C)=>{const p=H,T=ie,f=ce,y=le,I=P,R=F,V=j,w=ae,M=ne;return v(),z("div",ye,[e(T,{onBack:_.$router.back},{title:t(()=>[r(" 报告审核 ")]),extra:t(()=>[e(p,{type:"primary",onClick:a},{default:t(()=>[r("审核")]),_:1})]),_:1},8,["onBack"]),e(y,{bordered:""},{default:t(()=>[e(f,{label:"报告名称"},{default:t(()=>[r(b(n(o).T_name),1)]),_:1}),e(f,{label:"创建时间"},{default:t(()=>[r(b(n(o).CreateTime),1)]),_:1}),e(f,{label:"修改时间"},{default:t(()=>[r(b(n(o).UpdateTime),1)]),_:1})]),_:1}),e(M,{class:"flex-1",type:"segment",animated:"",size:"large"},{default:t(()=>[e(w,{class:"h-full flex flex-col gap-y-3",name:"1",tab:"验证方案","display-directive":"show:lazy"},{default:t(()=>[e(R,{justify:"end"},{default:t(()=>[e(p,{text:"",style:{"font-size":"24px"},onClick:d},{default:t(()=>[e(I,null,{default:t(()=>[e(n(L))]),_:1})]),_:1})]),_:1}),e(V,{style:D({maxHeight:`${n(g)-350}px`}),trigger:"none"},{default:t(()=>[e(n(S),{ref_key:"pdfRef",ref:u,source:n(i).pdf1},null,8,["source"])]),_:1},8,["style"])]),_:1}),e(w,{class:"h-full flex flex-col gap-y-3",name:"2",tab:"验证报告","display-directive":"show:lazy"},{default:t(()=>[e(R,{justify:"end"},{default:t(()=>[e(p,{text:"",style:{"font-size":"24px"},onClick:d},{default:t(()=>[e(I,null,{default:t(()=>[e(n(L))]),_:1})]),_:1})]),_:1}),e(V,{style:D({maxHeight:`${n(g)-350}px`}),trigger:"none"},{default:t(()=>[e(n(S),{ref_key:"pdfRef",ref:u,source:n(i).pdf2},null,8,["source"])]),_:1},8,["style"])]),_:1}),e(w,{class:"h-full flex flex-col gap-y-3",name:"3",tab:"校准证书","display-directive":"show:lazy"},{default:t(()=>[e(me,{task:n(l),height:n(g)},null,8,["task","height"])]),_:1}),e(w,{class:"h-full flex flex-col gap-y-3",name:"4",tab:"验证数据","display-directive":"show:lazy"},{default:t(()=>[e(ge,{task:n(l)},null,8,["task"])]),_:1})]),_:1})])}}},qe=q(ke,[["__scopeId","data-v-32cde997"]]);export{qe as default};
|