PageSourceSearch

https://zakup.gov.kz/assets/CreateSupplierRequestPage-BAijOfS4.js

js zakup.gov.kz collected 2026-10-09 16:58:09 UTC 7,532 bytes, 1 lines download raw bytes

1import{q as fe,$ as ke,r as o,j as e,G as n,b5 as v,ae as ge}from"./theme-3dfVej7W.js";import"./purify.es-LQkvcK5U.js";import{o as G}from"./sso-BBwonJes.js";import{P as he}from"./PageHeader-Bmgumh-C.js";import{L as Ce}from"./LicenseActivityPicker-CP9NodbH.js";import{E as be}from"./ExperienceReadonlyBlocks-3xgoCPkr.js";import{hN as _e,h2 as je,gL as ve,h3 as ye,gU as Ee,g$ as qe,gV as we,gO as Ne}from"./PrivateApp-BFO3_Tbx.js";import{C as Se,a as Re}from"./workExperienceTypes-Bb9nOqsZ.js";import{N as Be,G as Te,H as Le,l as Me,s as Oe,u as Ae}from"./formValues-J3y0YaF6.js";import{d as Fe,i as Ie}from"./correctionDiff-CI9vKOeB.js";import{i as Pe,e as Ue,d as De}from"./refName-B5MCf-Qy.js";import{C as Ge}from"./index-BKUOnk1C.js";import{S as ze}from"./index-C63dYVM1.js";import{T as y}from"./index-I1ZxXO3B.js";import{T as Qe}from"./index-IEgArLAY.js";import{A as z}from"./index-wH3ULS13.js";import{E as We}from"./AntdIcon-B8e_FEAo.js";import{M as Q}from"./index-C016Db5J.js";import{C as W}from"./index-CwLtvCkV.js";import{I as Ke}from"./index-CQ9iPbHV.js";import{U as He}from"./index-YFykW8M_.js";import{R as Ye}from"./InboxOutlined-C26zLnfQ.js";import{s as u}from"./SignatureContext-BIIScoJU.js";import"./vite-preload-helper-BXl3LOEh.js";import"./index-DljlvMzm.js";import"./index-C86gn5Ct.js";import"./Sider-CaqjhNAo.js";import"./EllipsisOutlined-fLaExTxN.js";import"./useBreakpoint-DBaSuQQQ.js";import"./index-D10blwUV.js";import"./useForm-Cmblz3t1.js";import"./ReviewDkBlock-CC79BcoX.js";import"./index-BzeA_MbD.js";import"./row-M1qaIYld.js";import"./index-D4v2P043.js";import"./signXmlAsCms-DKY4WdVM.js";import"./index-BZy7ibvr.js";import"./index-DqejBB-o.js";import"./PurePanel-CIovuaru.js";import"./index-DbyqvX_N.js";import"./index-JBz7kudr.js";import"./DownloadOutlined-qoht-QYR.js";import"./index-LRpAibSh.js";import"../remoteEntry.js";import"./index-BEDcFE4N.js";import"./registerCabinetApi-CKnIRFA1.js";import"./downloadFileByUrl-w19mXwt2.js";import"./LeftOutlined-zZTRbrqI.js";import"./formatAmount-BO0bCaMt.js";import"./index-CPNG8-3L.js";import"./PlusOutlined-DJbYRZlH.js";import"./isMobile-B_S5qVvp.js";import"./proxyObject-CYSD4Ni0.js";import"./EyeOutlined-DGpwx6h2.js";import"./progress-DriKEix0.js";function Zs(){const{t:s,i18n:K}=fe("workExperience"),E=ke(),q=K.language,[w,H]=o.useState(void 0),[l,Y]=o.useState(void 0),[c,d]=o.useState("view"),[m,x]=o.useState({}
1),[N,f]=o.useState(null),[$,k]=o.useState(!1),[S,R]=o.useState(!1),[V,g]=o.useState(!1),[Z,B]=o.useState(!1),[h,T]=o.useState(""),[J,C]=o.useState([]),[L,b]=o.useState([]),[M,O]=o.useState(!1),{data:A,isFetching:X,error:ee}=_e({work_number:l,page:1},{skip:l===void 0}),_=A?.target_experience??null,i=_?.id,{data:r,error:se}=je({expId:i},{skip:i===void 0}),{data:F}=ve(),{data:I}=ye({exp_type_id:r?.exp_type?.id,customer_sign_id:r?.customer_sign_id??null,customer_type_id:Be,has_not_treasury_info:r?.has_not_treasury_info?1:0,status_potential_supplier_id:r?.status_potential_supplier?.id??null},{skip:r?.exp_type?.id===void 0}),{data:te}=Ee(i,{skip:i===void 0}),[oe,{isLoading:re}]=qe(),[ie,{isLoading:ae}]=we(),[ne,{isLoading:ce}]=Ne(),le=new Set(A?.target_available_actions??[]).has(Se.CREATE_PARTIAL_CORRECT_APP),de=(te?.available_actions??[]).includes(Re.SEND_REQUEST_BLOCK_TO_KK),j=r?Pe(r):!1,P=()=>{d("view"),x({}),f(null),Y(w)},pe=(t,a)=>{x(p=>({...p,lic_id:t.id})),f(a.map(p=>Me(p,q)).join(" / ")),k(!1)},ue=async()=>{if(i!==void 0)try{await oe({expId:i,body:m}).unwrap(),u.success({message:s("correction.saved")}),g(!1),E("/cabinet/work-experience/requests")}catch(t){u.error({message:v(t)})}},me=async t=>{try{const a=await Oe(t,p=>ne(p).unwrap());b([a.file_id]),C([{uid:String(a.file_id),name:t.name,status:"done"}])}catch(a){u.error({message:Ae(a)})}},U=()=>{B(!1),T(""),C([]),b([]),O(!1)},xe=async()=>{if(i!==void 0)try{await ie({expId:i,kind:"block",body:{reason:h,file_ids:L}}).unwrap(),u.success({message:s("block.saved")}),U(),E("/cabinet/work-experience/requests")}catch(t){u.error({message:v(t)})}},D=ee??se;return e.jsxs("div",{className:"container mx-auto flex flex-col gap-4",children:[e.jsx(he,{breadcrumb:[{title:s("title")},{title:s("requests.title"),to:"/cabinet/work-experience/requests"},{title:s("requests.create")}]}),e.jsx(Ge,{size:"small",children:e.jsxs(ze,{wrap:!0,align:"center",children:[e.jsxs(y.Text,{children:[e.jsx("span",{className:"text-red-500",children:"*"})," ",s("requests.searchLabel"),":"]}),e.jsx(Qe,{className:"w-full sm:w-64",controls:!1,value:w,placeholder:s("requests.searchPlaceholder"),onChange:t=>H(t??void 0),onPressEnter:P}),e.jsx(n,{type:"primary",onClick:P,children:s("filters.search")})]})}),D?e.jsx(z,{type:"error",showIcon:!0,message:v(D)}
1):null,_&&r&&I?e.jsxs(e.Fragment,{children:[e.jsx(be,{card:r,references:F,blocks:I.blocks,correction:c==="edit"?{mode:"edit",draft:m,onChange:t=>x(a=>({...a,...t})),fields:Le(r.exp_type?.id),yearsDepth:Te(r.exp_type?.id),licenseLabel:N,onPickLicense:()=>k(!0)}:c==="preview"?{mode:"diff",next:Fe(m,F,q,N)}:void 0}),j?e.jsx(z,{type:"info",showIcon:!0,message:s("egz.hint")}):null,e.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[c==="view"&&le?e.jsx(n,{color:"orange",variant:"solid",onClick:()=>{if(j&&l!==void 0){G(De(l),"_self");return}x({}),f(null),d("edit")},children:s("requests.toCorrection")}):null,c==="view"&&de?e.jsx(n,{type:"primary",onClick:()=>j?G(Ue(r.id),"_self"):B(!0),children:s("requests.toBlock")}):null,c==="edit"?e.jsxs(e.Fragment,{children:[e.jsx(n,{color:"orange",variant:"solid",disabled:Ie(m),onClick:()=>d("preview"),children:s("form.save")}),e.jsx(n,{onClick:()=>d("view"),children:s("requests.cancel")})]}):null,c==="preview"?e.jsxs(e.Fragment,{children:[e.jsx(n,{color:"orange",variant:"solid",onClick:()=>d("edit"),children:s("requests.toCorrection")}),e.jsx(n,{type:"primary",onClick:()=>g(!0),children:s("requests.sendCorrection")})]}):null]})]}):_?e.jsx(ge,{active:!0}):l!==void 0&&!X&&e.jsx(We,{description:s("filters.empty")}),e.jsx(Ce,{open:$,onCancel:()=>k(!1),onSelect:pe}),e.jsx(Q,{open:V,title:s("requests.correctionModal.title"),okText:s("requests.correctionModal.submit"),cancelText:s("requests.cancel"),okButtonProps:{disabled:!S},confirmLoading:re,onCancel:()=>{g(!1),R(!1)},onOk:ue,children:e.jsx(W,{checked:S,onChange:t=>R(t.target.checked),children:s("requests.correctionModal.consent")})}),e.jsx(Q,{open:Z,title:s("requests.blockModal.title"),okText:s("requests.blockModal.submit"),cancelText:s("requests.cancel"),okButtonProps:{disabled:!M||h.trim()===""||L.length===0},confirmLoading:ae,onCancel:U,onOk:xe,width:640,children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{children:[e.jsxs(y.Text,{children:[e.jsx("span",{className:"text-red-500",children:"*"})," ",s("requests.blockModal.reason")]}),e.jsx(Ke.TextArea,{className:"mt-2",rows:4,value:h,onChange:t=>T(t.target.value)})]}),e.jsxs("div",{children:[e.jsxs(y.Text,{children:[e.jsx("span",{className:"text-red-500",children:"*"})," ",s("requests.blockModal.files")]}),e.jsxs(He.Dragger,{className:"mt-2",multiple:!1,maxCount:1,fileList:J,disabled:ce,beforeUpload:t=>(me(t),!1),onRemove:()=>{C([]),b([])},children:[e.jsx("p",{className:"ant-upload-drag-icon",children:e.jsx(Ye,{})}),e.jsx("p",{className:"ant-upload-text",children:s("requests.blockModal.dropzone")}),e.jsx("p",{className:"ant-upload-hint",children:s("requests.blockModal.dropzoneHint")})]})]}),e.jsx(W,{checked:M,onChange:t=>O(t.target.checked),children:s("requests.blockModal.consent")})]})})]})}export{Zs as default};

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