import{y as K,A as Q,B as X,L as Y,M as Z,O as $,D as ee}from"./element-plus.517d4382.js";import{P as oe}from"./index.b17dae19.js";import{a as te}from"./custom.99349afc.js";import{_ as ae}from"./index.8b1962e9.js";import{d as S,s as k,r as g,a0 as E,o as d,c as _,V as e,M as o,T as p,U as r,W as x,a8 as j,a as m,b7 as le,b6 as ue}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{b as se}from"./build_report.3215e526.js";import{b as pe}from"./build_report_detail.b4dda100.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const O=b=>(le("data-v-dacf5bd4"),b=b(),ue(),b),re={class:"detail-popup"},ne={key:0},ie=["src"],de={key:1},_e=O(()=>m("div",{style:{margin:"10px 0"}},"\u65BD\u5DE5\u6C47\u62A5",-1)),ce={key:0},fe=["src"],me={key:1},Ee={class:"flex justify-end mt-4"},be=O(()=>m("div",{style:{margin:"10px 0"}},"\u4EBA\u5DE5\u660E\u7EC6",-1)),ge={class:"flex justify-end mt-4"},we=S({name:"customdetail"}),ve=S({...we,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(b,{expose:R,emit:I}){const L=k(),w=k(),h=g([]),D=g([]);E({provinceOptions:[],cityOptions:[],areaOptions:[]});const F=g(0),B=g(0),c=E({page:1,size:10}),f=E({page:1,size:10});E({plan_id:""});const v=async a=>{const n=await pe({plan_id:a,page_no:f.page,page_size:f.size});h.value=n.lists,B.value=n.count},U=a=>{c.size=a,C(t.id)},P=a=>{c.page=a,C(t.id)},T=a=>{f.size=a,v(t.id)},V=a=>{f.page=a,v(t.id)},C=async a=>{const n=await se({plan_id:a,page_no:c.page,page_size:c.size});D.value=n.lists,F.value=n.count},t=E({}),y=async a=>{Object.assign(t,a),v(a.id),C(a.id)},N=async a=>{const n=await te({id:a.id});y(n)},M=async()=>{var a;(a=w.value)==null||a.close()},q=()=>{var a;console.log("1111111"),(a=w.value)==null||a.open()},W=()=>{I("close")};return R({open:q,setFormData:y,getDetail:N}),(a,n)=>{const l=K,u=Q,G=X,s=Y,z=Z,A=$,H=ee;return d(),_("div",re,[e(oe,{ref_key:"popupRef",ref:w,title:"\u65BD\u5DE5\u8BA1\u5212\u8BE6\u60C5",async:!0,width:"80%",onConfirm:M,onClose:W},{default:o(()=>[e(H,{ref_key:"formRef",ref:L,model:t,"label-width":"120px"},{default:o(()=>[e(G,null,{default:o(()=>[e(u,{span:12},{default:o(()=>[e(l,{label:"\u9879\u76EE\u540D\u79F0"},{default:o(()=>[p(r(t.project_name),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u9879\u76EE\u7F16\u7801"},{default:o(()=>[p(r(t.project_code),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u8BA1\u5212\u5F00\u59CB\u65E5\u671F"},{default:o(()=>[p(r(t.plan_start_date),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u8BA1\u5212\u7ED3\u675F\u65E5\u671F"},{default:o(()=>[p(r(t.plan_end_date),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u5DE5\u5E8F\u6B65\u9AA4\u53F7"},{default:o(()=>[p(r(t.process_step_no),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u5DE5\u5E8F\u6B65\u9AA4"},{default:o(()=>[p(r(t.process_step),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u56FE\u4F8B\u8BF4\u660E"},{default:o(()=>[t.file&&t.file.length>0?(d(),_("div",ne,[(d(!0),_(x,null,j(t.file,i=>(d(),_("img",{src:i.uri,style:{width:"200px"}},null,8,ie))),256))])):(d(),_("div",de,"\u6682\u65E0\u6587\u4EF6"))]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u8D28\u91CF\u63A7\u5236\u70B9"},{default:o(()=>[p(r(t.quality_control_points),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u73ED\u7EC4\u957F"},{default:o(()=>[p(r(t.project_member_name),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u65BD\u5DE5\u4EBA\u5458"},{default:o(()=>[p(r(t.work_user),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u65BD\u5DE5\u5185\u5BB9"},{default:o(()=>[p(r(t.work_content),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u4F5C\u4E1A\u91CF"},{default:o(()=>[p(r(t.workload),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u5355\u4F4D"},{default:o(()=>[p(r(t.unit),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u5355\u4EF7"},{default:o(()=>[p(r(t.price),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u91D1\u989D"},{default:o(()=>[p(r(t.amount),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u5B8C\u5DE5\u4F5C\u4E1A\u91CF"},{default:o(()=>[p(r(t.done_workload),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u5269\u4F59\u4F5C\u4E1A\u91CF"},{default:o(()=>[p(r(t.residue_workload),1)]),_:1})]),_:1}),e(u,{span:12},{default:o(()=>[e(l,{label:"\u8FDB\u5EA6(%)"},{default:o(()=>[p(r(t.completion_degree),1)]),_:1})]),_:1})]),_:1}),_e,m("div",null,[e(z,{data:D.value},{default:o(()=>[e(s,{label:"\u65BD\u5DE5\u6C47\u62A5\u5355\u53F7",prop:"report_code","show-overflow-tooltip":""}),e(s,{label:"\u586B\u62A5\u4EBA",prop:"add_user_name","show-overflow-tooltip":""}),e(s,{label:"\u586B\u62A5\u65E5\u671F",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u73B0\u573A\u7167\u7247",prop:"process_step_no"},{default:o(({row:i})=>[i.scene_file&&i.scene_file.length>0?(d(),_("div",ce,[(d(!0),_(x,null,j(i.scene_file,J=>(d(),_("img",{src:J,style:{width:"50px"}},null,8,fe))),256))])):(d(),_("div",me,"\u6682\u65E0\u6587\u4EF6"))]),_:1}),e(s,{label:"\u4ECA\u65E5\u5B8C\u5DE5\u91CF",prop:"report_workload","show-overflow-tooltip":""}),e(s,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(s,{label:"\u91D1\u989D",prop:"report_amount","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),m("div",Ee,[e(A,{"current-page":f.page,"onUpdate:current-page":n[0]||(n[0]=i=>f.page=i),"page-size":f.size,"onUpdate:page-size":n[1]||(n[1]=i=>f.size=i),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:B.value,onSizeChange:T,onCurrentChange:V},null,8,["current-page","page-size","total"])]),be,m("div",null,[e(z,{data:h.value},{default:o(()=>[e(s,{label:"\u65BD\u5DE5\u6C47\u62A5\u5355\u53F7",prop:"report_code","show-overflow-tooltip":""}),e(s,{label:"\u65E5\u671F",prop:"report_date","show-overflow-tooltip":""}),e(s,{label:"\u59D3\u540D",prop:"user_name","show-overflow-tooltip":""}),e(s,{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"user_idcard","show-overflow-tooltip":""}),e(s,{label:"\u5DE5\u79CD",prop:"user_work_type","show-overflow-tooltip":""}),e(s,{label:"\u4ECA\u65E5\u5B8C\u5DE5\u91CF",prop:"work_num","show-overflow-tooltip":""}),e(s,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(s,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),m("div",ge,[e(A,{"current-page":c.page,"onUpdate:current-page":n[2]||(n[2]=i=>c.page=i),"page-size":c.size,"onUpdate:page-size":n[3]||(n[3]=i=>c.size=i),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:F.value,onSizeChange:U,onCurrentChange:P},null,8,["current-page","page-size","total"])])]),_:1},8,["model"])]),_:1},512)])}}});const lo=ae(ve,[["__scopeId","data-v-dacf5bd4"]]);export{lo as default};