Files
shz-admin/shihezi/9248.a8bd9d9f.async.js
wzm 3a17dc786b
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
增加转发对象配置,工作人员管理页面
2025-11-20 16:30:13 +08:00

2 lines
12 KiB
JavaScript

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9248,7476],{31199:function(V,b,e){var u=e(1413),v=e(91),f=e(67294),M=e(43495),x=e(85893),B=["fieldProps","min","proFieldProps","max"],L=function(d,j){var s=d.fieldProps,O=d.min,m=d.proFieldProps,a=d.max,p=(0,v.Z)(d,B);return(0,x.jsx)(M.Z,(0,u.Z)({valueType:"digit",fieldProps:(0,u.Z)({min:O,max:a},s),ref:j,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:m},p))},A=f.forwardRef(L);b.Z=A},86615:function(V,b,e){var u=e(1413),v=e(91),f=e(22270),M=e(78045),x=e(67294),B=e(90789),L=e(43495),A=e(85893),W=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],d=x.forwardRef(function(m,a){var p=m.fieldProps,R=m.options,r=m.radioType,l=m.layout,o=m.proFieldProps,T=m.valueEnum,t=(0,v.Z)(m,W);return(0,A.jsx)(L.Z,(0,u.Z)((0,u.Z)({valueType:r==="button"?"radioButton":"radio",ref:a,valueEnum:(0,f.h)(T,void 0)},t),{},{fieldProps:(0,u.Z)({options:R,layout:l},p),proFieldProps:o,filedConfig:{customLightMode:!0}}))}),j=x.forwardRef(function(m,a){var p=m.fieldProps,R=m.children;return(0,A.jsx)(M.ZP,(0,u.Z)((0,u.Z)({},p),{},{ref:a,children:R}))}),s=(0,B.G)(j,{valuePropName:"checked",ignoreWidth:!0}),O=s;O.Group=d,O.Button=M.ZP.Button,O.displayName="ProFormComponent",b.Z=O},64317:function(V,b,e){var u=e(1413),v=e(91),f=e(22270),M=e(67294),x=e(66758),B=e(43495),L=e(85893),A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],W=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],d=function(p,R){var r=p.fieldProps,l=p.children,o=p.params,T=p.proFieldProps,t=p.mode,F=p.valueEnum,I=p.request,n=p.showSearch,D=p.options,g=(0,v.Z)(p,A),Z=(0,M.useContext)(x.Z);return(0,L.jsx)(B.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,f.h)(F),request:I,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({options:D,mode:t,showSearch:n,getPopupContainer:Z.getPopupContainer},r),ref:R,proFieldProps:T},g),{},{children:l}))},j=M.forwardRef(function(a,p){var R=a.fieldProps,r=a.children,l=a.params,o=a.proFieldProps,T=a.mode,t=a.valueEnum,F=a.request,I=a.options,n=(0,v.Z)(a,W),D=(0,u.Z)({options:I,mode:T||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},R),g=(0,M.useContext)(x.Z);return(0,L.jsx)(B.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,f.h)(t),request:F,params:l,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({getPopupContainer:g.getPopupContainer},D),ref:p,proFieldProps:o},n),{},{children:r}))}),s=M.forwardRef(d),O=j,m=s;m.SearchSelect=O,m.displayName="ProFormComponent",b.Z=m},5966:function(V,b,e){var u=e(97685),v=e(1413),f=e(91),M=e(21770),x=e(77569),B=e(55241),L=e(98423),A=e(67294),W=e(43495),d=e(85893),j=["fieldProps","proFieldProps"],s=["fieldProps","proFieldProps"],O="text",m=function(l){var o=l.fieldProps,T=l.proFieldProps,t=(0,f.Z)(l,j);return(0,d.jsx)(W.Z,(0,v.Z)({valueType:O,fieldProps:o,filedConfig:{valueType:O},proFieldProps:T},t))},a=function(l){var o=(0,M.Z)(l.open||!1,{value:l.open,onChange:l.onOpenChange}),T=(0,u.Z)(o,2),t=T[0],F=T[1];return(0,d.jsx)(x.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var D,g=n.getFieldValue(l.name||[]);return(0,d.jsx)(B.Z,(0,v.Z)((0,v.Z)({getPopupContainer:function(h){return h&&h.parentNode?h.parentNode:h},onOpenChange:function(h){return F(h)},content:(0,d.jsxs)("div",{style:{padding:"4px 0"},children:[(D=l.statusRender)===null||D===void 0?void 0:D.call(l,g),l.strengthText?(0,d.jsx)("div",{style:{marginTop:10},children:(0,d.jsx)("span",{children:l.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},l.popoverProps),{},{open:t,children:l.children}))}})},p=function(l){var o=l.fieldProps,T=l.proFieldProps,t=(0,f.Z)(l,s),F=(0,A.useState)(!1),I=(0,u.Z)(F,2),n=I[0],D=I[1];return o!=null&&o.statusRender&&t.name?(0,d.jsx)(a,{name:t.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:n,onOpenChange:D,children:(0,d.jsx)("div",{children:(0,d.jsx)(W.Z,(0,v.Z)({valueType:"password",fieldProps:(0,v.Z)((0,v.Z)({},(0,L.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(Z){var h;o==null||(h=o.onBlur)===null||h===void 0||h.call(o,Z),D(!1)},onClick:function(Z){var h;o==null||(h=o.onClick)===null||h===void 0||h.call(o,Z),D(!0)}}),proFieldProps:T,filedConfig:{valueType:O}},t))})}):(0,d.jsx)(W.Z,(0,v.Z)({valueType:"password",fieldProps:o,proFieldProps:T,filedConfig:{valueType:O}},t))},R=m;R.Password=p,R.displayName="ProFormComponent",b.Z=R},37476:function(V,b,e){e.d(b,{Y:function(){return R}});var u=e(55850),v=e(15861),f=e(1413),M=e(97685),x=e(91),B=e(73177),L=e(21532),A=e(17788),W=e(21770),d=e(8880),j=e(80334),s=e(67294),O=e(73935),m=e(78733),a=e(85893),p=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function R(r){var l,o,T=r.children,t=r.trigger,F=r.onVisibleChange,I=r.onOpenChange,n=r.modalProps,D=r.onFinish,g=r.submitTimeout,Z=r.title,h=r.width,H=r.visible,w=r.open,C=(0,x.Z)(r,p);(0,j.ET)(!C.footer||!(n!=null&&n.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var N=(0,s.useContext)(L.ZP.ConfigContext),k=(0,s.useState)([]),G=(0,M.Z)(k,2),z=G[1],U=(0,s.useState)(!1),q=(0,M.Z)(U,2),$=q[0],ee=q[1],re=(0,W.Z)(!!H,{value:w||H,onChange:I||F}),oe=(0,M.Z)(re,2),J=oe[0],S=oe[1],Q=(0,s.useRef)(null),te=(0,s.useCallback)(function(P){Q.current===null&&P&&z([]),Q.current=P},[]),Y=(0,s.useRef)(),le=(0,s.useCallback)(function(){var P,i,_,c=(P=(i=C.form)!==null&&i!==void 0?i:(_=C.formRef)===null||_===void 0?void 0:_.current)!==null&&P!==void 0?P:Y.current;c&&n!==null&&n!==void 0&&n.destroyOnClose&&c.resetFields()},[n==null?void 0:n.destroyOnClose,C.form,C.formRef]);(0,s.useImperativeHandle)(C.formRef,function(){return Y.current},[Y.current]),(0,s.useEffect)(function(){(w||H)&&(I==null||I(!0),F==null||F(!0))},[H,w]);var ae=(0,s.useMemo)(function(){return t?s.cloneElement(t,(0,f.Z)((0,f.Z)({key:"trigger"},t.props),{},{onClick:function(){var P=(0,v.Z)((0,u.Z)().mark(function _(c){var K,E;return(0,u.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:S(!J),(K=t.props)===null||K===void 0||(E=K.onClick)===null||E===void 0||E.call(K,c);case 2:case"end":return y.stop()}},_)}));function i(_){return P.apply(this,arguments)}return i}()})):null},[S,t,J]),ue=(0,s.useMemo)(function(){var P,i,_,c,K,E,X;return C.submitter===!1?!1:(0,d.T)({searchConfig:{submitText:(P=(i=n==null?void 0:n.okText)!==null&&i!==void 0?i:(_=N.locale)===null||_===void 0||(_=_.Modal)===null||_===void 0?void 0:_.okText)!==null&&P!==void 0?P:"\u786E\u8BA4",resetText:(c=(K=n==null?void 0:n.cancelText)!==null&&K!==void 0?K:(E=N.locale)===null||E===void 0||(E=E.Modal)===null||E===void 0?void 0:E.cancelText)!==null&&c!==void 0?c:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:g?$:void 0,onClick:function(de){var ne;S(!1),n==null||(ne=n.onCancel)===null||ne===void 0||ne.call(n,de)}}},(X=C.submitter)!==null&&X!==void 0?X:{})},[(l=N.locale)===null||l===void 0||(l=l.Modal)===null||l===void 0?void 0:l.cancelText,(o=N.locale)===null||o===void 0||(o=o.Modal)===null||o===void 0?void 0:o.okText,n,C.submitter,S,$,g]),se=(0,s.useCallback)(function(P,i){return(0,a.jsxs)(a.Fragment,{children:[P,Q.current&&i?(0,a.jsx)(s.Fragment,{children:(0,O.createPortal)(i,Q.current)},"submitter"):i]})},[]),ie=(0,s.useCallback)(function(){var P=(0,v.Z)((0,u.Z)().mark(function i(_){var c,K,E;return(0,u.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=D==null?void 0:D(_),g&&c instanceof Promise&&(ee(!0),K=setTimeout(function(){return ee(!1)},g),c.finally(function(){clearTimeout(K),ee(!1)})),y.next=4,c;case 4:return E=y.sent,E&&S(!1),y.abrupt("return",E);case 7:case"end":return y.stop()}},i)}));return function(i){return P.apply(this,arguments)}}(),[D,S,g]),_e=(0,B.X)(J);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.Z,(0,f.Z)((0,f.Z)((0,f.Z)({title:Z,width:h||800},n),_e),{},{onCancel:function(i){var _;g&&$||(S(!1),n==null||(_=n.onCancel)===null||_===void 0||_.call(n,i))},afterClose:function(){var i;le(),J&&S(!1),n==null||(i=n.afterClose)===null||i===void 0||i.call(n)},footer:C.submitter!==!1?(0,a.jsx)("div",{ref:te,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,a.jsx)(m.I,(0,f.Z)((0,f.Z)({formComponentType:"ModalForm",layout:"vertical"},C),{},{onInit:function(i,_){var c;C.formRef&&(C.formRef.current=_),C==null||(c=C.onInit)===null||c===void 0||c.call(C,i,_),Y.current=_},formRef:Y,submitter:ue,onFinish:function(){var P=(0,v.Z)((0,u.Z)().mark(function i(_){var c;return(0,u.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,ie(_);case 2:return c=E.sent,E.abrupt("return",c);case 4:case"end":return E.stop()}},i)}));return function(i){return P.apply(this,arguments)}}(),contentRender:se,children:T}))})),ae]})}},19248:function(V,b,e){e.r(b);var u=e(15009),v=e.n(u),f=e(99289),M=e.n(f),x=e(97857),B=e.n(x),L=e(5574),A=e.n(L),W=e(67294),d=e(37476),j=e(31199),s=e(97269),O=e(5966),m=e(64317),a=e(86615),p=e(77569),R=e(25278),r=e(85893),l=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;return new Promise(function(F){setTimeout(function(){F(!0)},t)})},o=function(t){var F=p.Z.useForm(),I=A()(F,1),n=I[0],D=(0,W.useState)("#3b82f6"),g=A()(D,2),Z=g[0],h=g[1],H=t.companyNatureEnum,w=t.companyLabelEnum,C=t.enableStatusEnum;(0,W.useEffect)(function(){n.resetFields(),t.values&&(n.setFieldsValue(B()(B()({},t.values),{},{status:String(t.values.status)})),h(t.values.backgroudColor))},[n,t]);var N=function(){t.onCancel(),n.resetFields()},k=function(){var G=M()(v()().mark(function z(U){return v()().wrap(function($){for(;;)switch($.prev=$.next){case 0:console.log(Z,U),typeof Z=="string"?U.backgroudColor=Z:U.backgroudColor=U.backgroudColor.toHexString(),U.companyNature||(U.companyNature=""),U.targ||(U.targ=""),t.onSubmit(U);case 5:case"end":return $.stop()}},z)}));return function(U){return G.apply(this,arguments)}}();return(0,r.jsxs)(d.Y,{title:"".concat(t.values?"\u7F16\u8F91":"\u65B0\u589E","\u4F01\u4E1A"),form:n,autoFocusFirstInput:!0,open:t.open,modalProps:{destroyOnClose:!0,onCancel:function(){return N()}},submitTimeout:2e3,onFinish:k,initialValues:{cardOrder:0,status:"0"},children:[(0,r.jsx)(j.Z,{label:"InputNumber",name:"companyCardId",disabled:!0,hidden:!0}),(0,r.jsxs)(s.A.Group,{children:[(0,r.jsx)(O.Z,{width:"md",name:"name",label:"\u5361\u7247\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u5361\u7247\u540D\u79F0"}),(0,r.jsx)(m.Z,{width:"md",name:"backgroudColor",label:"\u5361\u7247\u80CC\u666F\u8272",valueType:"color",disabledAlpha:!0,placeholder:"\u8BF7\u9009\u62E9\u5355\u4F4D\u89C4\u6A21",fieldProps:{value:Z,onChange:function(z){return h(z)}}})]}),(0,r.jsxs)(s.A.Group,{children:[(0,r.jsx)(m.Z,{width:"md",name:"companyNature",label:"\u4F01\u4E1A\u6027\u8D28",valueEnum:H,placeholder:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u6027\u8D28"}),(0,r.jsx)(m.Z,{width:"md",name:"targ",label:"\u4F01\u4E1A\u6807\u7B7E",valueEnum:w,placeholder:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u6807\u7B7E"})]}),(0,r.jsxs)(s.A.Group,{children:[(0,r.jsx)(j.Z,{width:"md",label:"\u6392\u5E8F",name:"cardOrder",min:0}),(0,r.jsx)(a.Z.Group,{valueEnum:C,name:"status",label:"\u542F\u7528\u72B6\u6001",width:"md"})]}),(0,r.jsx)(s.A.Item,{name:"description",label:"\u7CBE\u9009\u63CF\u8FF0",children:(0,r.jsx)(R.Z.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u5361\u7247\u7CBE\u9009\u63CF\u8FF0\uFF08\u6700\u591A200\u5B57\uFF09",maxLength:200,showCount:!0,rows:4,style:{resize:"none"}})})]})};b.default=o}}]);