第7项:按路由加载页面并核验登录和开单冷启动预算

This commit is contained in:
黄健铭 committed 2026-12-05 08:15:49 -08:00
1 parent cb705d296e
commit ea891570a9
71 files changed
+1250 -454

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{$ as t,$n as n,An as r,At as i,Bn as a,Ct as o,Dt as s,G as c,Gt as l,H as u,Ht as d,In as f,It as p,J as m,K as h,Lt as g,Pt as _,Q as v,Qn as y,Rn as b,Rt as x,Sn as S,U as C,Vt as w,W as T,Wt as E,X as D,Xn as O,Xt as k,Y as A,_ as j,_n as ee,_t as M,an as N,bt as P,cn as F,ct as I,dt as L,et as te,f as R,g as z,gn as ne,h as B,jt as re,kn as V,kt as ie,m as H,mn as U,n as ae,on as oe,pn as W,q as G,rn as se,sn as ce,tn as le,tr as ue,tt as de,un as fe,v as pe,vn as me,wn as K,xt as he,yn as ge}from"./index-D422TGjj.js";import{t as _e}from"./card-C-8yMAVJ.js";import{a as ve,c as ye,g as be,i as xe,n as Se,r as Ce}from"./useForm-gd33qHRf.js";import{i as we,n as Te,r as Ee,t as De}from"./LockOutlined-B5mVtuYn.js";import{f as Oe}from"./TextArea-C-bIgxlu.js";import{t as q}from"./input-CKrxaItg.js";import{t as ke}from"./typography-B7akXptf.js";var J=e(ue());function Ae(e){return e==null?null:typeof e==`object`&&!(0,J.isValidElement)(e)?e:{title:e}}function Y(e){let[t,n]=J.useState(e);return J.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var je=e=>{let{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:`hidden`,transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${r}-leave-active`]:{transform:`translateY(-5px)`}}}}},Me=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${K(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ne=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Pe=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},k(e)),Me(e)),{[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Ne(e,e.controlHeightSM)),"&-large":Object.assign({},Ne(e,e.controlHeightLG))})}},Fe=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},k(e)),{marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
&-hidden${i}-row`]:{display:`none`},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`SimSun, sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{"--ant-display":`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:L,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},X=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),Ie=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label,
${t}-col-xl-24${n}-label`]:X(e)}}},Le=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
> ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},Re=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:X(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},ze=e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:`auto`},[`${n}-control`]:{width:`100%`},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:X(e)},[`@media (max-width: ${K(e.screenXSMax)})`]:[Re(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:X(e)}}}],[`@media (max-width: ${K(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:X(e)}}},[`@media (max-width: ${K(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:X(e)}}},[`@media (max-width: ${K(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:X(e)}}}}},Be=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ve=(e,t)=>le(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),He=E(`Form`,(e,{rootPrefixCls:t})=>{let n=Ve(e,t);return[Pe(n),Fe(n),je(n),Ie(n),Le(n),ze(n),be(n),L]},Be,{order:-1e3}),Z=e(n()),Ue=[];function We(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var Ge=({help:e,helpStatus:t,errors:n=Ue,warnings:i=Ue,className:a,fieldId:s,onVisibleChanged:c})=>{let{prefixCls:l}=J.useContext(T),u=`${l}-item-explain`,f=ie(l),[p,m,h]=He(l,f),g=J.useMemo(()=>o(l),[l]),_=Y(n),v=Y(i),y=J.useMemo(()=>e==null?[].concat(r(_.map((e,t)=>We(e,`error`,`error`,t))),r(v.map((e,t)=>We(e,`warning`,`warning`,t)))):[We(e,`help`,t)],[e,t,_,v]),b=J.useMemo(()=>{let e={};return y.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),y.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[y]),x={};return s&&(x.id=`${s}_help`),p(J.createElement(w,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:c},e=>{let{className:t,style:n}=e;return J.createElement(`div`,Object.assign({},x,{className:(0,Z.default)(u,t,h,f,a,m),style:n}),J.createElement(d,Object.assign({keys:b},o(l),{motionName:`${l}-show-help-item`,component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return J.createElement(`div`,{key:t,className:(0,Z.default)(i,{[`${u}-${r}`]:r}),style:a},n)}))}))},Ke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},qe=J.forwardRef((e,t)=>{let n=J.useContext(oe),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:l,style:d}=fe(`form`),{prefixCls:f,className:p,rootClassName:g,size:_,disabled:v=n,form:y,colon:b,labelAlign:x,labelWrap:S,labelCol:C,wrapperCol:w,hideRequiredMark:T,layout:E=`horizontal`,scrollToFirstError:D,requiredMark:O,onFinishFailed:k,name:j,style:ee,feedbackIcons:P,variant:F}=e,I=Ke(e,[`prefixCls`,`className`,`rootClassName`,`size`,`disabled`,`form`,`colon`,`labelAlign`,`labelWrap`,`labelCol`,`wrapperCol`,`hideRequiredMark`,`layout`,`scrollToFirstError`,`requiredMark`,`onFinishFailed`,`name`,`style`,`feedbackIcons`,`variant`]),L=M(_),te=J.useContext(ne),R=J.useMemo(()=>O===void 0?T?!1:a===void 0||a:O,[T,O,a]),z=b??o,B=r(`form`,f),re=ie(B),[V,H,U]=He(B,re),ae=(0,Z.default)(B,`${B}-${E}`,{[`${B}-hide-required-mark`]:R===!1,[`${B}-rtl`]:i===`rtl`,[`${B}-${L}`]:L},U,re,H,l,p,g),[W]=Se(y),{__INTERNAL__:G}=W;G.name=j;let se=J.useMemo(()=>({name:j,labelAlign:x,labelCol:C,labelWrap:S,wrapperCol:w,layout:E,colon:z,requiredMark:R,itemRef:G.itemRef,form:W,feedbackIcons:P}),[j,x,C,w,E,z,R,W,P]),le=J.useRef(null);J.useImperativeHandle(t,()=>Object.assign(Object.assign({},W),{nativeElement:le.current?.nativeElement}));let ue=(e,t)=>{if(e){let n={block:`nearest`};typeof e==`object`&&(n=Object.assign(Object.assign({},n),e)),W.scrollToField(t,n)}};return V(J.createElement(m.Provider,{value:F},J.createElement(ce,{disabled:v},J.createElement(N.Provider,{value:L},J.createElement(c,{validateMessages:te},J.createElement(u.Provider,{value:se},J.createElement(h,{status:!0},J.createElement(A,Object.assign({id:j},I,{name:j,onFinishFailed:e=>{if(k?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(D!==void 0){ue(D,t);return}s!==void 0&&ue(s,t)}},form:W,ref:le,style:Object.assign(Object.assign({},d),ee),className:ae})))))))))});function Je(e){if(typeof e==`function`)return e;let t=O(e);return t.length<=1?t[0]:t}var Ye=()=>{let{status:e,errors:t=[],warnings:n=[]}=J.useContext(C);return{status:e,errors:t,warnings:n}};Ye.Context=C;function Xe(e){let[t,n]=J.useState(e),r=J.useRef(null),i=J.useRef([]),a=J.useRef(!1);J.useEffect(()=>(a.current=!1,()=>{a.current=!0,V.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=V(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}function Z Line truncated