PageSourceSearch

https://s.piclaza.com/console/assets/rebate-list-kIbpN_iJ.js

js piclaza.com collected 2026-09-24 14:18:43 UTC 4,128 bytes, 1 lines download raw bytes

1import{v as e,a4 as a,a5 as l}from"./image-translate-1JRVFFyb.js";/* empty css              */import{d as t,c as d,r as s,f as u,h as o,l as i,v as n,q as r,t as c,u as m,F as v}from"./vue-vendor-DVIHwBUG.js";import{M as p,B as h,a4 as w,p as f,q as b,F as y,$ as x,K as $,l as g,m as _}from"./ui-vendor-m1HXr_aQ.js";import"./utils-DsfinRmb.js";const I={class:"flex mb-2"},k=t({__name:"rebate-list",setup(t){const{t:k}=e.useI18n(),R=d((()=>[{title:"No",dataIndex:"id",width:38},{title:k("type"),dataIndex:"typeTip",width:128},{title:k("user"),dataIndex:"phone",width:108},{title:k("orderId"),dataIndex:"orderId",width:138},{title:k("orderAmount"),dataIndex:"orderAmount",width:78,align:"right"},{title:k("rebateAmount"),dataIndex:"amount",width:78,align:"right"},{title:k("status"),dataIndex:"statusTip",width:88},{title:k("orderTime"),dataIndex:"created_at",width:188}])),V=s([]),j=s(!1);let A=1;const C=s(null),K=s({type:"0",comment:"",wechat:""}),S=d((()=>V.value.filter((e=>0==+e.status)).map((e=>e.rid)))),z=s({type:"checkbox",showCheckedAll:d((()=>S.value.length>0)),selectedRowKeys:[]}),T=e=>{z.value.selectedRowKeys=e},U=e=>{z.value.selectedRowKeys=e?S.value:[]},q=s(!1),W=e=>{j.value=!0,A=e,q.value=!1},F=s({current:1,pageSize:10,total:0}),B=s(!1),M=()=>{B.value=!0,z.value.selectedRowKeys=[];const{current:e}=F.value;a({page:e}).then((e=>{const{count:a,data:l}=e;F.value.total=a,V.value=l.map((e=>({...e,disabled:0!=+e.status}))),B.value=!1})).catch((()=>{B.value=!1}))};M();const N=e=>{F.value.current=e,M()},P=()=>{const{type:e,comment:a,wechat:t}=K.value;q.value=!0,l({type:e,comment:`${k("remark")}:${a};${k("wechat")}:${t}`,op:"withdraw",ids:A?S.value.join(","):z.value.selectedRowKeys.join(",")}).then((e=>{p.success(k("withdrawalSuccessful")),j.value=!1,q.value=!1,M()})).catch((()=>{q.value=!1}))};return(e,a)=>{const l=h,t=w,d=f,s=b,p=y,k=x,A=$,M=g,D=_;return u(),o(v,null,[i("div",null,[i("div",I,[n(l,{disabled:0===z.value.selectedRowKeys.length,type:"primary",size:"small",onClick:a[0]||(a[0]=e=>W(1))},{default:r((()=>[c(m(e.$t("withdrawalSelectedItems")),1)])),_:1},8,["disabled"]),n(l,{disabled:0===S.value.length,type:"primary",size:"small",class:"ml-3",onClick:a[1]||(a[1]=e=>W(2))},{default:r((()=>[c(m(e.$t("withdrawalAllItems")),1)])),_:1},8,["disabled"])]),n(t,{class:"mt-4","row-key":"rid","table-layout-fixed":!0,loading:B.value,columns:R.value,data:V.value,pagination:F.value,"row-selection":z.value,onPageChange:N,onSelect:T,onSelectAll:U},null,8,["loading","columns","data","pagination","row-selection"])]),n(D,{width:"520px",visible:j.value,"onUpdate:visible":a[6]||(a[6]=e=>j.value=e),onCancel:a[7]||(a[7]=e=>j.value=!1)},{title:r((()=>[c(m(e.$t("enterRemarkAndWechat")),1)])),footer:r((()=>[n(l,{onClick:a[5]||(a[5]=e=>j.value=!1),disabled:q.value},{default:r((()=>[c(m(e.$t("cancel")),1)])),_:1},8,["disabled"]),n(l,{type:"primary",onClick:P,disabled:q.value},{default:r((()=>[c(m(e.$t("confirm")),1)])),_:1},8,["disabled"])])),default:r((()=>[n(M,{disabled:q.value,ref_key:"formRef",ref:C,size:"small",model:K.value,style:{width:"368px"}},{default:r((()=>[n(p,{field:"type",label:`${e.$t("withdrawalType")}:`,"label-col-flex":"128px"},{default:r((()=>[n(s,{type:"button",modelValue:K.value.type,"onUpdate:modelValue":a[2]||(a[2]=e=>K.value.type=e)},{default:r((()=>[n(d,{value:"0"},{default:r((()=>[c(m(e.$t("quota")),1)])),_:1}),n(d,{value:"1"},{default:r((()=>[c(m(e.$t("cash")),1)])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["label"]),n(p,{field:"wechat",label:`${e.$t("wechatId")}:`,"label-col-flex":"128px"},{default:r((()=>[n(k,{placeholder:e.$t("enterWechatId"),modelValue:K.value.wechat,"onUpdate:modelValue":a[3]||(a[3]=e=>K.value.wechat=e)},null,8,["placeholder","modelValue"])])),_:1},8,["label"]),n(p,{field:"comment",label:`${e.$t("remark")}:`,"label-col-flex":"128px"},{default:r((()=>[n(A,{placeholder:e.$t("enterWithdrawalRemark"),modelValue:K.value.comment,"onUpdate:modelValue":a[4]||(a[4]=e=>K.value.comment=e)},null,8,["placeholder","modelValue"])])),_:1},8,["label"])])),_:1}
1,8,["disabled","model"])])),_:1},8,["visible"])],64)}}});export{k as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.