engineering/public/admin/assets/index.cb28fb9e.js
2024-03-04 15:04:21 +08:00

2 lines
6.3 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as X,L as Y,a2 as Z,M as ee,N as te}from"./element-plus.258bf9e7.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ae,a as le}from"./index.ec401e3b.js";import{u as ue}from"./usePaging.f6660143.js";import{u as se}from"./useDictOptions.c644f395.js";import{_ as ne,s as ie,a as re,b as pe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.5b656084.js";import{d as R,a0 as x,s as A,r as b,ai as de,o as u,c as f,V as e,M as t,O as h,u as n,L as i,S as L,a as $,W as me,a8 as ce,k as _e,T as r,n as P,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import he from"./detail.15e22ee1.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./index.9492d03b.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.13e75d58.js";const ve=r("\u67E5\u8BE2"),we=r("\u91CD\u7F6E"),Ee=r(" \u65B0\u589E "),ye=r(" \u5220\u9664 "),Fe={class:"mt-4"},Ce={key:0},be={key:1},De=r(" \u7F16\u8F91 "),ke=r(" \u5220\u9664 "),Be={class:"flex justify-end mt-4"},ge=R({name:"projectLists"}),yt=R({...ge,setup(Ve){x([]);const S=A(),v=A(),w=b(!1),D=b(!1),p=x({month:"",resp_user:""}),F=b([]),N=s=>{F.value=s.map(({id:o})=>o)},{dictData:k}=se("refund_type"),{pager:c,getLists:E,resetParams:T,resetPage:U}=ue({fetchFun:ie,params:p}),j=async()=>{var s;w.value=!0,await P(),(s=v.value)==null||s.open("add")},I=async s=>{var _,d;console.log(s.id);let o=await re({id:s.id});w.value=!0,await P(),(_=v.value)==null||_.open("edit"),(d=v.value)==null||d.setFormData(o)},B=async s=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:s}),E()};return E(),(s,o)=>{const _=H,d=J,m=K,M=Q,g=X,q=le,a=Y,z=Z,O=ee,W=oe,y=de("perms"),G=te;return u(),f("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(M,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[e(d,{label:"\u8D1F\u8D23\u4EBA",prop:"resp_user"},{default:t(()=>[e(_,{modelValue:p.resp_user,"onUpdate:modelValue":o[0]||(o[0]=l=>p.resp_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u6708\u4EFD",prop:"month"},{default:t(()=>[e(_,{modelValue:p.month,"onUpdate:modelValue":o[1]||(o[1]=l=>p.month=l),type:"number",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6708\u4EFD"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(m,{type:"primary",onClick:n(U)},{default:t(()=>[ve]),_:1},8,["onClick"]),e(m,{onClick:n(T)},{default:t(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((u(),i(g,{class:"!border-none",shadow:"never"},{default:t(()=>[h((u(),i(m,{type:"primary",onClick:j},{icon:t(()=>[e(q,{name:"el-icon-Plus"})]),default:t(()=>[Ee]),_:1})),[[y,["safety.safety_product_month/add"]]]),h((u(),i(m,{disabled:!F.value.length,onClick:o[2]||(o[2]=l=>B(F.value))},{default:t(()=>[ye]),_:1},8,["disabled"])),[[y,["safety.safety_product_month/delete"]]]),$("div",Fe,[e(O,{data:n(c).lists,onSelectionChange:N},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(a,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u6708\u4EFD",prop:"month","show-overflow-tooltip":""}),e(a,{label:"\u8D1F\u8D23\u4EBA",prop:"resp_user","show-overflow-tooltip":""}),e(a,{label:"\u5206\u7C7B",prop:"classify","show-overflow-tooltip":""}),e(a,{label:"\u9690\u60A3\u6570\u91CF",prop:"hazard_num","show-overflow-tooltip":""}),e(a,{label:"\u6570\u636E\u7EDF\u8BA1",prop:"data_statistics","show-overflow-tooltip":""}),e(a,{label:"\u672C\u6708\u91CD\u70B9\u5DE5\u4F5C",width:"155",prop:"current_important_work","show-overflow-tooltip":""}),e(a,{label:"\u4E0B\u4E00\u9636\u6BB5\u91CD\u70B9\u5DE5\u4F5C\u8BA1\u5212",width:"165",prop:"next_important_work","show-overflow-tooltip":""}),e(a,{label:"\u9700\u62A5\u544A\u8BF4\u660E\u6216\u534F\u8C03\u7684\u4E8B\u9879",width:"185",prop:"item","show-overflow-tooltip":""}),e(a,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:t(({row:l})=>[l.file&&l.file.length>0?(u(),f("div",Ce,[(u(!0),f(me,null,ce(l.file,(C,V)=>(u(),f("div",{key:V},[e(z,{href:C,target:"_blank"},{default:t(()=>[r("\u6587\u4EF6"+fe(V+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(u(),f("div",be," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:l})=>[h((u(),i(m,{type:"primary",link:"",onClick:C=>I(l)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[y,["safety.safety_product_month/edit"]]]),h((u(),i(m,{type:"danger",link:"",onClick:C=>B(l.id)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[y,["safety.safety_product_month/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",Be,[e(W,{modelValue:n(c),"onUpdate:modelValue":o[3]||(o[3]=l=>_e(c)?c.value=l:null),onChange:n(E)},null,8,["modelValue","onChange"])])]),_:1})),[[G,n(c).loading]]),w.value?(u(),i(ne,{key:0,ref_key:"editRef",ref:v,"dict-data":n(k),onSuccess:n(E),onClose:o[4]||(o[4]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),D.value?(u(),i(he,{key:1,ref_key:"detailRef",ref:S,"dict-data":n(k),onClose:o[5]||(o[5]=l=>D.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{yt as default};