2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
import{I as K,y as Q,w as X,D as Y,C as Z,L as ee,a2 as oe,M as te,N as ae}from"./element-plus.258bf9e7.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ne,a as ue}from"./index.ec401e3b.js";import{u as re}from"./usePaging.f6660143.js";import{u as ie}from"./useDictOptions.c644f395.js";import{i as se,b as $,a as pe}from"./project_salary.ad3c75be.js";import{d as S,a0 as L,s as U,r as w,ai as de,o as l,c as F,V as e,M as a,O as _,u as p,L as d,S as P,a as R,W as me,a8 as ce,k as _e,T as m,n as g,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.79b003ad.js";import Fe from"./detail.537ca3b1.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.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./project_insurance_management.82214213.js";import"./index.vue_vue_type_script_setup_true_lang.0ec25c70.js";import"./project_personnel.09fb588e.js";import"./custom.13e75d58.js";const ye=m("\u67E5\u8BE2"),Ce=m("\u91CD\u7F6E"),De=m(" \u65B0\u589E "),be=m(" \u5220\u9664 "),he={class:"mt-4"},Ee={key:0},ke={key:1},we=m(" \u7F16\u8F91 "),ge=m(" \u5220\u9664 "),Ve=m(" \u8BE6\u60C5 "),Be={class:"flex justify-end mt-4"},je=S({name:"projectLists"}),ko=S({...je,setup(xe){L([]);const h=U(),y=U(),C=w(!1),E=w(!1),n=L({type:"",insurance_no:"",insurance_company:"",invoice_no:"",handler:""}),k=w([]),N=u=>{k.value=u.map(({id:o})=>o)},{dictData:V}=ie("labor_contract_status,labor_contract_type,labor_contract_name,pay_type"),{pager:f,getLists:D,resetParams:T,resetPage:A}=re({fetchFun:se,params:n}),I=async()=>{var u;C.value=!0,await g(),(u=y.value)==null||u.open("add")},M=async u=>{var i,r;console.log(u.id);let o=await $({id:u.id});C.value=!0,await g(),(i=y.value)==null||i.open("edit"),(r=y.value)==null||r.setFormData(o)},B=async u=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:u}),D()},q=async u=>{var i,r;let o=await $({id:u.id});E.value=!0,await g(),(i=h.value)==null||i.open(),(r=h.value)==null||r.setFormData(o)};return D(),(u,o)=>{const i=K,r=Q,c=X,O=Y,j=Z,W=ue,s=ee,z=oe,G=te,H=le,v=de("perms"),J=ae;return l(),F("div",null,[e(j,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(O,{class:"mb-[-16px]",model:n,inline:""},{default:a(()=>[e(r,{label:"\u4FDD\u5355\u53F7",prop:"insurance_no"},{default:a(()=>[e(i,{modelValue:n.insurance_no,"onUpdate:modelValue":o[0]||(o[0]=t=>n.insurance_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4FDD\u9669\u79CD\u7C7B",prop:"type"},{default:a(()=>[e(i,{modelValue:n.type,"onUpdate:modelValue":o[1]||(o[1]=t=>n.type=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u79CD\u7C7B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4FDD\u9669\u516C\u53F8",prop:"insurance_company"},{default:a(()=>[e(i,{modelValue:n.insurance_company,"onUpdate:modelValue":o[2]||(o[2]=t=>n.insurance_company=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u516C\u53F8"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no"},{default:a(()=>[e(i,{modelValue:n.invoice_no,"onUpdate:modelValue":o[3]||(o[3]=t=>n.invoice_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7ECF\u529E\u4EBA",prop:"handler"},{default:a(()=>[e(i,{modelValue:n.handler,"onUpdate:modelValue":o[4]||(o[4]=t=>n.handler=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ECF\u529E\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[e(c,{type:"primary",onClick:p(A)},{default:a(()=>[ye]),_:1},8,["onClick"]),e(c,{onClick:p(T)},{default:a(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((l(),d(j,{class:"!border-none",shadow:"never"},{default:a(()=>[_((l(),d(c,{type:"primary",onClick:I},{icon:a(()=>[e(W,{name:"el-icon-Plus"})]),default:a(()=>[De]),_:1})),[[v,["project.project_salary/add"]]]),_((l(),d(c,{disabled:!k.value.length,onClick:o[5]||(o[5]=t=>B(k.value))},{default:a(()=>[be]),_:1},8,["disabled"])),[[v,["project.project_salary/delete"]]]),R("div",he,[e(G,{data:p(f).lists,onSelectionChange:N},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"person_idcard","show-overflow-tooltip":""}),e(s,{label:"\u9879\u76EE\u7F16\u7801",prop:"person_idcard","show-overflow-tooltip":""}),e(s,{label:"\u8C03\u6574\u65E5\u671F",prop:"project_name","show-overflow-tooltip":""}),e(s,{label:"\u8C03\u6574\u91D1\u989D",prop:"person_name","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(s,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:a(({row:t})=>[t.annex&&t.annex.length>0?(l(),F("div",Ee,[(l(!0),F(me,null,ce(t.annex,(b,x)=>(l(),F("div",{key:x},[e(z,{href:b,target:"_blank"},{default:a(()=>[m("\u6587\u4EF6"+fe(x+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),F("div",ke," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[_((l(),d(c,{type:"primary",link:"",onClick:b=>M(t)},{default:a(()=>[we]),_:2},1032,["onClick"])),[[v,["project.project_salary/edit"]]]),_((l(),d(c,{type:"danger",link:"",onClick:b=>B(t.id)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[v,["project.project_salary/delete"]]]),_((l(),d(c,{link:"",onClick:b=>q(t)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[v,["project.project_salary/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Be,[e(H,{modelValue:p(f),"onUpdate:modelValue":o[6]||(o[6]=t=>_e(f)?f.value=t:null),onChange:p(D)},null,8,["modelValue","onChange"])])]),_:1})),[[J,p(f).loading]]),C.value?(l(),d(ve,{key:0,ref_key:"editRef",ref:y,"dict-data":p(V),onSuccess:p(D),onClose:o[7]||(o[7]=t=>C.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),E.value?(l(),d(Fe,{key:1,ref_key:"detailRef",ref:h,"dict-data":p(V),onClose:o[8]||(o[8]=t=>E.value=!1)},null,8,["dict-data"])):P("",!0)])}}});export{ko as default};
|