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

2 lines
7.0 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 oo,c as eo}from"./edit.vue_vue_type_script_setup_true_name_supervisionConstructionManagementPersonnelEdit_lang.f3fa810c.js";import"./lodash.1d82ee7c.js";import{d as k,s as to,r as g,a0 as ao,ai as lo,o as r,c as io,V as o,M as a,O as f,u,L as _,S as no,a as E,k as uo,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.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 so=c("\u67E5\u8BE2"),ro=c("\u91CD\u7F6E"),po=c(" \u65B0\u589E "),mo=c(" \u5220\u9664 "),_o={class:"mt-4"},co=c(" \u7F16\u8F91 "),fo=c(" \u5220\u9664 "),wo={class:"flex justify-end mt-4"},vo=k({name:"supervisionConstructionManagementPersonnelLists"}),se=k({...vo,setup(Do){const w=to(),v=g(!1),n=ao({project_id:"",name:"",company_id:"",qualification_name_one:"",qualification_name_two:""}),h=g([]),y=i=>{h.value=i.map(({id:t})=>t)},{dictData:q}=X(""),{pager:d,getLists:D,resetParams:V,resetPage:x}=W({fetchFun:Z,params:n}),A=async()=>{var i;v.value=!0,await B(),(i=w.value)==null||i.open("add")},P=async i=>{var p,s;let t=await oo({id:i.id});v.value=!0,await B(),(p=w.value)==null||p.open("edit"),(s=w.value)==null||s.setFormData(t)},C=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await eo({id:i}),D()};return D(),(i,t)=>{const p=R,s=U,m=j,S=I,F=O,$=Q,e=z,L=G,M=J,b=lo("perms"),N=H;return r(),io("div",null,[o(F,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(S,{class:"mb-[-16px]",model:n,inline:""},{default:a(()=>[o(s,{label:"\u59D3\u540D",prop:"name"},{default:a(()=>[o(p,{class:"w-[280px]",modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=l=>n.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),o(s,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one"},{default:a(()=>[o(p,{class:"w-[280px]",modelValue:n.qualification_name_one,"onUpdate:modelValue":t[1]||(t[1]=l=>n.qualification_name_one=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F01"},null,8,["modelValue"])]),_:1}),o(s,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two"},{default:a(()=>[o(p,{class:"w-[280px]",modelValue:n.qualification_name_two,"onUpdate:modelValue":t[2]||(t[2]=l=>n.qualification_name_two=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F02"},null,8,["modelValue"])]),_:1}),o(s,null,{default:a(()=>[o(m,{type:"primary",onClick:u(x)},{default:a(()=>[so]),_:1},8,["onClick"]),o(m,{onClick:u(V)},{default:a(()=>[ro]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),_(F,{class:"!border-none",shadow:"never"},{default:a(()=>[f((r(),_(m,{type:"primary",onClick:A},{icon:a(()=>[o($,{name:"el-icon-Plus"})]),default:a(()=>[po]),_:1})),[[b,["supervision_qualification_review.supervision_construction_management_personnel/add"]]]),f((r(),_(m,{disabled:!h.value.length,onClick:t[3]||(t[3]=l=>C(h.value))},{default:a(()=>[mo]),_:1},8,["disabled"])),[[b,["supervision_qualification_review.supervision_construction_management_personnel/delete"]]]),E("div",_o,[o(L,{data:u(d).lists,onSelectionChange:y},{default:a(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),o(e,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"company_name","show-overflow-tooltip":""}),o(e,{label:"\u8EAB\u4EFD\u8BC1",prop:"id_card","show-overflow-tooltip":""}),o(e,{label:"\u6280\u672F\u804C\u79F0",prop:"technical_title","show-overflow-tooltip":""}),o(e,{label:"\u5C97\u4F4D",prop:"job","show-overflow-tooltip":""}),o(e,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one","show-overflow-tooltip":""}),o(e,{label:"\u8BA4\u8BC1\u673A\u67841",prop:"certification_body_one","show-overflow-tooltip":""}),o(e,{label:"\u8D44\u8D28\u7F16\u53F71",prop:"qualification_number_one","show-overflow-tooltip":""}),o(e,{label:"\u53D1\u8BC1\u65E5\u671F1",prop:"get_date_one","show-overflow-tooltip":""}),o(e,{label:"\u6709\u6548\u65E5\u671F1",prop:"effective_date_one","show-overflow-tooltip":""}),o(e,{label:"\u8D44\u8D281\u72B6\u6001",prop:"qualification_one_status_text","show-overflow-tooltip":""}),o(e,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two","show-overflow-tooltip":""}),o(e,{label:"\u8BA4\u8BC1\u673A\u67842",prop:"certification_body_two","show-overflow-tooltip":""}),o(e,{label:"\u8D44\u8D28\u7F16\u53F72",prop:"qualification_number_two","show-overflow-tooltip":""}),o(e,{label:"\u53D1\u8BC1\u65E5\u671F2",prop:"get_date_two","show-overflow-tooltip":""}),o(e,{label:"\u6709\u6548\u65E5\u671F2",prop:"effective_date_two","show-overflow-tooltip":""}),o(e,{label:"\u8D44\u8D282\u72B6\u6001 ",prop:"qualification_two_status_text","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u521B\u5EFA\u4EBA",prop:"create_user_name","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[f((r(),_(m,{type:"primary",link:"",onClick:T=>P(l)},{default:a(()=>[co]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_construction_management_personnel/edit"]]]),f((r(),_(m,{type:"danger",link:"",onClick:T=>C(l.id)},{default:a(()=>[fo]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_construction_management_personnel/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",wo,[o(M,{modelValue:u(d),"onUpdate:modelValue":t[4]||(t[4]=l=>uo(d)?d.value=l:null),onChange:u(D)},null,8,["modelValue","onChange"])])]),_:1})),[[N,u(d).loading]]),v.value?(r(),_(Y,{key:0,ref_key:"editRef",ref:w,"dict-data":u(q),onSuccess:u(D),onClose:t[5]||(t[5]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):no("",!0)])}}});export{se as default};