/* empty css             *//* empty css                   */import{_ as e}from"./index-ec277c8c.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-e601cfd0.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                     *//* empty css                  */import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-6b1c85b1.js";import{_ as t}from"./search.vue_vue_type_script_setup_true_lang-8a36466d.js";/* empty css                     *//* empty css                 */import{d as p,n as s,z as o,ao as r,o as i,c as n,a as c,w as m,f as u,e as _,Z as d,l as j,b,a9 as y,a7 as f,at as g,v,a5 as h,a6 as k,aa as w,X as x,ab as C,a2 as V}from"./index-545c1a76.js";import{_ as M}from"./create.vue_vue_type_script_setup_true_lang-a2383316.js";import{u as z}from"./useGetList-33a80877.js";import{u as L}from"./useDestroy-f8db9248.js";import{u as S}from"./useOpen-ae3f1df9.js";import{c as U}from"./index-5037de6e.js";/* empty css                   */import"./http-795fd5dc.js";/* empty css                   *//* empty css                  */import"./index-b347df0b.js";/* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-90917888.js";import"./useCreate-4cdcc37e.js";import"./useShow-897a1bd7.js";const q={class:"table-default"},G=_("br",null,null,-1),O=_("br",null,null,-1),P=_("br",null,null,-1),T=p({__name:"index",setup(p){const T="cpManage/cp/manage/cp_list",{data:A,query:D,search:F,reset:H,loading:I}=z(T),{deleted:N}=L(),Q=s((()=>{var e;return null==(e=A.value)?void 0:e.data})),{open:X,close:Z,title:B,visible:E,id:J}=S();return o((()=>{F(),N(F)})),(p,s)=>{const o=h,z=k,L=t,S=l,A=w,N=x,K=C,R=a,W=e,Y=r("action"),$=V;return i(),n("div",null,[c(L,{search:u(F),reset:u(H)},{body:m((()=>[c(z,{label:"cp名称",prop:"cp_name"},{default:m((()=>[c(o,{modelValue:u(D).cp_name,"onUpdate:modelValue":s[0]||(s[0]=e=>u(D).cp_name=e),name:"cp_name",clearable:""},null,8,["modelValue"])])),_:1}),c(z,{label:"所属公司",prop:"cp_company"},{default:m((()=>[c(o,{modelValue:u(D).cp_company,"onUpdate:modelValue":s[1]||(s[1]=e=>u(D).cp_company=e),name:"cp_company",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),_("div",q,[d(c(S,{show:u(X)},null,8,["show"]),[[Y,"cpManage.cpList.store"]]),d((i(),j(K,{data:u(Q),class:"mt-3"},{default:m((()=>[c(A,{type:"index",width:"100",label:"序号"}),c(A,{prop:"cp_id",label:"cp_id"}),c(A,{prop:"cp_name",label:"cp名称"}),c(A,{prop:"cp_nick",label:"cp简称"}),c(A,{prop:"cp_company",label:"所属公司"}),c(A,{prop:"book_count",label:"采集数量"}),c(A,{prop:"share_per",label:"结算比例"}),c(A,{prop:"created_at",label:"创建时间"}),c(A,{label:"操作",width:"200"},{default:m((e=>[d((i(),j(N,{onClick:a=>(e=>{const a={cp_id:e.cp_id,cp_name:e.cp_name};U(a).then((e=>{f.success(e.message);const a=setTimeout((()=>{g({title:"提示",message:"同步cp书籍任务已经建立，因书籍数量不同，执行时间有几分钟到几十分钟的延迟进入书籍列表！",type:"warning"}),clearTimeout(a)}),500)}))})(e.row),type:"primary",link:"",size:"small"},{default:m((()=>[b("同步CP书籍")])),_:2},1032,["onClick"])),[[Y,"cpManage.cpList.cpCollection"]]),G,d((i(),j(N,{onClick:a=>u(X)(e.row.cp_id),type:"primary",link:"",size:"small"},{default:m((()=>[b("编辑")])),_:2},1032,["onClick"])),[[Y,"cpManage.cpList.update"]]),O,d((i(),j(N,{onClick:a=>((e=0,a="")=>{v.push({path:"/cpManage/cpSettle",params:{cp_id:e,cp_name:a}})})(e.row.cp_id,e.row.cp_name),type:"primary",link:"",size:"small"},{default:m((()=>[b("结算列表")])),_:2},1032,["onClick"])),[[Y,"cpManage.cpSettle.index"]]),P])),_:1})])),_:1},8,["data"])),[[$,u(I)]]),c(R)]),c(W,{modelValue:u(E),"onUpdate:modelValue":s[3]||(s[3]=e=>y(E)?E.value=e:null),title:u(B),"destroy-on-close":""},{default:m((()=>[c(M,{onClose:s[2]||(s[2]=e=>u(Z)(u(F))),primary:u(J),api:T},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{T as default};
