Files
qhmes/web-dist/js/MesXslWeightRecordList-CSzADvva.js
2026-06-16 18:19:57 +08:00

2 lines
6.6 KiB
Java

var z=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var R=(i,t,o)=>t in i?z(i,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[t]=o,A=(i,t)=>{for(var o in t||(t={}))J.call(t,o)&&R(i,o,t[o]);if(M)for(var o of M(t))Z.call(t,o)&&R(i,o,t[o]);return i},E=(i,t)=>H(i,G(t));var v=(i,t,o)=>new Promise((c,w)=>{var x=m=>{try{u(o.next(m))}catch(a){w(a)}},C=m=>{try{u(o.throw(m))}catch(a){w(a)}},u=m=>m.done?c(m.value):Promise.resolve(m.value).then(x,C);u((o=o.apply(i,t)).next())});import $ from"./BasicTable-C6eG0bgK.js";import tt from"./TableAction-BiXnWkvt.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{aR as ot,aS as et,au as rt}from"./index-X7Y8jykP.js";import"./index-BDvqZ5j4.js";import{u as it}from"./useListPage-CK9oQ-1O.js";import{M as nt,g as mt,a as st,s as pt,c as at,l as lt,b as ct,d as ut,e as dt}from"./MesXslWeightRecordModal-DgwI9VXL.js";import{u as _t}from"./useModal-DaJ3Bflg.js";import"./index-CfNJyBRj.js";import{D as ft}from"./dropdown-jkliuVyN.js";import{e as T,C as gt,f as s,A as n,u as p,b as I,K as h,X as ht,z as l,O as b,y as d,H as bt,E as _}from"./vue-vendor-DNhG1Cve.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./useAppInject-DPZGPcR3.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-CuWaQdlK.js";import"./useForm-D61zovon.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./index-DklMb9Qc.js";import"./UpOutlined-B1UMbtrP.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./uuid-CODpppBC.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./index-fAAIzD3j.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./useTable-DbHE4FHE.js";import"./useMethods-D3efiSSd.js";import"./useApprovalSelection-D4wlWO_T.js";import"./JDictSelectTag-DqzD0_k1.js";import"./index-Cq6YxX27.js";import"./useFormItem-b_EqFlJz.js";import"./CompTypeEnum-Dk5ke9k4.js";import"./MesXslVehicleSelectModal.vue_vue_type_script_setup_true_lang-mAwRE0Wu.js";import"./MesXslVehicle.api-CJ4WugIf.js";const wt=T({name:"xslmes-mesXslWeightRecord"}),xt=T(E(A({},wt),{setup(i){const t=I({}),[o,{openModal:c}]=_t(),{prefixCls:w,tableContext:x,onExportXls:C,onImportXls:u}=it({tableProps:{title:"地磅数据记录",api:lt,columns:at,canResize:!0,tableSetting:{cacheKey:"mesXslWeightRecordColumns_v20260507"},formConfig:{schemas:pt,autoSubmitOnEnter:!0,showAdvancedButton:!0,fieldMapToTime:[["weighDate",["weighDate_begin","weighDate_end"],"YYYY-MM-DD"]]},actionColumn:{width:120,fixed:"right"},beforeFetch:e=>Object.assign(e,t)},exportConfig:{name:"地磅数据记录",url:st,params:t},importConfig:{url:mt,success:f}}),[m,{reload:a},{rowSelection:X,selectedRowKeys:y}]=x,B=I(ct);function F(e){Object.keys(e).forEach(r=>t[r]=e[r]),a()}function O(){c(!0,{isUpdate:!1,showFooter:!0})}function U(e){c(!0,{record:e,isUpdate:!0,showFooter:!0})}function j(e){c(!0,{record:e,isUpdate:!0,showFooter:!1})}function W(e){return v(this,null,function*(){yield dt({id:e.id},f)})}function Y(){return v(this,null,function*(){yield ut({ids:y.value},f)})}function f(){(y.value=[])&&a()}function q(e){return[{label:"编辑",onClick:U.bind(null,e),auth:"xslmes:mes_xsl_weight_record:edit"}]}function K(e){return[{label:"详情",onClick:j.bind(null,e)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:W.bind(null,e),placement:"topLeft"},auth:"xslmes:mes_xsl_weight_record:delete"}]}return(e,r)=>{const D=h("a-button"),L=h("j-upload-button"),k=h("Icon"),N=et,P=ot,Q=ft,V=h("super-query"),g=ht("auth");return l(),gt("div",null,[s(p($),{onRegister:p(m),rowSelection:p(X)},{tableTitle:n(()=>[b((l(),d(D,{type:"primary",onClick:O,preIcon:"ant-design:plus-outlined"},{default:n(()=>[...r[0]||(r[0]=[_(" 新增",-1)])]),_:1})),[[g,"xslmes:mes_xsl_weight_record:add"]]),b((l(),d(D,{type:"primary",preIcon:"ant-design:export-outlined",onClick:p(C)},{default:n(()=>[...r[1]||(r[1]=[_(" 导出",-1)])]),_:1},8,["onClick"])),[[g,"xslmes:mes_xsl_weight_record:exportXls"]]),b((l(),d(L,{type:"primary",preIcon:"ant-design:import-outlined",onClick:p(u)},{default:n(()=>[...r[2]||(r[2]=[_("导入",-1)])]),_:1},8,["onClick"])),[[g,"xslmes:mes_xsl_weight_record:importExcel"]]),p(y).length>0?(l(),d(Q,{key:0},{overlay:n(()=>[s(P,null,{default:n(()=>[s(N,{key:"1",onClick:Y},{default:n(()=>[s(k,{icon:"ant-design:delete-outlined"}),r[3]||(r[3]=_(" 删除 ",-1))]),_:1})]),_:1})]),default:n(()=>[b((l(),d(D,null,{default:n(()=>[r[4]||(r[4]=_("批量操作 ",-1)),s(k,{icon:"mdi:chevron-down"})]),_:1})),[[g,"xslmes:mes_xsl_weight_record:deleteBatch"]])]),_:1})):bt("",!0),s(V,{config:B,onSearch:F},null,8,["config"])]),action:n(({record:S})=>[s(p(tt),{actions:q(S),dropDownActions:K(S)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),s(nt,{onRegister:p(o),onSuccess:f},null,8,["onRegister"])])}}})),oe=rt(xt,[["__scopeId","data-v-e8b27718"]]);export{oe as default};