index-0cffbb9b.js 9.6 KB

1
  1. /* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-9013d5d4.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{_ as a}from"./search.vue_vue_type_script_setup_true_lang-97db6adf.js";import{_ as l}from"./index-4963a9ff.js";import{e as t}from"./exportExcel-331c8441.js";import{h as r}from"./moment-19b77ecd.js";import{d as o,z as s,o as i,l as d,w as n,A as p,b as _,q as u,ac as m,a7 as c,X as f,W as v,aE as b,n as h,ao as w,c as g,a as x,f as y,F as V,p as j,e as Y,Z as D,t as k,au as I,a9 as M,aq as C,a5 as T,a6 as U,B as q,D as S,av as z,aa as A,K as H,ak as B,ab as E,y as F,a0 as G,a2 as L,S as O,U as P,_ as W}from"./index-1e3c1303.js";/* empty css *//* empty css *//* empty css */import{s as X}from"./shortcuts-45ce8eab.js";import{u as Z}from"./useGetList-9f3af718.js";import{d as $,e as K}from"./index-070d4a06.js";import"./http-a0194994.js";const N=o({__name:"index",props:{api:{type:String,require:!0},extro_params:{type:Object},title_obj:{type:Object,require:!0},sheet_name:{type:String,require:!0},api_type:{type:String,default:"get"},is_show_icon:{type:Boolean,default:!0},button_type:{type:String,default:"primary"}},setup(e){const a=e,o=()=>{const e=u([]);m[a.api_type](a.api,a.extro_params).then((l=>{const o=l.data;1e4===o.code&&(e.value=o.data,e.value.length>0?t(e.value,`${a.sheet_name}${r().format("YYYY-MM-DD HH:mm:ss")}`,a.title_obj,a.sheet_name):c.warning("暂无数据"))}))};return s((()=>{})),(a,t)=>{const r=l,s=f;return i(),d(s,{type:e.button_type,onClick:o,size:"default"},{default:n((()=>[e.is_show_icon?(i(),d(r,{key:0,name:"document-arrow-up",className:"w-4 h-4 mr-1 -ml-1"})):p("",!0),_(" 导出 ")])),_:1},8,["type"])}}}),Q={"所属账户ID":"advertiser_id","所属账户":"advertiser_name","订单号":"order_no","用户ID":"uid","注册IP":"user_ranse_ip","注册时间":"user_ranse_start_at","充值时间":"order_created_at","充值金额":"order_price","是否回传":"filter_type_str","备注":"filter_reason","回传百分比":"current_rate","回传配置百分比":"config_rate","广告计划ID":"adv_promotion_id"},R=e=>(O("data-v-14a759f3"),e=e(),P(),e),J={class:"table-default"},ee={class:"wrapper"},ae={class:"text-lg font-bold content"},le={class:"flex items-center"},te=R((()=>Y("span",null,"回传百分比",-1))),re=R((()=>Y("br",null,null,-1))),oe=R((()=>Y("br",null,null,-1))),se={class:"text-lg font-bold content"},ie={class:"text-lg font-bold content"},de=W(o({__name:"index",setup(l){const t=r().format("YYYY-MM-DD"),o=r().format("YYYY-MM-DD");v(),b();const{data:p,query:m,search:O,reset:P,loading:W}=Z("callback/juliangAccount/log/list"),R=u(!1),de=u({}),ne=u(!1),pe=u({}),_e=u({}),ue=u([]),me=e=>{if(m.value.userTime,m.value.userTime){const a=C(e);m.value.user_ranse_start_at_begin_time=a[0],m.value.user_ranse_start_at_end_time=a[1]}else delete m.value.user_ranse_start_at_begin_time,delete m.value.user_ranse_start_at_end_time},ce=e=>{if(m.value.orderTime){const a=C(e);m.value.order_created_at_begin_time=a[0],m.value.order_created_at_end_time=a[1]}else delete m.value.order_created_at_begin_time,delete m.value.order_created_at_end_time},fe=()=>{$({log_id:de.value.id}).then((e=>{"补传失败"==e.data?c.error(e.data):"补传成功"==e.data&&c.success(e.data)}))},ve=e=>{e?be({account_name:e}):be()},be=e=>{K({limit:30,...e}).then((e=>{ue.value=e.data}))},he=()=>{P()},we=(e,a)=>{switch(_e.value=a,e){case"repairVisible":R.value=!0,de.value=a;break;case"backConfigVisible":ne.value=!0,pe.value=a}},ge=h((()=>{var e;return null==(e=p.value)?void 0:e.data}));return s((()=>{m.value.userTime=[t,o],m.value.orderTime=[t,o],m.value.user_ranse_start_at_begin_time=t,m.value.user_ranse_start_at_end_time=o,m.value.order_created_at_begin_time=t,m.value.order_created_at_end_time=o,be(),O()})),(l,t)=>{const r=T,o=U,s=q,p=S,u=z,c=N,v=a,b=A,h=H,C=B,P=f,Z=E,$=e,K=F,_e=G,be=w("action"),xe=L;return i(),g("div",null,[x(v,{search:y(O),reset:he},{body:n((()=>[x(o,{label:"所属账户ID",prop:"advertiser_id"},{default:n((()=>[x(r,{modelValue:y(m).advertiser_id,"onUpdate:modelValue":t[0]||(t[0]=e=>y(m).advertiser_id=e),placeholder:"请输入所属账户ID",clearable:""},null,8,["modelValue"])])),_:1}),x(o,{label:"所属账户",prop:"advertiser_id"},{default:n((()=>[x(p,{modelValue:y(m).advertiser_id,"onUpdate:modelValue":t[1]||(t[1]=e=>y(m).advertiser_id=e),filterable:"",remote:"",clearable:"","remote-method":ve,placeholder:"选择所属账户"},{default:n((()=>[(i(!0),g(V,null,j(y(ue),(e=>(i(),d(s,{key:e.id,label:e.adv_account_name,value:e.adv_account_id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),x(o,{label:"用户ID",prop:"uid"},{default:n((()=>[x(r,{modelValue:y(m).uid,"onUpdate:modelValue":t[2]||(t[2]=e=>y(m).uid=e),placeholder:"请输入用户ID",clearable:""},null,8,["modelValue"])])),_:1}),x(o,{label:"广告计划ID",prop:"adv_promotion_id"},{default:n((()=>[x(r,{modelValue:y(m).adv_promotion_id,"onUpdate:modelValue":t[3]||(t[3]=e=>y(m).adv_promotion_id=e),placeholder:"请输入广告计划ID",clearable:""},null,8,["modelValue"])])),_:1}),x(o,{label:"注册时间"},{default:n((()=>[x(u,{"unlink-panels":"",clearable:"",onChange:me,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:y(m).userTime,"onUpdate:modelValue":t[4]||(t[4]=e=>y(m).userTime=e),type:"daterange",shortcuts:y(X),"range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue","shortcuts"])])),_:1}),x(o,{label:"充值时间"},{default:n((()=>[x(u,{"unlink-panels":"",clearable:"",onChange:ce,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:y(m).orderTime,"onUpdate:modelValue":t[5]||(t[5]=e=>y(m).orderTime=e),type:"daterange",shortcuts:y(X),"range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue","shortcuts"])])),_:1})])),extra_button:n((()=>[x(c,{api:"callback/juliangAccount/log/list",sheet_name:"(巨量账户级)回传日志",title_obj:y(Q),extro_params:{is_export:!0,...y(m)}},null,8,["title_obj","extro_params"])])),_:1},8,["search"]),Y("div",J,[D((i(),d(Z,{data:y(ge),class:"mt-3"},{default:n((()=>[x(b,{prop:"advertiser_id",label:"所属账户ID",fixed:"left","min-width":"200px"}),x(b,{label:"所属账户",prop:"advertiser_name","show-overflow-tooltip":"",fixed:"left","min-width":"200px"}),x(b,{prop:"order_no","show-overflow-tooltip":"",label:"订单号","min-width":"200px"}),x(b,{prop:"uid",label:"用户ID","show-overflow-tooltip":""}),x(b,{prop:"user_ranse_ip",label:"注册IP","show-overflow-tooltip":"","min-width":"200px"}),x(b,{prop:"user_ranse_start_at",label:"注册时间","show-overflow-tooltip":"","min-width":"200px"}),x(b,{prop:"order_created_at",label:"充值时间","show-overflow-tooltip":"","min-width":"200px"}),x(b,{prop:"order_price",label:"充值金额","show-overflow-tooltip":"","min-width":"150px"}),x(b,{prop:"filter_type_str",label:"是否回传","show-overflow-tooltip":""},{default:n((e=>[Y("div",ee,[Y("span",ae,k(e.row.filter_type_str),1)])])),_:1}),x(b,{prop:"filter_reason",label:"备注","show-overflow-tooltip":"","min-width":"200px"}),x(b,{prop:"current_rate",label:"回传百分比","show-overflow-tooltip":"","min-width":"150px"},{header:n((()=>[Y("div",le,[te,x(C,{placement:"top"},{content:n((()=>[_(" 回传百分比=已成功回传的订单数(不包括补传)/(比例过滤掉的订单数+成功回传的订单数(不包括补传))*100%")])),default:n((()=>[x(h,null,{default:n((()=>[x(y(I))])),_:1})])),_:1})])])),_:1}),x(b,{prop:"config_rate",label:"回传配置百分比","show-overflow-tooltip":"","min-width":"150px"}),x(b,{prop:"adv_promotion_id",label:"广告计划ID","show-overflow-tooltip":"","min-width":"150px"}),x(b,{label:"操作",fixed:"right"},{default:n((e=>[D((i(),d(P,{onClick:a=>we("repairVisible",e.row),link:"",type:"primary",size:"small"},{default:n((()=>[_("补传")])),_:2},1032,["onClick"])),[[be,"callback.CallbackLog.callbackAgain"]]),re,x(P,{link:"",type:"primary",size:"small",onClick:a=>we("backConfigVisible",e.row)},{default:n((()=>[_("回传信息")])),_:2},1032,["onClick"]),oe])),_:1})])),_:1},8,["data"])),[[xe,y(W)]]),x($)]),x(K,{modelValue:y(R),"onUpdate:modelValue":t[7]||(t[7]=e=>M(R)?R.value=e:null),"destroy-on-close":"",title:"补传",draggable:"",width:"30%"},{footer:n((()=>[x(P,{onClick:t[6]||(t[6]=e=>R.value=!1)},{default:n((()=>[_("取消")])),_:1}),x(P,{type:"primary",onClick:fe},{default:n((()=>[_(" 确定 ")])),_:1})])),default:n((()=>[Y("div",null,[_("金额: "),Y("span",se,k(y(de).order_price),1)]),Y("div",null,[_("订单号:"),Y("span",ie,k(y(de).order_no),1)])])),_:1},8,["modelValue"]),x(K,{modelValue:y(ne),"onUpdate:modelValue":t[10]||(t[10]=e=>M(ne)?ne.value=e:null),"destroy-on-close":"",draggable:"",title:"回传信息",width:"30%"},{default:n((()=>[x(_e,{ref:"form",model:y(pe),"label-width":"80px"},{default:n((()=>[x(o,{label:"请求信息"},{default:n((()=>[x(r,{type:"textarea",modelValue:y(pe).report_param,"onUpdate:modelValue":t[8]||(t[8]=e=>y(pe).report_param=e),rows:6,disabled:""},null,8,["modelValue"])])),_:1}),x(o,{label:"请求结果"},{default:n((()=>[x(r,{type:"textarea",modelValue:y(pe).report_result,"onUpdate:modelValue":t[9]||(t[9]=e=>y(pe).report_result=e),rows:6,disabled:""},null,8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-14a759f3"]]);export{de as default};