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

2 lines
7.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,a2 as oe,M as te,N as le}from"./element-plus.258bf9e7.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ue,a as re}from"./index.ec401e3b.js";import{u as se}from"./usePaging.f6660143.js";import{u as ne}from"./useDictOptions.c644f395.js";import{c as pe,s as ie,d as ce}from"./safety_check.a64e23cf.js";import{d as U,a0 as x,s as A,r as y,ai as de,o as r,c as f,V as e,M as a,O as h,u as p,L as c,S as L,a as $,W as me,a8 as _e,k as fe,T as d,n as P,U as he}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as ke}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.2a8e2841.js";import Ee from"./detail.9dafd76e.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 we=d("\u67E5\u8BE2"),ve=d("\u91CD\u7F6E"),Ce=d(" \u65B0\u589E "),be=d(" \u5220\u9664 "),ye={class:"mt-4"},Fe={key:0},De={key:1},Ve=d(" \u7F16\u8F91 "),ge=d(" \u5220\u9664 "),Be={class:"flex justify-end mt-4"},xe=U({name:"projectLists"}),Fo=U({...xe,setup(Ae){x([]);const R=A(),k=A(),E=y(!1),F=y(!1),u=x({check_name:"",check_date:"",check_company:"",check_user:"",check_area:""}),C=y([]),S=s=>{C.value=s.map(({id:t})=>t)},{dictData:D}=ne("refund_type"),{pager:_,getLists:w,resetParams:N,resetPage:T}=se({fetchFun:pe,params:u}),j=async()=>{var s;E.value=!0,await P(),(s=k.value)==null||s.open("add")},M=async s=>{var i,n;console.log(s.id);let t=await ie({id:s.id});E.value=!0,await P(),(i=k.value)==null||i.open("edit"),(n=k.value)==null||n.setFormData(t)},V=async s=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ce({id:s}),w()};return w(),(s,t)=>{const i=G,n=H,Y=K,m=Q,I=X,g=Z,q=re,o=ee,z=oe,J=te,O=ae,v=de("perms"),W=le;return r(),f("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(I,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[e(n,{label:"\u68C0\u67E5\u540D\u79F0",prop:"check_name"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:u.check_name,"onUpdate:modelValue":t[0]||(t[0]=l=>u.check_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u68C0\u67E5\u4EBA",prop:"check_user"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:u.check_user,"onUpdate:modelValue":t[1]||(t[1]=l=>u.check_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u4EBA"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u68C0\u67E5\u5355\u4F4D",prop:"check_company"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:u.check_company,"onUpdate:modelValue":t[2]||(t[2]=l=>u.check_company=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u68C0\u67E5\u533A\u57DF",prop:"check_area"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:u.check_area,"onUpdate:modelValue":t[3]||(t[3]=l=>u.check_area=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u533A\u57DF"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u68C0\u67E5\u65E5\u671F",prop:"check_date"},{default:a(()=>[e(Y,{class:"w-[280px]",modelValue:u.check_date,"onUpdate:modelValue":t[4]||(t[4]=l=>u.check_date=l),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u68C0\u67E5\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(m,{type:"primary",onClick:p(T)},{default:a(()=>[we]),_:1},8,["onClick"]),e(m,{onClick:p(N)},{default:a(()=>[ve]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((r(),c(g,{class:"!border-none",shadow:"never"},{default:a(()=>[h((r(),c(m,{type:"primary",onClick:j},{icon:a(()=>[e(q,{name:"el-icon-Plus"})]),default:a(()=>[Ce]),_:1})),[[v,["safety.safety_check/add"]]]),h((r(),c(m,{disabled:!C.value.length,onClick:t[5]||(t[5]=l=>V(C.value))},{default:a(()=>[be]),_:1},8,["disabled"])),[[v,["safety.safety_check/delete"]]]),$("div",ye,[e(J,{data:p(_).lists,onSelectionChange:S},{default:a(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(o,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(o,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u540D\u79F0",prop:"check_name","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u65E5\u671F",prop:"check_date","show-overflow-tooltip":""}),e(o,{label:"\u6574\u6539\u671F\u9650",prop:"modify_term","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u4EBA",prop:"check_user","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u5355\u4F4D",prop:"check_company","show-overflow-tooltip":""}),e(o,{label:"\u6574\u6539\u5355\u4F4D",prop:"modify_company","show-overflow-tooltip":""}),e(o,{label:"\u8D23\u4EFB\u4EBA",prop:"resp_user","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u533A\u57DF",prop:"check_area","show-overflow-tooltip":""}),e(o,{label:"\u98CE\u9669\u7B49\u7EA7",prop:"risk_level","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u9879",prop:"check_item","show-overflow-tooltip":""}),e(o,{label:"\u5B89\u5168\u9690\u60A3",prop:"safety_hazard","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u6027\u8D28",prop:"check_nature","show-overflow-tooltip":""}),e(o,{label:"\u68C0\u67E5\u7ED3\u679C",prop:"check_result","show-overflow-tooltip":""}),e(o,{label:"\u8D28\u91CF\u9690\u60A3",prop:"quality_hazard","show-overflow-tooltip":""}),e(o,{label:"\u5B50\u8868",prop:"content","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(o,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:a(({row:l})=>[l.file&&l.file.length>0?(r(),f("div",Fe,[(r(!0),f(me,null,_e(l.file,(b,B)=>(r(),f("div",{key:B},[e(z,{href:b,target:"_blank"},{default:a(()=>[d("\u6587\u4EF6"+he(B+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(r(),f("div",De," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(o,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:l})=>[h((r(),c(m,{type:"primary",link:"",onClick:b=>M(l)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[v,["safety.safety_check/edit"]]]),h((r(),c(m,{type:"danger",link:"",onClick:b=>V(l.id)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[v,["safety.safety_check/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",Be,[e(O,{modelValue:p(_),"onUpdate:modelValue":t[6]||(t[6]=l=>fe(_)?_.value=l:null),onChange:p(w)},null,8,["modelValue","onChange"])])]),_:1})),[[W,p(_).loading]]),E.value?(r(),c(ke,{key:0,ref_key:"editRef",ref:k,"dict-data":p(D),onSuccess:p(w),onClose:t[7]||(t[7]=l=>E.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),F.value?(r(),c(Ee,{key:1,ref_key:"detailRef",ref:R,"dict-data":p(D),onClose:t[8]||(t[8]=l=>F.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{Fo as default};