import{a6 as qt,b as zt,P as Gt,Q as Ht,J as Kt,w as Ot,M as Xt,R as Yt}from"./element-plus.ff90c99c.js";import{t as Zt}from"./task.12a5b10c.js";import{d as te,r as f,$ as St,o as e,P as p,Q as u,a as o,W as a,U as F,R as ee,V as i,c as s,F as D,a9 as E,T as g,u as Pt,bg as ae,bf as oe}from"./@vue.f8dfc830.js";import{d as le}from"./index.87cea444.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const c=y=>(ae("data-v-70aa7ab5"),y=y(),oe(),y),se={class:"card-header"},ie=c(()=>o("span",{class:"tit"},"\u4EFB\u52A1\u540D\u79F0\uFF1A",-1)),ue={style:{"margin-top":"1vh",display:"flex"}},re={key:0,style:{display:"flex","justify-content":"space-between",width:"100%"},class:"tit"},ne={key:1},de={key:0,style:{width:"25.5vw"}},pe=c(()=>o("div",{class:"tit"},"\u7B2C\u4E00\u9636\u6BB5",-1)),_e={key:1,style:{width:"25.5vw"}},ce=c(()=>o("div",{class:"tit"},"\u7B2C\u4E8C\u9636\u6BB5",-1)),ve={key:2,style:{width:"25.5vw"}},me=c(()=>o("div",{class:"tit"},"\u7B2C\u4E09\u9636\u6BB5",-1)),ge={key:3,style:{width:"25.5vw"}},he=c(()=>o("div",{class:"tit"},"\u7B2C\u56DB\u9636\u6BB5",-1)),we={key:2,style:{width:"100%"}},ke={class:"tit"},ye={key:3,style:{width:"100%"}},fe={class:"tit"},Fe={key:4,style:{width:"100%"}},De={key:5,class:"tit"},Ee={key:0,style:{"margin-top":"1vh"}},Be=c(()=>o("div",{class:"tit"}," \u5B8C\u6210\u8BE6\u60C5\uFF1A ",-1)),xe={key:1,style:{"margin-top":"1vh"}},be=c(()=>o("div",{class:"tit"}," \u5B8C\u6210\u8BE6\u60C5\uFF1A ",-1)),Ce={class:"dialog-footer"},Ae=te({__name:"popTaskDetail",setup(y,{expose:$t}){const v=f(!1),B=f(!0),b=f(""),t=f(""),Qt=St(["town_task_type_marketing_director_4","town_task_type_marketing_director_9","town_task_type_marketing_director_8"]),Rt=St(["town_task_type_marketing_director_3","town_task_type_marketing_director_7"]),Ut=h=>{B.value=!0,b.value=h,v.value=!0,Zt({task_id:h.task.id}).then(r=>{t.value=r,B.value=!1,console.log(t.value)})},C=(h,r)=>h.reduce((m,l)=>m+l[r],0),jt=()=>{v.value=!1};return $t({openDeatl:Ut}),(h,r)=>{const w=zt,m=qt,l=Gt,k=Ht,Jt=Kt,x=Ot,Mt=Xt,Wt=Yt;return e(),p(Mt,{modelValue:v.value,"onUpdate:modelValue":r[2]||(r[2]=n=>v.value=n),title:"\u4EFB\u52A1\u8BE6\u60C5",width:"30%"},{footer:u(()=>{var n;return[o("span",Ce,[a(x,{onClick:r[0]||(r[0]=_=>v.value=!1)},{default:u(()=>[F("\u53D6\u6D88")]),_:1}),((n=b.value)==null?void 0:n.task.status)==2?(e(),p(x,{key:0,type:"primary",onClick:jt},{default:u(()=>[F(" \u7ED3\u7B97 ")]),_:1})):(e(),p(x,{key:1,type:"primary",onClick:r[1]||(r[1]=_=>v.value=!1)},{default:u(()=>[F(" \u786E\u5B9A ")]),_:1}))])]}),default:u(()=>[ee((e(),p(Jt,{class:"box-card"},{header:u(()=>{var n,_;return[o("div",se,[ie,o("span",null,i((_=(n=t.value)==null?void 0:n.detail)==null?void 0:_.title),1)])]}),default:u(()=>{var n,_,A,T,V,I,L,N,S,P,$,Q,R,U,j,J,M,W,q,z,G,H,K,O,X,Y,Z,tt,et,at,ot,lt,st,it,ut,rt,nt,dt,pt,_t,ct,vt,mt,gt,ht,wt,kt,yt,ft,Ft,Dt,Et,Bt,xt,bt,Ct,At,Tt,Vt,It,Lt,Nt;return[o("div",ue,[((_=(n=t.value)==null?void 0:n.detail)==null?void 0:_.task_type_value)=="town_task_type_5"?(e(),s("div",re,[o("div",null," \u4EA4\u6613\u91D1\u989D\u5269\u4F59\u6C60\uFF1A "+i((V=(T=(A=t.value)==null?void 0:A.detail)==null?void 0:T.progress)==null?void 0:V.done),1),o("div",null," \u76EE\u6807\u5B8C\u6210\u91D1\u989D\uFF1A "+i((N=(L=(I=t.value)==null?void 0:I.detail)==null?void 0:L.progress)==null?void 0:N.total),1)])):((P=(S=t.value)==null?void 0:S.detail)==null?void 0:P.task_type_value)=="town_task_type_marketing_director_10"?(e(),s("div",ne,[(Q=($=t.value.detail)==null?void 0:$.progress)!=null&&Q.stage1?(e(),s("div",de,[pe,o("div",null,[(e(!0),s(D,null,E((R=t.value.detail)==null?void 0:R.progress.stage1.stage1.file,d=>(e(),p(w,{style:{width:"100px",height:"100px",margin:"10px 5px"},src:d,fit:"fill"},null,8,["src"]))),256))]),o("div",null," \u5907\u6CE8: "+i((U=t.value.detail)==null?void 0:U.progress.stage1.stage1.remark),1),a(m)])):g("",!0),(J=(j=t.value.detail)==null?void 0:j.progress)!=null&&J.stage2?(e(),s("div",_e,[ce,o("div",null,[(e(!0),s(D,null,E((M=t.value.detail)==null?void 0:M.progress.stage2.stage2.file,d=>(e(),p(w,{style:{width:"100px",height:"100px",margin:"10px 5px"},src:d,fit:"fill"},null,8,["src"]))),256))]),o("div",null," \u5907\u6CE8: "+i((W=t.value.detail)==null?void 0:W.progress.stage2.stage2.remark),1),a(m)])):g("",!0),(z=(q=t.value.detail)==null?void 0:q.progress)!=null&&z.stage3?(e(),s("div",ve,[me,o("div",null,[(e(!0),s(D,null,E((G=t.value.detail)==null?void 0:G.progress.stage3.stage3.file,d=>(e(),p(w,{style:{width:"100px",height:"100px",margin:"10px 5px"},src:d,fit:"fill"},null,8,["src"]))),256))]),o("div",null," \u5907\u6CE8: "+i((H=t.value.detail)==null?void 0:H.progress.stage3.stage3.remark),1),a(m)])):g("",!0),(O=(K=t.value.detail)==null?void 0:K.progress)!=null&&O.stage4?(e(),s("div",ge,[he,o("div",null,[(e(!0),s(D,null,E((X=t.value.detail)==null?void 0:X.progress.stage4.stage4.file,d=>(e(),p(w,{style:{width:"100px",height:"100px",margin:"10px 5px"},src:d,fit:"fill"},null,8,["src"]))),256))]),o("div",null," \u5907\u6CE8: "+i((Y=t.value.detail)==null?void 0:Y.progress.stage4.stage4.remark),1),a(m)])):g("",!0)])):Pt(Qt).includes((tt=(Z=t.value)==null?void 0:Z.detail)==null?void 0:tt.task_type_value)?(e(),s("div",we,[o("div",ke," \u4EFB\u52A1\u8FDB\u5EA6\uFF1A "+i(C((at=(et=t.value)==null?void 0:et.detail)==null?void 0:at.progress,"procure_amount"))+" / "+i((st=(lt=(ot=t.value)==null?void 0:ot.detail)==null?void 0:lt.progress[0])==null?void 0:st.total),1),a(k,{data:(ut=(it=t.value)==null?void 0:it.detail)==null?void 0:ut.progress},{default:u(()=>[a(l,{label:"\u5546\u6237\u540D\u79F0",prop:"merchant_name","show-overflow-tooltip":""}),a(l,{label:"\u5DF2\u91C7\u8D2D\u91D1\u989D",prop:"procure_amount","show-overflow-tooltip":"",width:"130px",align:"center"}),a(l,{label:"\u76EE\u6807\u91D1\u989D",prop:"total","show-overflow-tooltip":"",align:"center"})]),_:1},8,["data"])])):((nt=(rt=t.value)==null?void 0:rt.detail)==null?void 0:nt.task_type_value)=="town_task_type_marketing_director_5"?(e(),s("div",ye,[o("div",fe," \u4EFB\u52A1\u8FDB\u5EA6\uFF1A "+i(C((pt=(dt=t.value)==null?void 0:dt.detail)==null?void 0:pt.progress,"trade_amount"))+" / "+i((vt=(ct=(_t=t.value)==null?void 0:_t.detail)==null?void 0:ct.progress[0])==null?void 0:vt.total),1),a(k,{data:(gt=(mt=t.value)==null?void 0:mt.detail)==null?void 0:gt.progress},{default:u(()=>[a(l,{label:"\u5546\u6237\u540D\u79F0",prop:"merchant_name","show-overflow-tooltip":""}),a(l,{label:"\u5DF2\u9500\u552E\u91D1\u989D",prop:"trade_amount","show-overflow-tooltip":"",width:"130px",align:"center"}),a(l,{label:"\u76EE\u6807\u91D1\u989D",prop:"total","show-overflow-tooltip":"",align:"center"})]),_:1},8,["data"])])):Pt(Rt).includes((wt=(ht=t.value)==null?void 0:ht.detail)==null?void 0:wt.task_type_value)?(e(),s("div",Fe,[a(k,{data:(yt=(kt=t.value)==null?void 0:kt.detail)==null?void 0:yt.progress},{default:u(()=>[a(l,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":""}),a(l,{label:"\u4EA7\u54C1\u4E0A\u67B6\u76EE\u6807\u6570",prop:"total","show-overflow-tooltip":"",width:"130px",align:"center"}),a(l,{label:"\u5DF2\u4E0A\u67B6\u6570",prop:"count","show-overflow-tooltip":"",align:"center"}),a(l,{label:"\u662F\u5426\u66F4\u65B0\u5E93\u5B58","show-overflow-tooltip":"",align:"center"},{default:u(({row:d})=>[F(i(d.is_update_stock?"\u5DF2\u66F4\u65B0":"\u672A\u66F4\u65B0"),1)]),_:1})]),_:1},8,["data"])])):(e(),s("div",De," \u4EFB\u52A1\u8FDB\u5EA6\uFF1A "+i((Dt=(Ft=(ft=t.value)==null?void 0:ft.detail)==null?void 0:Ft.progress)==null?void 0:Dt.done)+" / "+i((xt=(Bt=(Et=t.value)==null?void 0:Et.detail)==null?void 0:Bt.progress)==null?void 0:xt.total),1))]),((Ct=(bt=t.value)==null?void 0:bt.detail)==null?void 0:Ct.task_type_value)=="town_task_type_marketing_director_2"?(e(),s("div",Ee,[Be,a(k,{data:(Tt=(At=t.value)==null?void 0:At.detail)==null?void 0:Tt.done_list},{default:u(()=>[a(l,{label:"\u5546\u6237ID",prop:"mer_id","show-overflow-tooltip":"",align:"center"}),a(l,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":"",align:"center"})]),_:1},8,["data"])])):g("",!0),((It=(Vt=t.value)==null?void 0:Vt.detail)==null?void 0:It.task_type_value)=="town_task_type_master_5"?(e(),s("div",xe,[be,a(k,{data:(Nt=(Lt=t.value)==null?void 0:Lt.detail)==null?void 0:Nt.done_list},{default:u(()=>[a(l,{label:"ID",prop:"id","show-overflow-tooltip":"",align:"center",width:"38px"}),a(l,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name","show-overflow-tooltip":"",align:"center"})]),_:1},8,["data"])])):g("",!0)]}),_:1})),[[Wt,B.value]])]),_:1},8,["modelValue"])}}});const va=le(Ae,[["__scopeId","data-v-70aa7ab5"]]);export{va as default};