/* empty css             *//* empty css                   */import{_ as e}from"./index-30b81ccf.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-bc7fd1e2.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-61480e03.js";import{_ as p}from"./search.vue_vue_type_script_setup_true_lang-946854ba.js";/* empty css                     *//* empty css                 */import{d as t,p as s,x as o,an as r,o as i,c as n,a as m,w as c,f as u,e as _,W as d,l as j,b,a6 as y,a4 as f,aC as g,q as v,a2 as h,a3 as k,a7 as w,S as x,a8 as C,$ as V}from"./index-2b50ecca.js";import{_ as M}from"./create.vue_vue_type_script_setup_true_lang-2fb4a6bc.js";import{u as z}from"./useGetList-927e47a1.js";import{u as L}from"./useDestroy-e8ee11d1.js";import{u as S}from"./useOpen-7c44bdc3.js";import{c as U}from"./index-de24bfa3.js";/* empty css                 *//* empty css                   */import"./http-aa208300.js";/* empty css                   *//* empty css                  */import"./index-a921dba7.js";/* empty css                      *//* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-028aa8f1.js";import"./useCreate-d1a919fb.js";import"./useShow-5d0f85e9.js";const q={class:"table-default"},D=_("br",null,null,-1),T=_("br",null,null,-1),$=_("br",null,null,-1),G="cpManage/cp/manage/cp_list",O=t({__name:"index",setup(t){const{data:O,query:P,search:W,reset:X,loading:Y}=z(G),{deleted:Z}=L(),A=s((()=>{var e;return null==(e=O.value)?void 0:e.data})),{open:B,close:E,title:F,visible:H,id:I}=S();return o((()=>{W(),Z(W)})),(t,s)=>{const o=h,z=k,L=p,S=l,O=w,Z=x,J=C,K=a,N=e,Q=r("action"),R=V;return i(),n("div",null,[m(L,{search:u(W),reset:u(X)},{body:c((()=>[m(z,{label:"cp名称",prop:"cp_name"},{default:c((()=>[m(o,{modelValue:u(P).cp_name,"onUpdate:modelValue":s[0]||(s[0]=e=>u(P).cp_name=e),name:"cp_name",clearable:""},null,8,["modelValue"])])),_:1}),m(z,{label:"所属公司",prop:"cp_company"},{default:c((()=>[m(o,{modelValue:u(P).cp_company,"onUpdate:modelValue":s[1]||(s[1]=e=>u(P).cp_company=e),name:"cp_company",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),_("div",q,[d(m(S,{show:u(B)},null,8,["show"]),[[Q,"cpManage.cpList.store"]]),d((i(),j(J,{data:A.value,class:"mt-3"},{default:c((()=>[m(O,{type:"index",width:"100",label:"序号"}),m(O,{prop:"cp_id",label:"cp_id"}),m(O,{prop:"cp_name",label:"cp名称"}),m(O,{prop:"cp_nick",label:"cp简称"}),m(O,{prop:"cp_company",label:"所属公司"}),m(O,{prop:"book_count",label:"采集数量"}),m(O,{prop:"share_per",label:"结算比例"}),m(O,{prop:"created_at",label:"创建时间"}),m(O,{label:"操作",width:"200"},{default:c((e=>[d((i(),j(Z,{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:c((()=>[b("同步CP书籍")])),_:2},1032,["onClick"])),[[Q,"cpManage.cpList.cpCollection"]]),D,d((i(),j(Z,{onClick:a=>u(B)(e.row.cp_id),type:"primary",link:"",size:"small"},{default:c((()=>[b("编辑")])),_:2},1032,["onClick"])),[[Q,"cpManage.cpList.update"]]),T,d((i(),j(Z,{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"])),[[Q,"cpManage.cpSettle.index"]]),$])),_:1})])),_:1},8,["data"])),[[R,u(Y)]]),m(K)]),m(N,{modelValue:u(H),"onUpdate:modelValue":s[3]||(s[3]=e=>y(H)?H.value=e:null),title:u(F),"destroy-on-close":""},{default:c((()=>[m(M,{onClose:s[2]||(s[2]=e=>u(E)(u(W))),primary:u(I),api:G},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{O as default};
