PageSourceSearch

https://lk.markznak.ru/assets/js/EdoPage-D5Q96fKx.js

js markznak.ru collected 2026-09-27 21:16:10 UTC 8,343 bytes, 1 lines download raw bytes

1/* empty css                                                       */import{j as e,b as a,g as t,c as l,_ as o,E as s}from"./index-BeSYre2h.js";import{_ as n}from"./InnSelect-Co4WgnMa.js";import{_ as i,a as r}from"./ConnectionIdInput-BJKoKS_9.js";import{u as d,O as m}from"./documentTableStore-DjhFX3EI.js";import{M as p,C as u,a as c,A as f}from"./ag-grid-BEkLTNLs.js";/* empty css                                                                      */import{g}from"./local-BebP8wh9.js";import"./DialogNewCodes.vue_vue_type_style_index_1_lang-BfNtSwo-.js";import"./SpecEditDialog.vue_vue_type_style_index_0_scoped_0b70ea8b_lang-C2IDD3XK.js";import"./jszip-DuB0RuXC.js";import{u as _}from"./codesTableStore-DUnQpbeq.js";import{f as v,y,x as b,c as h,X as j,Y as x,t as w,d as k,Z as C,_ as S}from"./vuetify-CRRSJ5Gm.js";import{d as D,l as T,L as z,A as O,v as P,a2 as I,F as R,a6 as A,c as L,u as N,a7 as V,a as q,Y as B,a3 as U,q as E,ai as F}from"./vue-vendor-CbMzfmEd.js";import"./crypto-9_-7wEo5.js";import"./icons-C7mfdJ0s.js";import"./DialogCodeActions-C6IKXl4t.js";import"./czWaiters-BusHh92F.js";import"./lodash-B5zXzC0-.js";import"./marking-codes-DaEMxaNJ.js";import"./LineCheckControls-PEFEbwlg.js";import"./useLineCheck-Cz1ORmHx.js";import"./data-BCiCpKSr.js";import"./ecpShareTray-BWiLEr5c.js";import"./useEnsureInnContext-BL3iDaD5.js";import"./ChzDocContentDialog-Cr9ZeOn8.js";import"./GismtTasksPanel-B893m7Ct.js";import"./ConfirmDialog.vue_vue_type_script_setup_true_lang-BmuaUOeN.js";import"./selectedRowsCounter-CfsA0laX.js";import"./tsd-BdVdLm7-.js";import"./fileImport-HyNhPdss.js";import"./xlsx-3FAc2Sll.js";import"./CustomTooltip-C1RbAmcr.js";import"./axios-CyeyISJt.js";import"./CodesDraftsList.vue_vue_type_style_index_0_scoped_83a9337d_lang-CPS70bB8.js";import"./index.esm-DC-Kc2Gg.js";import"./vee-validate.esm-K3-eYOt_.js";import"./PrintAppDialog.vue_vue_type_script_setup_true_lang-C6pGeReg.js";import"./itemBarcode-BilN2ovj.js";import"./mapping-C3fIoJAF.js";import"./productUtils-Dkd9z4hS.js";import"./useWindowResize-Ceyw2Kch.js";import"./countries-CZNh4CW0.js";const W={manual:"Ручной",codes:"Коды","codes-xlsx":"Коды (xlsx)","pdf-codes":"Коды из PDF","ozon-before":"OZON до маркировки",template:"Шаблон",upd:"УПД","aggregation-template":"Агрегация по шаблону"};const $={style:{display:"flex","justify-content":"space-between","margin-bottom":"1px"},class:"crpt-table"},G={style:{display:"flex"}},Z={class:"crpt-table-t"},M=o(D({__name:"DocumentsTable",setup(o){const s=e();_();const n=d(),i=_();let r=T(!1);p.registerModules([u,c]);let m=T();const y=a();T(y.getInn()),T(n.loading);const b=e=>{m.value=e.api};let h={};T(null);const j=T(n.overlayLoadingTemplate),x=T(n.overlayNoRowsTemplate);T(),T();const w=T([]);let k=T(null);const C=T(50);z(()=>{k.value={type:"fitCellContents",skipHeader:!1},C.value=50}),O(async()=>{w.value=[{field:"number",headerName:"№",filterParams:{buttons:["apply","reset"],filterOptions:["equals","blank","notBlank"],closeOnApply:!0},flex:2,sort:"desc"},{field:"date",headerName:"Дата создания",filterParams:{buttons:["apply","reset"],filterOptions:["equals","blank","notBlank"],closeOnApply:!0},flex:2,sortable:!1},{field:"countOfGTINs",comparator:(e,a)=>e-a,headerName:"Количество наименований",filterParams:{buttons:["apply","reset"],filterOptions:["equals","blank","notBlank"],closeOnApply:!0},flex:2},{field:"countOfCodes",comparator:(e,a)=>e-a,headerName:"Количество кодов",filterParams:{buttons:["apply","reset"],filterOptions:["equals","blank","notBlank"],closeOnApply:!0},flex:2},{field:"type",comparator:(e,a)=>e-a,headerName:"Тип",valueFormatter:e=>{return(a=e.value)?W[a]??a:"";var a},filterParams:{buttons:["apply","reset"],filterOptions:["equals","blank","notBlank"],closeOnApply:!0},flex:2}],F.value()});const S=T({mode:"multiRow",enableClickSelection:!0,enableSelectionWithoutKeys:!0}),D=[200,500,1e3],E={flex:1,minWidth:100,resizable:!0,sortable:!0,filter:!0,floatingFilter:!0,filterParams:{buttons:["apply","reset"],filterOptions:["equals","blank","notBlank"],closeOnApply:!0}};P(()=>y.loaded,async e=>{n.loading=!0,e&&F.value()});const F=T(async()=>{r.value=!0,l("documentList"),await n.refreshTable(h),r.value=!1});T({openOnClick:!1,maxWidth:400});const M=async e=>{n.loading=!0;const a=e.data.document_id;await i.openDialog(a),n.loading=!1};let Y=T(!1);return(e,a)=>
1{const l=B("RefreshIcon"),o=B("DownloadIcon");return U(),I(R,null,[A("div",$,[A("div",G,[L(v,{size:"x-small",color:"warning",flat:"",onClick:a[0]||(a[0]=e=>F.value()),style:{"margin-bottom":"5px"},loading:N(r),disabled:N(r)},{default:V(()=>[L(l,{class:"mr-2",start:"",size:"18"}),q(" Обновить ")]),_:1},8,["loading","disabled"]),L(v,{size:"x-small",color:"lightprimary",flat:"",onClick:a[1]||(a[1]=e=>(async()=>{var e,a;const l=[];if(null==(e=m.value)||e.forEachNodeAfterFilterAndSort(e=>{e.isSelected()&&e.data&&l.push(e.data)}),0!=l.length){Y.value=!0;try{const e=await y.getSha1();let o=0;for(const s of l){const l=await t("docDownloadCodes",e,y.accessInn.inn,s.document_id),n="object"==typeof l?null==(a=null==l?void 0:l.message)?void 0:a.filePath:null;if(n){const e=document.createElement("a");e.href=`https://api.markznak.ru/${n}`,e.download="",document.body.appendChild(e),e.click(),document.body.removeChild(e),await new Promise(e=>setTimeout(e,700))}else o++}o>0&&s.showSnackbar(`Не удалось получить файлы: ${o} из ${l.length}`,"error",5e3)}finally{Y.value=!1}}else s.showSnackbar("Не выбраны документы для получения кодов","warning",5e3)})()),style:{"margin-bottom":"5px","margin-left":"5px"},loading:N(Y),disabled:N(r)||N(Y)},{default:V(()=>[L(o,{class:"mr-2",start:"",size:"18"}),q(" Скачать коды ")]),_:1},8,["loading","disabled"])])]),A("span",Z,[L(N(f),{localeText:N(g),pagination:true,paginationPageSize:500,paginationPageSizeSelector:D,rowData:N(n).codes,columnDefs:w.value,rowSelection:S.value,suppressServerSideFullWidthLoadingRow:!0,defaultColDef:E,loading:N(n).loading,overlayLoadingTemplate:j.value,overlayNoRowsTemplate:x.value,autoSizeStrategy:N(k),onGridReady:b,style:{height:"600px"},class:"ag-theme-quartz ag-theme-mycustomtheme ag-selectable",onRowDoubleClicked:M},null,8,["localeText","rowData","columnDefs","rowSelection","loading","overlayLoadingTemplate","overlayNoRowsTemplate","autoSizeStrategy"])])],64)}}}),[["__scopeId","data-v-614f07ec"]]),Y=D({__name:"EdoPage",setup(e){const t=_();a();const l=F();T({title:"Работа с КМ"});const o=T(new URLSearchParams(window.location.search).get("tab")||"orders");let d=T(null),p=T(null),u=new URLSearchParams(window.location.search).get("documentId");return O(()=>{let e=new URLSearchParams(window.location.search).get("documentId");e&&(t.dialog=!0,t.refreshTable(e))}),P(()=>u,async e=>{t.dialog=!1}),P(()=>l.query,e=>{"documentId"==e.dialog&&(t.dialog=!0)},{immediate:!0}),(e,a)=>{const t=B("UserCircleIcon");return U(),I(R,null,[L(b,null,{default:V(()=>[L(y,{md:"3",xs:"12",class:"d-md-none",style:{"margin-top":"-15px","margin-bottom":"-15px"}},{default:V(()=>[L(s,{modelValue:N(d),"onUpdate:modelValue":a[0]||(a[0]=e=>E(d)?d.value=e:d=e)},null,8,["modelValue"]),L(n,{modelValue:N(p),"onUpdate:modelValue":a[1]||(a[1]=e=>E(p)?p.value=e:p=e)},null,8,["modelValue"]),L(i),L(r)]),_:1})]),_:1}),L(b,{class:"justify-center"},{default:V(()=>[L(y,{cols:"12",md:"12"},{default:V(()=>[L(h,{elevation:"10",class:"",rounded:"md"},{default:V(()=>[L(j,{modelValue:o.value,"onUpdate:modelValue":a[2]||(a[2]=e=>o.value=e),"bg-color":"transparent","min-height":"70",height:"70",color:"primary"},{default:V(()=>[L(x,{value:"orders",class:"text-medium-emphasis"},{default:V(()=>[L(t,{class:"mr-2",size:"20"}),q("Заказы")]),_:1}),L(x,{value:"kms",class:"text-medium-emphasis"},{default:V(()=>[L(t,{class:"mr-2",size:"20"}),q("Документы МАРКЗНАК")]),_:1})]),_:1},8,["modelValue"]),L(w),L(k,{class:"pa-sm-6 pa-3 pb-sm-6 pb-6"},{default:V(()=>[L(C,{modelValue:o.value,"onUpdate:modelValue":a[3]||(a[3]=e=>o.value=e)},{default:V(()=>[L(S,{value:"orders"},{default:V(()=>[L(m)]),_:1}),L(S,{value:"kms"},{default:V(()=>[L(M)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}}});export{Y 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.