2 lines
6.9 KiB
JavaScript
2 lines
6.9 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.517d4382.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as K,a as Q}from"./index.8b1962e9.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.b5854a9e.js";import{_ as Y,a as Z,b as oo}from"./edit.vue_vue_type_script_setup_true_name_supervisionConstructionManagementPersonnelEdit_lang.d3baae43.js";import"./lodash.1d82ee7c.js";import{d as k,s as eo,r as g,a0 as to,ai as ao,o as s,c as lo,V as o,M as a,O as d,u,L as m,S as io,a as E,k as no,T as _,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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.0b61f990.js";import"./supervision_participating_units.dda8567a.js";import"./index.vue_vue_type_script_setup_true_lang.471c5751.js";import"./supervision_project.4c9eb87e.js";import"./index.e6dda1f5.js";import"./index.b17dae19.js";const uo=_("\u67E5\u8BE2"),so=_("\u91CD\u7F6E"),ro=_(" \u65B0\u589E "),po=_(" \u5220\u9664 "),mo={class:"mt-4"},_o=_(" \u7F16\u8F91 "),co=_(" \u5220\u9664 "),fo={class:"flex justify-end mt-4"},wo=k({name:"supervisionConstructionManagementPersonnelLists"}),ue=k({...wo,setup(vo){const f=eo(),w=g(!1),n=to({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:c,getLists:v,resetParams:V,resetPage:x}=W({fetchFun:Z,params:n}),A=async()=>{var i;w.value=!0,await B(),(i=f.value)==null||i.open("add")},P=async i=>{var t,r;w.value=!0,await B(),(t=f.value)==null||t.open("edit"),(r=f.value)==null||r.setFormData(i)},F=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oo({id:i}),v()};return v(),(i,t)=>{const r=R,D=U,p=j,S=I,C=O,$=Q,e=z,L=G,M=J,b=ao("perms"),N=H;return s(),lo("div",null,[o(C,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(S,{class:"mb-[-16px]",model:n,inline:""},{default:a(()=>[o(D,{label:"\u59D3\u540D",prop:"name"},{default:a(()=>[o(r,{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(D,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one"},{default:a(()=>[o(r,{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(D,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two"},{default:a(()=>[o(r,{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(D,null,{default:a(()=>[o(p,{type:"primary",onClick:u(x)},{default:a(()=>[uo]),_:1},8,["onClick"]),o(p,{onClick:u(V)},{default:a(()=>[so]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),m(C,{class:"!border-none",shadow:"never"},{default:a(()=>[d((s(),m(p,{type:"primary",onClick:A},{icon:a(()=>[o($,{name:"el-icon-Plus"})]),default:a(()=>[ro]),_:1})),[[b,["supervision_qualification_review.supervision_construction_management_personnel/add"]]]),d((s(),m(p,{disabled:!h.value.length,onClick:t[3]||(t[3]=l=>F(h.value))},{default:a(()=>[po]),_:1},8,["disabled"])),[[b,["supervision_qualification_review.supervision_construction_management_personnel/delete"]]]),E("div",mo,[o(L,{data:u(c).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})=>[d((s(),m(p,{type:"primary",link:"",onClick:T=>P(l)},{default:a(()=>[_o]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_construction_management_personnel/edit"]]]),d((s(),m(p,{type:"danger",link:"",onClick:T=>F(l.id)},{default:a(()=>[co]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_construction_management_personnel/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",fo,[o(M,{modelValue:u(c),"onUpdate:modelValue":t[4]||(t[4]=l=>no(c)?c.value=l:null),onChange:u(v)},null,8,["modelValue","onChange"])])]),_:1})),[[N,u(c).loading]]),w.value?(s(),m(Y,{key:0,ref_key:"editRef",ref:f,"dict-data":u(q),onSuccess:u(v),onClose:t[5]||(t[5]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):io("",!0)])}}});export{ue as default};
|