engineering/public/admin/assets/index.d5a2a809.js
2024-02-20 17:15:05 +08:00

2 lines
5.9 KiB
JavaScript

import{I as G,y as H,J as K,w as Q,D as X,C as Z,L as ee,a0 as te,M as oe,N as ae}from"./element-plus.b3353ca6.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as ne,a as se}from"./index.892155dd.js";import{u as ie}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.c47985a3.js";import{_ as ue,s as pe,a as me,b as de}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.ab5d3cf9.js";import{d as S,a0 as x,s as L,r as w,ai as ce,o as l,c as _,V as e,M as t,O as f,u as i,L as r,S as $,a as P,W as _e,a8 as fe,k as ye,T as u,n as R,U as ve}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import he from"./detail.26837fd2.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.3dd325bc.js";import"./project.31b61d2e.js";import"./index.771e5a41.js";import"./department.cd9c927d.js";import"./organization.c13a1cd8.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.735a8774.js";const Fe=u("\u67E5\u8BE2"),Ee=u("\u91CD\u7F6E"),ke=u(" \u65B0\u589E "),ge=u(" \u5220\u9664 "),we={class:"mt-4"},Ce={key:0},be={key:1},De=u(" \u7F16\u8F91 "),Ve=u(" \u5220\u9664 "),Be={class:"flex justify-end mt-4"},xe=S({name:"projectLists"}),gt=S({...xe,setup(Le){x([]);const N=L(),y=L(),v=w(!1),C=w(!1),p=x({name:"",happen_date:""}),k=w([]),T=s=>{k.value=s.map(({id:o})=>o)},{dictData:b}=re("refund_type"),{pager:c,getLists:h,resetParams:M,resetPage:U}=ie({fetchFun:pe,params:p}),Y=async()=>{var s;v.value=!0,await R(),(s=y.value)==null||s.open("add")},j=async s=>{var F,m;console.log(s.id);let o=await me({id:s.id});v.value=!0,await R(),(F=y.value)==null||F.open("edit"),(m=y.value)==null||m.setFormData(o)},D=async s=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:s}),h()};return h(),(s,o)=>{const F=G,m=H,I=K,d=Q,q=X,V=Z,A=se,n=ee,J=te,O=oe,W=le,E=ce("perms"),z=ae;return l(),_("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(q,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[e(m,{label:"\u540D\u79F0",prop:"name"},{default:t(()=>[e(F,{modelValue:p.name,"onUpdate:modelValue":o[0]||(o[0]=a=>p.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53D1\u751F\u65F6\u95F4",prop:"require"},{default:t(()=>[e(I,{modelValue:p.happen_date,"onUpdate:modelValue":o[1]||(o[1]=a=>p.happen_date=a),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u53D1\u751F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(m,null,{default:t(()=>[e(d,{type:"primary",onClick:i(U)},{default:t(()=>[Fe]),_:1},8,["onClick"]),e(d,{onClick:i(M)},{default:t(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((l(),r(V,{class:"!border-none",shadow:"never"},{default:t(()=>[f((l(),r(d,{type:"primary",onClick:Y},{icon:t(()=>[e(A,{name:"el-icon-Plus"})]),default:t(()=>[ke]),_:1})),[[E,["safety.safety_emergency_plan/add"]]]),f((l(),r(d,{disabled:!k.value.length,onClick:o[2]||(o[2]=a=>D(k.value))},{default:t(()=>[ge]),_:1},8,["disabled"])),[[E,["safety.safety_emergency_plan/delete"]]]),P("div",we,[e(O,{data:i(c).lists,onSelectionChange:T},{default:t(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(n,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(n,{label:"\u6240\u5C5E\u9879\u76EE",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(n,{label:"\u53D1\u751F\u65F6\u95F4",prop:"happen_date","show-overflow-tooltip":""}),e(n,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:t(({row:a})=>[a.file&&a.file.length>0?(l(),_("div",Ce,[(l(!0),_(_e,null,fe(a.file,(g,B)=>(l(),_("div",{key:B},[e(J,{href:g,target:"_blank"},{default:t(()=>[u("\u6587\u4EF6"+ve(B+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),_("div",be," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:a})=>[f((l(),r(d,{type:"primary",link:"",onClick:g=>j(a)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[E,["safety.safety_emergency_plan/edit"]]]),f((l(),r(d,{type:"danger",link:"",onClick:g=>D(a.id)},{default:t(()=>[Ve]),_:2},1032,["onClick"])),[[E,["safety.safety_emergency_plan/delete"]]])]),_:1})]),_:1},8,["data"])]),P("div",Be,[e(W,{modelValue:i(c),"onUpdate:modelValue":o[3]||(o[3]=a=>ye(c)?c.value=a:null),onChange:i(h)},null,8,["modelValue","onChange"])])]),_:1})),[[z,i(c).loading]]),v.value?(l(),r(ue,{key:0,ref_key:"editRef",ref:y,"dict-data":i(b),onSuccess:i(h),onClose:o[4]||(o[4]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),C.value?(l(),r(he,{key:1,ref_key:"detailRef",ref:N,"dict-data":i(b),onClose:o[5]||(o[5]=a=>C.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{gt as default};