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

2 lines
7.5 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as W,L as X,M as Y,N as Z}from"./element-plus.258bf9e7.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as oe,a as te}from"./index.ec401e3b.js";import{u as le}from"./usePaging.f6660143.js";import{u as ae}from"./useDictOptions.c644f395.js";import{_ as ue,s as se,a as V,b as re}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.7439f8a5.js";import"./lodash.1d82ee7c.js";import ne from"./detail.9bc0845e.js";import{d as P,a0 as x,s as $,r as h,ai as ie,o as i,c as pe,V as e,M as l,O as _,u as p,L as m,S as z,a as L,k as me,T as c,n as B}from"./@vue.ab566ce7.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 de=c("\u67E5\u8BE2"),ce=c("\u91CD\u7F6E"),_e=c(" \u65B0\u589E "),fe=c(" \u5220\u9664 "),De={class:"mt-4"},ve=c(" \u7F16\u8F91 "),Ee=c(" \u5220\u9664 "),we=c(" \u8BE6\u60C5 "),ye={class:"flex justify-end mt-4"},Fe=P({name:"projectLists"}),fo=P({...Fe,setup(be){x([]);const y=$(),v=$(),E=h(!1),F=h(!1),r=x({fill_company:"",construction_company_user:"",supervision_company_user:"",build_company_user:""}),b=h([]),R=u=>{b.value=u.map(({id:o})=>o)},{dictData:C}=ae("refund_type"),{pager:f,getLists:w,resetParams:N,resetPage:S}=le({fetchFun:se,params:r}),T=async()=>{var u;E.value=!0,await B(),(u=v.value)==null||u.open("add")},U=async u=>{var n,s;console.log(u.id);let o=await V({id:u.id});E.value=!0,await B(),(n=v.value)==null||n.open("edit"),(s=v.value)==null||s.setFormData(o)},A=async u=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:u}),w()},j=async u=>{var n,s;let o=await V({id:u.id});F.value=!0,await B(),(n=y.value)==null||n.open(),(s=y.value)==null||s.setFormData(o)};return w(),(u,o)=>{const n=H,s=J,d=K,I=Q,k=W,M=te,t=X,q=Y,O=ee,D=ie("perms"),G=Z;return i(),pe("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(I,{class:"mb-[-16px]",model:r,inline:""},{default:l(()=>[e(s,{label:"\u586B\u62A5\u5355\u4F4D",prop:"fill_company"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:r.fill_company,"onUpdate:modelValue":o[0]||(o[0]=a=>r.fill_company=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u586B\u62A5\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u65BD\u5DE5\u5355\u4F4D\u8D1F\u8D23\u4EBA",prop:"construction_company_user"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:r.construction_company_user,"onUpdate:modelValue":o[1]||(o[1]=a=>r.construction_company_user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u65BD\u5DE5\u5355\u4F4D\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u76D1\u7406\u5355\u4F4D\u8D1F\u8D23\u4EBA",prop:"supervision_company_user"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:r.supervision_company_user,"onUpdate:modelValue":o[2]||(o[2]=a=>r.supervision_company_user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u76D1\u7406\u5355\u4F4D\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5EFA\u8BBE\u5355\u4F4D\u8D1F\u8D23\u4EBA",prop:"build_company_user"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:r.build_company_user,"onUpdate:modelValue":o[3]||(o[3]=a=>r.build_company_user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5EFA\u8BBE\u5355\u4F4D\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(d,{type:"primary",onClick:p(S)},{default:l(()=>[de]),_:1},8,["onClick"]),e(d,{onClick:p(N)},{default:l(()=>[ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(k,{class:"!border-none",shadow:"never"},{default:l(()=>[_((i(),m(d,{type:"primary",onClick:T},{icon:l(()=>[e(M,{name:"el-icon-Plus"})]),default:l(()=>[_e]),_:1})),[[D,["safety.safety_hazard/add"]]]),_((i(),m(d,{disabled:!b.value.length,onClick:o[4]||(o[4]=a=>A(b.value))},{default:l(()=>[fe]),_:1},8,["disabled"])),[[D,["safety.safety_hazard/delete"]]]),L("div",De,[e(q,{data:p(f).lists,onSelectionChange:R},{default:l(()=>[e(t,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(t,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(t,{label:"\u586B\u62A5\u5355\u4F4D",prop:"fill_company","show-overflow-tooltip":""}),e(t,{label:"\u65BD\u5DE5\u5355\u4F4D\u8D1F\u8D23\u4EBA",prop:"construction_company_user","show-overflow-tooltip":""}),e(t,{label:"\u76D1\u7406\u5355\u4F4D\u8D1F\u8D23\u4EBA",prop:"supervision_company_user","show-overflow-tooltip":""}),e(t,{label:"\u5EFA\u8BBE\u5355\u4F4D\u8D1F\u8D23\u4EBA",prop:"build_company_user","show-overflow-tooltip":""}),e(t,{label:"\u5371\u9669\u6E90",prop:"source","show-overflow-tooltip":""}),e(t,{label:"\u53EF\u80FD\u53D1\u751F\u4E8B\u6545",prop:"accident","show-overflow-tooltip":""}),e(t,{label:"\u98CE\u9669\u7B49\u7EA7",prop:"control_level","show-overflow-tooltip":""}),e(t,{label:"\u7BA1\u63A7\u5C42\u7EA7",prop:"build_company_user","show-overflow-tooltip":""}),e(t,{label:"\u4E3B\u8D23\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),e(t,{label:"\u4E3B\u8981\u4EBA\u5458",prop:"users","show-overflow-tooltip":""}),e(t,{label:"\u6280\u672F\u63AA\u65BD",prop:"technical_measure","show-overflow-tooltip":""}),e(t,{label:"\u7BA1\u7406\u63AA\u65BD",prop:"manage_measure","show-overflow-tooltip":""}),e(t,{label:"\u5E94\u6025\u63AA\u65BD",prop:"emergency_measure","show-overflow-tooltip":""}),e(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:l(({row:a})=>[_((i(),m(d,{type:"primary",link:"",onClick:g=>U(a)},{default:l(()=>[ve]),_:2},1032,["onClick"])),[[D,["safety.safety_hazard/edit"]]]),_((i(),m(d,{type:"danger",link:"",onClick:g=>A(a.id)},{default:l(()=>[Ee]),_:2},1032,["onClick"])),[[D,["safety.safety_hazard/delete"]]]),_((i(),m(d,{link:"",onClick:g=>j(a)},{default:l(()=>[we]),_:2},1032,["onClick"])),[[D,["safety.safety_hazard/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",ye,[e(O,{modelValue:p(f),"onUpdate:modelValue":o[5]||(o[5]=a=>me(f)?f.value=a:null),onChange:p(w)},null,8,["modelValue","onChange"])])]),_:1})),[[G,p(f).loading]]),E.value?(i(),m(ue,{key:0,ref_key:"editRef",ref:v,"dict-data":p(C),onSuccess:p(w),onClose:o[6]||(o[6]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):z("",!0),F.value?(i(),m(ne,{key:1,ref_key:"detailRef",ref:y,"dict-data":p(C),onClose:o[7]||(o[7]=a=>F.value=!1)},null,8,["dict-data"])):z("",!0)])}}});export{fo as default};