engineering/public/admin/assets/index.a10c202e.js
2024-03-31 10:16:59 +08:00

2 lines
6.7 KiB
JavaScript

import{D as z,B as H,G as J,w as K,L as W,C as X,O as Z,P as ee,Q as te}from"./element-plus.76ad22d1.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.53484866.js";import{f as ae,a as le}from"./index.ba0b8151.js";import{u as ue}from"./usePaging.0b2adcee.js";import{u as ne}from"./useDictOptions.ecef5e87.js";import{_ as ie,s as se,a as x,b as re}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.ca86442c.js";import"./lodash.12303e67.js";import pe from"./detail.531067d4.js";import{d as R,a0 as $,s as P,r as b,ai as de,o as r,c as ce,V as e,M as o,O as _,u as p,L as d,S as A,a as L,k as me,T as m,n as C}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.4e54c873.js";import"./axios.c27a9cd7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.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.ce2b95b7.js";import"./color.0b62cf11.js";import"./clone.b8d2a027.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.026d6bda.js";import"./vue-clipboard3.1a74f940.js";import"./clipboard.80ee0599.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.vue_vue_type_script_setup_true_lang.97fa46af.js";import"./project.83f9f7a6.js";import"./index.b414519e.js";import"./department.f0d1e74c.js";import"./organization.e888fb8a.js";import"./custom.80649d41.js";const _e=m("\u67E5\u8BE2"),fe=m("\u91CD\u7F6E"),ve=m(" \u65B0\u589E "),we=m(" \u5220\u9664 "),Ee={class:"mt-4"},ye=m(" \u7F16\u8F91 "),Be=m(" \u5220\u9664 "),Fe=m(" \u8BE6\u60C5 "),he={class:"flex justify-end mt-4"},be=R({name:"projectLists"}),mt=R({...be,setup(Ce){$([]);const B=P(),w=P(),E=b(!1),F=b(!1),i=$({name:"",happen_time:"",device_accident:"",type:""}),h=b([]),S=u=>{h.value=u.map(({id:t})=>t)},{dictData:D}=ne("refund_type"),{pager:f,getLists:y,resetParams:T,resetPage:U}=ue({fetchFun:se,params:i}),j=async()=>{var u;E.value=!0,await C(),(u=w.value)==null||u.open("add")},N=async u=>{var s,n;let t=await x({id:u.id});E.value=!0,await C(),(s=w.value)==null||s.open("edit"),(n=w.value)==null||n.setFormData(t)},k=async u=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:u}),y()},Y=async u=>{var s,n;let t=await x({id:u.id});F.value=!0,await C(),(s=B.value)==null||s.open(),(n=B.value)==null||n.setFormData(t)};return y(),(u,t)=>{const s=z,n=H,M=J,c=K,q=W,V=X,I=le,l=Z,O=ee,G=oe,v=de("perms"),Q=te;return r(),ce("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(q,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(n,{label:"\u4E8B\u6545\u7C7B\u578B",prop:"type"},{default:o(()=>[e(s,{class:"w-[280px]",modelValue:i.device_accident,"onUpdate:modelValue":t[0]||(t[0]=a=>i.device_accident=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u6545\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8BBE\u5907\u4E8B\u6545",prop:"type"},{default:o(()=>[e(s,{class:"w-[280px]",modelValue:i.device_accident,"onUpdate:modelValue":t[1]||(t[1]=a=>i.device_accident=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u4E8B\u6545"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u4E8B\u6545\u540D\u79F0",prop:"name"},{default:o(()=>[e(s,{class:"w-[280px]",modelValue:i.name,"onUpdate:modelValue":t[2]||(t[2]=a=>i.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u6545\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u53D1\u751F\u65F6\u95F4",prop:"require"},{default:o(()=>[e(M,{class:"w-[280px]",modelValue:i.happen_time,"onUpdate:modelValue":t[3]||(t[3]=a=>i.happen_time=a),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u53D1\u751F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(n,null,{default:o(()=>[e(c,{type:"primary",onClick:p(U)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(c,{onClick:p(T)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),d(V,{class:"!border-none",shadow:"never"},{default:o(()=>[_((r(),d(c,{type:"primary",onClick:j},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[v,["safety.safety_accident/add"]]]),_((r(),d(c,{disabled:!h.value.length,onClick:t[4]||(t[4]=a=>k(h.value))},{default:o(()=>[we]),_:1},8,["disabled"])),[[v,["safety.safety_accident/delete"]]]),L("div",Ee,[e(O,{border:"",data:p(f).lists,onSelectionChange:S},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(l,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(l,{label:"\u4E8B\u6545\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u751F\u65F6\u95F4",prop:"happen_time","show-overflow-tooltip":""}),e(l,{label:"\u4E8B\u6545\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(l,{label:"\u8BBE\u5907\u4E8B\u6545",prop:"device_accident","show-overflow-tooltip":""}),e(l,{label:"\u627F\u5305\u5546\u4EBA\u5458",prop:"contractor_user","show-overflow-tooltip":""}),e(l,{label:"\u975E\u672C\u4F01\u4E1A\u4EBA\u5458",prop:"not_our_company_user","show-overflow-tooltip":"",width:"120"}),e(l,{label:"\u672C\u4F01\u4E1A\u4EBA\u5458",prop:"our_company_user","show-overflow-tooltip":""}),e(l,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[_((r(),d(c,{type:"primary",link:"",onClick:g=>N(a)},{default:o(()=>[ye]),_:2},1032,["onClick"])),[[v,["safety.safety_accident/edit"]]]),_((r(),d(c,{type:"danger",link:"",onClick:g=>k(a.id)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[v,["safety.safety_accident/delete"]]]),_((r(),d(c,{link:"",onClick:g=>Y(a)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[v,["safety.safety_accident/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",he,[e(G,{modelValue:p(f),"onUpdate:modelValue":t[5]||(t[5]=a=>me(f)?f.value=a:null),onChange:p(y)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,p(f).loading]]),E.value?(r(),d(ie,{key:0,ref_key:"editRef",ref:w,"dict-data":p(D),onSuccess:p(y),onClose:t[6]||(t[6]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0),F.value?(r(),d(pe,{key:1,ref_key:"detailRef",ref:B,"dict-data":p(D),onClose:t[7]||(t[7]=a=>F.value=!1)},null,8,["dict-data"])):A("",!0)])}}});export{mt as default};