import{E as W,v as de,Q as fs,k as Fe,u as Ho,o as Ge,w as $o,x as qo,y as Wo,B as He,O as $e,p as ys,C as qe,A as tl,r as Jo,R as Yo,V as gs,D as hs,j as ks,m as bs,n as xs}from"../element-plus/element-plus.DqqeXZzT.js";import{d as ne,Y as L,r as S,o as e,J as z,K as p,L as Y,c as s,a as t,S as C,T as o,Q as x,R as B,U as le,ai as Se,u as H,ba as be,b8 as xe,i as Ee,n as oe,a9 as ce,h as we,F as il,W as ol,O as me,M as Ae,az as Qo,$ as Oe,ae as sl,E as ws}from"../@vue/@vue.lccsL1Mu.js";import{u as nl,b as Vs}from"../vue-router/vue-router.D86bYXwF.js";import{p as Xo,n as Zo,_ as Ss}from"../warning/warning.B4Eab-Me.js";import{a as rl,_ as ul}from"../caret-top/caret-top.BxG-YGIs.js";import{_ as dl}from"../question-filled/question-filled.CpBGPdbF.js";import{c as es,_ as ls,a as as,b as ts,d as is}from"../commonList/commonList.D8OnBao6.js";import{S as Re}from"../_select/_select.DVQW4rAo.js";import{T as cl}from"../timeScreen/timeScreen.BqNtDQOu.js";import{I as Me}from"../_input/_input.DPT4C86A.js";import{D as ye}from"../_dialog/_dialog.ium6sOk7.js";import{W as Es,M as os,_ as ss,d as ns,z as Cs,A as Is,__tla as Ls}from"../weekTime/weekTime.A8_d2KnD.js";import{p as We,T as Je}from"../tableInfo/tableInfo.DCb2GEsc.js";import{R as Te}from"../radioGroup/radioGroup.DXKMGiGl.js";import{_ as ve,j as pl,g as _l,o as Ce,p as rs,h as us,__tla as Bs}from"../../assets/index-DYMYfyXS.js";import{_ as Rs}from"../_drawer/_drawer.C0e253H5.js";import{P as Ms}from"../checkboxDefault/checkboxDefault.BYyTAJkZ.js";import{A as Ve}from"../api/api.BtQEnbVN.js";import{_ as Pe}from"../lodash/lodash.S3QqMfIB.js";import{_ as vl}from"../_dropdown/_dropdown.9LepB-OS.js";import{l as ml}from"../list/list.W6MLSjHS.js";import{I as fl}from"../index/index.D45M3qEr.js";import{_ as ds}from"../_popconfirm/_popconfirm.C2WlUwAw.js";import{_ as Ts}from"../edit/edit.A4ubo7z3.js";import{d as Ds}from"../@element-plus/@element-plus.BWbqilIf.js";import"../lodash-es/lodash-es.LxYfApIs.js";import"../async-validator/async-validator.DSgsWN2H.js";import"../@vueuse/@vueuse.D2YafqsA.js";import"../dayjs/dayjs.D4rZQhfm.js";import"../axios/axios.CUN3se9v.js";import"../@ctrl/@ctrl.D2oWfImC.js";import"../@popperjs/@popperjs.D3lHDW-0.js";import"../escape-html/escape-html.J6B7JOz4.js";import"../normalize-wheel-es/normalize-wheel-es.Erkn7R64.js";import"../warning-filled/warning-filled.Br0zWNXs.js";import"../_tooltip/_tooltip.5el2jQVf.js";import"../pinia/pinia.DodrAXQg.js";import"../vue-demi/vue-demi.Dq6ymT-8.js";import"../pinia-plugin-persist/pinia-plugin-persist.Cjrd7Wf_.js";import"../echarts/echarts.C_nC9ACL.js";import"../tslib/tslib.DduEQve-.js";import"../zrender/zrender.XYf_pgl8.js";import"../arrow-down/arrow-down.3pXuoMMM.js";import"../vuedraggable/vuedraggable.5P1kLX_e.js";import"../vue/vue.DM_RCOLp.js";import"../sortablejs/sortablejs.eDTBsIhC.js";let cs,Ns=Promise.all([(()=>{try{return Ls}catch{}})(),(()=>{try{return Bs}catch{}})()]).then(async()=>{let yl,gl,hl,kl,bl,xl,wl,Vl,Sl,El,Cl,Il,Ll,Bl,Rl,Ml,Tl,Dl,Nl,Fl,Al,Ol,Pl,Ul,jl,Kl,zl,Gl,Hl,$l,ql,Wl,Jl,Yl,Ql,Xl,Zl,ea,la,aa,ta,ia,oa,sa,na,ra,ua,da,ca,pa,_a,va,ma,fa,ya,ga,ha,ka,ba,xa,wa,Va,Sa,Ea,Ye,Ca,Ia,La,Ba,Ra,Ma,Ta,Da,Na,Fa,Aa,Oa,Pa,Ua,ja,Ka,za,Ga,Ha,$a,qa,Wa,Ja,Ya,Qe,Qa,Xa,Za,et,lt,at,tt,it,ot,st,nt,rt,ut,Xe,dt,ct,pt,_t,vt,mt,ft,yt,gt,ht,kt,bt,xt,wt,Vt,St,Et,Ct,It,Lt,Bt,Rt,Mt,Tt,Dt,Nt,Ft,At,Ot,Pt,Ut,jt,Kt,zt,Gt,Ht,$t,qt,Wt,Jt,Yt,Qt,Xt,Zt,ei,Ze,li,ai,ti,ii,oi,si,ni,ri,ui,di,ci,pi,_i,vi,mi,fi,yi,gi,hi,ki,bi,xi,wi,Vi,Si,Ei,Ci,Ii,Li,Bi,Ri,Mi,Ti,Di,Ni,Fi,Ai,De,Oi,Pi,Ui,ji,Ki,zi,Gi,Hi,$i,qi,Wi,Ji,Yi,Qi,Xi,Zi,eo,lo,ao,to,io,oo,so,no,ro,uo,co,po,_o,vo,mo,fo,yo,go,ho,ko,bo,xo,wo,Vo,So,Eo,Co,Io,Lo,Bo,Ro,Mo,To,Do,No,Fo,Ao,Oo,Po,Uo,jo;yl={class:"dialogBox"},gl={class:"bMar20 f13"},hl=B("\u5DF2\u9009 "),kl={class:"f-wei-600"},bl=B(" \u6761\u5E7F\u544A"),xl={style:{"margin-left":"150px"}},wl=ne({__name:"editPutTime",props:{title:{default:"\u63D0\u793A"},dataFillBack:{default:{}}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=h,d=L(v.dataFillBack||{}),l=L({key:"time_series_type",name:"\u6295\u653E\u65F6\u6BB5",type:"radio",data:{defaultValue:"1",list:[{label:"\u4E0D\u9650",value:"1"},{label:"\u6307\u5B9A\u65F6\u95F4\u6BB5",value:"2"}]}}),w=f=>{for(let u in f)d[u]=f[u]},r=L({chooseList:[]}),i=S(!1),y=async()=>{let f=d.time_series_type=="2"?JSON.stringify(d.time_series.split(",").join("")):JSON.stringify("");if(d.time_series_type=="2"&&!d.time_series.split(",").join(""))return void W.error("\u8BF7\u9009\u62E9\u65F6\u95F4\u6BB5");i.value=!0;let u=[];r.chooseList.forEach(n=>{u.push({account_id:n.account_id,adgroup_id:n.adgroup_id})}),A("confirm",u,9,f,n=>{i.value=!1,n&&(a.value=!1)})},a=S(!1);return U({switchShow:(f,u)=>{a.value=f,f&&(r.chooseList=u,d.value=v.dataFillBack||{},l.value={key:"time_series_type",name:"\u6295\u653E\u65F6\u6BB5",type:"radio",data:{defaultValue:"1",list:[{label:"\u4E0D\u9650",value:"1"},{label:"\u6307\u5B9A\u65F6\u95F4\u6BB5",value:"2"}]}})}}),(f,u)=>{const n=de;return e(),z(ye,{dialogVisible:a.value,onConfirm:y,onClose:u[1]||(u[1]=_=>a.value=!1),width:"1000px",height:"","dialog-title":h.title},{content:p(()=>{var _;return[Y((e(),s("div",yl,[t("div",gl,[hl,t("span",kl,C(((_=r.chooseList)==null?void 0:_.length)||0),1),bl]),o(os,{info:l,fillBack:v.dataFillBack.time_series_type,onChange:w},{default:p(()=>[t("div",xl,[d.time_series_type=="2"?(e(),z(Es,{key:0,class:"marT25",fillBack:v.dataFillBack.time_series,onChange:u[0]||(u[0]=c=>{(({val:g,key:m})=>{d[m]=g})({val:c,key:"time_series"})})},null,8,["fillBack"])):x("",!0)])]),_:1},8,["info","fillBack"])])),[[n,i.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),Vl=h=>(be("data-v-0d9d0820"),h=h(),xe(),h),Sl={class:"dialogBox"},El={class:"bMar20 f13"},Cl=B("\u5DF2\u9009 "),Il={class:"f-wei-600"},Ll=B(" \u6761\u5E7F\u544A"),Bl=Vl(()=>t("div",{class:"tips"},[t("div",null,"1.\u4E00\u952E\u8D77\u91CF\u671F\u95F4\u4EA7\u751F\u7684\u6D88\u8017\u4E0D\u8D54\u4ED8,\u4F46\u8F6C\u5316\u8BA1\u5165\u8D54\u4ED8\u95E8\u69DB\u5224\u65AD"),t("div",null,"2.\u4E00\u952E\u8D77\u91CF\u53EF\u80FD\u5BFC\u81F4\u8F6C\u5316\u6210\u672C\u9AD8\u4E8E\u9884\u671F,\u4E14\u8D77\u91CF\u7ED3\u675F\u540E\u4E0D\u4E00\u5B9A\u80FD\u5F85\u7EED\u6D88\u8017")],-1)),Rl={class:"text-center"},Ml=["onUpdate:modelValue"],Tl={key:0,style:{color:"#FF5B5B","font-size":"12px"},class:"tMar5"},Dl={key:0,style:{color:"#FF5B5B","font-size":"12px"},class:"tMar5"},Nl=ne({__name:"oneClickMeasure",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=L({chooseList:[],textVal:0}),d=L([{name:"\u5E7F\u544A\u540D\u79F0",column:"adgroup_name"},{name:"\u5F53\u524D\u51FA\u4EF7(\u5143)",column:"bid_amount"},{name:"\u6279\u91CF\u4FEE\u6539\u63A2\u7D22\u9884\u7B97(\u5143)",column:"operate",slotFlag:!0}]),{tableInfo:l,tableListRef:w,total:r}=We(d),i=L({value:1,name:"\u63A2\u7D22\u9884\u7B97",EgName:"explore",radioVal:"one",haveNotes:!0,list:[{name:"\u7EDF\u4E00\u4FEE\u6539",value:"one"},{name:"\u5206\u522B\u4FEE\u6539",value:"two"}]}),y=S(!1),a=async()=>{let u=!1;if(i.radioVal=="one"?v.textVal||(u=!0):v.chooseList.forEach(_=>{_.auto_acquisition_budget||(u=!0)}),u)return void W.error("\u8BF7\u5B8C\u6574\u586B\u5199\u63A2\u7D22\u9884\u7B97");y.value=!0;let n=[];v.chooseList.forEach(_=>{n.push({account_id:_.account_id,adgroup_id:_.adgroup_id,auto_acquisition_budget:i.radioVal=="one"?v.textVal:_.auto_acquisition_budget})}),A("confirm",n,10,null,_=>{y.value=!1,_&&(f.value=!1)})},f=S(!1);return U({switchShow:(u,n)=>{f.value=u,u&&(i.radioVal="one",v.chooseList=n)}}),(u,n)=>{const _=de;return e(),z(ye,{dialogVisible:f.value,onConfirm:a,onClose:n[2]||(n[2]=c=>f.value=!1),width:"1000px",height:"","dialog-title":h.title},{content:p(()=>{var c;return[Y((e(),s("div",Sl,[t("div",El,[Cl,t("span",Il,C(((c=v.chooseList)==null?void 0:c.length)||0),1),Ll]),o(Te,{radioList:i.list,echoVal:i.radioVal,title:i.name,onReturnEvent:n[0]||(n[0]=g=>{i.radioVal=g})},null,8,["radioList","echoVal","title"]),Bl,o(Je,{ref_key:"tableListRef",ref:w,tableData:v.chooseList,descol:H(l).descolList,tableHeight:"400"},{operate:p(g=>[t("div",Rl,[i.radioVal=="two"?(e(),s(le,{key:0},[Y(t("input",{class:"iptCss",type:"number","onUpdate:modelValue":m=>g.row.auto_acquisition_budget=m,min:200,max:1e5,placeholder:"\u8BF7\u8F93\u5165\u63A2\u7D22\u9884\u7B97"},null,8,Ml),[[Se,g.row.auto_acquisition_budget,void 0,{lazy:!0}]]),g.row.auto_acquisition_budget&&(Number(g.row.auto_acquisition_budget)>1e5||Number(g.row.auto_acquisition_budget)<200)?(e(),s("div",Tl,"\u63A2\u7D22\u9884\u7B97\u4FEE\u6539\u8303\u56F4\u4E3A200-100000\u5143\uFF0C\u4E14\u4E0D\u80FD\u4F4E\u4E8E\u51FA\u4EF7")):x("",!0)],64)):x("",!0),i.radioVal=="one"?(e(),s(le,{key:1},[Y(t("input",{class:"iptCss",type:"number","onUpdate:modelValue":n[1]||(n[1]=m=>v.textVal=m),min:200,max:1e5,placeholder:"\u8BF7\u8F93\u5165\u63A2\u7D22\u9884\u7B97"},null,512),[[Se,v.textVal]]),v.textVal&&(Number(v.textVal)>1e5||Number(v.textVal)<200)?(e(),s("div",Dl,"\u63A2\u7D22\u9884\u7B97\u4FEE\u6539\u8303\u56F4\u4E3A200-100000\u5143\uFF0C\u4E14\u4E0D\u80FD\u4F4E\u4E8E\u51FA\u4EF7")):x("",!0)],64)):x("",!0)])]),_:1},8,["tableData","descol"])])),[[_,y.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),Fl=ve(Nl,[["__scopeId","data-v-0d9d0820"]]),Al={class:"dialogBox"},Ol={class:"bMar20 f13"},Pl=B("\u5DF2\u9009 "),Ul={class:"f-wei-600"},jl=B(" \u6761\u5E7F\u544A"),Kl={class:"text-center"},zl=["onUpdate:modelValue"],Gl={key:0,style:{color:"#FF5B5B","font-size":"12px"},class:"tMar5"},Hl={key:0,style:{color:"#FF5B5B","font-size":"12px"},class:"tMar5"},$l=ne({__name:"batchEditDayBudget",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=L({chooseList:[],textVal:0}),d=L([{name:"\u5E7F\u544A",column:"adgroup_name"},{name:"\u5F53\u524D\u6D88\u8017",column:"cost"},{name:"\u5F53\u524D\u65E5\u9884\u7B97",column:"daily_budget"},{name:"\u4FEE\u6539\u65E5\u9884\u7B97(\u5143)",column:"operate",slotFlag:!0}]),{tableInfo:l,tableListRef:w,total:r}=We(d),i=L({value:1,name:"\u4FEE\u6539\u89C4\u5219",EgName:"dayBudget",radioVal:"one",haveNotes:!0,list:[{name:"\u7EDF\u4E00\u4FEE\u6539",value:"one",notes:"\u4E0D\u53EF\u4E0E\u7CFB\u7EDF\u4F18\u9009\u540C\u65F6\u4F7F\u7528 \u5F53\u65E5\u9884\u7B97\u91D1\u989D\u586B\u5199\u201C0\u201D\u65F6\uFF0C\u7B49\u4E8E\u4E0D\u9650\u65E5\u9884\u7B97"},{name:"\u5206\u522B\u4FEE\u6539",value:"two",notes:"\u4E0D\u53EF\u4E0E\u7CFB\u7EDF\u4F18\u9009\u540C\u65F6\u4F7F\u7528 \u5F53\u65E5\u9884\u7B97\u91D1\u989D\u586B\u5199\u201C0\u201D\u65F6\uFF0C\u7B49\u4E8E\u4E0D\u9650\u65E5\u9884\u7B97"}]}),y=S(!1),a=async()=>{let u=!1;if(i.radioVal=="one"?v.textVal||(u=!0):v.chooseList.forEach(_=>{_.daily_budget||(u=!0)}),u)return void W.error("\u8BF7\u5B8C\u6574\u586B\u5199\u65E5\u9884\u7B97");y.value=!0;let n=[];v.chooseList.forEach(_=>{n.push({account_id:_.account_id,adgroup_id:_.adgroup_id,daily_budget:i.radioVal=="one"?v.textVal:_.daily_budget})}),A("confirm",n,4,null,_=>{y.value=!1,_&&(f.value=!1)})},f=S(!1);return U({switchShow:(u,n)=>{f.value=u,u&&(i.radioVal="one",v.chooseList=n)}}),(u,n)=>{const _=de;return e(),z(ye,{dialogVisible:f.value,onConfirm:a,onClose:n[2]||(n[2]=c=>f.value=!1),width:"1000px",height:"","dialog-title":h.title},{content:p(()=>{var c;return[Y((e(),s("div",Al,[t("div",Ol,[Pl,t("span",Ul,C(((c=v.chooseList)==null?void 0:c.length)||0),1),jl]),o(Te,{radioList:i.list,echoVal:i.radioVal,title:i.name,haveNotes:i.haveNotes,onReturnEvent:n[0]||(n[0]=g=>{i.radioVal=g})},null,8,["radioList","echoVal","title","haveNotes"]),o(Je,{ref_key:"tableListRef",ref:w,tableData:v.chooseList,descol:H(l).descolList,tableHeight:"380"},{operate:p(g=>[t("div",Kl,[i.radioVal=="two"?(e(),s(le,{key:0},[Y(t("input",{class:"iptCss",type:"number","onUpdate:modelValue":m=>g.row.daily_budget=m,min:50,placeholder:"\u8BF7\u8F93\u5165\u65E5\u9884\u7B97"},null,8,zl),[[Se,g.row.daily_budget,void 0,{lazy:!0}]]),g.row.daily_budget&&Number(g.row.daily_budget)<50?(e(),s("div",Gl,"\u6700\u5C0F50")):x("",!0)],64)):x("",!0),i.radioVal=="one"?(e(),s(le,{key:1},[Y(t("input",{class:"iptCss",type:"number","onUpdate:modelValue":n[1]||(n[1]=m=>v.textVal=m),min:50,placeholder:"\u8BF7\u8F93\u5165\u65E5\u9884\u7B97"},null,512),[[Se,v.textVal]]),v.textVal&&Number(v.textVal)<50?(e(),s("div",Hl,"\u6700\u5C0F50")):x("",!0)],64)):x("",!0)])]),_:1},8,["tableData","descol"])])),[[_,y.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),ql=ve($l,[["__scopeId","data-v-4b0de27c"]]),Wl={class:"dialogBox"},Jl={class:"bMar20 f13"},Yl=B("\u5DF2\u9009 "),Ql={class:"f-wei-600"},Xl=B(" \u6761\u5E7F\u544A"),Zl=ne({__name:"editBid",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=L({chooseList:[]}),d=S(!1),l=S(),w=async()=>{var y;if(((y=l.value)==null?void 0:y.value)=="")return void W.error("\u8BF7\u8F93\u5165\u51FA\u4EF7");d.value=!0;let i=[];v.chooseList.forEach(a=>{i.push({account_id:a.account_id,adgroup_id:a.adgroup_id})}),A("confirm",i,5,l.value.value,a=>{d.value=!1,a&&(r.value=!1)})},r=S(!1);return U({switchShow:(i,y)=>{r.value=i,i&&(v.chooseList=y)}}),(i,y)=>{const a=de;return e(),z(ye,{dialogVisible:r.value,onConfirm:w,onClose:y[0]||(y[0]=f=>r.value=!1),width:"600px","dialog-title":h.title},{content:p(()=>{var f;return[Y((e(),s("div",Wl,[t("div",Jl,[Yl,t("span",Ql,C(((f=v.chooseList)==null?void 0:f.length)||0),1),Xl]),o(Me,{ref_key:"nameRef",ref:l,title:"\u4FEE\u6539\u51FA\u4EF7",placeholderTxt:h.title},null,8,["placeholderTxt"])])),[[a,d.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),ea={class:"dialogBox"},la={class:"bMar20 f13"},aa=B("\u5DF2\u9009 "),ta={class:"f-wei-600"},ia=B(" \u6761\u5E7F\u544A"),oa={class:"marT15 flex-center marB15",style:{"margin-left":"150px"}},sa=t("span",{style:{margin:"0 10px"}}," -- ",-1),na=ne({__name:"editPromoteDate",props:{title:{default:"\u63D0\u793A"},dataFillBack:{default:{}}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=h,d=L(v.dataFillBack||{}),l=L({key:"date_model",name:"\u6295\u653E\u65E5\u671F",type:"radio",data:{defaultValue:"1",list:[{label:"\u957F\u671F\u6295\u653E",value:"1"},{label:"\u8BBE\u7F6E\u5F00\u59CB\u548C\u7ED3\u675F\u65E5\u671F",value:"2"}]}}),w=S(!1),r=u=>{for(let n in u)d[n]=u[n]},i=({val:u,key:n})=>{d[n]=u},y=L({chooseList:[]}),a=async()=>{if((d==null?void 0:d.date_model)=="1"&&!(d!=null&&d.begin_date)||(d==null?void 0:d.date_model)=="2"&&(!(d!=null&&d.begin_date)||!(d!=null&&d.end_date)))return void W.error("\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");w.value=!0;let u=[];y.chooseList.forEach(n=>{u.push({account_id:n.account_id,adgroup_id:n.adgroup_id})}),A("confirm",u,8,JSON.stringify({begin_date:d.begin_date,end_date:d.date_model=="2"?d.end_date:d.begin_date}),n=>{w.value=!1,n&&(f.value=!1)})},f=S(!1);return U({switchShow:(u,n)=>{f.value=u,u&&(y.chooseList=n,d.value=v.dataFillBack||{},l.value={key:"date_model",name:"\u6295\u653E\u65E5\u671F",type:"radio",data:{defaultValue:"1",list:[{label:"\u957F\u671F\u6295\u653E",value:"1"},{label:"\u8BBE\u7F6E\u5F00\u59CB\u548C\u7ED3\u675F\u65E5\u671F",value:"2"}]}})}}),(u,n)=>{const _=de;return e(),z(ye,{dialogVisible:f.value,onConfirm:a,onClose:n[2]||(n[2]=c=>f.value=!1),width:"800px","dialog-title":h.title},{content:p(()=>{var c;return[Y((e(),s("div",ea,[t("div",la,[aa,t("span",ta,C(((c=y.chooseList)==null?void 0:c.length)||0),1),ia]),o(os,{info:l,fillBack:v.dataFillBack.date_model,onChange:r},{default:p(()=>[t("div",oa,[o(ss,{placeholder:"\u5F00\u59CB\u65E5\u671F",fillBack:v.dataFillBack.begin_date||H(pl)(0),onChange:n[0]||(n[0]=g=>{i({val:g,key:"begin_date"})})},null,8,["fillBack"]),d.date_model=="2"?(e(),s(le,{key:0},[sa,o(ss,{placeholder:"\u7ED3\u675F\u65E5\u671F",fillBack:v.dataFillBack.end_date,onChange:n[1]||(n[1]=g=>{i({val:g,key:"end_date"})})},null,8,["fillBack"])],64)):x("",!0)])]),_:1},8,["info","fillBack"])])),[[_,w.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),ra={class:"dialogBox"},ua={class:"bMar20 f13"},da=B("\u5DF2\u9009 "),ca={class:"f-wei-600"},pa=B(" \u6761\u5E7F\u544A"),_a={class:"text-center"},va=["onUpdate:modelValue"],ma=ne({__name:"editDeepBid",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=L({chooseList:[],textVal:0}),d=L([{name:"\u5E7F\u544A\u540D\u79F0",column:"adgroup_name"},{name:"\u6DF1\u5EA6\u8F6C\u5316\u76EE\u6807",column:"deep_conversion_spec"},{name:"\u5F53\u524D\u51FA\u4EF7(\u5143)",column:"bid_amount"},{name:"\u5F53\u524D\u6DF1\u5EA6\u8F6C\u5316\u51FA\u4EF7",column:"deep_bid_amount"},{name:"\u4FEE\u6539\u6DF1\u5EA6\u8F6C\u5316\u51FA\u4EF7(\u5143)",column:"operate",slotFlag:!0}]),{tableInfo:l,tableListRef:w,total:r}=We(d),i=L({value:1,name:"\u4FEE\u6539\u89C4\u5219",EgName:"explore",radioVal:"one",haveNotes:!0,list:[{name:"\u7EDF\u4E00\u4FEE\u6539",value:"one"},{name:"\u5206\u522B\u4FEE\u6539",value:"two"}]}),y=S(!1),a=async()=>{let u=!1;if(i.radioVal=="one"?v.textVal||(u=!0):v.chooseList.forEach(_=>{_.deep_bid_amount_edit||(u=!0)}),u)return void W.error("\u8BF7\u5B8C\u6574\u586B\u5199\u6DF1\u5EA6\u8F6C\u5316\u51FA\u4EF7");y.value=!0;let n=[];v.chooseList.forEach(_=>{n.push({account_id:_.account_id,adgroup_id:_.adgroup_id,bid_amount:i.radioVal=="one"?v.textVal:_.deep_bid_amount_edit})}),A("confirm",n,6,null,_=>{y.value=!1,_&&(f.value=!1)})},f=S(!1);return U({switchShow:(u,n)=>{f.value=u,u&&(i.radioVal="one",v.chooseList=n)}}),(u,n)=>{const _=de;return e(),z(ye,{dialogVisible:f.value,onConfirm:a,onClose:n[2]||(n[2]=c=>f.value=!1),width:"1000px",height:"","dialog-title":h.title},{content:p(()=>{var c;return[Y((e(),s("div",ra,[t("div",ua,[da,t("span",ca,C(((c=v.chooseList)==null?void 0:c.length)||0),1),pa]),o(Te,{radioList:i.list,echoVal:i.radioVal,title:i.name,onReturnEvent:n[0]||(n[0]=g=>{i.radioVal=g})},null,8,["radioList","echoVal","title"]),o(Je,{ref_key:"tableListRef",ref:w,tableData:v.chooseList,descol:H(l).descolList,tableHeight:"400"},{operate:p(g=>[t("div",_a,[i.radioVal=="two"?Y((e(),s("input",{key:0,class:"iptCss",type:"number","onUpdate:modelValue":m=>g.row.deep_bid_amount_edit=m,placeholder:"\u8BF7\u8F93\u5165\u6DF1\u5EA6\u8F6C\u5316\u51FA\u4EF7"},null,8,va)),[[Se,g.row.deep_bid_amount_edit,void 0,{lazy:!0}]]):x("",!0),i.radioVal=="one"?Y((e(),s("input",{key:1,class:"iptCss",type:"number","onUpdate:modelValue":n[1]||(n[1]=m=>v.textVal=m),placeholder:"\u8BF7\u8F93\u5165\u6DF1\u5EA6\u8F6C\u5316\u51FA\u4EF7"},null,512)),[[Se,v.textVal]]):x("",!0)])]),_:1},8,["tableData","descol"])])),[[_,y.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),fa=ve(ma,[["__scopeId","data-v-0f74d31d"]]),ya={class:"dialogBox"},ga={class:"bMar20 f13"},ha=B("\u5DF2\u9009 "),ka={class:"f-wei-600"},ba=B(" \u6761\u5E7F\u544A"),xa={class:"text-center"},wa=["onUpdate:modelValue"],Va={key:0,style:{color:"#FF5B5B","font-size":"12px"},class:"tMar5"},Sa={key:0,style:{color:"#FF5B5B","font-size":"12px"},class:"tMar5"},Ea=ve(ne({__name:"editExpectedRoi",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=L({chooseList:[],textVal:0}),d=L([{name:"\u5E7F\u544A\u540D\u79F0",column:"adgroup_name"},{name:"\u5F53\u524D\u671F\u671BROI",column:"deep_conversion_worth_roi"},{name:"\u4FEE\u6539\u671F\u671BROI",column:"operate",slotFlag:!0}]),{tableInfo:l,tableListRef:w,total:r}=We(d),i=L({value:1,name:"\u4FEE\u6539\u89C4\u5219",EgName:"explore",radioVal:"one",haveNotes:!0,list:[{name:"\u7EDF\u4E00\u4FEE\u6539",value:"one"},{name:"\u5206\u522B\u4FEE\u6539",value:"two"}]}),y=S(!1),a=async()=>{let u=!1;if(i.radioVal=="one"?v.textVal||(u=!0):v.chooseList.forEach(_=>{_.deep_conversion_worth_roi_edit||(u=!0)}),u)return void W.error("\u8BF7\u5B8C\u6574\u586B\u5199\u671F\u671BROI");y.value=!0;let n=[];v.chooseList.forEach(_=>{n.push({account_id:_.account_id,adgroup_id:_.adgroup_id,expected_roi:i.radioVal=="one"?v.textVal:_.deep_conversion_worth_roi})}),A("confirm",n,7,null,_=>{y.value=!1,_&&(f.value=!1)})},f=S(!1);return U({switchShow:(u,n)=>{f.value=u,u&&(i.radioVal="one",v.chooseList=n)}}),(u,n)=>{const _=de;return e(),z(ye,{dialogVisible:f.value,onConfirm:a,onClose:n[2]||(n[2]=c=>f.value=!1),width:"1000px",height:"","dialog-title":h.title},{content:p(()=>{var c;return[Y((e(),s("div",ya,[t("div",ga,[ha,t("span",ka,C(((c=v.chooseList)==null?void 0:c.length)||0),1),ba]),o(Te,{radioList:i.list,echoVal:i.radioVal,title:i.name,onReturnEvent:n[0]||(n[0]=g=>{i.radioVal=g})},null,8,["radioList","echoVal","title"]),o(Je,{ref_key:"tableListRef",ref:w,tableData:v.chooseList,descol:H(l).descolList,tableHeight:"400"},{operate:p(g=>[t("div",xa,[i.radioVal=="two"?(e(),s(le,{key:0},[Y(t("input",{class:"iptCss",type:"number","onUpdate:modelValue":m=>g.row.deep_conversion_worth_roi_edit=m,max:1e3,placeholder:"\u8BF7\u8F93\u5165\u671F\u671BROI"},null,8,wa),[[Se,g.row.deep_conversion_worth_roi_edit,void 0,{lazy:!0}]]),g.row.deep_conversion_worth_roi_edit&&Number(g.row.deep_conversion_worth_roi_edit)>1e3?(e(),s("div",Va,"\u6700\u59271000")):x("",!0)],64)):x("",!0),i.radioVal=="one"?(e(),s(le,{key:1},[Y(t("input",{class:"iptCss",type:"number","onUpdate:modelValue":n[1]||(n[1]=m=>v.textVal=m),placeholder:"\u8BF7\u8F93\u5165\u671F\u671BROI",max:1e3},null,512),[[Se,v.textVal]]),v.textVal&&Number(v.textVal)>1e3?(e(),s("div",Sa,"\u6700\u59271000")):x("",!0)],64)):x("",!0)])]),_:1},8,["tableData","descol"])])),[[_,y.value]])]}),_:1},8,["dialogVisible","dialog-title"])}}}),[["__scopeId","data-v-17c5cfc6"]]),Ye=h=>(be("data-v-fdeb4e02"),h=h(),xe(),h),Ca={class:"pageCon"},Ia=Ye(()=>t("div",{class:"pageTitle"},"\u8BA1\u5212\u914D\u7F6E",-1)),La={class:"tMar20"},Ba={class:"bigTitle f28 bMar20 tMar20 f-wei-600"},Ra={class:"tMar13"},Ma={class:"flex_start"},Ta={class:"smallTitle line20"},Da=["innerHTML"],Na=Ye(()=>t("div",{class:"bigTitle f28 bMar20 tMar20 f-wei-600"},"\u5B9A\u5411",-1)),Fa=ve(ne({__name:"basicInfo",props:{infoObj:{default:{}}},setup(h,{expose:U}){const A=h,{proxy:v}=we();v.$NumberHandle;const d=L({list:[{title:"\u57FA\u672C\u60C5\u51B5",list:[{title:"\u5E7F\u544A\u540D\u79F0",key:"adgroup_name",value:""},{title:"\u5E7F\u544AID",key:"adgroup_id",value:""},{title:"\u63A8\u5E7F\u8BA1\u5212",key:"campaign_name",value:""},{title:"\u63A8\u5E7F\u76EE\u6807",key:"promoted_object_type_text",value:""},{title:"\u8425\u9500\u76EE\u6807",key:"marketing_scene_desc",value:""},{title:"\u5E7F\u544A\u5F62\u5F0F",key:"ad_form",value:""},{title:"\u7248\u4F4D",key:"site_set_text",value:""},{title:"\u641C\u7D22\u573A\u666F\u6269\u91CF",key:"search_scene_expand",value:""},{title:"\u5B9A\u5411\u62D3\u5C55",key:"search_expand_targeting_switch",value:""},{title:"\u7248\u4F4D\u6269\u91CF",key:"site_expand",value:""},{title:"\u8F6C\u5316\u5F52\u56E0",key:"attribution_type",value:""},{title:"\u6570\u636E\u6E90ID",key:"user_action_set_id",value:""}]},{title:"\u6392\u671F\u4E0E\u51FA\u4EF7",list:[{title:"\u6295\u653E\u65E5\u671F",key:"putOn_date",value:""},{title:"\u6295\u653E\u65F6\u95F4",key:"time_series",value:""},{title:"\u9996\u65E5\u5F00\u59CB\u65F6\u95F4",key:"first_day_begin_time",value:""},{title:"\u65E5\u9884\u7B97",key:"daily_budget",value:""},{title:"\u51FA\u4EF7\u65B9\u5F0F",key:"bid_mode_text",value:""},{title:"\u6295\u653E\u573A\u666F",key:"bid_scene",value:""},{title:"\u51FA\u4EF7\u7C7B\u578B",key:"smart_bid_type",value:""},{title:"\u4F18\u5316\u76EE\u6807",key:"optimization_goal_text",value:""},{title:"\u51FA\u4EF7",key:"bid_amount",value:""},{title:"\u6DF1\u5EA6\u4F18\u5316\u76EE\u6807",key:"deep_conversion_spec_goal",value:""},{title:"\u51FA\u4EF7\u7B56\u7565",key:"bid_strategy",value:""},{title:"\u4E00\u952E\u8D77\u91CF",key:"auto_acquisition_enabled",value:""},{title:"\u4E00\u65B9\u6570\u636E\u8DD1\u91CF\u52A0\u5F3A",key:"ecom_pkam_switch",value:""}]}],DirectInfo:{}}),{editEchoEcent:l,constant_jsonInfo:w}=ns();es();const r=S(!1);return U({init:async()=>{var a;r.value=!0;const i=L({adgroup_id:(a=A.infoObj)==null?void 0:a.adgroup_id});let y=await v.$http.get(Ve.advert_adsDetail,i);r.value=!1,y&&y.errNo=="0"?oe(()=>{var u,n;d.infoRst=y.rst;let f=Pe.cloneDeep(w);l((n=(u=y==null?void 0:y.rst)==null?void 0:u.target_info)==null?void 0:n.targeting,f),d.DirectInfo=f,d.list.forEach(_=>{_.list.forEach(c=>{let g=d.infoRst[c.key];if(c.key=="ad_form")g==1&&(c.value="\u5E38\u89C4");else if(c.key=="automatic_site_enabled")c.value=g==1?"\u662F":"\u5426";else if(c.key=="search_scene_expand")c.value=g==1?"\u6253\u5F00":"\u5173\u95ED";else if(c.key=="search_scene_expand")c.value=g=="SEARCH_EXPAND_TARGETING_SWITCH_OPEN"?"\u6253\u5F00":"\u5173\u95ED";else if(c.key=="site_expand")c.value=g==1?"\u5F00\u542F":"\u4E0D\u5F00\u542F";else if(c.key=="attribution_type")c.value=g==1?"\u5168\u7F51\u5F52\u56E0":"\u7CBE\u51C6\u5339\u914D\u5F52\u56E0";else if(c.key=="bid_scene")c.value=g=="BID_SCENE_NORMAL_AVERAGE"?"\u5E38\u89C4\u6295\u653E-\u7A33\u5B9A\u6295\u653E":g=="BID_SCENE_NORMAL_TARGET"?"\u5E38\u89C4\u6295\u653E-\u653E\u91CF\u6295\u653E":g=="BID_SCENE_NORMAL_MAX"?"\u6700\u5927\u8F6C\u5316\u91CF\u6295\u653E":"\u5173\u95ED";else if(c.key=="smart_bid_type")c.value=g=="SMART_BID_TYPE_CUSTOM"?"\u624B\u52A8\u51FA\u4EF7":"\u81EA\u52A8\u51FA\u4EF7";else if(c.key=="bid_strategy")g=="BID_STRATEGY_AVERAGE_COST"?c.value="\u7A33\u5B9A\u62FF\u91CF":g=="BID_STRATEGY_TARGET_COST"?c.value="\u4F18\u5148\u62FF\u91CF":g=="BID_STRATEGY_PRIORITY_LOW_COST"?c.value="\u4F18\u5148\u4F4E\u6210\u672C":g=="BID_STRATEGY_PRIORITY_CAP_COST"&&(c.value="\u63A7\u5236\u6210\u672C\u4E0A\u9650");else if(c.key=="auto_acquisition_enabled")c.value=g==1?"\u5F00\u542F":"\u4E0D\u5F00\u542F";else if(c.key=="ecom_pkam_switch")c.value=g==1?"\u5F00\u542F":"\u5426";else if(c.key=="TGMB")c.value="\u9500\u552E\u7EBF\u7D22\u6536\u96C6";else if(c.key=="putOn_date")d.infoRst.end_date?c.value=d.infoRst.begin_date+" \u81F3 "+d.infoRst.end_date:c.value="\u957F\u671F\u6295\u653E\uFF08\u5F00\u59CB\u65E5\u671F\uFF1A"+d.infoRst.begin_date+")";else if(c.key=="time_series"){let m="",V=[];for(let k=0;k<7;k++)V.push(g.slice(48*k,48*(k+1)));((V==null?void 0:V.map(k=>{let K=k.split("");return Cs(K)}))||[]).forEach((k,K)=>{var q;m+=`${Is(K)}\uFF1A${(q=k.map(O=>`${O.startTime}~${O.endTime}`))==null?void 0:q.join("\u3001")}
`}),c.value=m}else c.value=g})})}):W.error(y.errMsg)}}),Ee(()=>{oe(()=>{})}),(i,y)=>{const a=de;return Y((e(),s("div",Ca,[Ia,t("div",La,[(e(!0),s(le,null,ce(d.list,f=>(e(),s("div",null,[t("div",Ba,C(f.title),1),(e(!0),s(le,null,ce(f.list,u=>(e(),s("div",Ra,[t("div",Ma,[t("span",Ta,C(u.title),1),t("span",{class:"smallKey",innerHTML:u.value||"-"},null,8,Da)])]))),256))]))),256)),Na,o(Ms,{propInfo:{list:d.DirectInfo},selfCss:{title:"selfTitle",content:"selfContent"}},null,8,["propInfo"])])])),[[a,r.value]])}}}),[["__scopeId","data-v-fdeb4e02"]]),Aa={class:"pageCon"},Oa=(h=>(be("data-v-4bb8de1e"),h=h(),xe(),h))(()=>t("div",{class:"pageTitle"},"\u521B\u610F\u8BBE\u7F6E",-1)),Pa={class:"tMar20"},Ua={class:"bigTitle f28 bMar20 tMar20 f-wei-600"},ja={class:"tMar13"},Ka={class:"flex"},za={class:"smallTitle"},Ga={key:0,class:"flex"},Ha=["src"],$a=["src"],qa=["src"],Wa=B("-"),Ja={key:1,class:"smallKey"},Ya=ve(ne({__name:"creativeInfo",props:{infoObj:{default:{}}},setup(h,{expose:U}){const A=h,{proxy:v}=we();v.$NumberHandle;const d=L({list:[{title:"\u521B\u610F\u57FA\u672C\u4FE1\u606F",list:[{title:"\u521B\u610F\u540D\u79F0",key:"adcreative_name",value:""},{title:"\u521B\u610F\u7C7B\u578B",key:"adcreative_type",value:""},{title:"\u521B\u610F\u5C55\u73B0",key:"creative_display_type",value:""},{title:"\u81EA\u52A8\u884D\u751F\u89C6\u9891\u521B\u610F",key:"auto_derived_creative_enabled",value:""},{title:"\u521B\u610F\u5F62\u5F0F",key:"adcreative_template_name",value:""}]},{title:"\u521B\u610F\u7D20\u6750",list:[{title:"\u6587\u4EF6",key:"material",value:{}}]},{title:"\u6587\u6848",list:[{title:"\u6587\u6848\u63CF\u8FF0",key:"text_desc",value:""}]},{title:"\u843D\u5730\u9875",list:[{title:"\u843D\u5730\u9875\u7C7B\u578B",key:"page_type_name",value:""},{title:"\u843D\u5730\u9875",key:"page_spec",value:""},{title:"\u6587\u5B57\u8DF3\u8F6C\u843D\u5730\u9875\u7C7B\u578B",key:"link_page_type_name",value:""}]},{title:"\u5176\u4ED6",list:[{title:"\u6309\u94AE\u6587\u6848",key:"btn_text",value:""},{title:"\u8DF3\u8F6C\u5E94\u7528\u5546\u5E97",key:"union_market_switch",value:""}]}],infoRst:{}}),l=S(!1);return U({init:async()=>{var i,y;l.value=!0;const w=L({account_id:(i=A.infoObj)==null?void 0:i.account_id,adgroup_id:(y=A.infoObj)==null?void 0:y.adgroup_id});let r=await v.$http.get(Ve.advert_detial,w);l.value=!1,r&&r.errNo=="0"?(d.infoRst=r.rst,d.list.forEach(a=>{a.list.forEach(f=>{let u=d.infoRst[f.key];f.key=="text_desc"?f.value=d.infoRst.adcreative_elements.description:f.key=="btn_text"?f.value=d.infoRst.adcreative_elements.button_text:f.key=="union_market_switch"?f.value=u==1?"\u662F":"\u5426":f.value=u})})):W.error(r.errMsg)}}),Ee(()=>{oe(()=>{})}),(w,r)=>{const i=de;return Y((e(),s("div",Aa,[Oa,t("div",Pa,[(e(!0),s(le,null,ce(d.list,y=>(e(),s("div",null,[t("div",Ua,C(y.title),1),(e(!0),s(le,null,ce(y.list,a=>{var f,u,n,_;return e(),s("div",ja,[t("div",Ka,[t("span",za,C(a.title),1),y.title=="\u521B\u610F\u7D20\u6750"?(e(),s("div",Ga,[a.value.video_url||a.value.image_url||((u=(f=a.value)==null?void 0:f.image_url_list)==null?void 0:u.length)>0?(e(),s(le,{key:0},[a.value.video_url?(e(),s("video",{key:0,src:a.value.video_url,controls:"",style:{height:"130px"},class:"rMar10"},null,8,Ha)):x("",!0),a.value.image_url?(e(),s("img",{key:1,src:a.value.image_url,alt:"",style:{height:"130px"},class:"rMar10"},null,8,$a)):x("",!0),((_=(n=a.value)==null?void 0:n.image_url_list)==null?void 0:_.length)>0?(e(!0),s(le,{key:2},ce(a.value.image_url_list,c=>(e(),s("img",{src:c,alt:"",style:{height:"130px"},class:"rMar10"},null,8,qa))),256)):x("",!0)],64)):(e(),s(le,{key:1},[Wa],64))])):(e(),s("span",Ja,C(a.value||"-"),1))])])}),256))]))),256))])])),[[i,l.value]])}}}),[["__scopeId","data-v-4bb8de1e"]]),Qe=h=>(be("data-v-a2825aa0"),h=h(),xe(),h),Qa={class:"detialBox"},Xa={class:"flex pointer"},Za={class:"lMar10 c-000 f16 f-wei-600 c-theme_text"},et={class:"lMarauto flex"},lt={class:"statusBox rMar10"},at={key:0,class:"c-green"},tt=[Qe(()=>t("span",{class:"statusSpan bcg-green rMar5"},null,-1)),B("\u6B63\u5E38 ")],it={key:1,class:"c-red"},ot=[Qe(()=>t("span",{class:"statusSpan bcg-red rMar5"},null,-1)),B("\u6682\u505C ")],st={style:{display:"block",padding:"0px"}},nt={class:"detialBox_typeBox"},rt=["onClick"],ut=ve(ne({__name:"index",props:{propsObj:{default:{}}},emits:["init"],setup(h,{expose:U,emit:A}){const{proxy:v}=we();v.$NumberHandle;const d=L({info:{},advertFlag:!1}),l=L([{name:"\u8BE6\u60C5",key:"basicInfo"},{name:"\u521B\u610F",key:"creativeInfo"}]),{typeAc:w,typeList:r}=Xo(l),i=S(!1),y=S(),a=S();es();const f=S(!1),{get_behavior_list:u,get_user_os_list:n,get_location_list:_,pageInfoTs:c}=ns();il("userOsList",ol(c,"user_os_list")),il("behaviorList",ol(c,"transformation_behavior_list")),il("location_list",ol(c,"location_ca_list"));const g=()=>{};return U({switchShow:(m,V)=>{f.value=m,m&&(w.value="basicInfo",d.info=V,oe(async()=>{u(),n(),_(),a.value.init(),y.value.init()}))}}),Ee(()=>{oe(()=>{})}),(m,V)=>{const k=fs,K=de;return e(),s("div",Qa,[o(Rs,{drawerShow:f.value,onClose:V[1]||(V[1]=q=>f.value=!1),drawerSize:"70%",headerSlotFlag:!0},{headerSlot:p(()=>[t("div",Xa,[t("h4",Za,C(d.info.adgroup_name||"\u6807\u9898"),1),t("div",et,[t("div",lt,[d.info.configured_status=="AD_STATUS_NORMAL"?(e(),s("span",at,tt)):x("",!0),d.info.configured_status=="AD_STATUS_SUSPEND"?(e(),s("span",it,ot)):x("",!0)]),o(k,{modelValue:d.info.status,"onUpdate:modelValue":V[0]||(V[0]=q=>d.info.status=q),size:"default",onChange:g},null,8,["modelValue"])])])]),content:p(()=>[Y((e(),s("div",st,[t("div",nt,[(e(!0),s(le,null,ce(H(r).list,q=>(e(),s("div",{class:me(["item",q.key==H(w)?"itemAc":""]),key:q.key,onClick:O=>(N=>{w.value=N.key})(q)},[t("div",null,C(q.name),1)],10,rt))),128))]),(e(),z(Qo,null,[t("div",null,[Y(o(Fa,{infoObj:d.info,ref_key:"basicInfoRef",ref:a},null,8,["infoObj"]),[[Ae,H(w)=="basicInfo"]]),Y(o(Ya,{infoObj:d.info,ref_key:"creativeInfoRef",ref:y},null,8,["infoObj"]),[[Ae,H(w)=="creativeInfo"]])])],1024))])),[[K,i.value]])]),_:1},8,["drawerShow"])])}}}),[["__scopeId","data-v-a2825aa0"]]),Xe=h=>(be("data-v-20d400da"),h=h(),xe(),h),dt={class:"screenBox_mini"},ct=B("\u65B0\u5EFA\u8BA1\u5212"),pt={class:"bMar10 flex"},_t=B("\u5DF2\u9009 : "),vt={class:"lMarauto"},mt={key:0,class:"noDataBcg"},ft={class:"flex"},yt=B("\u5F53\u524D\u9875"),gt=B("\u5168\u90E8"),ht=["onClick"],kt=Xe(()=>t("div",{class:"flex"},null,-1)),bt=["onClick"],xt=["onClick"],wt={key:1,class:"sortBox lMar5"},Vt=["onClick"],St=["onClick"],Et={key:0},Ct={key:0},It={key:0,class:"c-green"},Lt={key:1,class:"c-red"},Bt={key:2},Rt={key:1},Mt={key:0},Tt={key:1},Dt={key:2},Nt={key:2,class:"flex"},Ft={key:3},At={class:"flex"},Ot=["onClick"],Pt=["onClick"],Ut=Xe(()=>t("span",{class:"pointer lMar10 c-red"},"\u5220\u9664",-1)),jt={key:4,class:"flex c-theme"},Kt={key:5,class:"flex c-theme pointer"},zt={class:"clampTwo line21",style:{flex:"1"}},Gt={key:0},Ht={key:0,class:"paginationBox flex",style:{"justify-content":"center"}},$t=ve(ne({__name:"advert",props:{campaign_id:{default:0}},emits:["goNewPlan"],setup(h,{expose:U,emit:A}){const v=h,d=nl(),{proxy:l}=we(),w=l.$NumberHandle,r=()=>{A("goNewPlan")},i=S(),y=S(!1),a=L({tableList:[],tableList_all:[],descol:[],multipleSelection:[],updateKey:1,chooseAll:!1,moreList:[{value:"1",label:"\u542F\u7528"},{value:"2",label:"\u7981\u7528"},{value:"3",label:"\u5220\u9664"},{value:"4",label:"\u4FEE\u6539\u65E5\u9884\u7B97"},{value:"5",label:"\u4FEE\u6539\u51FA\u4EF7"},{value:"6",label:"\u6DF1\u5EA6\u4F18\u5316\u51FA\u4EF7"},{value:"7",label:"\u671F\u671BROI"},{value:"8",label:"\u63A8\u5E7F\u65E5\u671F"},{value:"9",label:"\u6295\u653E\u65F6\u6BB5"},{value:"10",label:"\u5F00\u542F\u4E00\u952E\u8D77\u91CF"},{value:"11",label:"\u6682\u505C\u4E00\u952E\u8D77\u91CF"}],currentPage:1,pageSize:20,total:0,totalPages:0,summary:[],sortKey:"",sortType:""}),f=async(D,G)=>{y.value=!0;let ae=[];ae.push({account_id:D.account_id,adgroup_id:D.adgroup_id}),u(ae,G)},u=async(D,G,ae,J)=>{const ue=L({infos:JSON.stringify(D),flag:G||0,value:ae||null});let se=await l.$http.post(Ve.batchGdt_adsBatchEdit,ue);W.info(se.errMsg),se&&se.errNo=="0"?(Q(),a.multipleSelection=[],J&&J(!0)):(y.value=!1,J&&J())},n=(D,G)=>{let ae=[];return a.multipleSelection.forEach(J=>{J[D]!=G&&J[D]&&ae.push(J)}),ae},_=S(),c=S(),g=S(),m=S(),V=S(),k=S(),K=S(),q=D=>{var G,ae,J,ue;if(D==4)g.value.switchShow(!0,a.multipleSelection);else if(D==6){if(((G=n("deep_bid_amount",0))==null?void 0:G.length)==0)return void W.error("\u6240\u9009\u6682\u65E0\u6DF1\u5EA6\u4F18\u5316\u51FA\u4EF7");k.value.switchShow(!0,n("deep_bid_amount",0))}else if(D==7){if(((ae=n("deep_conversion_worth_roi",0))==null?void 0:ae.length)==0)return void W.error("\u6240\u9009\u6682\u65E0\u671F\u671BROI");K.value.switchShow(!0,n("deep_conversion_worth_roi",0))}else if(D==10){if(((J=n("auto_acquisition_enabled",0))==null?void 0:J.length)==0)return void W.error("\u6240\u9009\u6682\u65E0\u5173\u95ED\u72B6\u6001\u7684\u4E00\u952E\u8D77\u91CF");c.value.switchShow(!0,n("auto_acquisition_enabled",0))}else D==9?_.value.switchShow(!0,a.multipleSelection):D==5?m.value.switchShow(!0,a.multipleSelection):D==8&&V.value.switchShow(!0,a.multipleSelection);if(D==1||D==2||D==3||D==11){if(D==11&&((ue=n("auto_acquisition_enabled",1))==null?void 0:ue.length)==0)return void W.error("\u6240\u9009\u6682\u65E0\u5F00\u542F\u72B6\u6001\u7684\u4E00\u952E\u8D77\u91CF");let se=[],Ie="";y.value=!0,a.multipleSelection.forEach(Le=>{se.push({account_id:Le.account_id,adgroup_id:Le.adgroup_id})}),u(se,D,Ie)}},O=S(),N=(D,G)=>{a.sortKey=D,a.sortType=G,Q()},Q=async(D,G)=>{y.value=!0;const ae=L({account_ids:R.value.value,campaign_id:v.campaign_id==0?"":v.campaign_id,keyword:fe.value.value,status:b.value.value,sys_user_id:P.value.value,start:I.value.dateVal&&I.value.dateVal[0],end:I.value.dateVal&&I.value.dateVal[1],page:D||1,pageSize:G||a.pageSize});a.sortKey&&(ae.field=a.sortKey,ae.order=a.sortType);let J=await l.$http.get(Ve.batchGdt_advert_list,ae);if(y.value=!1,J&&J.errNo=="0")if(a.updateKey++,G)a.tableList_all=J.rst.data.list;else{if(a.total=J.rst.pageInfo.total,a.totalPages=J.rst.pageInfo.total,!J.rst.data)return void(a.tableList=[]);a.summary=J.rst.data.summary,a.summary[0].adgroup_name="\u5408\u8BA1(\u7F13\u5B58\u65F6\u95F4:"+rs()+")",a.descol=[],J.rst.data.explain.forEach(ue=>{ue.sub=[];let se=Pe.cloneDeep(ue);se.label=a.summary[0][ue.key_value]||"",ue.sub.push(se)}),a.descol=J.rst.data.explain,a.descol.splice(1,0,{label:"\u64CD\u4F5C",key_value:"operate",disabled:1,sub:[{label:"",key_value:"operate",disabled:1}]}),a.tableList=J.rst.data.list}else W.error(J.errMsg)},ie=D=>{a.currentPage=D,Q(D)},$=D=>{a.multipleSelection.findIndex(G=>G.adgroup_id==D.adgroup_id)<0&&a.multipleSelection.push(D)},te=async D=>{let G=a.tableList;a.chooseAll=!1,a.multipleSelection=[],a.chooseAll=!0,D==2&&(await Q(1,a.totalPages),G=a.tableList_all),G.forEach(ae=>{$(ae)})},pe=D=>{a.tableList.forEach(G=>{D?$(G):a.multipleSelection=[]})},X=()=>{a.multipleSelection=[],a.chooseAll=!1,Q()},re=()=>{oe(()=>{fe.value.value="",R.value.value=[],b.value.value="",P.value.value="",I.value.dateVal="",a.multipleSelection=[],a.chooseAll=!1,Q()})},{init_acList:ge,pageInfo:E,timeRef:I,acRef:R,statusRef:b,userRef:P,InputRef_text:fe,tableHeaderStyle:_e,init_ad_statusList:Ue,getUserList:el}=ml();return U({initAll:()=>{el(),oe(async()=>{b.value.value="NO_DELETED",Ue(),await ge(),await Q()})}}),Ee(()=>{i.value=JSON.parse(_l("userInfo"))}),(D,G)=>{var Ko,zo,Go;const ae=Fe,J=Ho,ue=ts,se=Ge,Ie=$o,Le=qo,ll=Wo,al=is,Be=He,je=dl,F=$e,M=rl,Z=ul,he=Ss,ke=ys,ps=qe,_s=tl,vs=de;return e(),s("div",null,[t("div",dt,[o(Me,{ref_key:"InputRef_text",ref:fe,title:"\u5173\u952E\u8BCD",placeholderTxt:"\u5173\u952E\u8BCD",onChangeEvent:X,onClearEvent:X},null,512),o(Re,{ref_key:"acRef",ref:R,title:"\u8D26\u53F7",selectWidth:"180px",onChangeEvent:X,onClearEvent:X,isMultiple:!0,filterFlag:!0,optObj:{k:"account_id",la:"account_id",val:"account_id"},options:H(E).acList},null,8,["options"]),o(Re,{ref_key:"statusRef",ref:b,title:"\u72B6\u6001",selectWidth:"160px",onChangeEvent:X,onClearEvent:X,options:H(E).ad_statusList},null,8,["options"]),o(cl,{title:"\u65F6\u95F4",selectWidth:"260px",haveQuick:!1,clearFlag:!0,valueIsKong:!0,ref_key:"timeRef",ref:I,onInit:X},null,512),o(Re,{ref_key:"userRef",ref:P,title:"\u521B\u5EFA\u4EBA",selectWidth:"130px",onChangeEvent:X,onClearEvent:X,optObj:{k:"id",la:"username",val:"id"},options:H(E).userList},null,8,["options"]),t("span",{class:"pointer c-theme lMar10",onClick:re},"\u6E05\u7A7A"),((Ko=i.value)==null?void 0:Ko.userAuth)>10?(e(),z(ae,{key:0,class:"lMarauto",type:"primary",onClick:r},{default:p(()=>[ct]),_:1})):x("",!0)]),Y((e(),s("div",null,[t("div",pt,[o(vl,{title:"\u6279\u91CF\u64CD\u4F5C",list:a.moreList,onClose:q,class:"rMar10",disabledFlag:((zo=a.multipleSelection)==null?void 0:zo.length)==0},null,8,["list","disabledFlag"]),t("div",null,[_t,t("span",null,C((Go=a.multipleSelection)==null?void 0:Go.length),1)]),t("span",{class:"pointer c-theme lMar38",onClick:G[0]||(G[0]=j=>Q())},"\u5237\u65B0"),t("div",vt,[o(fl,{type:"ad_base",onRefresh:Q})])]),Number(a.total)==0?(e(),s("div",mt,[o(Zo)])):(e(),s(le,{key:1},[(e(),z(ps,{ref:"tableRef",data:a.tableList,"header-cell-style":H(_e),key:a.updateKey,style:{width:"100%"},border:"","empty-text":"\u6682\u65E0\u6570\u636E","row-key":"adgroup_id","max-height":"calc(100vh - 294px)"},{default:p(()=>[o(Be,{fixed:"",width:"80"},{header:p(()=>[t("div",ft,[o(J,{modelValue:a.chooseAll,"onUpdate:modelValue":G[1]||(G[1]=j=>a.chooseAll=j),onChange:pe},null,8,["modelValue"]),o(ll,{class:"lMar10",onCommand:te},{dropdown:p(()=>[o(Le,null,{default:p(()=>[o(Ie,{command:"1"},{default:p(()=>[yt]),_:1}),o(Ie,{command:"2"},{default:p(()=>[gt]),_:1})]),_:1})]),default:p(()=>[o(se,{color:"#3173FF"},{default:p(()=>[o(ue)]),_:1})]),_:1})])]),default:p(j=>[t("div",{class:me(["checkBoxSelf flex",a.multipleSelection.findIndex(T=>T.adgroup_id==j.row.adgroup_id)>=0?"active":""]),onClick:T=>{return ee=a.multipleSelection.findIndex(Ke=>Ke.adgroup_id==j.row.adgroup_id),Ne=j.row,void(ee==-1?a.multipleSelection.push(Ne):(a.multipleSelection.splice(ee,1),a.chooseAll=!1));var ee,Ne}},[a.multipleSelection.findIndex(T=>T.adgroup_id==j.row.adgroup_id)>=0?(e(),z(se,{key:0,color:"#fff"},{default:p(()=>[o(al)]),_:1})):x("",!0)],10,ht)]),_:1}),o(Be,{fixed:"",width:"60"},{header:p(()=>[kt]),default:p(j=>[j.row.configured_status=="AD_STATUS_NORMAL"?(e(),s("img",{key:0,src:ls,class:"switch_img pointer",onClick:T=>f(j.row,2)},null,8,bt)):x("",!0),j.row.configured_status=="AD_STATUS_SUSPEND"?(e(),s("img",{key:1,src:as,class:"switch_img pointer",onClick:T=>f(j.row,1)},null,8,xt)):x("",!0)]),_:1}),(e(!0),s(le,null,ce(a.descol,j=>(e(),z(Be,null,{header:p(()=>[t("div",{class:me(["flex",[a.sortKey==j.key_value?"active_css":""]]),style:{"justify-content":"center"}},[t("span",{style:Oe({color:a.sortKey==j.key_value?"#3173FF":""})},C(j.label),5),j.tooltip?(e(),z(F,{key:0,effect:"dark",content:j.tooltip},{default:p(()=>[o(je,{class:"lMar5 c-999 f12 pointer"})]),_:2},1032,["content"])):x("",!0),j.if_sort==1?(e(),s("div",wt,[t("div",{class:"sortItem",onClick:T=>N(j.key_value,"asc")},[o(se,{color:a.sortType=="asc"&&a.sortKey==j.key_value?"#3173FF":""},{default:p(()=>[o(M)]),_:2},1032,["color"])],8,Vt),t("div",{class:"sortItem",onClick:T=>N(j.key_value,"desc")},[o(se,{color:a.sortType=="desc"&&a.sortKey==j.key_value?"#3173FF":""},{default:p(()=>[o(Z)]),_:2},1032,["color"])],8,St)])):x("",!0)],2)]),default:p(()=>[(e(!0),s(le,null,ce(j.sub,T=>(e(),z(Be,{label:T.label,fixed:T.disabled==1,"min-width":j.key_value=="operate"?"120px":j.key_value=="adgroup_name"?"200px":j.label.length<=4?"100px":j.label.length<=8?"150px":"200px"},{header:p(()=>[t("div",null,[B(C(T.label||T.label==0?H(Ce)(T.label,2,!1):"-"),1),j.label.indexOf("\u7387")!=-1&&T.label?(e(),s("span",Et,"%")):x("",!0)])]),default:p(ee=>{var Ne;return[t("div",{class:"flex",style:Oe([{"justify-content":"center"},{color:a.sortKey==T.key_value?"#3173FF":""}])},[T.key_value=="configured_status"?(e(),s("div",Ct,[ee.row[T.key_value]=="AD_STATUS_NORMAL"?(e(),s("span",It,"\u6B63\u5E38")):ee.row[T.key_value]=="AD_STATUS_SUSPEND"?(e(),s("span",Lt,"\u6682\u505C")):(e(),s("span",Bt,"-"))])):T.key_value=="speed_mode"?(e(),s("div",Rt,[ee.row[T.key_value]=="SPEED_MODE_STANDARD"?(e(),s("span",Mt,"\u6807\u51C6\u6295")):ee.row[T.key_value]=="SPEED_MODE_FAST"?(e(),s("span",Tt,"\u52A0\u901F\u6295\u653E")):(e(),s("span",Dt,"-"))])):T.key_value=="status"?(e(),s("div",Nt,[t("span",null,C(ee.row[T.key_value]),1),ee.row.reject_message&&ee.row.reject_message!=""?(e(),z(ke,{key:0,placement:"right",width:260,trigger:"hover",content:ee.row.reject_message},{reference:p(()=>[o(se,{color:"#888888",class:"f14 lMar3"},{default:p(()=>[o(he)]),_:1})]),_:2},1032,["content"])):x("",!0)])):T.key_value=="operate"?(e(),s("div",Ft,[t("div",At,[t("span",{class:"c-theme pointer",onClick:Ke=>{return ze=ee.row,void O.value.switchShow(!0,ze);var ze}},"\u8BE6\u60C5",8,Ot),((Ne=i.value)==null?void 0:Ne.userAuth)>10?(e(),s("span",{key:0,class:"c-theme pointer lMar10",onClick:Ke=>(ze=>{let ms=d.resolve({path:"/gdtList/batchGdt",query:{adgroup_id:ze.adgroup_id}});window.open(ms.href,"_blank")})(ee.row)},"\u590D\u5236",8,Pt)):x("",!0),o(ds,{key:"dele",onConfirm:Ke=>f(ee.row,3),slotFlag:!0},{con:p(()=>[Ut]),_:2},1032,["onConfirm"])])])):T.key_value=="daily_budget"?(e(),s("div",jt,C(ee.row[T.key_value]?H(w)(ee.row[T.key_value]):"\u4E0D\u9650"),1)):T.key_value=="site_set"?(e(),s("div",Kt,C(ee.row[T.key_value]),1)):(e(),s("div",{key:6,class:me(["cellDiv",a.sortKey==T.key_value?"active_css":""])},[o(F,{disabled:!(ee.row[T.key_value]&&ee.row[T.key_value].length>30),effect:"dark",content:ee.row[T.key_value]+""},{default:p(()=>[t("div",zt,[B(C(ee.row[T.key_value]||ee.row[T.key_value]==0?H(Ce)(ee.row[T.key_value],2,!1):"-"),1),j.label.indexOf("\u7387")==-1||!ee.row[T.key_value]&&ee.row[T.key_value]!=0?x("",!0):(e(),s("span",Gt,"%"))])]),_:2},1032,["disabled","content"])],2))],4)]}),_:2},1032,["label","fixed","min-width"]))),256))]),_:2},1024))),256))]),_:1},8,["data","header-cell-style"])),Number(a.total)>0?(e(),s("div",Ht,[o(_s,{currentPage:a.currentPage,"onUpdate:currentPage":G[2]||(G[2]=j=>a.currentPage=j),"page-size":a.pageSize,"onUpdate:page-size":G[3]||(G[3]=j=>a.pageSize=j),background:"",total:a.total,onCurrentChange:ie},null,8,["currentPage","page-size","total"])])):x("",!0)],64))])),[[vs,y.value]]),o(ut,{ref_key:"detialRef",ref:O,onConfirm:Q},null,512),o(wl,{ref_key:"EditPutTimeRef",ref:_,title:"\u6279\u91CF\u4FEE\u6539\u6295\u653E\u65F6\u95F4",onConfirm:u},null,512),o(Fl,{ref_key:"OneClickMeasureRef",ref:c,title:"\u6279\u91CF\u5F00\u542F\u4E00\u952E\u8D77\u91CF",onConfirm:u},null,512),o(ql,{ref_key:"BatchEditDayBudgetRef",ref:g,title:"\u6279\u91CF\u4FEE\u6539\u65E5\u9884\u7B97",onConfirm:u},null,512),o(Zl,{ref_key:"EditBidRef",ref:m,title:"\u4FEE\u6539\u51FA\u4EF7",onConfirm:u},null,512),o(na,{ref_key:"editPromoteDateRef",ref:V,title:"\u4FEE\u6539\u63A8\u5E7F\u65E5\u671F",onConfirm:u},null,512),o(fa,{ref_key:"EditDeepBidRef",ref:k,title:"\u6279\u91CF\u4FEE\u6539\u6DF1\u5EA6\u8F6C\u5316\u51FA\u4EF7",onConfirm:u},null,512),o(Ea,{ref_key:"EditExpectedRoiRef",ref:K,title:"\u6279\u91CF\u4FEE\u6539\u671F\u671BROI",onConfirm:u},null,512)])}}}),[["__scopeId","data-v-20d400da"]]),qt={class:"dialogBox"},Wt=ne({__name:"editIpt",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const{proxy:v}=we(),d=S(!1),l=L({rowObj:{}}),w=S(),r=async()=>{var f,u;if(((f=w.value)==null?void 0:f.value)=="")return void W.error("\u540D\u79F0\u4E3A\u5FC5\u586B\u9879");d.value=!0;const y=L({account_id:l.rowObj.account_id,campaign_id:l.rowObj.campaign_id,campaign_name:(u=w.value)==null?void 0:u.value});let a=await v.$http.post(Ve.batchGdt_plan_single_edit,y);d.value=!1,W.info(a.errMsg),a&&a.errNo=="0"&&(i.value=!1,A("confirm"))},i=S(!1);return U({switchShow:(y,a)=>{i.value=y,y&&oe(()=>{l.rowObj=a,w.value.value=a.campaign_name})}}),(y,a)=>{const f=de;return e(),z(ye,{dialogVisible:i.value,onConfirm:r,onClose:a[0]||(a[0]=u=>i.value=!1),width:"600px","dialog-title":h.title},{content:p(()=>[Y((e(),s("div",qt,[o(Me,{ref_key:"nameRef",ref:w,title:"",placeholderTxt:h.title},null,8,["placeholderTxt"])])),[[f,d.value]])]),_:1},8,["dialogVisible","dialog-title"])}}}),Jt={class:"dialogBox"},Yt={class:"tMar20"},Qt=B("\u5143"),Xt={key:0,style:{color:"#FF5B5B"},class:"tMar5"},Zt={key:1,style:{color:"#FF5B5B"},class:"tMar5"},ei=ve(ne({__name:"target",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const{proxy:v}=we(),d=L({value:0,name:"\u65E5\u9884\u7B97",EgName:"daily_budget",radioVal:"unlimited",list:[{name:"\u4E0D\u9650",value:"unlimited"},{name:"\u6307\u5B9A\u65E5\u9884\u7B97",value:"appoint"}]}),l=L({value:"",name:"\u6295\u653E\u65B9\u5F0F",EgName:"putOn_way",radioVal:"SPEED_MODE_STANDARD",list:[{name:"\u6807\u51C6\u6295\u653E",value:"SPEED_MODE_STANDARD"},{name:"\u52A0\u901F\u6295\u653E",value:"SPEED_MODE_FAST"}]}),w=S(!1),r=L({radioId:"",rowObj:{}}),i=u=>{d.radioVal=u,u=="unlimited"&&(d.value=0)},y=S(),a=async()=>{var _,c;if(((_=y.value)==null?void 0:_.value)=="")return void W.error("\u540D\u79F0\u4E3A\u5FC5\u586B\u9879");w.value=!0;const u=L({account_id:r.rowObj.account_id,campaign_id:r.rowObj.campaign_id,speed_mode:l.radioVal,daily_budget:d.value,campaign_name:(c=y.value)==null?void 0:c.value});let n=await v.$http.post(Ve.batchGdt_plan_single_edit,u);w.value=!1,W.info(n.errMsg),n&&n.errNo=="0"&&(f.value=!1,A("confirm"))},f=S(!1);return U({switchShow:(u,n)=>{f.value=u,u&&oe(()=>{r.rowObj=n,y.value.value=n.campaign_name,d.radioVal=n.daily_budget?"appoint":"unlimited",d.value=n.daily_budget||0,l.radioVal=n.speed_mode})}}),(u,n)=>{const _=Jo;return e(),z(ye,{dialogVisible:f.value,loading:w.value,onConfirm:a,onClose:n[2]||(n[2]=c=>f.value=!1),width:"600px","dialog-title":h.title},{content:p(()=>[t("div",Jt,[o(Te,{id:r.radioId,radioList:d.list,echoVal:d.radioVal,title:d.name,onReturnEvent:i},{appoint:p(()=>[t("div",Yt,[o(_,{type:"number",modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=c=>d.value=c),min:50,placeholder:"\u8BF7\u8F93\u5165\u63A8\u5E7F\u8BA1\u5212\u65E5\u9884\u7B97,\u6700\u5C0F50",style:{width:"300px"}},{append:p(()=>[Qt]),_:1},8,["modelValue"]),d.value&&d.value<50?(e(),s("div",Xt,"\u6700\u5C0F50")):x("",!0),d.value%1>0?(e(),s("div",Zt,"\u8BF7\u8F93\u5165\u6574\u6570")):x("",!0)])]),_:1},8,["id","radioList","echoVal","title"]),o(Te,{id:r.radioId,radioList:l.list,echoVal:l.radioVal,title:l.name,onReturnEvent:n[1]||(n[1]=c=>{l.radioVal=c})},null,8,["id","radioList","echoVal","title"]),o(Me,{ref_key:"nameRef",ref:y,title:"\u63A8\u5E7F\u8BA1\u5212\u540D\u79F0",spanTitleWidth:"120px",spanFS:"14px",placeholderTxt:h.title,maxLength:"40"},null,8,["placeholderTxt"])])]),_:1},8,["dialogVisible","loading","dialog-title"])}}}),[["__scopeId","data-v-2955bac0"]]),Ze=h=>(be("data-v-c1a0ce9c"),h=h(),xe(),h),li={class:"screenBox_mini"},ai=B("\u65B0\u5EFA\u8BA1\u5212"),ti={class:"bMar10 flex"},ii=B("\u5DF2\u9009 : "),oi={class:"lMarauto"},si={key:0,class:"noDataBcg"},ni={class:"flex"},ri=B("\u5F53\u524D\u9875"),ui=B("\u5168\u90E8"),di=["onClick"],ci=Ze(()=>t("div",{class:"flex"},null,-1)),pi=["onClick"],_i=["onClick"],vi={key:1,class:"sortBox lMar5"},mi=["onClick"],fi=["onClick"],yi={key:0},gi={key:0},hi={class:"c-theme flex campaignName"},ki=["onClick"],bi={key:1},xi={key:0,class:"c-green"},wi={key:1,class:"c-red"},Vi={key:2},Si={key:2},Ei={key:0},Ci={key:1},Ii={key:2},Li={key:3},Bi={class:"flex"},Ri=["onClick"],Mi=Ze(()=>t("span",{class:"pointer lMar10 c-red"},"\u5220\u9664",-1)),Ti=["onClick"],Di={class:"clampTwo line21",style:{flex:"1"}},Ni={key:0},Fi={key:0,class:"paginationBox flex",style:{"justify-content":"center"}},Ai=ve(ne({__name:"plan",emits:["goNewPlan","goAdvert"],setup(h,{expose:U,emit:A}){const{proxy:v}=we(),d=v.$NumberHandle,l=()=>{A("goNewPlan")},w=S(!1),r=L({tableList:[],tableList_all:[],descol:[],multipleSelection:[],updateKey:1,chooseAll:!1,sortKey:"",sortType:"",moreList:[{value:"1",label:"\u542F\u7528"},{value:"2",label:"\u6682\u505C"},{value:"3",label:"\u5220\u9664"}],currentPage:1,pageSize:20,total:0,totalPages:0,summary:[]}),i=S(),y=async(I,R)=>{const b=L({campaign_infos:JSON.stringify(I),flag:R||0});let P=await v.$http.post(Ve.batchGdt_plan_batch_edit,b);W.info(P.errMsg),P&&P.errNo=="0"?(_(),r.multipleSelection=[]):w.value=!1},a=async(I,R)=>{w.value=!0;let b=[];b.push({account_id:I.account_id,campaign_id:I.campaign_id}),y(b,R)},f=I=>{w.value=!0;let R=[];r.multipleSelection.forEach(b=>{R.push({account_id:b.account_id,campaign_id:b.campaign_id})}),y(R,I)},u=I=>{oe(()=>{re.value.switchShow(!0,I)})},n=(I,R)=>{r.sortKey=I,r.sortType=R,_()},_=async(I,R)=>{w.value=!0;const b=L({account_ids:Q.value.value,keyword:te.value.value,status:ie.value.value,start:N.value.dateVal&&N.value.dateVal[0],end:N.value.dateVal&&N.value.dateVal[1],sys_user_id:$.value.value,page:I||1,pageSize:R||r.pageSize});r.sortKey&&(b.field=r.sortKey,b.order=r.sortType);let P=await v.$http.get(Ve.batchGdt_plan_list,b);if(w.value=!1,P&&P.errNo=="0")if(R)r.tableList_all=P.rst.data.list;else{if(r.total=P.rst.pageInfo.total,r.totalPages=P.rst.pageInfo.total,!P.rst.data)return void(r.tableList=[]);r.summary=P.rst.data.summary,r.summary[0].campaign_name="\u5408\u8BA1(\u7F13\u5B58\u65F6\u95F4:"+rs()+")",r.descol=[],P.rst.data.explain.forEach(fe=>{fe.sub=[];let _e=Pe.cloneDeep(fe);_e.label=r.summary[0][fe.key_value]||"",fe.sub.push(_e)}),r.descol=P.rst.data.explain,r.descol.splice(1,0,{label:"\u64CD\u4F5C",key_value:"operate",disabled:1,sub:[{label:"",key_value:"operate",disabled:1}]}),r.tableList=P.rst.data.list}else W.error(P.errMsg)},c=I=>{r.currentPage=I,_(I)},g=I=>{r.multipleSelection.findIndex(R=>R.campaign_id==I.campaign_id)<0&&r.multipleSelection.push(I)},m=async I=>{let R=r.tableList;r.chooseAll=!1,r.multipleSelection=[],r.chooseAll=!0,I==2&&(await _(1,r.totalPages),R=r.tableList_all),R.forEach(b=>{g(b)})},V=I=>{r.tableList.forEach(R=>{I?g(R):r.multipleSelection=[]})},k=()=>{r.multipleSelection=[],r.chooseAll=!1,_()},K=()=>{oe(()=>{te.value.value="",Q.value.value=[],ie.value.value="",$.value.value="",N.value.dateVal="",r.multipleSelection=[],r.chooseAll=!1,_()})},{init_acList:q,pageInfo:O,timeRef:N,acRef:Q,statusRef:ie,userRef:$,InputRef_text:te,tableHeaderStyle:pe,planEditIptRef:X,TargetEditRef:re,customIndEvent:ge,getUserList:E}=ml();return U({initAll:I=>{I&&(Q.value.value=I),oe(async()=>{await q(),await _()})}}),Ee(()=>{i.value=JSON.parse(_l("userInfo")),E(),oe(async()=>{ie.value.value=1,await q(),await _()})}),(I,R)=>{var je;const b=Fe,P=Ho,fe=ts,_e=Ge,Ue=$o,el=qo,D=Wo,G=is,ae=He,J=dl,ue=$e,se=rl,Ie=ul,Le=Ts,ll=qe,al=tl,Be=de;return e(),s("div",null,[t("div",li,[o(Me,{ref_key:"InputRef_text",ref:te,title:"\u5173\u952E\u8BCD",placeholderTxt:"\u5173\u952E\u8BCD",onChangeEvent:k,onClearEvent:k},null,512),o(Re,{ref_key:"acRef",ref:Q,title:"\u8D26\u53F7",selectWidth:"180px",onChangeEvent:k,onClearEvent:k,isMultiple:!0,filterFlag:!0,optObj:{k:"account_id",la:"account_id",val:"account_id"},options:H(O).acList},null,8,["options"]),o(Re,{ref_key:"statusRef",ref:ie,title:"\u72B6\u6001",selectWidth:"160px",onChangeEvent:k,onClearEvent:k,options:H(O).statusList},null,8,["options"]),o(cl,{title:"\u65F6\u95F4",selectWidth:"260px",haveQuick:!1,clearFlag:!0,valueIsKong:!0,ref_key:"timeRef",ref:N,onInit:k},null,512),o(Re,{ref_key:"userRef",ref:$,title:"\u521B\u5EFA\u4EBA",selectWidth:"130px",onChangeEvent:k,onClearEvent:k,optObj:{k:"id",la:"username",val:"id"},options:H(O).userList},null,8,["options"]),t("span",{class:"pointer c-theme lMar5",onClick:K},"\u6E05\u7A7A"),((je=i.value)==null?void 0:je.userAuth)>10?(e(),z(b,{key:0,class:"lMarauto",type:"primary",onClick:l},{default:p(()=>[ai]),_:1})):x("",!0)]),Y((e(),s("div",null,[t("div",ti,[o(vl,{title:"\u6279\u91CF\u64CD\u4F5C",list:r.moreList,onClose:f,class:"rMar10",disabledFlag:r.multipleSelection&&r.multipleSelection.length==0},null,8,["list","disabledFlag"]),t("div",null,[ii,t("span",null,C(r.multipleSelection&&r.multipleSelection.length),1)]),t("span",{class:"pointer c-theme lMar38",onClick:R[0]||(R[0]=F=>_())},"\u5237\u65B0"),t("div",oi,[o(fl,{type:"campaign_base",onRefresh:R[1]||(R[1]=F=>_())})])]),Number(r.total)==0?(e(),s("div",si,[o(Zo)])):(e(),s(le,{key:1},[(e(),z(ll,{ref:"tableRef",data:r.tableList,"header-cell-style":H(pe),key:r.updateKey,style:{width:"100%"},border:"","empty-text":"\u6682\u65E0\u6570\u636E","row-key":"campaign_id","max-height":"calc(100vh - 294px)"},{default:p(()=>[o(ae,{fixed:"",width:"80"},{header:p(()=>[t("div",ni,[o(P,{modelValue:r.chooseAll,"onUpdate:modelValue":R[2]||(R[2]=F=>r.chooseAll=F),onChange:V},null,8,["modelValue"]),o(D,{class:"lMar10",onCommand:m},{dropdown:p(()=>[o(el,null,{default:p(()=>[o(Ue,{command:"1"},{default:p(()=>[ri]),_:1}),o(Ue,{command:"2"},{default:p(()=>[ui]),_:1})]),_:1})]),default:p(()=>[o(_e,{color:"#3173FF"},{default:p(()=>[o(fe)]),_:1})]),_:1})])]),default:p(F=>[t("div",{class:me(["checkBoxSelf flex",r.multipleSelection.findIndex(M=>M.campaign_id==F.row.campaign_id)>=0?"active":""]),onClick:M=>{return Z=r.multipleSelection.findIndex(ke=>ke.campaign_id==F.row.campaign_id),he=F.row,void(Z==-1?r.multipleSelection.push(he):(r.multipleSelection.splice(Z,1),r.chooseAll=!1));var Z,he}},[r.multipleSelection.findIndex(M=>M.campaign_id==F.row.campaign_id)>=0?(e(),z(_e,{key:0,color:"#fff"},{default:p(()=>[o(G)]),_:1})):x("",!0)],10,di)]),_:1}),o(ae,{fixed:"",width:"60"},{header:p(()=>[ci]),default:p(F=>[F.row.configured_status=="AD_STATUS_NORMAL"?(e(),s("img",{key:0,src:ls,class:"switch_img pointer",onClick:M=>a(F.row,2)},null,8,pi)):x("",!0),F.row.configured_status=="AD_STATUS_SUSPEND"?(e(),s("img",{key:1,src:as,class:"switch_img pointer",onClick:M=>a(F.row,1)},null,8,_i)):x("",!0)]),_:1}),(e(!0),s(le,null,ce(r.descol,F=>(e(),z(ae,null,{header:p(()=>[t("div",{class:me(["flex",[r.sortKey==F.key_value?"active_css":""]]),style:{"justify-content":"center"}},[t("span",{style:Oe({color:r.sortKey==F.key_value?"#3173FF":""})},C(F.label),5),F.tooltip?(e(),z(ue,{key:0,effect:"dark",content:F.tooltip},{default:p(()=>[o(J,{class:"lMar5 c-999 f12 pointer"})]),_:2},1032,["content"])):x("",!0),F.if_sort==1?(e(),s("div",vi,[t("div",{class:"sortItem",onClick:M=>n(F.key_value,"asc")},[o(_e,{color:r.sortType=="asc"&&r.sortKey==F.key_value?"#3173FF":""},{default:p(()=>[o(se)]),_:2},1032,["color"])],8,mi),t("div",{class:"sortItem",onClick:M=>n(F.key_value,"desc")},[o(_e,{color:r.sortType=="desc"&&r.sortKey==F.key_value?"#3173FF":""},{default:p(()=>[o(Ie)]),_:2},1032,["color"])],8,fi)])):x("",!0)],2)]),default:p(()=>[(e(!0),s(le,null,ce(F.sub,M=>(e(),z(ae,{label:M.label,fixed:M.disabled==1,"min-width":F.key_value=="campaign_name"?"200px":F.label.length<=4?"100px":F.label.length<=8?"150px":"200px"},{header:p(()=>[t("div",null,[B(C(M.label||M.label==0?H(Ce)(M.label,2,!1):"-"),1),F.label.indexOf("\u7387")!=-1&&M.label?(e(),s("span",yi,"%")):x("",!0)])]),default:p(Z=>[t("div",{class:"flex",style:Oe([{"justify-content":"center"},{color:r.sortKey==M.key_value?"#3173FF":""}])},[M.key_value=="campaign_name"?(e(),s("div",gi,[t("span",hi,[t("span",{class:"pointer",onClick:he=>{return ke=Z.row.campaign_id,void A("goAdvert",ke);var ke}},C(Z.row[M.key_value]),9,ki),o(_e,{color:"#3173FF",class:"pointer lMarauto f16 icon",onClick:he=>{return ke=Z.row,void oe(()=>{X.value.switchShow(!0,ke)});var ke}},{default:p(()=>[o(Le)]),_:2},1032,["onClick"])])])):M.key_value=="configured_status"?(e(),s("div",bi,[Z.row[M.key_value]=="AD_STATUS_NORMAL"?(e(),s("span",xi,"\u6B63\u5E38")):Z.row[M.key_value]=="AD_STATUS_SUSPEND"?(e(),s("span",wi,"\u6682\u505C")):(e(),s("span",Vi,"-"))])):M.key_value=="speed_mode"?(e(),s("div",Si,[Z.row[M.key_value]=="SPEED_MODE_STANDARD"?(e(),s("span",Ei,"\u6807\u51C6\u6295")):Z.row[M.key_value]=="SPEED_MODE_FAST"?(e(),s("span",Ci,"\u52A0\u901F\u6295\u653E")):(e(),s("span",Ii,"-"))])):M.key_value=="operate"?(e(),s("div",Li,[t("div",Bi,[t("span",{class:"c-theme pointer",onClick:he=>u(Z.row)},"\u4FEE\u6539",8,Ri),o(ds,{key:"dele",onConfirm:he=>a(Z.row,3),slotFlag:!0},{con:p(()=>[Mi]),_:2},1032,["onConfirm"])])])):M.key_value=="daily_budget"?(e(),s("div",{key:4,class:"flex c-theme pointer",onClick:he=>u(Z.row)},C(Z.row[M.key_value]?H(d)(Z.row[M.key_value]):"\u4E0D\u9650"),9,Ti)):(e(),s("div",{key:5,class:me(["cellDiv",r.sortKey==M.key_value?"active_css":""])},[o(ue,{disabled:!(Z.row[M.key_value]&&Z.row[M.key_value].length>30),effect:"dark",content:Z.row[M.key_value]+""},{default:p(()=>[t("div",Di,[B(C(Z.row[M.key_value]||Z.row[M.key_value]==0?H(Ce)(Z.row[M.key_value],2,!1):"-"),1),F.label.indexOf("\u7387")==-1||!Z.row[M.key_value]&&Z.row[M.key_value]!=0?x("",!0):(e(),s("span",Ni,"%"))])]),_:2},1032,["disabled","content"])],2))],4)]),_:2},1032,["label","fixed","min-width"]))),256))]),_:2},1024))),256))]),_:1},8,["data","header-cell-style"])),Number(r.total)>0?(e(),s("div",Fi,[o(al,{currentPage:r.currentPage,"onUpdate:currentPage":R[3]||(R[3]=F=>r.currentPage=F),"page-size":r.pageSize,"onUpdate:page-size":R[4]||(R[4]=F=>r.pageSize=F),background:"",total:r.total,onCurrentChange:c},null,8,["currentPage","page-size","total"])])):x("",!0)],64))])),[[Be,w.value]]),o(Wt,{ref_key:"planEditIptRef",ref:X,title:"\u63A8\u5E7F\u8BA1\u5212",onConfirm:_},null,512),o(ei,{ref_key:"TargetEditRef",ref:re,title:"\u8BA1\u5212\u8BBE\u7F6E",onConfirm:_},null,512)])}}}),[["__scopeId","data-v-c1a0ce9c"]]),De=h=>(be("data-v-91f50d22"),h=h(),xe(),h),Oi={key:0,class:"dialogBox"},Pi={class:"batch-title"},Ui=B("\u5DF2\u9009 "),ji={class:"f-wei-600"},Ki=B(" \u4E2A\u53EF\u64CD\u4F5C\u5A92\u4F53\u8D26\u6237"),zi={class:"flex bMar15"},Gi=De(()=>t("span",{class:"form-block-item-title"},"\u4FEE\u6539\u89C4\u5219",-1)),Hi={class:"flex_start bMar15"},$i=De(()=>t("span",{class:"form-block-item-title"},"\u9884\u7B97",-1)),qi={class:"flex_start"},Wi={key:1,class:"error"},Ji=B("\u5E94 \u7528"),Yi={key:0,class:"error"},Qi={key:1,class:"dialogBox"},Xi={key:0,class:"flex bMar15"},Zi=De(()=>t("p",{class:"f13 c-555 lMar5"},"\u786E\u5B9A\u8981\u6267\u884C\u4EE5\u4E0B\u4FEE\u6539\u64CD\u4F5C\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01",-1)),eo={key:1,class:"flex bMar15"},lo={class:"f13 c-555 lMar5"},ao={class:"preview-modified"},to={class:"budget"},io={class:"modified-info"},oo={class:"status"},so={class:"text"},no={class:"modified-budget"},ro={key:0,class:"flex"},uo=De(()=>t("span",null,"\u4FEE\u6539\u6210\u529F",-1)),co={key:1,class:"flex"},po=ne({__name:"modifyDailyBudget",props:{title:{default:"\u63D0\u793A"}},emits:["confirm"],setup(h,{expose:U,emit:A}){const v=[{label:"\u7ACB\u5373\u751F\u6548",value:1},{label:"\u6B21\u65E50\u65F6\u751F\u6548",value:2}],d=[{label:"\u4FEE\u6539\u4E3A",value:1,unit:"\u5143"},{label:"\u63D0\u9AD8",value:2,unit:"\u5143"},{label:"\u964D\u4F4E",value:3,unit:"\u5143"},{label:"\u6309 % \u63D0\u9AD8",value:4,unit:"%"},{label:"\u6309 % \u964D\u4F4E",value:5,unit:"%"},{label:"\u4E0D\u9650",value:6,unit:""}],l=L({});S();const w=async()=>{if(l.schedule==1){let m=!1,V=!1;return l.multipleSelection.forEach(k=>{k.inputError&&k.inputError!=""&&(m=!0),k.modifyDailyBudget&&k.modifyDailyBudget!=""&&(V=!0)}),m?void W.error("\u5B58\u5728\u4E0D\u5408\u6CD5\u65E5\u9884\u7B97\uFF0C\u8BF7\u91CD\u65B0\u586B\u5199\u4E0D\u5408\u6CD5\u7684\u65E5\u9884\u7B97"):V?(l.schedule=2,void(l.cancleText="\u8FD4\u56DE\u7F16\u8F91")):void W.error(" \u8BF7\u4FEE\u6539\u81F3\u5C11\u4E00\u4E2A\u5E7F\u544A\u4E3B\u8D26\u6237\u7684\u65E5\u9884\u7B97\uFF01")}if(l.schedule==2){const m=Yo.service({lock:!0,text:"\u4FEE\u6539\u64CD\u4F5C\u8FDB\u884C\u4E2D...",background:"rgba(255, 255, 255, 0.7)"});let V=[];l.multipleSelection.forEach(q=>{q.modifyDailyBudget&&q.modifyDailyBudget!=""&&V.push({account_id:q.advertiser_id,daily_budget:q.modifyDailyBudget=="\u4E0D\u9650"?0:q.modifyDailyBudget})});let k={str_val:JSON.stringify(V)};l.modifyRuleValue==1&&(k.start_time=pl(0,!0).now),l.modifyRuleValue==2&&(k.start_time=pl(1,!1)+" 00:00:00");const K=await us.post("/api/ad/multiUpDailyBudget",k);return m.close(),void(K.errNo==0?l.modifyRuleValue==1&&K.rst.record_id?r(K.rst.record_id):gs.alert("\u89C4\u5219\u4FEE\u6539\u9884\u7EA6\u6210\u529F\uFF0C\u5C06\u5728\u6B21\u65E50\u65F6\u751F\u6548\uFF01","\u63D0\u793A",{confirmButtonText:"\u6211\u77E5\u9053\u4E86",callback:()=>{a.value=!1,A("confirm",!1)}}):W.error(K.errMsg))}},r=async m=>{const V=Yo.service({lock:!0,text:"\u7ED3\u679C\u83B7\u53D6\u4E2D...",background:"rgba(255, 255, 255, 0.7)"}),k=await us.get("/api/ad/multiUpDailyBudgetRes",{record_id:m});if(k.errNo==0)if(k.rst.status==0)setTimeout(()=>{r(m)},1e3);else{V.close(),l.schedule=3,l.cancleText="\u5173\u95ED",l.hasBtn=!0;let K=0;Array.isArray(k.rst.result)&&l.multipleSelection.forEach(q=>{k.rst.result.forEach(O=>{O.account_id==q.advertiser_id&&(q.state=O.state,q.err_msg=O.err_msg,O.state==1&&K++)})}),l.successLength=K}else W.error(k.errMsg)},i=()=>{l.schedule==1&&(a.value=!1),l.schedule==2&&(l.schedule=1,l.cancleText="\u53D6\u6D88"),l.schedule==3&&(a.value=!1,A("confirm",!0))},y=()=>{if(l.selectValue!=1&&l.selectValue!=6&&l.isNoLimit||l.mainInputError)W.error("\u9884\u7B97\u6279\u91CF\u89C4\u5219\u8BBE\u7F6E\u6709\u8BEF");else{if(l.selectValue!=6&&l.inputValue=="")return l.mainInputErrHint="\u8BF7\u8F93\u5165\u8D26\u6237\u65E5\u9884\u7B97\uFF0C\u4EC5\u652F\u6301\u6B63\u6574\u6570",l.mainInputError=!0,void W.error("\u9884\u7B97\u6279\u91CF\u89C4\u5219\u8BBE\u7F6E\u6709\u8BEF");l.selectValue==1&&l.multipleSelection.forEach(m=>{m.modifyDailyBudget=l.inputValue}),l.selectValue==2&&l.multipleSelection.forEach(m=>{m.modifyDailyBudget=parseFloat((Number(m.daily_budget)+Number(l.inputValue)).toFixed(2).toString())}),l.selectValue==3&&l.multipleSelection.forEach(m=>{m.modifyDailyBudget=parseFloat((Number(m.daily_budget)-Number(l.inputValue)).toFixed(2).toString())}),l.selectValue==4&&l.multipleSelection.forEach(m=>{m.modifyDailyBudget=parseFloat((Number(m.daily_budget)*(Number(l.inputValue)/100+1)).toFixed(2).toString())}),l.selectValue==5&&l.multipleSelection.forEach(m=>{m.modifyDailyBudget=parseFloat((Number(m.daily_budget)*(1-Number(l.inputValue)/100)).toFixed(2).toString())}),l.selectValue==6&&l.multipleSelection.forEach(m=>{m.modifyDailyBudget="\u4E0D\u9650"}),l.multipleSelection.forEach(m=>{if(m.inputError="",m.modifyDailyBudget=="\u4E0D\u9650")return;if(!_(m.modifyDailyBudget))return void(m.inputError="\u8BF7\u8F93\u5165\u8D26\u6237\u65E5\u9884\u7B97\uFF0C\u4EC5\u652F\u6301\u6B63\u6574\u6570");let V=c(50,4e7,m.modifyDailyBudget);V.flag||(m.inputError=V.err)})}},a=S(!1),f=()=>{l.inputValue="",l.mainInputError=!1,l.mainInputErrHint=""},u=(m,V)=>{if(m=="mainInput"){if(l.mainInputError=!1,l.selectValue==1||l.selectValue==2||l.selectValue==3){if(!_(l.inputValue))return l.mainInputError=!0,void(l.mainInputErrHint="\u8BF7\u8F93\u5165\u8D26\u6237\u65E5\u9884\u7B97\uFF0C\u4EC5\u652F\u6301\u6B63\u6574\u6570");let k=c(1,4e7,l.inputValue);if(!k.flag)return l.mainInputError=!0,void(l.mainInputErrHint=k.err)}else if(!n(l.inputValue))return l.mainInputError=!0,void(l.mainInputErrHint="\u8BF7\u8F93\u5165\u9884\u7B97\u8C03\u6574\u6BD4\u4F8B\uFF0C\u6700\u591A\u652F\u6301\u5C0F\u6570\u70B9\u540E\u4E24\u4F4D")}if(m=="tableInput"){let k=l.multipleSelection[V];if(k.inputError="",k.modifyDailyBudget=="")return;if(k.modifyDailyBudget!="\u4E0D\u9650"){if(!_(k.modifyDailyBudget))return void(k.inputError="\u8BF7\u8F93\u5165\u8D26\u6237\u65E5\u9884\u7B97\uFF0C\u4EC5\u652F\u6301\u6B63\u6574\u6570");let K=c(50,4e7,k.modifyDailyBudget);if(!K.flag)return void(k.inputError=K.err)}}},n=m=>/^[1-9]\d*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(m.toString()),_=m=>/^[1-9]\d*$/.test(m.toString()),c=(m,V,k)=>kV?{flag:!1,err:`\u65E5\u9884\u7B97\u8303\u56F4\u9650\u5236\uFF1A${m}-${V}`}:{flag:!0},g=({row:m,column:V,rowIndex:k,columnIndex:K})=>({backgroundColor:"#FAFAFA",color:"#161E46",height:"44px"});return U({switchShow:(m,V)=>{if(a.value=m,m){const k={hasBtn:!1,cancleText:"\u53D6\u6D88",schedule:1,successLength:0,multipleSelection:[],oldMultipleSelection:[],isNoLimit:!1,modifyRuleValue:1,inputValue:"",mainInputError:!1,mainInputErrHint:"",selectValue:1};for(let K in k)l[K]=Pe.cloneDeep(k[K]);l.oldMultipleSelection=V,l.multipleSelection=Pe.cloneDeep(V),l.multipleSelection.forEach(K=>{K.modifyDailyBudget="",K.daily_budget==0&&(l.isNoLimit=!0)})}}}),Ee(()=>{oe(()=>{})}),(m,V)=>{const k=hs,K=ks,q=bs,O=xs,N=Jo,Q=Fe,ie=$e,$=He,te=qe,pe=sl("WarningFilled"),X=Ge,re=sl("CircleCheckFilled"),ge=sl("CircleCloseFilled");return e(),z(ye,{dialogVisible:a.value,onConfirm:w,onClose:i,cancleText:l.cancleText,closeOnModal:!1,hasBtn:l.hasBtn,destroyOnCloseFlag:!0,width:"800px","dialog-title":"\u6279\u91CF\u4FEE\u6539\u65E5\u9884\u7B97"},{content:p(()=>[l.schedule==1?(e(),s("div",Oi,[t("div",Pi,[Ui,t("span",ji,C(l.multipleSelection.length),1),Ki]),t("div",zi,[Gi,o(K,{modelValue:l.modifyRuleValue,"onUpdate:modelValue":V[0]||(V[0]=E=>l.modifyRuleValue=E),size:"default"},{default:p(()=>[(e(),s(le,null,ce(v,E=>o(k,{label:E.value},{default:p(()=>[B(C(E.label),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])]),t("div",Hi,[$i,t("div",qi,[o(O,{modelValue:l.selectValue,"onUpdate:modelValue":V[1]||(V[1]=E=>l.selectValue=E),style:{width:"115px"},onChange:f},{default:p(()=>[(e(),s(le,null,ce(d,E=>o(q,{label:E.label,value:E.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),t("div",null,[l.selectValue!=6?(e(),z(N,{key:0,modelValue:l.inputValue,"onUpdate:modelValue":V[2]||(V[2]=E=>l.inputValue=E),class:me(l.mainInputError?"inputError":""),style:{width:"260px"},onInput:V[3]||(V[3]=E=>u("mainInput"))},{suffix:p(()=>{var E;return[t("span",null,C((E=d.filter(I=>I.value==l.selectValue)[0])==null?void 0:E.unit),1)]}),_:1},8,["modelValue","class"])):x("",!0),l.mainInputError?(e(),s("div",Wi,C(l.mainInputErrHint),1)):x("",!0)]),o(ie,{placement:"top",content:"\u9009\u4E2D\u5E7F\u544A\u4E3B\u8D26\u6237\u9884\u7B97\u5305\u542B\u4E0D\u9650\uFF0C\u4E0D\u53EF\u4EE5\u8BBE\u7F6E\u6B64\u5185\u5BB9",disabled:!(l.selectValue!=1&&l.selectValue!=6&&l.isNoLimit),effect:"light"},{default:p(()=>[t("span",null,[o(Q,{type:"primary",class:"lMar10",disabled:l.selectValue!=1&&l.selectValue!=6&&l.isNoLimit,onClick:y},{default:p(()=>[Ji]),_:1},8,["disabled"])])]),_:1},8,["disabled"])])]),o(te,{data:l.multipleSelection,"header-cell-style":g,border:"",style:{width:"100%"}},{default:p(()=>[o($,{prop:"advertiser_id",label:"\u5E7F\u544A\u4E3B\u8D26\u6237",width:"180"}),o($,{label:"\u65E5\u9884\u7B97",width:"180",align:"right"},{default:p(E=>[B(C(E.row.daily_budget||"\u4E0D\u9650"),1)]),_:1}),o($,{label:"\u5206\u522B\u4FEE\u6539\u65E5\u9884\u7B97"},{default:p(E=>[o(N,{modelValue:E.row.modifyDailyBudget,"onUpdate:modelValue":I=>E.row.modifyDailyBudget=I,class:me(E.row.inputError!=""&&E.row.inputError?"inputError":""),placeholder:"\u8BF7\u8F93\u5165\u65E5\u9884\u7B97",style:{width:"260px"},onInput:I=>u("tableInput",E.$index)},null,8,["modelValue","onUpdate:modelValue","class","onInput"]),E.row.inputError?(e(),s("div",Yi,C(E.row.inputError),1)):x("",!0)]),_:1})]),_:1},8,["data"])])):x("",!0),l.schedule==2||l.schedule==3?(e(),s("div",Qi,[l.schedule==2?(e(),s("div",Xi,[o(X,{color:"#ff9b48"},{default:p(()=>[o(pe)]),_:1}),Zi])):x("",!0),l.schedule==3?(e(),s("div",eo,[o(X,{color:"#00b697"},{default:p(()=>[o(re)]),_:1}),t("p",lo,"\u4FEE\u6539\u5B8C\u6210\uFF0C\u5171"+C(l.successLength)+"\u9879\u4FEE\u6539\u6210\u529F",1)])):x("",!0),o(te,{data:l.multipleSelection,"header-cell-style":g,border:"",style:{width:"100%"}},{default:p(()=>[o($,{prop:"advertiser_id",label:"\u5E7F\u544A\u4E3B\u8D26\u6237"}),o($,{label:"\u65E5\u9884\u7B97"},{default:p(E=>[t("div",ao,[t("div",to,C(E.row.daily_budget||"\u4E0D\u9650"),1),t("div",io,[t("div",oo,[t("div",so,C(E.row.modifyDailyBudget&&E.row.modifyDailyBudget!=""?"\u4FEE\u6539\u4E3A":"(\u672A\u4FEE\u6539)"),1)]),t("div",no,C(E.row.modifyDailyBudget),1)])])]),_:1}),l.schedule==3?(e(),z($,{key:0,label:"\u4FEE\u6539\u7ED3\u679C",width:"180px"},{default:p(E=>[E.row.state==1?(e(),s("div",ro,[o(X,{color:"#00b697",class:"rMar5"},{default:p(()=>[o(re)]),_:1}),uo])):x("",!0),E.row.state==2?(e(),s("div",co,[o(X,{color:"#fb1919",class:"rMar5"},{default:p(()=>[o(ge)]),_:1}),t("span",null,"\u5931\u8D25\uFF1A"+C(E.row.err_msg),1)])):x("",!0)]),_:1})):x("",!0)]),_:1},8,["data"])])):x("",!0)]),_:1},8,["dialogVisible","cancleText","hasBtn"])}}}),_o=ve(po,[["__scopeId","data-v-91f50d22"]]),vo=h=>(be("data-v-cbc5c864"),h=h(),xe(),h),mo={class:"screenBox_mini"},fo=B("\u65B0\u5EFA\u8BA1\u5212"),yo={class:"bMar10 flex"},go=B("+ \u6DFB\u52A0\u8D26\u6237"),ho={key:0},ko=B("\u5DF2\u9009 : "),bo=B("\u4E2A\u5A92\u4F53\u8D26\u6237 "),xo=B("\u6E05\u7A7A\u9009\u4E2D"),wo={class:"lMarauto"},Vo={key:1,class:"sortBox lMar5 pointer"},So=["onClick"],Eo=["onClick"],Co={key:0},Io=["onClick"],Lo={key:1,class:"flex"},Bo=vo(()=>t("div",{class:"dot"},null,-1)),Ro={key:2,class:"flex"},Mo={class:"clampTwo line21",style:{flex:"1"}},To={key:0},Do={key:0,class:"paginationBox flex",style:{"justify-content":"center"}},No=ne({__name:"account",emits:["goPlan","goNewPlan"],setup(h,{emit:U}){const A=nl(),{proxy:v}=we(),d=()=>{U("goNewPlan")},l=S(),w=S(),r=S(!1),i=L({tableList:[],tableList_all:[],descol:[],summary:[],multipleSelection:[],updateKey:1,chooseAll:!1,sortKey:"",moreList:[{value:"1",label:"\u4FEE\u6539\u65E5\u9884\u7B97"}],currentPage:1,pageSize:20,total:0,totalPages:0,sortType:"desc"}),y=S(),a=O=>{var N;O==1&&((N=y.value)==null||N.switchShow(!0,i.multipleSelection))},f=O=>{i.multipleSelection=[],O&&_(1)},u=(O,N)=>{i.sortType=N,i.sortKey=O,_(1)},n=O=>{i.currentPage=O,_(O)},_=async(O,N)=>{var te,pe,X,re,ge,E,I,R;r.value=!0;let Q={keyword:K.value.value,st_date:k.value.dateVal&&k.value.dateVal[0],en_date:k.value.dateVal&&k.value.dateVal[1],page:O||i.currentPage,page_size:i.pageSize};i.sortKey&&(Q.field=i.sortKey,Q.order=i.sortType);const ie=L(Q);let $=await v.$http.get(Ve.batchGdt_accountList_list,ie);r.value=!1,$&&($.errNo=="0"?(i.summary=(pe=(te=$.rst)==null?void 0:te.data)==null?void 0:pe.summary,i.descol=(re=(X=$.rst)==null?void 0:X.data)==null?void 0:re.explain,i.tableList=(E=(ge=$.rst)==null?void 0:ge.data)==null?void 0:E.list,i.total=(I=$.rst)==null?void 0:I.pageInfo.total,i.totalPages=(R=$.rst)==null?void 0:R.pageInfo.total):W.error($.errMsg))},c=()=>{A.push({path:"/adqManage"})},g=O=>{i.multipleSelection=O},m=O=>{const{columns:N,data:Q}=O,ie=[];return N.forEach(($,te)=>{var pe;if(te!==0)if(te!==1)if(i.summary[$.property]&&i.summary[$.property]!=0){let X=i.descol.filter(re=>re.key_value==$.property);X.length>0&&((pe=X[0].label)==null?void 0:pe.indexOf("\u7387"))!=-1?ie[te]=Ce(i.summary[$.property],2,!1)+"%":ie[te]=Ce(i.summary[$.property],2,!1)}else ie[te]="";else ie[te]="\u5408\u8BA1";else ie[te]=""}),ie},V=()=>{var O;i.multipleSelection.value=[],(O=w.value)==null||O.clearSelection()},{timeRef:k,InputRef_text:K,tableHeaderStyle:q}=ml();return Ee(()=>{l.value=JSON.parse(_l("userInfo")),oe(async()=>{await _(1)})}),(O,N)=>{var R;const Q=Fe,ie=He,$=dl,te=$e,pe=rl,X=Ge,re=ul,ge=qe,E=tl,I=de;return e(),s("div",null,[t("div",mo,[o(Me,{ref_key:"InputRef_text",ref:K,title:"\u5173\u952E\u8BCD",placeholderTxt:"\u5173\u952E\u8BCD",onChangeEvent:N[0]||(N[0]=()=>_(1)),onClearEvent:N[1]||(N[1]=()=>_(1))},null,512),o(cl,{title:"\u65F6\u95F4",selectWidth:"260px",haveQuick:!1,timeIdx:1,ref_key:"timeRef",ref:k,onInit:N[2]||(N[2]=()=>_(1))},null,512),((R=l.value)==null?void 0:R.userAuth)>10?(e(),z(Q,{key:0,class:"lMarauto",type:"primary",onClick:d},{default:p(()=>[fo]),_:1})):x("",!0)]),t("div",null,[t("div",yo,[o(Q,{plain:"",onClick:c},{default:p(()=>[go]),_:1}),o(vl,{title:"\u6279\u91CF\u64CD\u4F5C",list:i.moreList,onClose:a,class:"rMar10",disabledFlag:i.multipleSelection&&i.multipleSelection.length==0},null,8,["list","disabledFlag"]),i.multipleSelection&&i.multipleSelection.length>0?(e(),s("div",ho,[ko,t("span",null,C(i.multipleSelection&&i.multipleSelection.length),1),bo,o(Q,{class:"lMarauto",onClick:V},{default:p(()=>[xo]),_:1})])):x("",!0),t("span",{class:"pointer c-theme lMar38",onClick:N[3]||(N[3]=b=>_(1))},"\u5237\u65B0"),t("div",wo,[o(fl,{type:"media_base",onRefresh:N[4]||(N[4]=b=>_(1))})])]),Y((e(),z(ge,{ref_key:"tableAccountRef",ref:w,data:i.tableList,"header-cell-style":H(q),key:i.updateKey,style:{width:"100%"},border:"","empty-text":"\u6682\u65E0\u6570\u636E","summary-method":m,onSelectionChange:g,"show-summary":"","row-key":"advertiser_id","max-height":"calc(100vh - 280px)"},{default:p(()=>[o(ie,{type:"selection","reserve-selection":"",width:"55",align:"center",fixed:"left"}),(e(!0),s(le,null,ce(i.descol,b=>(e(),z(ie,{fixed:b.disabled==1,prop:b.key_value,"min-width":b.key_value!="advertiser_status"&&b.key_value!="advertiser_nick"&&b.label.length<=4?"120px":b.label.length<=8?"150px":"200px"},{header:p(()=>[t("div",{class:me(["flex",[i.sortKey==b.key_value?"active_css":""]])},[t("span",{style:Oe({color:i.sortKey==b.key_value?"#3173FF":""})},C(b.label),5),b.tooltip&&b.tooltip!=b.label?(e(),z(te,{key:0,placement:"top",effect:"dark",content:b.tooltip},{default:p(()=>[o($,{class:"lMar5 c-999 f14 pointer"})]),_:2},1032,["content"])):x("",!0),b.if_sort==1?(e(),s("div",Vo,[t("div",{class:"sortItem",onClick:P=>u(b.key_value,"asc")},[o(X,{color:i.sortType=="asc"&&i.sortKey==b.key_value?"#3173FF":""},{default:p(()=>[o(pe)]),_:2},1032,["color"])],8,So),t("div",{class:"sortItem",onClick:P=>u(b.key_value,"desc")},[o(X,{color:i.sortType=="desc"&&i.sortKey==b.key_value?"#3173FF":""},{default:p(()=>[o(re)]),_:2},1032,["color"])],8,Eo)])):x("",!0)],2)]),default:p(P=>[b.key_value=="advertiser_id"?(e(),s("div",Co,[t("span",{style:{color:"#3173FF"},class:"pointer",onClick:fe=>{return _e=P.row[b.key_value],void U("goPlan",[_e]);var _e}},C(P.row[b.key_value]),9,Io)])):b.key_value=="advertiser_status"?(e(),s("div",Lo,[Bo,t("span",null,C(P.row[b.key_value]),1)])):b.key_value=="daily_budget"?(e(),s("div",Ro,[t("span",null,C(P.row[b.key_value]||"\u4E0D\u9650"),1)])):(e(),s("div",{key:3,class:me(["cellDiv",i.sortKey==b.key_value?"active_css":""])},[o(te,{disabled:!(P.row[b.key_value]&&P.row[b.key_value].length>30),effect:"dark",content:P.row[b.key_value]+""},{default:p(()=>[t("div",Mo,[B(C(P.row[b.key_value]||P.row[b.key_value]==0?H(Ce)(P.row[b.key_value],2,!1):"-"),1),b.label.indexOf("\u7387")==-1||!P.row[b.key_value]&&P.row[b.key_value]!=0?x("",!0):(e(),s("span",To,"%"))])]),_:2},1032,["disabled","content"])],2))]),_:2},1032,["fixed","prop","min-width"]))),256))]),_:1},8,["data","header-cell-style"])),[[I,r.value]]),Number(i.total)>0?(e(),s("div",Do,[o(E,{currentPage:i.currentPage,"onUpdate:currentPage":N[5]||(N[5]=b=>i.currentPage=b),"page-size":i.pageSize,"onUpdate:page-size":N[6]||(N[6]=b=>i.pageSize=b),background:"",total:i.total,onCurrentChange:n},null,8,["currentPage","page-size","total"])])):x("",!0)]),o(_o,{ref_key:"ModifyDailyBudgetRef",ref:y,onConfirm:f},null,512)])}}}),Fo=ve(No,[["__scopeId","data-v-cbc5c864"]]),Ao={class:"typeBorlineBox",style:{"justify-content":"space-between"}},Oo={class:"flex"},Po=["onClick"],Uo=(h=>(be("data-v-952ee216"),h=h(),xe(),h))(()=>t("div",{class:"borLine"},null,-1)),jo=B("\u4F7F\u7528\u6587\u6863"),cs=ve(ne({__name:"index",setup(h){const U=nl(),A=Vs(),{proxy:v}=we();v.$NumberHandle;const d=L([{name:"\u5A92\u4F53\u8D26\u6237",key:"account"},{name:"\u63A8\u5E7F\u8BA1\u5212",key:"plan"},{name:"\u5E7F\u544A",key:"advert"}]),{typeAc:l,typeList:w}=Xo(d);ws(()=>{var c;d.filter(g=>{var m;return g.key==((m=A.query)==null?void 0:m.type)}).length>0&&(l.value=(c=A.query)==null?void 0:c.type)});const r=c=>{l.value=c.key,c.key=="advert"&&(i.campaign_id=0,oe(()=>{y.value.initAll()}))},i=L({campaign_id:0}),y=S(),a=c=>{let g=w.list.filter(m=>m.key=="advert");r(g[0]),i.campaign_id=c,oe(()=>{y.value.initAll()})},f=S(),u=c=>{let g=w.list.filter(m=>m.key=="plan");r(g[0]),oe(()=>{f.value.initAll(c)})},n=()=>{let c=U.resolve({path:"/gdtList/batchGdt"});window.open(c.href,"_blank")},_=()=>{let c=U.resolve({path:"/document"});window.open(c.href,"_blank")};return Ee(()=>{oe(()=>{})}),(c,g)=>{const m=Fe;return e(),s(le,null,[t("div",Ao,[t("div",Oo,[(e(!0),s(le,null,ce(H(w).list,V=>(e(),s("div",{class:me(["item",V.key==H(l)?"itemAc":""]),key:V.key,onClick:k=>r(V)},[t("div",null,C(V.name),1),Uo],10,Po))),128))]),o(m,{plain:"",icon:H(Ds),class:"rMar10",onClick:_},{default:p(()=>[jo]),_:1},8,["icon"])]),(e(),z(Qo,null,[t("div",null,[Y(o(Fo,{onGoPlan:u,onGoNewPlan:n},null,512),[[Ae,H(l)=="account"]]),Y(o(Ai,{ref_key:"planRef",ref:f,onGoAdvert:a,onGoNewPlan:n},null,512),[[Ae,H(l)=="plan"]]),Y(o($t,{ref_key:"advertRef",ref:y,onGoNewPlan:n,campaign_id:i.campaign_id},null,8,["campaign_id"]),[[Ae,H(l)=="advert"]])])],1024))],64)}}}),[["__scopeId","data-v-952ee216"]])});export{Ns as __tla,cs as default};