import{_ as I,a as M}from"./index.011c79f0.js";import{R as W,_ as q,S as G,L as H,M as J,O as K}from"./element-plus.517d4382.js";import{s as Q}from"./project_subpackage_budget_detail.d2e48930.js";import{P as X}from"./index.b17dae19.js";import{a as Y}from"./custom.99349afc.js";import{S as Z,T as ee}from"./flowSet.6da79e1c.js";import{d as F,s as k,a0 as m,r as v,o as p,c as u,V as o,M as l,T as c,U as _,W as te,a8 as oe,a as x,L as C,u as ae}from"./@vue.ab566ce7.js";import{_ as le}from"./index.8b1962e9.js";import"./@element-plus.b89f1627.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./vue-router.87ebc608.js";import"./@vueuse.8fcae4c2.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"./lodash.1d82ee7c.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 se={class:"detail-popup"},ne={key:0},ie={style:{"margin-left":"5px",display:"block"}},pe={key:1},re={style:{margin:"10px 0"}},ue=F({name:"customdetail"}),ce=F({...ue,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(_e,{expose:z,emit:B}){k();const d=k(),D=m([]),s=m({page_size:10,page_no:1,customer_demand_id:""}),w=v(0);m({provinceOptions:[],cityOptions:[],areaOptions:[]});const y=v([]),e=m({}),j=t=>{s.page_size=t,f(e.id)},O=t=>{console.log(`current page: ${t}`),s.page_no=t,f(e.id)},f=t=>{Q({page_no:s.page_no,page_size:s.page_size,subpackage_budget_id:t}).then(a=>{y.value=a.lists,w.value=a.count})},h=async t=>{if(Object.assign(e,t),f(t.id),t.annex&&t.annex.length>0){const a=t.annex.map((i,b)=>({name:`\u6587\u4EF6${b+1}`,uri:i}));Object.assign(D,a)}T()},L=async t=>{const a=await Y({id:t.id});h(a)},S=async()=>{var t;(t=d.value)==null||t.close()},P=()=>{var t;console.log("1111111"),(t=d.value)==null||t.open()},g=()=>{B("close")},E=v([]),T=async()=>{if(e!=null&&e.approve_id)return;let t=await Z();E.value=t};return z({open:P,setFormData:h,getDetail:L}),(t,a)=>{const i=W,b=q,R=G,n=H,V=J,$=K,A=I,N=M;return p(),u("div",se,[o(X,{ref_key:"popupRef",ref:d,title:"\u5206\u5305\u9884\u7B97\u8BE6\u60C5",async:!0,width:"80%",onConfirm:S,onClose:g},{default:l(()=>[o(R,{column:2,border:""},{default:l(()=>[o(i,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[c(_(e.project_name),1)]),_:1}),o(i,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[c(_(e.project_code),1)]),_:1}),o(i,{label:"\u5206\u5305\u9884\u7B97\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[c(_(e.subpackage_budget_code),1)]),_:1}),o(i,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[c(_(e.remark),1)]),_:1}),o(i,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[e.annex&&e.annex.length>0?(p(),u("div",ne,[(p(!0),u(te,null,oe(e.annex,(r,U)=>(p(),u("div",ie,[o(b,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:r,target:"_blank"},{default:l(()=>[c("\u6587\u4EF6"+_(U+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(p(),u("div",pe," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1}),x("div",null,[o(V,{data:y.value,stripe:"",style:{width:"100%"}},{default:l(()=>[o(n,{label:"\u5E8F\u53F7",type:"index","show-overflow-tooltip":""}),o(n,{label:"\u5DE5\u4F5C\u7C7B\u578B",prop:"work_type","show-overflow-tooltip":""}),o(n,{label:"\u5DE5\u4F5C\u5185\u5BB9",prop:"work_content","show-overflow-tooltip":""}),o(n,{label:"\u9879\u76EE\u7279\u5F81",prop:"project_features","show-overflow-tooltip":""}),o(n,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),o(n,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),o(n,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),o(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),x("div",re,[o($,{"current-page":s.page_no,"onUpdate:current-page":a[0]||(a[0]=r=>s.page_no=r),"page-size":s.page_size,"onUpdate:page-size":a[1]||(a[1]=r=>s.page_size=r),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:w.value,onSizeChange:j,onCurrentChange:O},null,8,["current-page","page-size","total"])]),!(e!=null&&e.approve_id)||e.approve_check_status==4?(p(),C(A,{key:0,flows:E.value,submitApi:ae(ee),id:e==null?void 0:e.id,onOff:g},null,8,["flows","submitApi","id"])):(p(),C(N,{key:1,approve_id:e==null?void 0:e.approve_id,onOff:g},null,8,["approve_id"]))]),_:1},512)])}}});const Ze=le(ce,[["__scopeId","data-v-06f6fbd3"]]);export{Ze as default};