Files
qhmes/deploy-qhmes/frontend/js/MesXslWeightRecordList-DXrGCzAu.js
2026-05-15 11:34:12 +08:00

2 lines
5.6 KiB
Java

var G=Object.defineProperty,H=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var I=(i,e,t)=>e in i?G(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,E=(i,e)=>{for(var t in e||(e={}))Z.call(e,t)&&I(i,t,e[t]);if(R)for(var t of R(e))$.call(e,t)&&I(i,t,e[t]);return i},X=(i,e)=>H(i,J(e));var k=(i,e,t)=>new Promise((x,p)=>{var v=s=>{try{u(t.next(s))}catch(d){p(d)}},b=s=>{try{u(t.throw(s))}catch(d){p(d)}},u=s=>s.done?x(s.value):Promise.resolve(s.value).then(v,b);u((t=t.apply(i,e)).next())});import{d as F,ah as m,v as ee,ar as te,as as c,k as a,aF as n,u as l,q as w,aC as _,ag as oe,G as f,r as A,f as re}from"./vue-vendor-C7Zq48Yl.js";import"./index-BgJbdjPf.js";import"./index-Du0A3ksf.js";import{useListPage as ie}from"./useListPage-BWia52we.js";import{M as ne,s as se,b as ae,g as le,a as me,c as pe,d as ce,l as ue,e as de}from"./MesXslWeightRecordModal-BOWLfL-j.js";import{J as _e}from"./componentMap-BBZeqR-K.js";import fe from"./BasicTable-DfLkrEeh.js";import{al as ge,d as he}from"./index-BI6CMai0.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useMethods-DVip17X8.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./areaDataUtil-CbYCy3Ig.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JSelectDept-DRDVeruW.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./TreeIcon-DE4jdeZV.js";import"./JCodeEditor-CLVZA7Uj.js";import"./useFormItem-BdW6EoZe.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./JAddInput-D6qcyZjQ.js";import"./index-CNkz_PUv.js";import"./depart.api-DeMNV8zW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./index-Dg4HCEvo.js";import"./EasyCronInput-7xfJ3nBh.js";import"./JEllipsis-DqRFTSm0.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./injectionKey-DPVn4AgL.js";import"./MesXslVehicleSelectModal-D6-pfkHp.js";import"./MesXslVehicle.api-DeNnfdcU.js";const we=F({name:"xslmes-mesXslWeightRecord"}),xe=F(X(E({},we),{setup(i){const e=A({}),t=re([]),[x,{openModal:p}]=ge(),{prefixCls:v,tableContext:b,onExportXls:u,onImportXls:s}=ie({tableProps:{title:"地磅数据记录",api:ue,columns:ce,canResize:!0,tableSetting:{cacheKey:"mesXslWeightRecordColumns_v20260507"},formConfig:{schemas:pe,autoSubmitOnEnter:!0,showAdvancedButton:!0,fieldMapToTime:[["weighDate",["weighDate_begin","weighDate_end"],"YYYY-MM-DD"]]},actionColumn:{width:120,fixed:"right"},beforeFetch:o=>Object.assign(o,e)},exportConfig:{name:"地磅数据记录",url:me,params:e},importConfig:{url:le,success:g}}),[d,{reload:D},{rowSelection:T,selectedRowKeys:C}]=b,B=A(se);function U(o){Object.keys(o).forEach(r=>e[r]=o[r]),D()}function j(){p(!0,{isUpdate:!1,showFooter:!0})}function q(o){p(!0,{record:o,isUpdate:!0,showFooter:!0})}function O(o){p(!0,{record:o,isUpdate:!0,showFooter:!1})}function W(o){return k(this,null,function*(){yield de({id:o.id},g)})}function Y(){return k(this,null,function*(){yield ae({ids:C.value},g)})}function g(){(C.value=[])&&D()}function K(o){return[{label:"编辑",onClick:q.bind(null,o),auth:"xslmes:mes_xsl_weight_record:edit"}]}function L(o){return[{label:"详情",onClick:O.bind(null,o)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:W.bind(null,o),placement:"topLeft"},auth:"xslmes:mes_xsl_weight_record:delete"}]}return(o,r)=>{const y=m("a-button"),N=m("j-upload-button"),S=m("Icon"),P=m("a-menu-item"),Q=m("a-menu"),V=m("a-dropdown"),z=m("super-query"),h=ee("auth");return c(),te("div",null,[a(l(fe),{onRegister:l(d),rowSelection:l(T)},{tableTitle:n(()=>[w((c(),_(y,{type:"primary",onClick:j,preIcon:"ant-design:plus-outlined"},{default:n(()=>[...r[0]||(r[0]=[f(" 新增",-1)])]),_:1})),[[h,"xslmes:mes_xsl_weight_record:add"]]),w((c(),_(y,{type:"primary",preIcon:"ant-design:export-outlined",onClick:l(u)},{default:n(()=>[...r[1]||(r[1]=[f(" 导出",-1)])]),_:1},8,["onClick"])),[[h,"xslmes:mes_xsl_weight_record:exportXls"]]),w((c(),_(N,{type:"primary",preIcon:"ant-design:import-outlined",onClick:l(s)},{default:n(()=>[...r[2]||(r[2]=[f("导入",-1)])]),_:1},8,["onClick"])),[[h,"xslmes:mes_xsl_weight_record:importExcel"]]),l(C).length>0?(c(),_(V,{key:0},{overlay:n(()=>[a(Q,null,{default:n(()=>[a(P,{key:"1",onClick:Y},{default:n(()=>[a(S,{icon:"ant-design:delete-outlined"}),r[3]||(r[3]=f(" 删除 ",-1))]),_:1})]),_:1})]),default:n(()=>[w((c(),_(y,null,{default:n(()=>[r[4]||(r[4]=f("批量操作 ",-1)),a(S,{icon:"mdi:chevron-down"})]),_:1})),[[h,"xslmes:mes_xsl_weight_record:deleteBatch"]])]),_:1})):oe("",!0),a(z,{config:B,onSearch:U},null,8,["config"])]),action:n(({record:M})=>[a(l(_e),{actions:K(M),dropDownActions:L(M)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),a(ne,{onRegister:l(x),onSuccess:g},null,8,["onRegister"])])}}})),St=he(xe,[["__scopeId","data-v-e8b27718"]]);export{St as default};