/* empty css             *//* empty css                   */import{_ as e}from"./index-e025ca33.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-e74be938.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                  *//* empty css                     *//* empty css                  */import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-ffb863d5.js";import{_ as p}from"./search.vue_vue_type_script_setup_true_lang-8edf6ccf.js";/* empty css                     *//* empty css                 */import{d as t,p as s,x as o,ao as r,o as i,c,a as n,w as m,f as u,e as _,Z as d,l as j,b,a9 as y,a7 as f,aA as g,q as v,a5 as h,a6 as k,aa as w,W as x,ab as C,a2 as V}from"./index-41bf27b7.js";import{_ as M}from"./create.vue_vue_type_script_setup_true_lang-63f84d5c.js";import{u as L}from"./useGetList-d550ec92.js";import{u as S}from"./useDestroy-eecfd4a1.js";import{u as U}from"./useOpen-8f14d39d.js";import{c as z}from"./index-3e17a66a.js";/* empty css                   */import"./http-e55ef919.js";/* empty css                   *//* empty css                  */import"./index-2a89b0c2.js";/* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-ddaf2b26.js";import"./useCreate-9054a19b.js";import"./useShow-b44df7c8.js";const T={class:"table-default"},q=_("br",null,null,-1),W=_("br",null,null,-1),A=_("br",null,null,-1),D=t({__name:"index",setup(t){const D="cpManage/cp/manage/cp_list",{data:G,query:K,search:O,reset:P,loading:Q}=L(D),{deleted:R}=S(),X=s((()=>{var e;return null==(e=G.value)?void 0:e.data})),{open:Y,close:Z,title:$,visible:B,id:E}=U();return o((()=>{O(),R(O)})),(t,s)=>{const o=h,L=k,S=p,U=l,G=w,R=x,F=C,H=a,I=e,J=r("action"),N=V;return i(),c("div",null,[n(S,{search:u(O),reset:u(P)},{body:m((()=>[n(L,{label:"cp名称",prop:"cp_name"},{default:m((()=>[n(o,{modelValue:u(K).cp_name,"onUpdate:modelValue":s[0]||(s[0]=e=>u(K).cp_name=e),name:"cp_name",clearable:""},null,8,["modelValue"])])),_:1}),n(L,{label:"所属公司",prop:"cp_company"},{default:m((()=>[n(o,{modelValue:u(K).cp_company,"onUpdate:modelValue":s[1]||(s[1]=e=>u(K).cp_company=e),name:"cp_company",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),_("div",T,[d(n(U,{show:u(Y)},null,8,["show"]),[[J,"cpManage.cpList.store"]]),d((i(),j(F,{data:u(X),class:"mt-3"},{default:m((()=>[n(G,{type:"index",width:"100",label:"序号"}),n(G,{prop:"cp_id",label:"cp_id"}),n(G,{prop:"cp_name",label:"cp名称"}),n(G,{prop:"cp_nick",label:"cp简称"}),n(G,{prop:"cp_company",label:"所属公司"}),n(G,{prop:"book_count",label:"采集数量"}),n(G,{prop:"share_per",label:"结算比例"}),n(G,{prop:"created_at",label:"创建时间"}),n(G,{label:"操作",width:"200"},{default:m((e=>[d((i(),j(R,{onClick:a=>(e=>{const a={cp_id:e.cp_id,cp_name:e.cp_name};z(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"])),[[J,"cpManage.cpList.cpCollection"]]),q,d((i(),j(R,{onClick:a=>u(Y)(e.row.cp_id),type:"primary",link:"",size:"small"},{default:m((()=>[b("编辑")])),_:2},1032,["onClick"])),[[J,"cpManage.cpList.update"]]),W,d((i(),j(R,{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"])),[[J,"cpManage.cpSettle.index"]]),A])),_:1})])),_:1},8,["data"])),[[N,u(Q)]]),n(H)]),n(I,{modelValue:u(B),"onUpdate:modelValue":s[3]||(s[3]=e=>y(B)?B.value=e:null),title:u($),"destroy-on-close":""},{default:m((()=>[n(M,{onClose:s[2]||(s[2]=e=>u(Z)(u(O))),primary:u(E),api:D},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{D as default};
