2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{I as R,y as j,w as I,D as A,C as M,L as O,M as z,N as G}from"./element-plus.258bf9e7.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as J,a as K}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{a as Y,d as Z,e as ee}from"./supervision_participating_units_qualifications.93c14ce5.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_supervisionParticipatingUnitsQualificationsEdit_lang.19dafd98.js";import{d as q,s as te,r as g,a0 as oe,ai as ae,o as s,c as ne,V as e,M as i,O as f,u as l,L as c,S as le,a as k,k as se,T as m,n as E}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.305c8f92.js";import"./supervision_participating_units.aea21075.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 ue=m("\u67E5\u8BE2"),re=m("\u91CD\u7F6E"),pe=m(" \u65B0\u589E "),ce=m(" \u5220\u9664 "),me={class:"mt-4"},_e=m(" \u7F16\u8F91 "),de=m(" \u5220\u9664 "),fe={class:"flex mt-4 justify-end"},ve=q({name:"supervisionParticipatingUnitsQualificationsLists"}),ui=q({...ve,setup(we){const v=te(),w=g(!1),u=oe({project_id:"",company_id:"",qualification_name:"",qualification_number:""}),h=g([]),y=n=>{h.value=n.map(({id:t})=>t)},{dictData:V}=X(""),{pager:_,getLists:D,resetParams:B,resetPage:x}=W({fetchFun:Y,params:u}),P=async()=>{var n;w.value=!0,await E(),(n=v.value)==null||n.open("add")},S=async n=>{var d,r;let t=await Z({id:n.id});w.value=!0,await E(),(d=v.value)==null||d.open("edit"),(r=v.value)==null||r.setFormData(t)},F=async n=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:n}),D()};return D(),(n,t)=>{const d=R,r=j,p=I,U=A,C=M,$=K,o=O,L=z,N=H,b=ae("perms"),T=G;return s(),ne("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:i(()=>[e(U,{class:"mb-[-16px]",model:u,inline:""},{default:i(()=>[e(r,{label:"\u8D44\u8D28\u540D\u79F0",prop:"qualification_name"},{default:i(()=>[e(d,{class:"w-[280px]",modelValue:u.qualification_name,"onUpdate:modelValue":t[0]||(t[0]=a=>u.qualification_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u8D44\u8D28\u7F16\u53F7",prop:"qualification_number"},{default:i(()=>[e(d,{class:"w-[280px]",modelValue:u.qualification_number,"onUpdate:modelValue":t[1]||(t[1]=a=>u.qualification_number=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,null,{default:i(()=>[e(p,{type:"primary",onClick:l(x)},{default:i(()=>[ue]),_:1},8,["onClick"]),e(p,{onClick:l(B)},{default:i(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),c(C,{class:"!border-none",shadow:"never"},{default:i(()=>[f((s(),c(p,{type:"primary",onClick:P},{icon:i(()=>[e($,{name:"el-icon-Plus"})]),default:i(()=>[pe]),_:1})),[[b,["supervision_qualification_review.supervision_participating_units_qualifications/add"]]]),f((s(),c(p,{disabled:!h.value.length,onClick:t[2]||(t[2]=a=>F(h.value))},{default:i(()=>[ce]),_:1},8,["disabled"])),[[b,["supervision_qualification_review.supervision_participating_units_qualifications/delete"]]]),k("div",me,[e(L,{data:l(_).lists,onSelectionChange:y},{default:i(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(o,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"company_id","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u540D\u79F0",prop:"qualification_name","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u7F16\u53F7",prop:"qualification_number","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u8BC1\u65E5\u671F",prop:"get_date","show-overflow-tooltip":""}),e(o,{label:"\u6709\u6548\u65E5\u671F",prop:"effective_date","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u72B6\u6001",prop:"qualification_status_text","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:i(({row:a})=>[f((s(),c(p,{type:"primary",link:"",onClick:Q=>S(a)},{default:i(()=>[_e]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_participating_units_qualifications/edit"]]]),f((s(),c(p,{type:"danger",link:"",onClick:Q=>F(a.id)},{default:i(()=>[de]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_participating_units_qualifications/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",fe,[e(N,{modelValue:l(_),"onUpdate:modelValue":t[3]||(t[3]=a=>se(_)?_.value=a:null),onChange:l(D)},null,8,["modelValue","onChange"])])]),_:1})),[[T,l(_).loading]]),w.value?(s(),c(ie,{key:0,ref_key:"editRef",ref:v,"dict-data":l(V),onSuccess:l(D),onClose:t[4]||(t[4]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{ui as default};
|