前端打包

This commit is contained in:
liu
2026-06-17 13:08:53 +08:00
parent 94dc78cd9c
commit 9eed7c87f6
132 changed files with 777 additions and 646 deletions
-1
View File
@@ -1 +0,0 @@
import{j as t,B as r}from"./index-B-sDl1ER.js";import{C as s}from"./index-CO5DzGxy.js";import{R as a}from"./index-CwBuiwuD.js";const p=()=>t.jsx(s,{variant:"borderless",children:t.jsx(a,{status:"403",title:"403",subTitle:"Sorry, you are not authorized to access this page.",extra:t.jsx(r,{type:"primary",children:"Back Home"})})});export{p as default};
-1
View File
@@ -1 +0,0 @@
import{j as t,B as s}from"./index-B-sDl1ER.js";import{C as r}from"./index-CO5DzGxy.js";import{R as e}from"./index-CwBuiwuD.js";const p=()=>t.jsx(r,{variant:"borderless",children:t.jsx(e,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:t.jsx(s,{type:"primary",children:"Back Home"})})});export{p as default};
-1
View File
@@ -1 +0,0 @@
import{j as t,B as r}from"./index-B-sDl1ER.js";import{C as s}from"./index-CO5DzGxy.js";import{R as e}from"./index-CwBuiwuD.js";const m=()=>t.jsx(s,{variant:"borderless",children:t.jsx(e,{status:"500",title:"500",subTitle:"Sorry, something went wrong.",extra:t.jsx(r,{type:"primary",children:"Back Home"})})});export{m as default};
+1
View File
@@ -0,0 +1 @@
import{Ca as e,Ea as t,l as n,s as r}from"./index-DThTpSPU.js";var i=t(e(),1),a=r(),o=({auth:e,children:t})=>{let r=n(e=>e.access);return(0,i.useMemo)(()=>e?r.includes(e):!0,[r,e])?(0,a.jsx)(a.Fragment,{children:t}):null};export{o as t};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/member/address`,columns:[{title:t(`member.address.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`member.address.user_id`),dataIndex:`user_id`,valueType:`digit`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.user_id.required`)}],render:(e,t)=>t.user?`${t.user.nickname||t.user.username} (${t.user.mobile||`-`})`:`ID: ${t.user_id}`},{title:t(`member.address.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.name.required`)}]},{title:t(`member.address.mobile`),dataIndex:`mobile`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.mobile.required`)}]},{title:t(`member.address.province`),dataIndex:`province`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.province.required`)}],hideInSearch:!0},{title:t(`member.address.city`),dataIndex:`city`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.city.required`)}],hideInSearch:!0},{title:t(`member.address.district`),dataIndex:`district`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.district.required`)}],hideInSearch:!0},{title:t(`member.address.detail`),dataIndex:`detail`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`member.address.detail.required`)}],hideInSearch:!0},{title:t(`member.address.full_address`),dataIndex:`full_address`,hideInForm:!0,hideInSearch:!0,align:`center`,render:(e,t)=>[t.province,t.city,t.district,t.detail].filter(Boolean).join(``)},{title:t(`member.address.is_default`),dataIndex:`is_default`,valueType:`switch`,align:`center`,render:n=>n===1?(0,d.jsx)(e,{color:`blue`,children:t(`member.address.is_default.1`)}):(0,d.jsx)(e,{children:t(`member.address.is_default.0`)})},{title:t(`member.address.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`member.address.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`member.address`,scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`member.address.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`member.address.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{ya as e}from"./index-DThTpSPU.js";async function t(){return e({url:`/ai/agent`,method:`get`})}async function n(t){return e({url:`/ai/agent/${t}`,method:`get`})}async function r(t,n){return e({url:`/ai/agent/${t}`,method:`put`,data:n})}export{t as n,r,n as t};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./card-BDbI8Gdq.js";import{t}from"./spin-D1ik486_.js";import{t as n}from"./tag-Bn-IyYw0.js";import{Ca as r,Dn as i,Ea as a,Lt as o,Yn as s,ba as c,c as l,gn as u,rr as d,rt as f,s as p,st as m,vt as h,wn as g}from"./index-DThTpSPU.js";import{n as _,r as v}from"./agent-B0_A2P2o.js";var y=a(r(),1),b=p(),{Title:x,Text:S,Paragraph:C}=f;function w(){let{t:r}=l(),{token:a}=m.useToken(),{message:f}=d.useApp(),p=c(),[w,T]=(0,y.useState)([]),[E,D]=(0,y.useState)(!1),O=(0,y.useCallback)(async()=>{D(!0);try{T((await _()).data.data??[])}finally{D(!1)}},[]);(0,y.useEffect)(()=>{O()},[O]);let k=async(e,t)=>{try{await v(e,{enabled:t}),T(n=>n.map(n=>n.id===e?{...n,enabled:t}:n)),f.success(r(`ai.agent.update.success`))}catch{f.error(r(`ai.agent.update.failed`))}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,marginBottom:a.marginLG},children:(0,b.jsxs)(`div`,{children:[(0,b.jsx)(x,{level:3,style:{marginBottom:a.marginXS},children:r(`ai.agent.page.title`)}),(0,b.jsx)(S,{type:`secondary`,children:r(`ai.agent.page.description`)})]})}),(0,b.jsx)(t,{spinning:E,children:w.length>0?(0,b.jsx)(`div`,{className:`flex flex-wrap gap-6`,children:w.map(t=>(0,b.jsx)(i,{title:t.description,children:(0,b.jsxs)(e,{hoverable:!0,variant:`borderless`,styles:{body:{width:300,padding:20,overflow:`hidden`}},children:[(0,b.jsxs)(`div`,{className:`flex justify-between items-center mb-2.5`,children:[(0,b.jsxs)(o,{align:`center`,children:[(0,b.jsx)(g,{src:t.icon,size:32}),(0,b.jsx)(`span`,{style:{fontWeight:700,fontSize:18},children:t.name})]}),(0,b.jsx)(h,{checked:t.enabled,size:`small`,onChange:e=>k(t.id,e)})]}),(0,b.jsx)(C,{type:`secondary`,ellipsis:{rows:2},style:{marginBottom:a.marginSM},children:t.description}),(0,b.jsx)(o,{size:[4,4],wrap:!0,children:t.tags?.map(e=>(0,b.jsx)(n,{color:`blue`,children:e},e))}),(0,b.jsx)(`div`,{style:{marginTop:a.marginSM},children:(0,b.jsx)(u,{type:`primary`,size:`small`,block:!0,onClick:()=>p(`/ai/chat?agent_id=${t.id}`),children:r(`ai.agent.goChat`)})})]})}))}):(0,b.jsx)(s,{description:r(`ai.agent.empty`)})})]})}export{w as default};
+2
View File
@@ -0,0 +1,2 @@
import{t as e}from"./alert-nEKP-pli.js";import{t}from"./XinForm-DX04WSwD.js";import{t as n}from"./card-BDbI8Gdq.js";import{t as r}from"./spin-D1ik486_.js";import{Ca as i,Ct as a,Ea as o,Jt as s,Pt as c,b as l,c as u,gn as d,rt as f,s as p,ya as m,yt as h}from"./index-DThTpSPU.js";var g=o(i(),1);async function _(){return m({url:`/system/ai/list`,method:`get`})}async function v(){return m({url:`/system/ai/config`,method:`get`})}async function y(e){return m({url:`/system/ai/save`,method:`post`,data:e})}var b=p(),{Text:x,Title:S}=f,C=()=>{let{t:i}=u(),o=(0,g.useRef)(null),[f]=c.useForm(),[p,m]=(0,g.useState)({default:[]}),[C,w]=(0,g.useState)(!1),[T,E]=(0,g.useState)(null),[D,O]=(0,g.useState)(null),k=e=>({dependencies:[`default`],visible:t=>t.default===e}),A=e=>({dataIndex:[`providers`,e,`key`],valueType:`password`,title:i(`system.ai.provider.api_key`,{lab:e}),fieldProps:{placeholder:`sk-...`},colProps:{span:16},dependency:k(e)}),j=(e,t=``)=>({dataIndex:[`providers`,e,`url`],valueType:`text`,title:i(`system.ai.provider.url`,{lab:e}),fieldProps:{placeholder:i(`system.ai.provider.url.placeholder`,{url:t})},colProps:{span:8},dependency:k(e)}),M=[A(`anthropic`),j(`anthropic`,`https://api.anthropic.com/v1`)],N=[A(`openai`),j(`openai`,`https://api.openai.com/v1`)],P=[A(`gemini`),j(`gemini`,`https://generativelanguage.googleapis.com/v1beta/`)],F=[A(`ollama`),j(`ollama`,`http://localhost:11434`)],I=[A(`azure`),j(`azure`,`https://<resource>.openai.azure.com`),{dataIndex:[`providers`,`azure`,`api_version`],valueType:`text`,title:i(`system.ai.azure.api_version`),fieldProps:{placeholder:`2025-04-01-preview`},colProps:{span:8},dependency:k(`azure`)},{dataIndex:[`providers`,`azure`,`deployment`],valueType:`text`,title:i(`system.ai.azure.deployment`),fieldProps:{placeholder:`gpt-4o`},colProps:{span:8},dependency:k(`azure`)},{dataIndex:[`providers`,`azure`,`embedding_deployment`],valueType:`text`,title:i(`system.ai.azure.embedding_deployment`),fieldProps:{placeholder:`text-embedding-3-small`},colProps:{span:8},dependency:k(`azure`)},{dataIndex:[`providers`,`azure`,`image_deployment`],valueType:`text`,title:i(`system.ai.azure.image_deployment`),fieldProps:{placeholder:`gpt-image-1`},colProps:{span:12},dependency:k(`azure`)}],L=[{dataIndex:[`providers`,`bedrock`,`region`],valueType:`text`,title:i(`system.ai.bedrock.region`),fieldProps:{placeholder:`us-east-1`},colProps:{span:12},dependency:k(`bedrock`)},A(`bedrock`),{dataIndex:[`providers`,`bedrock`,`access_key_id`],valueType:`password`,title:i(`system.ai.bedrock.access_key_id`),fieldProps:{placeholder:i(`system.ai.provider.api_key.placeholder`)},colProps:{span:12},dependency:k(`bedrock`)},{dataIndex:[`providers`,`bedrock`,`secret_access_key`],valueType:`password`,title:i(`system.ai.bedrock.secret_access_key`),fieldProps:{placeholder:i(`system.ai.provider.api_key.placeholder`)},colProps:{span:12},dependency:k(`bedrock`)},{dataIndex:[`providers`,`bedrock`,`session_token`],valueType:`password`,title:i(`system.ai.bedrock.session_token`),fieldProps:{placeholder:i(`system.ai.provider.api_key.placeholder`)},colProps:{span:24},dependency:k(`bedrock`)}],R=[{dataIndex:`default`,valueType:`radio`,title:i(`system.ai.default`),tooltip:i(`system.ai.default.tooltip`),colProps:{span:24},fieldProps:{options:p.default.map(e=>({label:e,value:e}))}},...M,...N,...P,...I,...L,...F,A(`cohere`),A(`deepseek`),A(`eleven`),A(`groq`),A(`jina`),A(`mistral`),A(`openrouter`),A(`voyageai`),A(`xai`)];(0,g.useEffect)(()=>{z(),_().then(e=>e.data.data&&m(e.data.data))},[]);let z=async()=>{let{data:e}=await v();e.success&&f.setFieldsValue(e.data)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(`div`,{className:`mb-5`,children:[(0,b.jsx)(S,{level:3,children:i(`system.ai.page.title`)}),(0,b.jsx)(x,{type:`secondary`,children:i(`system.ai.page.description`)})]}),(0,b.jsxs)(h,{gutter:24,children:[(0,b.jsx)(s,{span:16,children:(0,b.jsx)(n,{variant:`borderless`,children:(0,b.jsx)(t,{columns:R,layout:`vertical`,formRef:o,form:f,grid:!0,onFinish:async e=>{await y(e),a.success(i(`system.ai.save.success`))},rowProps:{gutter:[10,0]}})})}),(0,b.jsx)(s,{span:8,children:(0,b.jsx)(n,{title:i(`system.ai.test.title`),children:(0,b.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,b.jsx)(x,{type:`secondary`,children:i(`system.ai.test.hint`)}),(0,b.jsx)(d,{type:`primary`,block:!0,icon:(0,b.jsx)(l,{}),loading:C,onClick:async()=>{w(!0),E(null),O(null);try{let e=localStorage.getItem(`token`),t=await fetch(`/index.php/system/ai/test`,{method:`POST`,headers:{Authorization:`Bearer ${e}`,Accept:`text/event-stream`}});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.msg||`HTTP ${t.status}`)}let n=t.body?.getReader();if(!n)throw Error(`Stream not supported`);let r=new TextDecoder,o=``,s=``;for(;;){let{done:e,value:t}=await n.read();if(e)break;o+=r.decode(t,{stream:!0});let i=o.split(`
`);o=i.pop()||``;for(let e of i){if(!e.startsWith(`data: `))continue;let t=e.slice(6).trim();if(t!==`[DONE]`)try{let e=JSON.parse(t);e.type===`text_delta`&&e.delta&&(s+=e.delta,E(s))}catch{}}}a.success(i(`system.ai.test.success`))}catch(e){let t=e?.message||`Connection test failed`;O(t),a.error(t)}finally{w(!1)}},children:i(C?`system.ai.test.testing`:`system.ai.test.button`)}),C&&!T&&(0,b.jsx)(`div`,{className:`flex justify-center py-8`,children:(0,b.jsx)(r,{description:i(`system.ai.test.testing`)})}),T&&(0,b.jsx)(e,{type:`success`,title:i(`system.ai.test.success`),description:T,showIcon:!0}),D&&(0,b.jsx)(e,{type:`error`,title:i(`system.ai.test.error`),description:D,showIcon:!0})]})})})]})]})};export{C as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/runner/application`,columns:[{title:t(`runner.application.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`runner.application.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`runner.application.real_name`),dataIndex:`real_name`,valueType:`text`,align:`center`},{title:t(`runner.application.mobile`),dataIndex:`mobile`,valueType:`text`,align:`center`},{title:t(`runner.application.resume`),dataIndex:`resume`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.application.id_card`),dataIndex:`id_card`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.application.id_card_front`),dataIndex:`id_card_front`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.application.id_card_back`),dataIndex:`id_card_back`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.application.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`runner.application.status.0`)},{value:1,label:t(`runner.application.status.1`)},{value:2,label:t(`runner.application.status.2`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`runner.application.status.1`)}):n===2?(0,d.jsx)(e,{color:`error`,children:t(`runner.application.status.2`)}):(0,d.jsx)(e,{color:`warning`,children:t(`runner.application.status.0`)}),filters:[{text:t(`runner.application.status.0`),value:0},{text:t(`runner.application.status.1`),value:1},{text:t(`runner.application.status.2`),value:2}],align:`center`},{title:t(`runner.application.review_remark`),dataIndex:`review_remark`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.application.reviewed_at`),dataIndex:`reviewed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`runner.application.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`runner.application.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`runner.application`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`runner.application.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`runner.application.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Ca as e,Ea as t,c as n,hn as r,rt as i,s as a,t as o}from"./index-DThTpSPU.js";import{t as s}from"./XinTable-D_6_7i3V.js";e();var c=t(r(),1),l=t(o(),1),u=a(),{Title:d,Text:f}=i;c.default.extend(l.default);var p=()=>{let{t:e}=n(),t={api:`/task/bid`,columns:[{title:e(`task.bid.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:e(`task.bid.task_id`),dataIndex:`task_id`,valueType:`text`,align:`center`},{title:e(`task.bid.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:e(`task.bid.price`),dataIndex:`price`,hideInForm:!0,align:`center`,render:e=>`¥${e||`0.00`}`},{title:e(`task.bid.message`),dataIndex:`message`,valueType:`text`,align:`center`},{title:e(`task.bid.status`),dataIndex:`status`,valueType:`text`,align:`center`},{title:e(`task.bid.accepted_at`),dataIndex:`accepted_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`},{title:e(`task.bid.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`},{title:e(`task.bid.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`task.bid`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mb-5`,children:[(0,u.jsx)(d,{level:3,children:e(`task.bid.page.title`)}),(0,u.jsx)(f,{type:`secondary`,children:e(`task.bid.page.description`)})]}),(0,u.jsx)(s,{...t})]})};export{p as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/forum/category`,columns:[{title:t(`forum.category.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`forum.category.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`forum.category.name.required`)}]},{title:t(`forum.category.slug`),dataIndex:`slug`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`forum.category.slug.required`)}]},{title:t(`forum.category.parent_id`),dataIndex:`parent_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.category.description`),dataIndex:`description`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.category.icon`),dataIndex:`icon`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.category.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.category.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.category.status.0`)},{value:1,label:t(`forum.category.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`forum.category.status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`forum.category.status.0`)}),filters:[{text:t(`forum.category.status.0`),value:0},{text:t(`forum.category.status.1`),value:1}],align:`center`},{title:t(`forum.category.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`forum.category.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.category`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`forum.category.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`forum.category.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/category`,columns:[{title:t(`merchant.category.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.category.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.category.name.required`)}]},{title:t(`merchant.category.slug`),dataIndex:`slug`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.category.slug.required`)}]},{title:t(`merchant.category.description`),dataIndex:`description`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.category.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.category.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.category.status.0`)},{value:1,label:t(`merchant.category.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`merchant.category.status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`merchant.category.status.0`)}),filters:[{text:t(`merchant.category.status.0`),value:0},{text:t(`merchant.category.status.1`),value:1}],align:`center`},{title:t(`merchant.category.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.category.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.category`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.category.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.category.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/task/category`,columns:[{title:t(`task.category.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`task.category.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`task.category.name.required`)}]},{title:t(`task.category.slug`),dataIndex:`slug`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`task.category.slug.required`)}]},{title:t(`task.category.description`),dataIndex:`description`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`task.category.icon`),dataIndex:`icon`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`task.category.form_schema`),dataIndex:`form_schema`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`task.category.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`task.category.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`task.category.status.0`)},{value:1,label:t(`task.category.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`task.category.status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`task.category.status.0`)}),filters:[{text:t(`task.category.status.0`),value:0},{text:t(`task.category.status.1`),value:1}],align:`center`},{title:t(`task.category.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`task.category.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`task.category`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`task.category.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`task.category.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/forum/comment`,columns:[{title:t(`forum.comment.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`forum.comment.post_id`),dataIndex:`post_id`,valueType:`text`,align:`center`,required:!0},{title:t(`forum.comment.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,required:!0,hideInSearch:!0},{title:t(`forum.comment.parent_id`),dataIndex:`parent_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.comment.reply_to`),dataIndex:`reply_to`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.comment.content`),dataIndex:`content`,valueType:`text`,hideInTable:!0,hideInSearch:!0,required:!0,rules:[{required:!0,message:t(`forum.comment.content.required`)}]},{title:t(`forum.comment.like_count`),dataIndex:`like_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.comment.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.comment.status.0`)},{value:1,label:t(`forum.comment.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`forum.comment.status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`forum.comment.status.0`)}),filters:[{text:t(`forum.comment.status.0`),value:0},{text:t(`forum.comment.status.1`),value:1}],align:`center`},{title:t(`forum.comment.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`forum.comment.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.comment`,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:700},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`forum.comment.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`forum.comment.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/runner/complaint-appeal`,columns:[{title:t(`runner.complaint_appeal.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`runner.complaint_appeal.complaint_id`),dataIndex:`complaint_id`,valueType:`text`,align:`center`},{title:t(`runner.complaint_appeal.worker_id`),dataIndex:`worker_id`,valueType:`text`,align:`center`},{title:t(`runner.complaint_appeal.content`),dataIndex:`content`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint_appeal.images`),dataIndex:`images`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint_appeal.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`runner.complaint_appeal.status.0`)},{value:1,label:t(`runner.complaint_appeal.status.1`)},{value:2,label:t(`runner.complaint_appeal.status.2`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`runner.complaint_appeal.status.1`)}):n===2?(0,d.jsx)(e,{color:`error`,children:t(`runner.complaint_appeal.status.2`)}):(0,d.jsx)(e,{color:`warning`,children:t(`runner.complaint_appeal.status.0`)}),filters:[{text:t(`runner.complaint_appeal.status.0`),value:0},{text:t(`runner.complaint_appeal.status.1`),value:1},{text:t(`runner.complaint_appeal.status.2`),value:2}],align:`center`},{title:t(`runner.complaint_appeal.reply`),dataIndex:`reply`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint_appeal.reviewed_at`),dataIndex:`reviewed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`runner.complaint_appeal.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`runner.complaint_appeal.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`runner.complaint_appeal`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`runner.complaint_appeal.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`runner.complaint_appeal.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/runner/complaint`,columns:[{title:t(`runner.complaint.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`runner.complaint.complaint_no`),dataIndex:`complaint_no`,valueType:`text`,align:`center`},{title:t(`runner.complaint.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`runner.complaint.worker_id`),dataIndex:`worker_id`,valueType:`text`,align:`center`},{title:t(`runner.complaint.order_id`),dataIndex:`order_id`,valueType:`text`,align:`center`},{title:t(`runner.complaint.type`),dataIndex:`type`,valueType:`text`,align:`center`},{title:t(`runner.complaint.content`),dataIndex:`content`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint.images`),dataIndex:`images`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`runner.complaint.status.0`)},{value:1,label:t(`runner.complaint.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`runner.complaint.status.1`)}):(0,d.jsx)(e,{color:`warning`,children:t(`runner.complaint.status.0`)}),filters:[{text:t(`runner.complaint.status.0`),value:0},{text:t(`runner.complaint.status.1`),value:1}],align:`center`},{title:t(`runner.complaint.result`),dataIndex:`result`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint.result_remark`),dataIndex:`result_remark`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`runner.complaint.handled_at`),dataIndex:`handled_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`runner.complaint.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`runner.complaint.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`runner.complaint`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`runner.complaint.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`runner.complaint.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{o as e}from"./tslib.es6-DffexlHv.js";import{t}from"./tag-Bn-IyYw0.js";import{Ca as n,Dn as r,Ea as i,Ot as a,c as o,gn as s,hn as c,rt as l,s as u,ya as d,zt as f}from"./index-DThTpSPU.js";import{t as p}from"./XinTable-D_6_7i3V.js";async function m(e,t){return d({url:`/ai/conversation/${e}/messages`,method:`get`,params:t})}var h=i(c(),1),g=i(n(),1),_=u(),{Title:v,Text:y}=l;function b(){let{t:n}=o(),[i,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(``),[d,b]=(0,g.useState)([]),[x,S]=(0,g.useState)(!1),[C,w]=(0,g.useState)(0),[T,E]=(0,g.useState)(1),[D,O]=(0,g.useState)(``),k=async(e,t)=>{S(!0);try{let n=(await m(e,{page:t,pageSize:20})).data.data;b(n.data),w(n.total)}finally{S(!1)}},A=async e=>{O(e.id),u(e.title||``),E(1),c(!0),await k(e.id,1)},j=e=>{E(e),k(D,e)},M=[{title:n(`ai.conversation.id`),dataIndex:`id`,hideInForm:!0,width:260,ellipsis:!0,align:`center`},{title:n(`ai.conversation.username`),dataIndex:`username`,hideInForm:!0,align:`center`,width:120,render:e=>e||n(`ai.conversation.noUser`)},{title:n(`ai.conversation.title`),dataIndex:`title`,valueType:`text`,ellipsis:!0},{title:n(`ai.conversation.messageCount`),dataIndex:`message_count`,hideInForm:!0,hideInSearch:!0,align:`center`,width:100},{title:n(`ai.conversation.createdAt`),dataIndex:`created_at`,hideInForm:!0,hideInSearch:!0,align:`center`,width:180,render:e=>e?(0,h.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:n(`ai.conversation.updatedAt`),dataIndex:`updated_at`,hideInForm:!0,hideInSearch:!0,align:`center`,width:180,render:e=>e?(0,h.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`}],N=[{title:n(`ai.conversation.message.role`),dataIndex:`role`,width:100,render:e=>(0,_.jsx)(t,{color:{user:`blue`,assistant:`green`,system:`orange`}[e]||`default`,children:n(`ai.conversation.message.role.${e}`,e)})},{title:n(`ai.conversation.message.agent`),dataIndex:`agent`,width:150,ellipsis:!0},{title:n(`ai.conversation.message.content`),dataIndex:`content`,ellipsis:!0},{title:n(`ai.conversation.message.createdAt`),dataIndex:`created_at`,width:180,render:e=>e?(0,h.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`}];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`mb-5`,children:[(0,_.jsx)(v,{level:3,children:n(`ai.conversation.page.title`)}),(0,_.jsx)(y,{type:`secondary`,children:n(`ai.conversation.page.description`)})]}),(0,_.jsx)(p,{api:`/ai/conversation`,columns:M,rowKey:`id`,accessName:`ai.conversation`,addShow:!1,editShow:!1,formProps:!1,operateProps:{fixed:`right`,width:120},operateRender:(e,t)=>[(0,_.jsx)(r,{title:n(`ai.conversation.viewMessages`),children:(0,_.jsx)(s,{type:`primary`,icon:(0,_.jsx)(a,{}),size:`small`,onClick:()=>A(e)})},`view`),t.del],scroll:{x:1100},cardProps:{variant:`borderless`}}),(0,_.jsx)(f,{title:`${n(`ai.conversation.messageTitle`)} - ${l}`,open:i,onClose:()=>c(!1),width:900,children:(0,_.jsx)(e,{dataSource:d,columns:N,rowKey:`id`,loading:x,pagination:{current:T,total:C,pageSize:20,onChange:j,showSizeChanger:!1},scroll:{x:700},size:`small`})})]})}export{b as default};
+1
View File
@@ -0,0 +1 @@
import{Ca as e,Ea as t,c as n,hn as r,rt as i,s as a,t as o}from"./index-DThTpSPU.js";import{t as s}from"./XinTable-D_6_7i3V.js";e();var c=t(r(),1),l=t(o(),1),u=a(),{Title:d,Text:f}=i;c.default.extend(l.default);var p=()=>{let{t:e}=n(),t={api:`/runner/credit-log`,columns:[{title:e(`runner.credit_log.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:e(`runner.credit_log.worker_id`),dataIndex:`worker_id`,valueType:`text`,align:`center`},{title:e(`runner.credit_log.score`),dataIndex:`score`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`runner.credit_log.score_after`),dataIndex:`score_after`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`runner.credit_log.type`),dataIndex:`type`,valueType:`text`,align:`center`},{title:e(`runner.credit_log.description`),dataIndex:`description`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`runner.credit_log.related_type`),dataIndex:`related_type`,valueType:`text`,align:`center`},{title:e(`runner.credit_log.related_id`),dataIndex:`related_id`,valueType:`text`,align:`center`},{title:e(`runner.credit_log.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`},{title:e(`runner.credit_log.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`runner.credit_log`,addShow:!1,editShow:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mb-5`,children:[(0,u.jsx)(d,{level:3,children:e(`runner.credit_log.page.title`)}),(0,u.jsx)(f,{type:`secondary`,children:e(`runner.credit_log.page.description`)})]}),(0,u.jsx)(s,{...t})]})};export{p as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/runner/deposit`,columns:[{title:t(`finance.deposit.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`finance.deposit.deposit_no`),dataIndex:`deposit_no`,valueType:`text`,align:`center`},{title:t(`finance.deposit.worker_id`),dataIndex:`worker_id`,valueType:`text`,align:`center`},{title:t(`finance.deposit.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`finance.deposit.amount`),dataIndex:`amount`,valueType:`text`,align:`center`},{title:t(`finance.deposit.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`finance.deposit.status.0`)},{value:1,label:t(`finance.deposit.status.1`)},{value:2,label:t(`finance.deposit.status.2`)},{value:3,label:t(`finance.deposit.status.3`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`finance.deposit.status.1`)}):n===2?(0,d.jsx)(e,{color:`warning`,children:t(`finance.deposit.status.2`)}):n===3?(0,d.jsx)(e,{color:`error`,children:t(`finance.deposit.status.3`)}):(0,d.jsx)(e,{color:`default`,children:t(`finance.deposit.status.0`)}),filters:[{text:t(`finance.deposit.status.0`),value:0},{text:t(`finance.deposit.status.1`),value:1},{text:t(`finance.deposit.status.2`),value:2},{text:t(`finance.deposit.status.3`),value:3}],align:`center`},{title:t(`finance.deposit.deduct_reason`),dataIndex:`deduct_reason`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`finance.deposit.paid_at`),dataIndex:`paid_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit.refund_at`),dataIndex:`refund_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit.deducted_at`),dataIndex:`deducted_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`runner.deposit`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`finance.deposit.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`finance.deposit.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/runner/deposit-payment`,columns:[{title:t(`finance.deposit_payment.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`finance.deposit_payment.payment_no`),dataIndex:`payment_no`,valueType:`text`,align:`center`},{title:t(`finance.deposit_payment.deposit_id`),dataIndex:`deposit_id`,valueType:`text`,align:`center`},{title:t(`finance.deposit_payment.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`finance.deposit_payment.payment_transaction_id`),dataIndex:`payment_transaction_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`finance.deposit_payment.amount`),dataIndex:`amount`,valueType:`text`,align:`center`},{title:t(`finance.deposit_payment.pay_type`),dataIndex:`pay_type`,valueType:`text`,align:`center`},{title:t(`finance.deposit_payment.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`finance.deposit_payment.status.0`)},{value:1,label:t(`finance.deposit_payment.status.1`)},{value:2,label:t(`finance.deposit_payment.status.2`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`finance.deposit_payment.status.1`)}):n===2?(0,d.jsx)(e,{color:`warning`,children:t(`finance.deposit_payment.status.2`)}):(0,d.jsx)(e,{color:`default`,children:t(`finance.deposit_payment.status.0`)}),filters:[{text:t(`finance.deposit_payment.status.0`),value:0},{text:t(`finance.deposit_payment.status.1`),value:1},{text:t(`finance.deposit_payment.status.2`),value:2}],align:`center`},{title:t(`finance.deposit_payment.paid_at`),dataIndex:`paid_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit_payment.refund_at`),dataIndex:`refund_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit_payment.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`finance.deposit_payment.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`runner.deposit_payment`,addShow:!1,editShow:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`finance.deposit_payment.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`finance.deposit_payment.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./badge-C6DVGO8T.js";import{Dn as t,Ea as n,ba as r,c as i,gn as a,hn as o,n as s,rt as c,s as l,v as u}from"./index-DThTpSPU.js";import{t as d}from"./XinTable-D_6_7i3V.js";var f=l(),p=n(o(),1),{Title:m,Text:h}=c;function g(){let{t:n}=i(),o=r(),c=s(e=>e.initDict),l=[{title:n(`system.dict.id`),dataIndex:`id`,hideInForm:!0,width:80,sorter:!0,align:`center`},{title:n(`system.dict.name`),dataIndex:`name`,valueType:`text`,colProps:{span:12},rules:[{required:!0,message:n(`system.dict.name.required`)}]},{title:n(`system.dict.code`),dataIndex:`code`,valueType:`text`,colProps:{span:12},rules:[{required:!0,message:n(`system.dict.code.required`)}]},{title:n(`system.dict.status`),dataIndex:`status`,valueType:`select`,filters:[{text:n(`system.dict.status.normal`),value:0},{text:n(`system.dict.status.disabled`),value:1}],colProps:{span:12},rules:[{required:!0,message:n(`system.dict.status.required`)}],fieldProps:{options:[{label:n(`system.dict.status.normal`),value:0},{label:n(`system.dict.status.disabled`),value:1}]},render:t=>t===0?(0,f.jsx)(e,{status:`success`,text:n(`system.dict.status.normal`)}):(0,f.jsx)(e,{status:`error`,text:n(`system.dict.status.disabled`)})},{title:n(`system.dict.sort`),dataIndex:`sort`,valueType:`digit`,colProps:{span:12},hideInSearch:!0,fieldProps:{min:0,style:{width:`100%`}}},{title:n(`system.dict.describe`),dataIndex:`describe`,valueType:`textarea`,colProps:{span:24},hideInSearch:!0,ellipsis:!0},{title:n(`system.dict.createdAt`),dataIndex:`created_at`,render:e=>e?(0,p.default)(e).format(`YYYY-MM-DD HH:mm`):`-`,hideInForm:!0,hideInSearch:!0,width:160}],g=async()=>{await c(),window.$message?.success(n(`system.dict.refreshSuccess`))},_=e=>{o(`/system/dict/item?dictId=${e.id}&dictName=${encodeURIComponent(e.name||``)}&dictCode=${e.code}`)};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`div`,{className:`mb-5`,children:[(0,f.jsx)(m,{level:3,children:n(`system.dict.page.title`)}),(0,f.jsx)(h,{type:`secondary`,children:n(`system.dict.page.description`)})]}),(0,f.jsx)(d,{api:`/system/dict/list`,columns:l,rowKey:`id`,accessName:`system.dict.list`,searchProps:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},actionBarRender:e=>[e.add,(0,f.jsx)(a,{type:`primary`,onClick:g,children:n(`system.dict.refreshCache`)},`refresh`),e.keywordSearch],operateProps:{fixed:`right`,width:180},scroll:{x:1e3},operateRender:(e,r)=>[(0,f.jsx)(t,{title:n(`system.dict.manageItems`),children:(0,f.jsx)(a,{type:`default`,icon:(0,f.jsx)(u,{}),size:`small`,onClick:()=>_(e)})}),r.edit,r.del]})]})}export{g as default};
-1
View File
@@ -1 +0,0 @@
import{j as e,T as t,a0 as r,B as o}from"./index-B-sDl1ER.js";import{C as i}from"./index-CO5DzGxy.js";import{R as a}from"./index-CwBuiwuD.js";const{Paragraph:s,Text:n}=t,h=()=>e.jsx(i,{variant:"borderless",children:e.jsx(a,{status:"error",title:"Submission Failed",subTitle:"Please check and modify the following information before resubmitting.",extra:[e.jsx(o,{type:"primary",children:"Go Console"},"console"),e.jsx(o,{children:"Buy Again"},"buy")],children:e.jsxs("div",{className:"desc",children:[e.jsx(s,{children:e.jsx(n,{strong:!0,style:{fontSize:16},children:"The content you submitted has the following error:"})}),e.jsxs(s,{children:[e.jsx(r,{className:"site-result-demo-error-icon"})," Your account has been frozen. ",e.jsx("a",{children:"Thaw immediately >"})]}),e.jsxs(s,{children:[e.jsx(r,{className:"site-result-demo-error-icon"})," Your account is not yet eligible to apply. ",e.jsx("a",{children:"Apply Unlock >"})]})]})})});export{h as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{j as s,y as i,a,C as e,S as l,B as r}from"./index-B-sDl1ER.js";import{C as t}from"./index-CO5DzGxy.js";const x=()=>s.jsxs("div",{children:[s.jsxs(t,{style:{marginBottom:16},children:[s.jsx(i,{items:[{title:"多级菜单"},{title:"二级页面"}]}),s.jsx("h2",{style:{marginTop:16,marginBottom:0},children:"二级页面"})]}),s.jsxs(a,{gutter:[16,16],children:[s.jsx(e,{span:24,children:s.jsx(t,{style:{height:200}})}),s.jsx(e,{span:16,children:s.jsx(t,{style:{height:200}})}),s.jsx(e,{span:8,children:s.jsx(t,{style:{height:200}})})]}),s.jsx(t,{style:{marginTop:16},children:s.jsxs(l,{children:[s.jsx(r,{children:"重置"}),s.jsx(r,{type:"primary",children:"提交"})]})})]});export{x as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Ar as e,Bi as t,Ca as n,Ea as r,Ei as i,Li as a,Rt as o,Yi as s,Zr as c,di as l}from"./index-DThTpSPU.js";var u=r(n()),d=[`wrap`,`nowrap`,`wrap-reverse`],f=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],p=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],m=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}},h=(e,t)=>{let n={};return p.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},g=(e,t)=>{let n={};return f.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},_=(e,n)=>t({...m(e,n),...h(e,n),...g(e,n)}),v=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},y=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},b=e=>{let{componentCls:t}=e,n={};return d.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},x=e=>{let{componentCls:t}=e,n={};return p.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},S=e=>{let{componentCls:t}=e,n={};return f.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},C=l(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,a=i(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[v(a),y(a),b(a),x(a),S(a)]},()=>({}),{resetStyle:!1}),w=u.forwardRef((n,r)=>{let{prefixCls:i,rootClassName:l,className:d,style:f,flex:p,gap:m,vertical:h,orientation:g,component:v=`div`,children:y,...b}=n,{flex:x,direction:S,getPrefixCls:w}=u.useContext(a),T=w(`flex`,i),[E,D]=C(T),[,O]=e(g,h??x?.vertical),k=t(d,l,x?.className,T,E,D,_(T,{...n,vertical:O}),{[`${T}-rtl`]:S===`rtl`,[`${T}-gap-${m}`]:o(m),[`${T}-vertical`]:O}),A={...x?.style,...f};return c(p)&&(A.flex=p),c(m)&&!o(m)&&(A.gap=m),u.createElement(v,{ref:r,className:k,style:A,...s(b,[`justify`,`wrap`,`align`])},y)});export{w as t};
-1
View File
@@ -1 +0,0 @@
import{r as l,j as e,T as d,S as p,w as t,D as o}from"./index-B-sDl1ER.js";import{I as r,X as u}from"./index-duCmqVUU.js";import{C as a}from"./index-CO5DzGxy.js";import"./index-BZjcF0yn.js";import"./tslib.es6-BaFViOhq.js";import"./index-D3yl9SWR.js";import"./progress-C__thZ4V.js";import"./index-C9m5qSM4.js";import"./Table-B11dzOaz.js";import"./index-CeRfFUxJ.js";import"./index-DmtjhyJb.js";const{Title:h,Paragraph:j,Text:i}=d,X=()=>{const[n,c]=l.useState(""),m=l.useRef(void 0),x=[{dataIndex:"systemName",title:"系统名称",valueType:"text",rules:[{required:!0,message:"请输入系统名称"}],fieldProps:{placeholder:"请输入系统名称"}},{dataIndex:"systemIcon",title:"系统图标",rules:[{required:!0,message:"请选择系统图标"}],fieldRender:()=>e.jsx(r,{placeholder:"请选择系统图标"})},{dataIndex:"description",title:"系统描述",valueType:"textarea",fieldProps:{placeholder:"请输入系统描述",rows:4}}];return e.jsxs("div",{children:[e.jsxs(d,{style:{margin:"12px 0 24px 0"},children:[e.jsx(h,{level:2,children:"图标选择器组件示例"}),e.jsx(j,{children:"基于 Ant Design Select + Modal + Tabs 封装的图标选择器组件,支持多分类图标选择。"})]}),e.jsxs(p,{direction:"vertical",size:"large",style:{width:"100%"},children:[e.jsxs(a,{title:"独立使用",bordered:!0,children:[e.jsx(i,{children:"基础用法:"}),e.jsx("div",{className:"mt-2",children:e.jsx(r,{value:n,onChange:s=>{c(s||""),s?t.success(`选中图标: ${s}`):t.info("已清空图标")},placeholder:"请选择图标"})}),e.jsx(o,{}),e.jsx(i,{children:"禁用状态:"}),e.jsx("div",{className:"mt-2",children:e.jsx(r,{value:"HomeOutlined",disabled:!0,placeholder:"禁用状态"})}),e.jsx(o,{}),e.jsx(i,{children:"只读状态:"}),e.jsx("div",{className:"mt-2",children:e.jsx(r,{value:"SettingOutlined",readonly:!0,placeholder:"只读状态"})}),e.jsx(i,{type:"secondary",className:"mt-2 block text-sm",children:"只读模式下不能打开选择弹窗,但可以清空"})]}),e.jsx(a,{title:"在 XinForm 中使用",bordered:!0,children:e.jsx(u,{formRef:m,columns:x,onFinish:async s=>(console.log("XinForm 提交:",s),t.success("提交成功!"),t.info(`系统图标: ${s.systemIcon}`),!0),submitter:{submitText:"提交表单",render:s=>s.submit}})})]})]})};export{X as default};
-1
View File
@@ -1 +0,0 @@
import{F as l,r as c,j as e,T as d,S as g,B as m}from"./index-B-sDl1ER.js";import{I as a}from"./index-BZjcF0yn.js";import{C as p}from"./index-CO5DzGxy.js";import"./tslib.es6-BaFViOhq.js";import"./index-D3yl9SWR.js";import"./progress-C__thZ4V.js";const{Title:h,Paragraph:j}=d,C=()=>{const[t]=l.useForm(),[i,o]=c.useState(null),[r,n]=c.useState([]),x=async()=>{try{const s=await t.validateFields();console.log("Form values:",s),console.log("Single image:",i),console.log("Multiple images:",r)}catch(s){console.error("Validation failed:",s)}},u=()=>{t.resetFields(),o(null),n([])};return e.jsxs("div",{children:[e.jsxs(d,{style:{margin:"12px 0 24px 0"},children:[e.jsx(h,{level:2,children:"图片上传组件示例"}),e.jsx(j,{children:"基于 Ant Design Upload 封装的图片上传组件,支持图片剪裁、多张图片上传、尺寸限制、禁用状态等。"})]}),e.jsx(p,{title:"基础用法",style:{marginBottom:24},children:e.jsxs(l,{form:t,layout:"vertical",children:[e.jsx(l.Item,{label:"单张图片上传",name:"avatar",extra:"支持单张图片上传,最大 5MB,尺寸不超过 1920x1080",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",value:i,onChange:s=>o(s)})}),e.jsx(l.Item,{label:"多张图片上传",name:"gallery",extra:"支持最多 5 张图片上传",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"multiple",maxCount:5,value:r,onChange:s=>n(s)})}),e.jsx(l.Item,{children:e.jsxs(g,{children:[e.jsx(m,{type:"primary",onClick:x,children:"提交"}),e.jsx(m,{onClick:u,children:"重置"})]})})]})}),e.jsx(p,{title:"高级配置",style:{marginBottom:24},children:e.jsxs(l,{layout:"vertical",children:[e.jsx(l.Item,{label:"自定义尺寸限制",extra:"限制图片尺寸为 800x600,大小不超过 2MB",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",maxWidth:800,maxHeight:600,maxSize:2})}),e.jsx(l.Item,{label:"裁剪功能 - 自由裁剪",extra:"启用裁剪功能,可自由调整裁剪区域",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",croppable:!0})}),e.jsx(l.Item,{label:"裁剪功能 - 1:1 正方形",extra:"固定 1:1 比例裁剪,适合头像上传",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",croppable:!0,cropperOptions:{aspect:1}})}),e.jsx(l.Item,{label:"裁剪功能 - 圆形裁剪",extra:"圆形裁剪模式,适合头像上传",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",croppable:!0,cropperOptions:{cropShape:"round",aspect:1}})}),e.jsx(l.Item,{label:"裁剪功能 - 16:9 宽屏",extra:"固定 16:9 比例裁剪,适合横幅图片",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",croppable:!0,cropperOptions:{aspect:16/9}})}),e.jsx(l.Item,{label:"禁用状态",children:e.jsx(a,{action:"/sys/file/list/upload/image",mode:"single",disabled:!0})})]})})]})};export{C as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{z as D,r as t,a5 as I,bg as z,bp as J,bq as K,br as k,L as w,B as U,bs as Y,bt as _,bu as G,J as Q,aA as Z,bv as ee,K as te,bw as ne,bx as oe}from"./index-B-sDl1ER.js";const se=n=>{const{componentCls:e,iconCls:l,antCls:s,zIndexPopup:c,colorText:r,colorWarning:i,marginXXS:o,marginXS:m,fontSize:p,fontWeightStrong:g,colorTextHeading:u}=n;return{[e]:{zIndex:c,[`&${s}-popover`]:{fontSize:p},[`${e}-message`]:{marginBottom:m,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${l}`]:{color:i,fontSize:p,lineHeight:1,marginInlineEnd:m},[`${e}-title`]:{fontWeight:g,color:u,"&:only-child":{fontWeight:"normal"}},[`${e}-description`]:{marginTop:o,color:r}},[`${e}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:m}}}}},re=n=>{const{zIndexPopupBase:e}=n;return{zIndexPopup:e+60}},B=D("Popconfirm",se,re,{resetStyle:!1}),O=n=>{const{prefixCls:e,okButtonProps:l,cancelButtonProps:s,title:c,description:r,cancelText:i,okText:o,okType:m="primary",icon:p=t.createElement(I,null),showCancel:g=!0,close:u,onConfirm:b,onCancel:f,onPopupClick:v,classNames:C,styles:x}=n,{getPrefixCls:S}=t.useContext(z),[d]=J("Popconfirm",K.Popconfirm),P=k(c),y=k(r);return t.createElement("div",{className:`${e}-inner-content`,onClick:v},t.createElement("div",{className:`${e}-message`},p&&t.createElement("span",{className:`${e}-message-icon`},p),t.createElement("div",{className:`${e}-message-text`},P&&t.createElement("div",{className:w(`${e}-title`,C?.title),style:x?.title},P),y&&t.createElement("div",{className:w(`${e}-description`,C?.content),style:x?.content},y))),t.createElement("div",{className:`${e}-buttons`},g&&t.createElement(U,{onClick:f,size:"small",...s},i||d?.cancelText),t.createElement(Y,{buttonProps:{size:"small",..._(m),...l},actionFn:b,close:u,prefixCls:S("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},o||d?.okText)))},ae=n=>{const{prefixCls:e,placement:l,className:s,style:c,...r}=n,{getPrefixCls:i}=t.useContext(z),o=i("popconfirm",e);return B(o),t.createElement(G,{placement:l,className:w(o,s),style:c,content:t.createElement(O,{prefixCls:o,...r})})},le=t.forwardRef((n,e)=>{const{prefixCls:l,placement:s="top",trigger:c,okType:r="primary",icon:i=t.createElement(I,null),children:o,overlayClassName:m,onOpenChange:p,overlayStyle:g,styles:u,arrow:b,classNames:f,...v}=n,{getPrefixCls:C,className:x,style:S,classNames:d,styles:P,arrow:y,trigger:A}=Q("popconfirm"),[W,L]=Z(n.defaultOpen??!1,n.open),R=ee(b,y),T=c||A||"click",$=a=>{L(a),p?.(a)},H=()=>{$(!1)},V=a=>n.onConfirm?.call(void 0,a),X=a=>{$(!1),n.onCancel?.call(void 0,a)},q=a=>{const{disabled:j=!1}=n;j||$(a)},h=C("popconfirm",l),F={...n,placement:s,trigger:T,okType:r,overlayStyle:g,styles:u,classNames:f},[N,E]=te([d,f],[P,u],{props:F}),M=w(h,x,m,N.root);return B(h),t.createElement(ne,{arrow:R,...oe(v,["title"]),trigger:T,placement:s,onOpenChange:q,open:W,ref:e,classNames:{root:M,container:N.container,arrow:N.arrow},styles:{root:{...S,...E.root,...g},container:E.container,arrow:E.arrow},content:t.createElement(O,{okType:r,icon:i,...n,prefixCls:h,close:H,onConfirm:V,onCancel:X,classNames:N,styles:E}),"data-popover-inject":!0},o)}),ce=le;ce._InternalPanelDoNotUseOrYouWillBeFired=ae;export{ce as P};
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{L as x,z as E,G as P,R as i,bg as V,bP as I,dt as p,bx as L,a8 as m}from"./index-B-sDl1ER.js";const u=["wrap","nowrap","wrap-reverse"],d=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],y=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],W=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&u.includes(n)}},z=(e,t)=>{const n={};return y.forEach(s=>{n[`${e}-align-${s}`]=t.align===s}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},R=(e,t)=>{const n={};return d.forEach(s=>{n[`${e}-justify-${s}`]=t.justify===s}),n},A=(e,t)=>x({...W(e,t),...z(e,t),...R(e,t)}),D=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},J=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},M=e=>{const{componentCls:t}=e,n={};return u.forEach(s=>{n[`${t}-wrap-${s}`]={flexWrap:s}}),n},T=e=>{const{componentCls:t}=e,n={};return y.forEach(s=>{n[`${t}-align-${s}`]={alignItems:s}}),n},H=e=>{const{componentCls:t}=e,n={};return d.forEach(s=>{n[`${t}-justify-${s}`]={justifyContent:s}}),n},O=()=>({}),X=E("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:s}=e,a=P(e,{flexGapSM:t,flexGap:n,flexGapLG:s});return[D(a),J(a),M(a),T(a),H(a)]},O,{resetStyle:!1}),B=i.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:s,className:a,style:C,flex:f,gap:r,vertical:$,orientation:S,component:h="div",children:w,...G}=e,{flex:o,direction:j,getPrefixCls:F}=i.useContext(V),l=F("flex",n),[N,b]=X(l),[,g]=I(S,$??o?.vertical),v=x(a,s,o?.className,l,N,b,A(l,{...e,vertical:g}),{[`${l}-rtl`]:j==="rtl",[`${l}-gap-${r}`]:p(r),[`${l}-vertical`]:g}),c={...o?.style,...C};return m(f)&&(c.flex=f),m(r)&&!p(r)&&(c.gap=r),i.createElement(h,{ref:t,className:v,style:c,...L(G,["justify","wrap","align"])},w)});export{B as F};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{u as p,ao as u,ap as m,j as s,aq as h,T as x,ar as y,B as a,as as f}from"./index-B-sDl1ER.js";import{X as g}from"./index-rMui37zI.js";import{B as r}from"./index-CFsVFAkS.js";import"./index-duCmqVUU.js";import"./index-CO5DzGxy.js";import"./index-BZjcF0yn.js";import"./tslib.es6-BaFViOhq.js";import"./index-D3yl9SWR.js";import"./progress-C__thZ4V.js";import"./index-C9m5qSM4.js";import"./Table-B11dzOaz.js";import"./index-CeRfFUxJ.js";import"./index-DmtjhyJb.js";import"./index-CkiGQ3z2.js";import"./index-Bc7ikhKh.js";const{Title:I,Text:j}=x;function F(){const{t:e}=p(),d=u(),o=m(t=>t.initDict),c=[{title:e("dict.id"),dataIndex:"id",hideInForm:!0,width:80,sorter:!0,align:"center"},{title:e("dict.name"),dataIndex:"name",valueType:"text",colProps:{span:12},rules:[{required:!0,message:e("dict.name.required")}]},{title:e("dict.code"),dataIndex:"code",valueType:"text",colProps:{span:12},rules:[{required:!0,message:e("dict.code.required")}]},{title:e("dict.status"),dataIndex:"status",valueType:"select",filters:[{text:e("dict.status.normal"),value:0},{text:e("dict.status.disabled"),value:1}],colProps:{span:12},rules:[{required:!0,message:e("dict.status.required")}],fieldProps:{options:[{label:e("dict.status.normal"),value:0},{label:e("dict.status.disabled"),value:1}]},render:t=>t===0?s.jsx(r,{status:"success",text:e("dict.status.normal")}):s.jsx(r,{status:"error",text:e("dict.status.disabled")})},{title:e("dict.sort"),dataIndex:"sort",valueType:"digit",colProps:{span:12},hideInSearch:!0,fieldProps:{min:0,style:{width:"100%"}}},{title:e("dict.describe"),dataIndex:"describe",valueType:"textarea",colProps:{span:24},hideInSearch:!0,ellipsis:!0},{title:e("dict.createdAt"),dataIndex:"created_at",render:t=>t?h(t).format("YYYY-MM-DD HH:mm"):"-",hideInForm:!0,hideInSearch:!0,width:160}],l=async()=>{await o(),window.$message?.success(e("dict.refreshSuccess"))},n=t=>{d(`/system/dict/item?dictId=${t.id}&dictName=${encodeURIComponent(t.name||"")}&dictCode=${t.code}`)};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-5",children:[s.jsx(I,{level:3,children:e("dict.page.title")}),s.jsx(j,{type:"secondary",children:e("dict.page.description")})]}),s.jsx(g,{api:"/system/dict/list",columns:c,rowKey:"id",accessName:"system.dict.list",searchProps:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:"vertical"},modalProps:{width:800},actionBarRender:t=>[t.add,s.jsx(a,{type:"primary",onClick:l,children:e("dict.refreshCache")},"refresh"),t.keywordSearch],operateProps:{fixed:"right",width:180},scroll:{x:1e3},operateRender:(t,i)=>[s.jsx(y,{title:e("dict.manageItems"),children:s.jsx(a,{type:"default",icon:s.jsx(f,{}),size:"small",onClick:()=>n(t)})}),i.edit,i.del]})]})}export{F as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{f as o,r as u,j as e}from"./index-B-sDl1ER.js";const a=({auth:s,children:t})=>{const r=o(n=>n.access);return u.useMemo(()=>s?r.includes(s):!0,[r,s])?e.jsx(e.Fragment,{children:t}):null};export{a as A};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{j as e,B as o}from"./index-B-sDl1ER.js";import{C as r}from"./index-CO5DzGxy.js";import{R as t}from"./index-CwBuiwuD.js";const n=()=>e.jsx(r,{variant:"borderless",children:e.jsx(t,{title:"Your operation has been executed",extra:e.jsx(o,{type:"primary",children:"Go Console"},"console")})});export{n as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{u as g,ao as y,at as j,r as u,j as a,aq as T,S as P,B as w,au as D,T as m}from"./index-B-sDl1ER.js";import{X as q}from"./index-rMui37zI.js";import{C as S,a as C}from"./index-duCmqVUU.js";import{T as o}from"./index-C9m5qSM4.js";import{B as p}from"./index-CFsVFAkS.js";import"./index-CkiGQ3z2.js";import"./index-CO5DzGxy.js";import"./index-Bc7ikhKh.js";import"./Table-B11dzOaz.js";import"./index-CeRfFUxJ.js";import"./index-DmtjhyJb.js";import"./index-BZjcF0yn.js";import"./tslib.es6-BaFViOhq.js";import"./index-D3yl9SWR.js";import"./progress-C__thZ4V.js";const I=[{label:"默认",value:"default"},{label:"蓝色",value:"blue"},{label:"绿色",value:"green"},{label:"红色",value:"red"},{label:"橙色",value:"orange"},{label:"紫色",value:"purple"},{label:"青色",value:"cyan"},{label:"金色",value:"gold"},{label:"绿黄色",value:"lime"},{label:"极客蓝",value:"geekblue"},{label:"品红",value:"magenta"},{label:"火山红",value:"volcano"}];function $(){const{t:e}=g(),v=y(),[l]=j(),s=l.get("dictId"),r=l.get("dictName")||"",d=l.get("dictCode")||"",[i,x]=u.useState({id:s?parseInt(s):0,name:decodeURIComponent(r),code:d});u.useEffect(()=>{s&&x({id:parseInt(s),name:decodeURIComponent(r),code:d})},[s,r,d]);const f=[{title:e("dictItem.id"),dataIndex:"id",hideInForm:!0,width:80,align:"center"},{title:e("dictItem.label"),dataIndex:"label",valueType:"text",rules:[{required:!0,message:e("dictItem.label.required")}]},{title:e("dictItem.value"),dataIndex:"value",valueType:"text",rules:[{required:!0,message:e("dictItem.value.required")}]},{title:e("dictItem.color"),dataIndex:"color",valueType:"select",colProps:{span:12},initialValue:"default",fieldProps:{options:I.map(t=>({label:a.jsx(o,{color:t.value,children:t.label}),value:t.value}))},render:t=>{const c=I.find(n=>n.value===t);return a.jsx(o,{color:t,children:c?.label||t})}},{title:e("dictItem.isDefault"),dataIndex:"is_default",valueType:"select",colProps:{span:12},initialValue:0,rules:[{required:!0,message:e("dictItem.isDefault.required")}],fieldProps:{options:[{label:e("dictItem.isDefault.yes"),value:1},{label:e("dictItem.isDefault.no"),value:0}]},render:t=>t===1?a.jsx(o,{color:"blue",children:e("dictItem.isDefault.yes")}):e("dictItem.isDefault.no")},{title:e("dictItem.sort"),dataIndex:"sort",valueType:"digit",colProps:{span:12},hideInSearch:!0,initialValue:0,fieldProps:{min:0,style:{width:"100%"}}},{title:e("dictItem.status"),dataIndex:"status",valueType:"select",colProps:{span:12},initialValue:0,rules:[{required:!0,message:e("dictItem.status.required")}],fieldProps:{options:[{label:e("dictItem.status.normal"),value:0},{label:e("dictItem.status.disabled"),value:1}]},render:t=>t===0?a.jsx(p,{status:"success",text:e("dictItem.status.normal")}):a.jsx(p,{status:"error",text:e("dictItem.status.disabled")})},{title:e("dictItem.createTime"),dataIndex:"created_at",render:t=>t?T(t).format("YYYY-MM-DD HH:mm"):"-",hideInForm:!0,hideInSearch:!0,width:160}],b=()=>{v("/system/dict")};return i.id?a.jsxs(P,{orientation:"vertical",style:{width:"100%"},children:[a.jsxs("div",{children:[a.jsx(w,{type:"link",onClick:b,icon:a.jsx(D,{}),classNames:{root:"p-0 mb-2"},children:e("dict.backToList")}),a.jsxs(m.Title,{level:3,children:[a.jsxs("span",{className:"mr-2",children:[e("dict.itemManagement")," - ",i.name]}),a.jsx(m.Text,{type:"secondary",children:i.code})]})]}),a.jsx(q,{api:"/system/dict/item",columns:f,rowKey:"id",accessName:"system.dict.item",formProps:{grid:!0,colProps:{span:12},layout:"vertical",rowProps:{gutter:[30,0]}},modalProps:{width:600},requestParams:t=>({...t,dict_id:i.id}),searchShow:!1,handleFinish:async(t,c,n,h)=>(c==="create"?(await S("/system/dict/item",{...t,dict_id:i.id}),window.$message?.success(e("dict.item.createSuccess"))):(await C("/system/dict/item/"+h?.id,{...t,dict_id:i.id}),window.$message?.success(e("dict.item.updateSuccess"))),!0)})]}):a.jsx("div",{style:{padding:50,textAlign:"center"},children:a.jsx("div",{style:{marginTop:50,color:"#999"},children:e("dict.selectDictFirst")})})}export{$ as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./badge-C6DVGO8T.js";import{o as t,r as n}from"./XinForm-DX04WSwD.js";import{t as r}from"./tag-Bn-IyYw0.js";import{Ca as i,Cn as a,Ea as o,Lt as s,ba as c,c as l,gn as u,hn as d,rt as f,s as p,xa as m}from"./index-DThTpSPU.js";import{t as h}from"./XinTable-D_6_7i3V.js";var g=[{label:`默认`,value:`default`},{label:`蓝色`,value:`blue`},{label:`绿色`,value:`green`},{label:`红色`,value:`red`},{label:`橙色`,value:`orange`},{label:`紫色`,value:`purple`},{label:`青色`,value:`cyan`},{label:`金色`,value:`gold`},{label:`绿黄色`,value:`lime`},{label:`极客蓝`,value:`geekblue`},{label:`品红`,value:`magenta`},{label:`火山红`,value:`volcano`}],_=o(i(),1),v=o(d(),1),y=p();function b(){let{t:i}=l(),o=c(),[d]=m(),p=d.get(`dictId`),b=d.get(`dictName`)||``,x=d.get(`dictCode`)||``,[S,C]=(0,_.useState)({id:p?parseInt(p):0,name:decodeURIComponent(b),code:x});(0,_.useEffect)(()=>{p&&C({id:parseInt(p),name:decodeURIComponent(b),code:x})},[p,b,x]);let w=[{title:i(`system.system.dict.item.id`),dataIndex:`id`,hideInForm:!0,width:80,align:`center`},{title:i(`system.system.dict.item.label`),dataIndex:`label`,valueType:`text`,rules:[{required:!0,message:i(`system.system.dict.item.label.required`)}]},{title:i(`system.system.dict.item.value`),dataIndex:`value`,valueType:`text`,rules:[{required:!0,message:i(`system.system.dict.item.value.required`)}]},{title:i(`system.system.dict.item.color`),dataIndex:`color`,valueType:`select`,colProps:{span:12},initialValue:`default`,fieldProps:{options:g.map(e=>({label:(0,y.jsx)(r,{color:e.value,children:e.label}),value:e.value}))},render:e=>(0,y.jsx)(r,{color:e,children:g.find(t=>t.value===e)?.label||e})},{title:i(`system.system.dict.item.isDefault`),dataIndex:`is_default`,valueType:`select`,colProps:{span:12},initialValue:0,rules:[{required:!0,message:i(`system.system.dict.item.isDefault.required`)}],fieldProps:{options:[{label:i(`system.system.dict.item.isDefault.yes`),value:1},{label:i(`system.system.dict.item.isDefault.no`),value:0}]},render:e=>e===1?(0,y.jsx)(r,{color:`blue`,children:i(`system.system.dict.item.isDefault.yes`)}):i(`system.system.dict.item.isDefault.no`)},{title:i(`system.system.dict.item.sort`),dataIndex:`sort`,valueType:`digit`,colProps:{span:12},hideInSearch:!0,initialValue:0,fieldProps:{min:0,style:{width:`100%`}}},{title:i(`system.system.dict.item.status`),dataIndex:`status`,valueType:`select`,colProps:{span:12},initialValue:0,rules:[{required:!0,message:i(`system.system.dict.item.status.required`)}],fieldProps:{options:[{label:i(`system.system.dict.item.status.normal`),value:0},{label:i(`system.system.dict.item.status.disabled`),value:1}]},render:t=>t===0?(0,y.jsx)(e,{status:`success`,text:i(`system.system.dict.item.status.normal`)}):(0,y.jsx)(e,{status:`error`,text:i(`system.system.dict.item.status.disabled`)})},{title:i(`system.system.dict.item.createTime`),dataIndex:`created_at`,render:e=>e?(0,v.default)(e).format(`YYYY-MM-DD HH:mm`):`-`,hideInForm:!0,hideInSearch:!0,width:160}];return S.id?(0,y.jsxs)(s,{orientation:`vertical`,style:{width:`100%`},children:[(0,y.jsxs)(`div`,{children:[(0,y.jsx)(u,{type:`link`,onClick:()=>{o(`/system/dict`)},icon:(0,y.jsx)(a,{}),classNames:{root:`p-0 mb-2`},children:i(`system.dict.backToList`)}),(0,y.jsxs)(f.Title,{level:3,children:[(0,y.jsxs)(`span`,{className:`mr-2`,children:[i(`system.dict.itemManagement`),` - `,S.name]}),(0,y.jsx)(f.Text,{type:`secondary`,children:S.code})]})]}),(0,y.jsx)(h,{api:`/system/dict/item`,columns:w,rowKey:`id`,accessName:`system.dict.item`,formProps:{grid:!0,colProps:{span:12},layout:`vertical`,rowProps:{gutter:[30,0]}},modalProps:{width:600},requestParams:e=>({...e,dict_id:S.id}),searchShow:!1,handleFinish:async(e,r,a,o)=>(r===`create`?(await n(`/system/dict/item`,{...e,dict_id:S.id}),window.$message?.success(i(`system.dict.item.createSuccess`))):(await t(`/system/dict/item/`+o?.id,{...e,dict_id:S.id}),window.$message?.success(i(`system.dict.item.updateSuccess`))),!0)})]}):(0,y.jsx)(`div`,{style:{padding:50,textAlign:`center`},children:(0,y.jsx)(`div`,{style:{marginTop:50,color:`#999`},children:i(`system.dict.selectDictFirst`)})})}export{b as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/withdrawal`,columns:[{title:t(`merchant.withdrawal.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.withdrawal.withdraw_no`),dataIndex:`withdraw_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.withdrawal.merchant_id`),dataIndex:`merchant_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.withdrawal.amount`),dataIndex:`amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.withdrawal.channel`),dataIndex:`channel`,valueType:`select`,fieldProps:{options:[{value:`wechat`,label:t(`merchant.withdrawal.channel.wechat`)},{value:`alipay`,label:t(`merchant.withdrawal.channel.alipay`)},{value:`bank`,label:t(`merchant.withdrawal.channel.bank`)}]},render:n=>{let r={wechat:`green`,alipay:`blue`,bank:`orange`},i={wechat:t(`merchant.withdrawal.channel.wechat`),alipay:t(`merchant.withdrawal.channel.alipay`),bank:t(`merchant.withdrawal.channel.bank`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??n})},filters:[{text:t(`merchant.withdrawal.channel.wechat`),value:`wechat`},{text:t(`merchant.withdrawal.channel.alipay`),value:`alipay`},{text:t(`merchant.withdrawal.channel.bank`),value:`bank`}],align:`center`},{title:t(`merchant.withdrawal.status`),dataIndex:`status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.withdrawal.status.0`)},{value:1,label:t(`merchant.withdrawal.status.1`)},{value:2,label:t(`merchant.withdrawal.status.2`)},{value:3,label:t(`merchant.withdrawal.status.3`)}]},render:n=>{let r={0:`warning`,1:`processing`,2:`success`,3:`error`},i={0:t(`merchant.withdrawal.status.0`),1:t(`merchant.withdrawal.status.1`),2:t(`merchant.withdrawal.status.2`),3:t(`merchant.withdrawal.status.3`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.withdrawal.status.0`),value:0},{text:t(`merchant.withdrawal.status.1`),value:1},{text:t(`merchant.withdrawal.status.2`),value:2},{text:t(`merchant.withdrawal.status.3`),value:3}],align:`center`},{title:t(`merchant.withdrawal.remark`),dataIndex:`remark`,valueType:`text`,hideInSearch:!0,align:`center`},{title:t(`merchant.withdrawal.processed_at`),dataIndex:`processed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.withdrawal.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.withdrawal`,addShow:!1,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.withdrawal.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.withdrawal.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/order`,columns:[{title:t(`merchant.order.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.order.order_no`),dataIndex:`order_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.order.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.order.merchant_id`),dataIndex:`merchant_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.order.total_amount`),dataIndex:`total_amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.order.discount_amount`),dataIndex:`discount_amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.order.delivery_fee`),dataIndex:`delivery_fee`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.order.payment_amount`),dataIndex:`payment_amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.order.pay_type`),dataIndex:`pay_type`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.order.pay_type.0`)},{value:1,label:t(`merchant.order.pay_type.1`)}]},render:n=>{let r={0:`default`,1:`blue`},i={0:t(`merchant.order.pay_type.0`),1:t(`merchant.order.pay_type.1`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.order.pay_type.0`),value:0},{text:t(`merchant.order.pay_type.1`),value:1}],align:`center`},{title:t(`merchant.order.pay_status`),dataIndex:`pay_status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.order.pay_status.0`)},{value:1,label:t(`merchant.order.pay_status.1`)},{value:2,label:t(`merchant.order.pay_status.2`)},{value:3,label:t(`merchant.order.pay_status.3`)}]},render:n=>{let r={0:`warning`,1:`success`,2:`processing`,3:`default`},i={0:t(`merchant.order.pay_status.0`),1:t(`merchant.order.pay_status.1`),2:t(`merchant.order.pay_status.2`),3:t(`merchant.order.pay_status.3`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.order.pay_status.0`),value:0},{text:t(`merchant.order.pay_status.1`),value:1},{text:t(`merchant.order.pay_status.2`),value:2},{text:t(`merchant.order.pay_status.3`),value:3}],align:`center`},{title:t(`merchant.order.status`),dataIndex:`status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.order.status.0`)},{value:1,label:t(`merchant.order.status.1`)},{value:2,label:t(`merchant.order.status.2`)},{value:3,label:t(`merchant.order.status.3`)},{value:4,label:t(`merchant.order.status.4`)}]},render:n=>{let r={0:`warning`,1:`processing`,2:`processing`,3:`success`,4:`default`},i={0:t(`merchant.order.status.0`),1:t(`merchant.order.status.1`),2:t(`merchant.order.status.2`),3:t(`merchant.order.status.3`),4:t(`merchant.order.status.4`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.order.status.0`),value:0},{text:t(`merchant.order.status.1`),value:1},{text:t(`merchant.order.status.2`),value:2},{text:t(`merchant.order.status.3`),value:3},{text:t(`merchant.order.status.4`),value:4}],align:`center`},{title:t(`merchant.order.paid_at`),dataIndex:`paid_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.order.completed_at`),dataIndex:`completed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.order.remark`),dataIndex:`remark`,valueType:`text`,hideInSearch:!0,align:`center`},{title:t(`merchant.order.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.order`,scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.order.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.order.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant-portal/order`,columns:[{title:t(`merchant.portal.order.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.portal.order.order_no`),dataIndex:`order_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.order.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.order.total_amount`),dataIndex:`total_amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.portal.order.discount_amount`),dataIndex:`discount_amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.portal.order.delivery_fee`),dataIndex:`delivery_fee`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.portal.order.payment_amount`),dataIndex:`payment_amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.portal.order.pay_type`),dataIndex:`pay_type`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.portal.order.pay_type.0`)},{value:1,label:t(`merchant.portal.order.pay_type.1`)}]},render:n=>{let r={0:`default`,1:`blue`},i={0:t(`merchant.portal.order.pay_type.0`),1:t(`merchant.portal.order.pay_type.1`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.portal.order.pay_type.0`),value:0},{text:t(`merchant.portal.order.pay_type.1`),value:1}],align:`center`},{title:t(`merchant.portal.order.pay_status`),dataIndex:`pay_status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.portal.order.pay_status.0`)},{value:1,label:t(`merchant.portal.order.pay_status.1`)},{value:2,label:t(`merchant.portal.order.pay_status.2`)},{value:3,label:t(`merchant.portal.order.pay_status.3`)}]},render:n=>{let r={0:`warning`,1:`success`,2:`processing`,3:`default`},i={0:t(`merchant.portal.order.pay_status.0`),1:t(`merchant.portal.order.pay_status.1`),2:t(`merchant.portal.order.pay_status.2`),3:t(`merchant.portal.order.pay_status.3`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.portal.order.pay_status.0`),value:0},{text:t(`merchant.portal.order.pay_status.1`),value:1},{text:t(`merchant.portal.order.pay_status.2`),value:2},{text:t(`merchant.portal.order.pay_status.3`),value:3}],align:`center`},{title:t(`merchant.portal.order.status`),dataIndex:`status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.portal.order.status.0`)},{value:1,label:t(`merchant.portal.order.status.1`)},{value:2,label:t(`merchant.portal.order.status.2`)},{value:3,label:t(`merchant.portal.order.status.3`)},{value:4,label:t(`merchant.portal.order.status.4`)}]},render:n=>{let r={0:`warning`,1:`processing`,2:`processing`,3:`success`,4:`default`},i={0:t(`merchant.portal.order.status.0`),1:t(`merchant.portal.order.status.1`),2:t(`merchant.portal.order.status.2`),3:t(`merchant.portal.order.status.3`),4:t(`merchant.portal.order.status.4`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.portal.order.status.0`),value:0},{text:t(`merchant.portal.order.status.1`),value:1},{text:t(`merchant.portal.order.status.2`),value:2},{text:t(`merchant.portal.order.status.3`),value:3},{text:t(`merchant.portal.order.status.4`),value:4}],align:`center`},{title:t(`merchant.portal.order.paid_at`),dataIndex:`paid_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.portal.order.completed_at`),dataIndex:`completed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.portal.order.remark`),dataIndex:`remark`,valueType:`text`,hideInSearch:!0,align:`center`},{title:t(`merchant.portal.order.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.portal.order`,addShow:!1,editShow:!1,scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.portal.order.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.portal.order.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/task/order`,columns:[{title:t(`task.order_errand.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`task.order_errand.order_no`),dataIndex:`order_no`,valueType:`text`,align:`center`},{title:t(`task.order_errand.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`task.order_errand.runner_id`),dataIndex:`runner_id`,valueType:`text`,align:`center`},{title:t(`task.order_errand.title`),dataIndex:`title`,valueType:`text`,align:`center`},{title:t(`task.order_errand.price`),dataIndex:`price`,hideInForm:!0,align:`center`,render:e=>`¥${e||`0.00`}`},{title:t(`task.order_errand.contact_name`),dataIndex:`contact_name`,valueType:`text`,align:`center`},{title:t(`task.order_errand.contact_mobile`),dataIndex:`contact_mobile`,valueType:`text`,align:`center`},{title:t(`task.order_errand.deadline`),dataIndex:`deadline`,valueType:`text`,align:`center`},{title:t(`task.order_errand.pay_type`),dataIndex:`pay_type`,valueType:`text`,align:`center`},{title:t(`task.order_errand.pay_status`),dataIndex:`pay_status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`task.order_errand.pay_status.0`)},{value:1,label:t(`task.order_errand.pay_status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`task.order_errand.pay_status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`task.order_errand.pay_status.0`)}),filters:[{text:t(`task.order_errand.pay_status.0`),value:0},{text:t(`task.order_errand.pay_status.1`),value:1}],align:`center`},{title:t(`task.order_errand.status`),dataIndex:`status`,valueType:`text`,align:`center`},{title:t(`task.order_errand.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`task.order_errand.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`task.order`,requestParams:{category_slug:`errand`},scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`task.order_errand.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`task.order_errand.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/order-payment`,columns:[{title:t(`merchant.order_payment.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.order_payment.payment_no`),dataIndex:`payment_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.order_payment.order_id`),dataIndex:`order_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.order_payment.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.order_payment.amount`),dataIndex:`amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.order_payment.pay_type`),dataIndex:`pay_type`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.order_payment.pay_type.0`)},{value:1,label:t(`merchant.order_payment.pay_type.1`)}]},render:n=>{let r={0:`default`,1:`blue`},i={0:t(`merchant.order_payment.pay_type.0`),1:t(`merchant.order_payment.pay_type.1`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.order_payment.pay_type.0`),value:0},{text:t(`merchant.order_payment.pay_type.1`),value:1}],align:`center`},{title:t(`merchant.order_payment.status`),dataIndex:`status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.order_payment.status.0`)},{value:1,label:t(`merchant.order_payment.status.1`)},{value:2,label:t(`merchant.order_payment.status.2`)}]},render:n=>{let r={0:`warning`,1:`success`,2:`default`},i={0:t(`merchant.order_payment.status.0`),1:t(`merchant.order_payment.status.1`),2:t(`merchant.order_payment.status.2`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.order_payment.status.0`),value:0},{text:t(`merchant.order_payment.status.1`),value:1},{text:t(`merchant.order_payment.status.2`),value:2}],align:`center`},{title:t(`merchant.order_payment.paid_at`),dataIndex:`paid_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.order_payment.refund_at`),dataIndex:`refund_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.order_payment.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.order_payment`,addShow:!1,editShow:!1,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.order_payment.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.order_payment.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/task/order`,columns:[{title:t(`task.order_pickup.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`task.order_pickup.order_no`),dataIndex:`order_no`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.runner_id`),dataIndex:`runner_id`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.title`),dataIndex:`title`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.price`),dataIndex:`price`,hideInForm:!0,align:`center`,render:e=>`¥${e||`0.00`}`},{title:t(`task.order_pickup.contact_name`),dataIndex:`contact_name`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.contact_mobile`),dataIndex:`contact_mobile`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.deadline`),dataIndex:`deadline`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.pay_type`),dataIndex:`pay_type`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.pay_status`),dataIndex:`pay_status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`task.order_pickup.pay_status.0`)},{value:1,label:t(`task.order_pickup.pay_status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`task.order_pickup.pay_status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`task.order_pickup.pay_status.0`)}),filters:[{text:t(`task.order_pickup.pay_status.0`),value:0},{text:t(`task.order_pickup.pay_status.1`),value:1}],align:`center`},{title:t(`task.order_pickup.status`),dataIndex:`status`,valueType:`text`,align:`center`},{title:t(`task.order_pickup.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`task.order_pickup.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`task.order`,requestParams:{category_slug:`pickup`},scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`task.order_pickup.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`task.order_pickup.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/task/order`,columns:[{title:t(`task.order_rental.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`task.order_rental.order_no`),dataIndex:`order_no`,valueType:`text`,align:`center`},{title:t(`task.order_rental.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`},{title:t(`task.order_rental.runner_id`),dataIndex:`runner_id`,valueType:`text`,align:`center`},{title:t(`task.order_rental.title`),dataIndex:`title`,valueType:`text`,align:`center`},{title:t(`task.order_rental.price`),dataIndex:`price`,hideInForm:!0,align:`center`,render:e=>`¥${e||`0.00`}`},{title:t(`task.order_rental.contact_name`),dataIndex:`contact_name`,valueType:`text`,align:`center`},{title:t(`task.order_rental.contact_mobile`),dataIndex:`contact_mobile`,valueType:`text`,align:`center`},{title:t(`task.order_rental.deadline`),dataIndex:`deadline`,valueType:`text`,align:`center`},{title:t(`task.order_rental.pay_type`),dataIndex:`pay_type`,valueType:`text`,align:`center`},{title:t(`task.order_rental.pay_status`),dataIndex:`pay_status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`task.order_rental.pay_status.0`)},{value:1,label:t(`task.order_rental.pay_status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`task.order_rental.pay_status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`task.order_rental.pay_status.0`)}),filters:[{text:t(`task.order_rental.pay_status.0`),value:0},{text:t(`task.order_rental.pay_status.1`),value:1}],align:`center`},{title:t(`task.order_rental.status`),dataIndex:`status`,valueType:`text`,align:`center`},{title:t(`task.order_rental.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`task.order_rental.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`task.order`,requestParams:{category_slug:`rental`},scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`task.order_rental.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`task.order_rental.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant-portal/payment`,columns:[{title:t(`merchant.portal.payment.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.portal.payment.payment_no`),dataIndex:`payment_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.payment.order_id`),dataIndex:`order_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.payment.amount`),dataIndex:`amount`,valueType:`text`,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.portal.payment.pay_type`),dataIndex:`pay_type`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.portal.payment.pay_type.0`)},{value:1,label:t(`merchant.portal.payment.pay_type.1`)}]},render:n=>{let r={0:`default`,1:`blue`},i={0:t(`merchant.portal.payment.pay_type.0`),1:t(`merchant.portal.payment.pay_type.1`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.portal.payment.pay_type.0`),value:0},{text:t(`merchant.portal.payment.pay_type.1`),value:1}],align:`center`},{title:t(`merchant.portal.payment.status`),dataIndex:`status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.portal.payment.status.0`)},{value:1,label:t(`merchant.portal.payment.status.1`)},{value:2,label:t(`merchant.portal.payment.status.2`)}]},render:n=>{let r={0:`warning`,1:`success`,2:`error`},i={0:t(`merchant.portal.payment.status.0`),1:t(`merchant.portal.payment.status.1`),2:t(`merchant.portal.payment.status.2`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.portal.payment.status.0`),value:0},{text:t(`merchant.portal.payment.status.1`),value:1},{text:t(`merchant.portal.payment.status.2`),value:2}],align:`center`},{title:t(`merchant.portal.payment.paid_at`),dataIndex:`paid_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.portal.payment.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.portal.payment`,addShow:!1,editShow:!1,scroll:{x:1e3},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.portal.payment.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.portal.payment.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{An as e,Bi as t,Ca as n,Ea as r,En as i,Gr as a,Li as o,Pn as s,Ri as c,Sr as l,Tn as u,Wr as d,Yi as f,Yr as p,cr as m,di as h,ii as g,pa as _,sr as v}from"./index-DThTpSPU.js";var y=r(n()),b=h(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),x=e=>{let{prefixCls:n,okButtonProps:r,cancelButtonProps:i,title:c,description:u,cancelText:f,okText:p,okType:h=`primary`,icon:_=y.createElement(g,null),showCancel:b=!0,close:x,onConfirm:S,onCancel:C,onPopupClick:w,classNames:T,styles:E}=e,{getPrefixCls:D}=y.useContext(o),[O]=d(`Popconfirm`,a.Popconfirm),k=s(c),A=s(u);return y.createElement(`div`,{className:`${n}-inner-content`,onClick:w},y.createElement(`div`,{className:`${n}-message`},_&&y.createElement(`span`,{className:t(`${n}-message-icon`,T?.icon),style:E?.icon},_),y.createElement(`div`,{className:`${n}-message-text`},k&&y.createElement(`div`,{className:t(`${n}-title`,T?.title),style:E?.title},k),A&&y.createElement(`div`,{className:t(`${n}-description`,T?.content),style:E?.content},A))),y.createElement(`div`,{className:`${n}-buttons`},b&&y.createElement(m,{onClick:C,size:`small`,...i},f||O?.cancelText),y.createElement(v,{buttonProps:{size:`small`,...l(h),...r},actionFn:S,close:x,prefixCls:D(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},p||O?.okText)))},S=e=>{let{prefixCls:n,placement:r,className:a,style:s,...c}=e,{getPrefixCls:l}=y.useContext(o),u=l(`popconfirm`,n);return b(u),y.createElement(i,{placement:r,className:t(u,a),style:s,content:y.createElement(x,{prefixCls:u,...c})})},C=y.forwardRef((n,r)=>{let{prefixCls:i,placement:a=`top`,trigger:o,okType:s=`primary`,icon:l=y.createElement(g,null),children:d,overlayClassName:m,onOpenChange:h,overlayStyle:v,styles:S,arrow:C,classNames:w,...T}=n,{getPrefixCls:E,className:D,style:O,classNames:k,styles:A,arrow:j,trigger:M}=c(`popconfirm`),[N,P]=_(n.defaultOpen??!1,n.open),F=e(C,j),I=o||M||`click`,L=e=>{P(e),h?.(e)},R=()=>{L(!1)},z=e=>n.onConfirm?.call(void 0,e),B=e=>{L(!1),n.onCancel?.call(void 0,e)},V=e=>{let{disabled:t=!1}=n;t||L(e)},H=E(`popconfirm`,i),U={...n,placement:a,trigger:I,okType:s,overlayStyle:v,styles:S,classNames:w},[W,G]=p([k,w],[A,S],{props:U}),K=t(H,D,m,W.root);return b(H),y.createElement(u,{arrow:F,...f(T,[`title`]),trigger:I,placement:a,onOpenChange:V,open:N,ref:r,classNames:{root:K,container:W.container,arrow:W.arrow},styles:{root:{...O,...G.root,...v},container:G.container,arrow:G.arrow},content:y.createElement(x,{okType:s,icon:l,...n,prefixCls:H,close:R,onConfirm:z,onCancel:B,classNames:W,styles:G}),"data-popover-inject":!0},d)});C._InternalPanelDoNotUseOrYouWillBeFired=S;export{C as t};
+1
View File
@@ -0,0 +1 @@
import{Ca as e,Ea as t,c as n,hn as r,rt as i,s as a,t as o}from"./index-DThTpSPU.js";import{t as s}from"./XinTable-D_6_7i3V.js";e();var c=t(r(),1),l=t(o(),1),u=a(),{Title:d,Text:f}=i;c.default.extend(l.default);var p=()=>{let{t:e}=n(),t={api:`/forum/post-favorite`,columns:[{title:e(`forum.post-favorite.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:e(`forum.post-favorite.post_id`),dataIndex:`post_id`,valueType:`text`,align:`center`},{title:e(`forum.post-favorite.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`forum.post-favorite.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.post-favorite`,createShow:!1,editShow:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:500},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mb-5`,children:[(0,u.jsx)(d,{level:3,children:e(`forum.post-favorite.page.title`)}),(0,u.jsx)(f,{type:`secondary`,children:e(`forum.post-favorite.page.description`)})]}),(0,u.jsx)(s,{...t})]})};export{p as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/forum/post`,columns:[{title:t(`forum.post.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`forum.post.title`),dataIndex:`title`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`forum.post.title.required`)}]},{title:t(`forum.post.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,required:!0,hideInSearch:!0},{title:t(`forum.post.category_id`),dataIndex:`category_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.post.content`),dataIndex:`content`,valueType:`text`,hideInTable:!0,hideInSearch:!0,required:!0,rules:[{required:!0,message:t(`forum.post.content.required`)}]},{title:t(`forum.post.view_count`),dataIndex:`view_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.comment_count`),dataIndex:`comment_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.like_count`),dataIndex:`like_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.favorite_count`),dataIndex:`favorite_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.is_hot`),dataIndex:`is_hot`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.post.is_hot.0`)},{value:1,label:t(`forum.post.is_hot.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`red`,children:t(`forum.post.is_hot.1`)}):(0,d.jsx)(e,{children:t(`forum.post.is_hot.0`)}),filters:[{text:t(`forum.post.is_hot.0`),value:0},{text:t(`forum.post.is_hot.1`),value:1}],align:`center`},{title:t(`forum.post.is_top`),dataIndex:`is_top`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.post.is_top.0`)},{value:1,label:t(`forum.post.is_top.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`blue`,children:t(`forum.post.is_top.1`)}):(0,d.jsx)(e,{children:t(`forum.post.is_top.0`)}),filters:[{text:t(`forum.post.is_top.0`),value:0},{text:t(`forum.post.is_top.1`),value:1}],align:`center`},{title:t(`forum.post.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.post.status.0`)},{value:1,label:t(`forum.post.status.1`)},{value:2,label:t(`forum.post.status.2`)}]},render:n=>{let r={0:`default`,1:`success`,2:`warning`},i={0:t(`forum.post.status.0`),1:t(`forum.post.status.1`),2:t(`forum.post.status.2`)};return(0,d.jsx)(e,{color:r[n]||`default`,children:i[n]||`-`})},filters:[{text:t(`forum.post.status.0`),value:0},{text:t(`forum.post.status.1`),value:1},{text:t(`forum.post.status.2`),value:2}],align:`center`},{title:t(`forum.post.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`forum.post.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.post`,scroll:{x:1600},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`forum.post.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`forum.post.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{Ca as e,Ea as t,c as n,hn as r,rt as i,s as a,t as o}from"./index-DThTpSPU.js";import{t as s}from"./XinTable-D_6_7i3V.js";e();var c=t(r(),1),l=t(o(),1),u=a(),{Title:d,Text:f}=i;c.default.extend(l.default);var p=()=>{let{t:e}=n(),t={api:`/forum/post-like`,columns:[{title:e(`forum.post-like.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:e(`forum.post-like.post_id`),dataIndex:`post_id`,valueType:`text`,align:`center`},{title:e(`forum.post-like.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`forum.post-like.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.post-like`,createShow:!1,editShow:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:500},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mb-5`,children:[(0,u.jsx)(d,{level:3,children:e(`forum.post-like.page.title`)}),(0,u.jsx)(f,{type:`secondary`,children:e(`forum.post-like.page.description`)})]}),(0,u.jsx)(s,{...t})]})};export{p as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/print-task`,columns:[{title:t(`merchant.print-task.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.print-task.printer_id`),dataIndex:`printer_id`,valueType:`text`,align:`center`},{title:t(`merchant.print-task.order_id`),dataIndex:`order_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.print-task.content`),dataIndex:`content`,valueType:`text`,hideInTable:!0,hideInSearch:!0},{title:t(`merchant.print-task.copies`),dataIndex:`copies`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.print-task.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.print-task.status.0`)},{value:1,label:t(`merchant.print-task.status.1`)},{value:2,label:t(`merchant.print-task.status.2`)},{value:3,label:t(`merchant.print-task.status.3`)}]},render:n=>{let r={0:`default`,1:`processing`,2:`success`,3:`error`},i={0:t(`merchant.print-task.status.0`),1:t(`merchant.print-task.status.1`),2:t(`merchant.print-task.status.2`),3:t(`merchant.print-task.status.3`)};return(0,d.jsx)(e,{color:r[n]||`default`,children:i[n]||`-`})},filters:[{text:t(`merchant.print-task.status.0`),value:0},{text:t(`merchant.print-task.status.1`),value:1},{text:t(`merchant.print-task.status.2`),value:2},{text:t(`merchant.print-task.status.3`),value:3}],align:`center`},{title:t(`merchant.print-task.error_msg`),dataIndex:`error_msg`,valueType:`text`,hideInSearch:!0,align:`center`},{title:t(`merchant.print-task.printed_at`),dataIndex:`printed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.print-task.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.print-task`,createShow:!1,editShow:!1,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.print-task.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.print-task.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/printer`,columns:[{title:t(`merchant.printer.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.printer.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.printer.name.required`)}]},{title:t(`merchant.printer.merchant_id`),dataIndex:`merchant_id`,valueType:`text`,align:`center`,required:!0},{title:t(`merchant.printer.brand`),dataIndex:`brand`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.printer.model`),dataIndex:`model`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.printer.device_no`),dataIndex:`device_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.printer.secret_key`),dataIndex:`secret_key`,valueType:`password`,hideInTable:!0,hideInSearch:!0},{title:t(`merchant.printer.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.printer.status.0`)},{value:1,label:t(`merchant.printer.status.1`)},{value:2,label:t(`merchant.printer.status.2`)}]},render:n=>{let r={0:`default`,1:`success`,2:`error`},i={0:t(`merchant.printer.status.0`),1:t(`merchant.printer.status.1`),2:t(`merchant.printer.status.2`)};return(0,d.jsx)(e,{color:r[n]||`default`,children:i[n]||`-`})},filters:[{text:t(`merchant.printer.status.0`),value:0},{text:t(`merchant.printer.status.1`),value:1},{text:t(`merchant.printer.status.2`),value:2}],align:`center`},{title:t(`merchant.printer.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.printer.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.printer`,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:700},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.printer.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.printer.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant-portal/printer`,columns:[{title:t(`merchant.portal.printer.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.portal.printer.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.portal.printer.name.required`)}]},{title:t(`merchant.portal.printer.brand`),dataIndex:`brand`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.printer.model`),dataIndex:`model`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.printer.device_no`),dataIndex:`device_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.printer.secret_key`),dataIndex:`secret_key`,valueType:`password`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.printer.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.portal.printer.status.0`)},{value:1,label:t(`merchant.portal.printer.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`merchant.portal.printer.status.1`)}):(0,d.jsx)(e,{color:`default`,children:t(`merchant.portal.printer.status.0`)}),filters:[{text:t(`merchant.portal.printer.status.0`),value:0},{text:t(`merchant.portal.printer.status.1`),value:1}],align:`center`},{title:t(`merchant.portal.printer.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.portal.printer.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.portal.printer`,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.portal.printer.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.portal.printer.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant-portal/product`,columns:[{title:t(`merchant.portal.product.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.portal.product.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.portal.product.name.required`)}]},{title:t(`merchant.portal.product.category_id`),dataIndex:`category_id`,valueType:`text`,align:`center`},{title:t(`merchant.portal.product.price`),dataIndex:`price`,valueType:`text`,align:`center`,render:e=>`¥${e||`0.00`}`},{title:t(`merchant.portal.product.original_price`),dataIndex:`original_price`,valueType:`text`,align:`center`,hideInSearch:!0,render:e=>e?`¥${e}`:`-`},{title:t(`merchant.portal.product.stock`),dataIndex:`stock`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.product.sales`),dataIndex:`sales`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`merchant.portal.product.unit`),dataIndex:`unit`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.product.description`),dataIndex:`description`,valueType:`text`,hideInTable:!0,hideInSearch:!0},{title:t(`merchant.portal.product.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.portal.product.status.0`)},{value:1,label:t(`merchant.portal.product.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`merchant.portal.product.status.1`)}):(0,d.jsx)(e,{color:`default`,children:t(`merchant.portal.product.status.0`)}),filters:[{text:t(`merchant.portal.product.status.0`),value:0},{text:t(`merchant.portal.product.status.1`),value:1}],align:`center`},{title:t(`merchant.portal.product.is_recommend`),dataIndex:`is_recommend`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.portal.product.is_recommend.0`)},{value:1,label:t(`merchant.portal.product.is_recommend.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`orange`,children:t(`merchant.portal.product.is_recommend.1`)}):(0,d.jsx)(e,{children:t(`merchant.portal.product.is_recommend.0`)}),align:`center`},{title:t(`merchant.portal.product.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.product.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.portal.product.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.portal.product`,scroll:{x:1400},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.portal.product.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.portal.product.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/product`,columns:[{title:t(`merchant.product.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.product.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.product.name.required`)}]},{title:t(`merchant.product.merchant_id`),dataIndex:`merchant_id`,valueType:`text`,align:`center`,required:!0},{title:t(`merchant.product.category_id`),dataIndex:`category_id`,valueType:`text`,align:`center`},{title:t(`merchant.product.price`),dataIndex:`price`,valueType:`text`,align:`center`,render:e=>`¥${e||`0.00`}`},{title:t(`merchant.product.original_price`),dataIndex:`original_price`,valueType:`text`,align:`center`,hideInSearch:!0,render:e=>e?`¥${e}`:`-`},{title:t(`merchant.product.stock`),dataIndex:`stock`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.product.sales`),dataIndex:`sales`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`merchant.product.unit`),dataIndex:`unit`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.product.description`),dataIndex:`description`,valueType:`text`,hideInTable:!0,hideInSearch:!0},{title:t(`merchant.product.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.product.status.0`)},{value:1,label:t(`merchant.product.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`merchant.product.status.1`)}):(0,d.jsx)(e,{color:`default`,children:t(`merchant.product.status.0`)}),filters:[{text:t(`merchant.product.status.0`),value:0},{text:t(`merchant.product.status.1`),value:1}],align:`center`},{title:t(`merchant.product.is_recommend`),dataIndex:`is_recommend`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.product.is_recommend.0`)},{value:1,label:t(`merchant.product.is_recommend.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`orange`,children:t(`merchant.product.is_recommend.1`)}):(0,d.jsx)(e,{children:t(`merchant.product.is_recommend.0`)}),align:`center`},{title:t(`merchant.product.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.product.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.product.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.product`,scroll:{x:1600},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.product.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.product.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/product-category`,columns:[{title:t(`merchant.product-category.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.product-category.merchant_id`),dataIndex:`merchant_id`,valueType:`text`,align:`center`,required:!0},{title:t(`merchant.product-category.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.product-category.name.required`)}]},{title:t(`merchant.product-category.slug`),dataIndex:`slug`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.product-category.slug.required`)}]},{title:t(`merchant.product-category.parent_id`),dataIndex:`parent_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.product-category.description`),dataIndex:`description`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.product-category.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.product-category.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.product-category.status.0`)},{value:1,label:t(`merchant.product-category.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`merchant.product-category.status.1`)}):(0,d.jsx)(e,{color:`error`,children:t(`merchant.product-category.status.0`)}),align:`center`},{title:t(`merchant.product-category.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.product-category.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.product-category`,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.product-category.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.product-category.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant-portal/product-category`,columns:[{title:t(`merchant.portal.product-category.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.portal.product-category.name`),dataIndex:`name`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`merchant.portal.product-category.name.required`)}]},{title:t(`merchant.portal.product-category.slug`),dataIndex:`slug`,valueType:`text`,align:`center`,hideInSearch:!0,rules:[{required:!0}]},{title:t(`merchant.portal.product-category.parent_id`),dataIndex:`parent_id`,valueType:`text`,align:`center`},{title:t(`merchant.portal.product-category.icon`),dataIndex:`icon`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.product-category.sort`),dataIndex:`sort`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.portal.product-category.description`),dataIndex:`description`,valueType:`text`,hideInTable:!0,hideInSearch:!0},{title:t(`merchant.portal.product-category.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`merchant.portal.product-category.status.0`)},{value:1,label:t(`merchant.portal.product-category.status.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`success`,children:t(`merchant.portal.product-category.status.1`)}):(0,d.jsx)(e,{color:`default`,children:t(`merchant.portal.product-category.status.0`)}),filters:[{text:t(`merchant.portal.product-category.status.0`),value:0},{text:t(`merchant.portal.product-category.status.1`),value:1}],align:`center`},{title:t(`merchant.portal.product-category.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`merchant.portal.product-category.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.portal.product-category`,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:600},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.portal.product-category.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.portal.product-category.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/merchant/refund`,columns:[{title:t(`merchant.refund.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`merchant.refund.refund_no`),dataIndex:`refund_no`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.refund.order_id`),dataIndex:`order_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.refund.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.refund.merchant_id`),dataIndex:`merchant_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`merchant.refund.amount`),dataIndex:`amount`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>`¥${e??`0.00`}`},{title:t(`merchant.refund.reason`),dataIndex:`reason`,valueType:`text`,hideInSearch:!0,align:`center`},{title:t(`merchant.refund.status`),dataIndex:`status`,valueType:`select`,fieldProps:{options:[{value:0,label:t(`merchant.refund.status.0`)},{value:1,label:t(`merchant.refund.status.1`)},{value:2,label:t(`merchant.refund.status.2`)},{value:3,label:t(`merchant.refund.status.3`)}]},render:n=>{let r={0:`warning`,1:`processing`,2:`success`,3:`error`},i={0:t(`merchant.refund.status.0`),1:t(`merchant.refund.status.1`),2:t(`merchant.refund.status.2`),3:t(`merchant.refund.status.3`)};return(0,d.jsx)(e,{color:r[n]??`default`,children:i[n]??`-`})},filters:[{text:t(`merchant.refund.status.0`),value:0},{text:t(`merchant.refund.status.1`),value:1},{text:t(`merchant.refund.status.2`),value:2},{text:t(`merchant.refund.status.3`),value:3}],align:`center`},{title:t(`merchant.refund.reply`),dataIndex:`reply`,valueType:`text`,hideInSearch:!0,align:`center`},{title:t(`merchant.refund.processed_at`),dataIndex:`processed_at`,hideInForm:!0,hideInSearch:!0,align:`center`,render:e=>e?(0,l.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:t(`merchant.refund.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`merchant.refund`,addShow:!1,scroll:{x:1200},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`merchant.refund.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`merchant.refund.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More