2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{I as G,y as H,J as K,w as Q,D as X,C as Z,L as ee,_ as te,M as oe,N as ae}from"./element-plus.517d4382.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ne,a as se}from"./index.8b1962e9.js";import{u as ie}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.b5854a9e.js";import{_ as ue,s as pe,a as de,b as me}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.55fcb20f.js";import{d as S,a0 as x,s as L,r as C,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 he,T as u,n as R,U as ve}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import ye from"./detail.e3cafd23.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.ed719f67.js";import"./project.a81dff6c.js";import"./index.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.99349afc.js";const Fe=u("\u67E5\u8BE2"),Ee=u("\u91CD\u7F6E"),ke=u(" \u65B0\u589E "),we=u(" \u5220\u9664 "),Ce={class:"mt-4"},be={key:0},De={key:1},ge=u(" \u7F16\u8F91 "),Ve=u(" \u5220\u9664 "),Be={class:"flex justify-end mt-4"},xe=S({name:"projectLists"}),wt=S({...xe,setup(Le){x([]);const N=L(),h=L(),v=C(!1),b=C(!1),p=x({name:"",happen_date:""}),k=C([]),T=s=>{k.value=s.map(({id:o})=>o)},{dictData:D}=re("refund_type"),{pager:c,getLists:y,resetParams:M,resetPage:U}=ie({fetchFun:pe,params:p}),Y=async()=>{var s;v.value=!0,await R(),(s=h.value)==null||s.open("add")},j=async s=>{var F,d;console.log(s.id);let o=await de({id:s.id});v.value=!0,await R(),(F=h.value)==null||F.open("edit"),(d=h.value)==null||d.setFormData(o)},g=async s=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:s}),y()};return y(),(s,o)=>{const F=G,d=H,I=K,m=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(d,{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(d,{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(d,null,{default:t(()=>[e(m,{type:"primary",onClick:i(U)},{default:t(()=>[Fe]),_:1},8,["onClick"]),e(m,{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(m,{type:"primary",onClick:Y},{icon:t(()=>[e(A,{name:"el-icon-Plus"})]),default:t(()=>[ke]),_:1})),[[E,["safety.safety_rehearsal/add"]]]),f((l(),r(m,{disabled:!k.value.length,onClick:o[2]||(o[2]=a=>g(k.value))},{default:t(()=>[we]),_:1},8,["disabled"])),[[E,["safety.safety_rehearsal/delete"]]]),P("div",Ce,[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",be,[(l(!0),_(_e,null,fe(a.file,(w,B)=>(l(),_("div",{key:B},[e(J,{href:w,target:"_blank"},{default:t(()=>[u("\u6587\u4EF6"+ve(B+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),_("div",De," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:a})=>[f((l(),r(m,{type:"primary",link:"",onClick:w=>j(a)},{default:t(()=>[ge]),_:2},1032,["onClick"])),[[E,["safety.safety_rehearsal/edit"]]]),f((l(),r(m,{type:"danger",link:"",onClick:w=>g(a.id)},{default:t(()=>[Ve]),_:2},1032,["onClick"])),[[E,["safety.safety_rehearsal/delete"]]])]),_:1})]),_:1},8,["data"])]),P("div",Be,[e(W,{modelValue:i(c),"onUpdate:modelValue":o[3]||(o[3]=a=>he(c)?c.value=a:null),onChange:i(y)},null,8,["modelValue","onChange"])])]),_:1})),[[z,i(c).loading]]),v.value?(l(),r(ue,{key:0,ref_key:"editRef",ref:h,"dict-data":i(D),onSuccess:i(y),onClose:o[4]||(o[4]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),b.value?(l(),r(ye,{key:1,ref_key:"detailRef",ref:N,"dict-data":i(D),onClose:o[5]||(o[5]=a=>b.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{wt as default};
|