/* empty css             *//* empty css                   */import{_ as e}from"./index-9f9af49f.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-66f33117.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-13d1e748.js";import{_ as p}from"./search.vue_vue_type_script_setup_true_lang-72910575.js";/* empty css                     *//* empty css                 */import{d as t,p as s,x as o,ao as r,o as i,c as n,a as m,w as c,f as u,e as _,X as d,l as j,b,a7 as y,a5 as f,aD as g,q as v,a3 as h,a4 as k,a8 as x,U as w,a9 as C,a0 as V}from"./index-0ffeeea6.js";import{_ as M}from"./create.vue_vue_type_script_setup_true_lang-a83b6647.js";import{u as L}from"./useGetList-07470d8e.js";import{u as U}from"./useDestroy-9187955f.js";import{u as S}from"./useOpen-0461a747.js";import{c as q}from"./index-2bd024ad.js";/* empty css                 *//* empty css                   */import"./http-ffb58baa.js";/* empty css                   *//* empty css                  */import"./index-44ccf907.js";/* empty css                      *//* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-cf082d7f.js";import"./useCreate-74e0ef9a.js";import"./useShow-02d4fd72.js";const z={class:"table-default"},T=_("br",null,null,-1),D=_("br",null,null,-1),O=_("br",null,null,-1),A=t({__name:"index",setup(t){const A="cpManage/cp/manage/cp_list",{data:E,query:F,search:G,reset:H,loading:I}=L(A),{deleted:N}=U(),P=s((()=>{var e;return null==(e=E.value)?void 0:e.data})),{open:W,close:X,title:Y,visible:$,id:B}=S();return o((()=>{G(),N(G)})),(t,s)=>{const o=h,L=k,U=p,S=l,E=x,N=w,J=C,K=a,Q=e,R=r("action"),Z=V;return i(),n("div",null,[m(U,{search:u(G),reset:u(H)},{body:c((()=>[m(L,{label:"cp名称",prop:"cp_name"},{default:c((()=>[m(o,{modelValue:u(F).cp_name,"onUpdate:modelValue":s[0]||(s[0]=e=>u(F).cp_name=e),name:"cp_name",clearable:""},null,8,["modelValue"])])),_:1}),m(L,{label:"所属公司",prop:"cp_company"},{default:c((()=>[m(o,{modelValue:u(F).cp_company,"onUpdate:modelValue":s[1]||(s[1]=e=>u(F).cp_company=e),name:"cp_company",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),_("div",z,[d(m(S,{show:u(W)},null,8,["show"]),[[R,"cpManage.cpList.store"]]),d((i(),j(J,{data:u(P),class:"mt-3"},{default:c((()=>[m(E,{type:"index",width:"100",label:"序号"}),m(E,{prop:"cp_id",label:"cp_id"}),m(E,{prop:"cp_name",label:"cp名称"}),m(E,{prop:"cp_nick",label:"cp简称"}),m(E,{prop:"cp_company",label:"所属公司"}),m(E,{prop:"book_count",label:"采集数量"}),m(E,{prop:"share_per",label:"结算比例"}),m(E,{prop:"created_at",label:"创建时间"}),m(E,{label:"操作",width:"200"},{default:c((e=>[d((i(),j(N,{onClick:a=>(e=>{const a={cp_id:e.cp_id,cp_name:e.cp_name};q(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:c((()=>[b("同步CP书籍")])),_:2},1032,["onClick"])),[[R,"cpManage.cpList.cpCollection"]]),T,d((i(),j(N,{onClick:a=>u(W)(e.row.cp_id),type:"primary",link:"",size:"small"},{default:c((()=>[b("编辑")])),_:2},1032,["onClick"])),[[R,"cpManage.cpList.update"]]),D,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:c((()=>[b("结算列表")])),_:2},1032,["onClick"])),[[R,"cpManage.cpSettle.index"]]),O])),_:1})])),_:1},8,["data"])),[[Z,u(I)]]),m(K)]),m(Q,{modelValue:u($),"onUpdate:modelValue":s[3]||(s[3]=e=>y($)?$.value=e:null),title:u(Y),"destroy-on-close":""},{default:c((()=>[m(M,{onClose:s[2]||(s[2]=e=>u(X)(u(G))),primary:u(B),api:A},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{A as default};
