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

2 lines
7.1 KiB
JavaScript

import{I as R,y as U,w as j,D as I,C as O,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee,c as oe}from"./edit.vue_vue_type_script_setup_true_name_supervisionConstructionManagementPersonnelEdit_lang.d3ed9efc.js";import"./lodash.1d82ee7c.js";import{d as q,s as te,r as g,a0 as ae,ai as le,o as _,c as ie,V as e,M as t,O as f,u as i,L as c,S as ne,a as k,k as ue,T as p,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.36fc80fc.js";import"./supervision_participating_units_qualifications.93c14ce5.js";import"./index.vue_vue_type_script_setup_true_lang.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const se=p("\u67E5\u8BE2"),re=p("\u91CD\u7F6E"),pe=p("\u67E5\u8BE2"),_e=p("\u91CD\u7F6E"),me=p(" \u65B0\u589E "),ce=p(" \u5220\u9664 "),de={class:"mt-4"},fe=p(" \u7F16\u8F91 "),we=p(" \u5220\u9664 "),ve={class:"flex justify-end mt-4"},De=q({name:"supervisionSafetyManagementPersonnelLists"}),ro=q({...De,setup(be){const w=te(),v=g(!1),u=ae({project_id:"",name:"",company_id:"",qualification_name_one:"",qualification_name_two:""}),h=g([]),V=n=>{h.value=n.map(({id:a})=>a)},{dictData:x}=X(""),{pager:d,getLists:D,resetParams:C,resetPage:F}=W({fetchFun:Z,params:u}),S=async()=>{var n;v.value=!0,await B(),(n=w.value)==null||n.open("add")},A=async n=>{var m,s;let a=await ee({id:n.id});v.value=!0,await B(),(m=w.value)==null||m.open("edit"),(s=w.value)==null||s.setFormData(a)},y=async n=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:n}),D()};return D(),(n,a)=>{const m=R,s=U,r=j,P=I,E=O,$=Q,o=z,L=G,M=J,b=le("perms"),N=H;return _(),ie("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(s,{label:"\u59D3\u540D",prop:"name"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u.name,"onUpdate:modelValue":a[0]||(a[0]=l=>u.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u.qualification_name_one,"onUpdate:modelValue":a[1]||(a[1]=l=>u.qualification_name_one=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F01"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u.qualification_name_two,"onUpdate:modelValue":a[2]||(a[2]=l=>u.qualification_name_two=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F02"},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(r,{type:"primary",onClick:i(F)},{default:t(()=>[se]),_:1},8,["onClick"]),e(r,{onClick:i(C)},{default:t(()=>[re]),_:1},8,["onClick"])]),_:1}),e(s,null,{default:t(()=>[e(r,{type:"primary",onClick:i(F)},{default:t(()=>[pe]),_:1},8,["onClick"]),e(r,{onClick:i(C)},{default:t(()=>[_e]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((_(),c(E,{class:"!border-none",shadow:"never"},{default:t(()=>[f((_(),c(r,{type:"primary",onClick:S},{icon:t(()=>[e($,{name:"el-icon-Plus"})]),default:t(()=>[me]),_:1})),[[b,["supervision_qualification_review.supervision_safety_management_personnel/add"]]]),f((_(),c(r,{disabled:!h.value.length,onClick:a[3]||(a[3]=l=>y(h.value))},{default:t(()=>[ce]),_:1},8,["disabled"])),[[b,["supervision_qualification_review.supervision_safety_management_personnel/delete"]]]),k("div",de,[e(L,{data:i(d).lists,onSelectionChange:V},{default:t(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(o,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"company_name","show-overflow-tooltip":""}),e(o,{label:"\u8EAB\u4EFD\u8BC1",prop:"id_card","show-overflow-tooltip":""}),e(o,{label:"\u6280\u672F\u804C\u79F0",prop:"technical_title","show-overflow-tooltip":""}),e(o,{label:"\u5C97\u4F4D",prop:"job","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one","show-overflow-tooltip":""}),e(o,{label:"\u8BA4\u8BC1\u673A\u67841",prop:"certification_body_one","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u7F16\u53F71",prop:"qualification_number_one","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u8BC1\u65E5\u671F1",prop:"get_date_one","show-overflow-tooltip":""}),e(o,{label:"\u6709\u6548\u65E5\u671F1",prop:"effective_date_one","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D281\u72B6\u6001",prop:"qualification_one_status_text","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two","show-overflow-tooltip":""}),e(o,{label:"\u8BA4\u8BC1\u673A\u67842",prop:"certification_body_two","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u7F16\u53F72",prop:"qualification_number_two","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u8BC1\u65E5\u671F2",prop:"get_date_two","show-overflow-tooltip":""}),e(o,{label:"\u6709\u6548\u65E5\u671F2",prop:"effective_date_two","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D282\u72B6\u6001 ",prop:"qualification_two_status_text","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(o,{label:"\u521B\u5EFA\u4EBA",prop:"create_user_name","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((_(),c(r,{type:"primary",link:"",onClick:T=>A(l)},{default:t(()=>[fe]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_safety_management_personnel/edit"]]]),f((_(),c(r,{type:"danger",link:"",onClick:T=>y(l.id)},{default:t(()=>[we]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_safety_management_personnel/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",ve,[e(M,{modelValue:i(d),"onUpdate:modelValue":a[4]||(a[4]=l=>ue(d)?d.value=l:null),onChange:i(D)},null,8,["modelValue","onChange"])])]),_:1})),[[N,i(d).loading]]),v.value?(_(),c(Y,{key:0,ref_key:"editRef",ref:w,"dict-data":i(x),onSuccess:i(D),onClose:a[5]||(a[5]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{ro as default};