PageSourceSearch

https://platform.caiyunapp.com/assets/index-gxvI34cK.js

js caiyunapp.com collected 2026-09-24 09:41:36 UTC 3,885 bytes, 1 lines download raw bytes

1import{_ as C}from"./receipt.vue_vue_type_script_setup_true_lang-CPhgNj5b.js";import{d as $,aw as T,r as l,b as w,a as S,t,y as o,u as q,f as B,o as D,g as _,k as h,j as V,h as E,aX as z,B as N,M as m,q as U}from"./index-CD2XdgVm.js";import{C as G}from"./category-enum-DJlcc5BI.js";import{C as L,b as M}from"./enums-BBzsqISK.js";const s={};s[2]="已完成";s[1]="已完成";s[0]="待支付";s[3]="已取消";s[4]="待支付";s[5]="已取消";const O={class:"api-root"},P={class:"text-lg font-bold mb-1.5",style:{"margin-bottom":"29px","margin-top":"var(--all-title-margin-top)"}},j={style:{"overflow-x":"auto"}},I=$({__name:"index",setup(W){const g=T(),c=l(!1);w();const u=l(!1),d=S({page:1,pageSize:10,itemCount:1e3}),v=l([{title:t("order_number"),key:"order_no",width:180},{title:t("app_type"),key:"category",render(e){return o("span",`${L[G[e.category]]}`)}},{title:t("package_type"),key:"charge_type",render(e){return o("span",M[e.charge_type])}},{title:t("purchase_specification"),key:"uints",render(e){return o("span",(()=>{switch(e.charge_type){case 1:return e.uints/30%12!==0?`${e.uints/30}${t("month")}`:`${e.uints/30/12}${t("year")}`;case 2:return`${e.uints/1e4}w${t("times")}`;case 3:return`${e.uints/1e4}w${t("words")}`}})())}},{title:t("quantity"),key:"quantity"},{title:t("cost"),key:"pay_amount",render(e){return o("span",`¥${e.amount}`)}},{title:t("creation_time"),key:"created_at",render(e){return o("span",new Date(+e.created_at*1e3).toLocaleString())},width:150},{title:t("order_status"),key:"status",minWidth:180,render(e){return[o("span",s[e.status]),...function(){return e.status!==0?[]:[o("br"),o("span",{style:{fontSize:"12px"}},new Date(+e.expired_at*1e3).toLocaleString()+` ${t("cancel")}`)]}()]}},{title:t("operation"),key:"actions",width:150,render(e){function n(a=t("default"),b=()=>{}){return o(N,{strong:!0,size:"small",text:!0,onClick:b,style:{display:"block",margin:"auto 0"}},{default:()=>a})}let r=[];return e.status===0?r=[t("continue_to_pay"),t("cancel_order")]:e.status===2&&(r=[t("apply_for_invoice")]),console.log(r),o("div",{style:{height:"48px",display:"flex",flexDirection:"column"}},r.map(a=>n(a,function(){k(e,a)})))}}]),y=l([]),p=q(),k=function(e,n){switch(n){case t("apply_for_invoice"):{c.value=!0;break}case t("continue_to_pay"):{m.request({url:`/orders/${e.order_no}/payment`,method:"GET"}).then(r=>{const a=document.createElement("a");a.href=r.data.page_url,a.target="_blank",document.body.appendChild(a),a.click(),a.remove(),g.info({title:t("prompt"),content:t("will_open_new_page_to_pay_order"),positiveText:t("payment_completed"),negativeText:t("unpaid"),onPositiveClick:()=>{i()},onNegativeClick:()=>{i()}})}).catch(()=>{});break}case t("cancel_order"):{g.warning({title:t("warning"),content:t("are_you_sure_to_cancel_the_order"),positiveText:t("confirm_cancellation"),negativeText:t("not_cancel"),onPositiveClick:()=>{m.request({url:`/orders/${e.order_no}/cancel`,method:"POST"}).then(()=>{p.success(t("cancellation_successful")),i()}).catch(()=>{p.error(t("cancellation_failed"))})}});break}default:p.error(t("unknown_error_please_contact_administrator"))}};let f=1;const i=(e=f)=>{u.value=!0,m.request({url:"/orders",method:"GET",params:{page:e,per_page:10}}).then(n=>{f=e,y.value=n.data.orders,d.itemCount=+n.data.total}).finally(()=>{u.value=!1})};i();const x=e=>{i(e),d.page=e,console.log(e)};return(e,n)=>{const r=z;return D(),B("div",O,[_("h5",P,V(E(t)("order_management")),1),n[1]||(n[1]=_("p",null,"应用管理页面",-1)),_("div",j,[h(r,{remote:"",loading:u.value,pagination:d,columns:v.value,data:y.value,bordered:!1,style:{"min-width":"1050px"},"max-height":"calc(100% - 300px)","onUpdate:page":x},null,8,["loading","pagination","columns","data"])]),h(C,{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=a=>c.value=a)},null,8,["modelValue"])])}}}),J=U(I,[["__scopeId","data-v-16ddaa43"]]);export{J 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.