engineering/public/admin/assets/index.11bc216a.js
2024-01-12 16:37:09 +08:00

2 lines
7.6 KiB
JavaScript

import{I as K,y as Q,w as X,D as Y,C as Z,L as ee,$ as oe,M as te,N as ae}from"./element-plus.25ac1d37.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5a7e3ebe.js";import{f as ne,a as ue}from"./index.2456ddbc.js";import{u as re}from"./usePaging.f6660143.js";import{u as ie}from"./useDictOptions.37bb8f6d.js";import{i as se,b as A,a as pe}from"./project_salary.8a9510eb.js";import{d as R,a0 as $,s as L,r as B,ai as de,o as n,c as v,V as e,M as a,O as _,u as p,L as d,S as U,a as P,W as me,a8 as ce,k as _e,T as m,n as k,U as fe}from"./@vue.ab566ce7.js";import"./lodash.86334a69.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.1ab3b260.js";import ve from"./detail.2957275c.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.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.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.8071f294.js";import"./index.vue_vue_type_script_setup_true_lang.fb1f3018.js";import"./project.2232de81.js";import"./project_insurance_management.79bcf3f5.js";import"./index.vue_vue_type_script_setup_true_lang.78e07631.js";import"./project_personnel.cfca77a3.js";import"./custom.c0ef026d.js";const De=m("\u67E5\u8BE2"),Ee=m("\u91CD\u7F6E"),be=m(" \u65B0\u589E "),he=m(" \u5220\u9664 "),we={class:"mt-4"},ye={key:0},Ce={key:1},Be=m(" \u7F16\u8F91 "),ke=m(" \u5220\u9664 "),ge=m(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},je=R({name:"projectLists"}),Co=R({...je,setup(xe){$([]);const w=L(),D=L(),E=B(!1),y=B(!1),u=$({type:"",insurance_no:"",insurance_company:"",invoice_no:"",handler:""}),C=B([]),S=r=>{C.value=r.map(({id:o})=>o)},{dictData:g}=ie("labor_contract_status,labor_contract_type,labor_contract_name,pay_type"),{pager:f,getLists:b,resetParams:N,resetPage:T}=re({fetchFun:se,params:u}),I=async()=>{var r;E.value=!0,await k(),(r=D.value)==null||r.open("add")},M=async r=>{var s,i;console.log(r.id);let o=await A({id:r.id});E.value=!0,await k(),(s=D.value)==null||s.open("edit"),(i=D.value)==null||i.setFormData(o)},V=async r=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:r}),b()},q=async r=>{var s,i;let o=await A({id:r.id});y.value=!0,await k(),(s=w.value)==null||s.open(),(i=w.value)==null||i.setFormData(o)};return b(),(r,o)=>{const s=K,i=Q,c=X,O=Y,j=Z,W=ue,l=ee,z=oe,G=te,H=le,F=de("perms"),J=ae;return n(),v("div",null,[e(j,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(O,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u53F7",prop:"insurance_no"},{default:a(()=>[e(s,{modelValue:u.insurance_no,"onUpdate:modelValue":o[0]||(o[0]=t=>u.insurance_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4FDD\u9669\u79CD\u7C7B",prop:"type"},{default:a(()=>[e(s,{modelValue:u.type,"onUpdate:modelValue":o[1]||(o[1]=t=>u.type=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u79CD\u7C7B"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4FDD\u9669\u516C\u53F8",prop:"insurance_company"},{default:a(()=>[e(s,{modelValue:u.insurance_company,"onUpdate:modelValue":o[2]||(o[2]=t=>u.insurance_company=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u516C\u53F8"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no"},{default:a(()=>[e(s,{modelValue:u.invoice_no,"onUpdate:modelValue":o[3]||(o[3]=t=>u.invoice_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7ECF\u529E\u4EBA",prop:"handler"},{default:a(()=>[e(s,{modelValue:u.handler,"onUpdate:modelValue":o[4]||(o[4]=t=>u.handler=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ECF\u529E\u4EBA"},null,8,["modelValue"])]),_:1}),e(i,null,{default:a(()=>[e(c,{type:"primary",onClick:p(T)},{default:a(()=>[De]),_:1},8,["onClick"]),e(c,{onClick:p(N)},{default:a(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),d(j,{class:"!border-none",shadow:"never"},{default:a(()=>[_((n(),d(c,{type:"primary",onClick:I},{icon:a(()=>[e(W,{name:"el-icon-Plus"})]),default:a(()=>[be]),_:1})),[[F,["project.project_salary/add"]]]),_((n(),d(c,{disabled:!C.value.length,onClick:o[5]||(o[5]=t=>V(C.value))},{default:a(()=>[he]),_:1},8,["disabled"])),[[F,["project.project_salary/delete"]]]),P("div",we,[e(G,{data:p(f).lists,onSelectionChange:S},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u5904\u7406\u6D41\u7A0B",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u5355\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u4EBA",prop:"person_name","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u65E5\u671F",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u8D26\u53F7",prop:"insurance_date","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u94F6\u884C",prop:"due_date","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",prop:"insurance_no","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u91D1\u989D",prop:"insurance","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u8FD8\u6B3E\u91D1\u989D",prop:"insured_amount","show-overflow-tooltip":""}),e(l,{label:"\u672A\u8FD8\u6B3E\u91D1\u989D",prop:"insurance_company","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:a(({row:t})=>[t.annex&&t.annex.length>0?(n(),v("div",ye,[(n(!0),v(me,null,ce(t.annex,(h,x)=>(n(),v("div",{key:x},[e(z,{href:h,target:"_blank"},{default:a(()=>[m("\u6587\u4EF6"+fe(x+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(n(),v("div",Ce," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[_((n(),d(c,{type:"primary",link:"",onClick:h=>M(t)},{default:a(()=>[Be]),_:2},1032,["onClick"])),[[F,["project.project_salary/edit"]]]),_((n(),d(c,{type:"danger",link:"",onClick:h=>V(t.id)},{default:a(()=>[ke]),_:2},1032,["onClick"])),[[F,["project.project_salary/delete"]]]),_((n(),d(c,{link:"",onClick:h=>q(t)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[F,["project.project_salary/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",Ve,[e(H,{modelValue:p(f),"onUpdate:modelValue":o[6]||(o[6]=t=>_e(f)?f.value=t:null),onChange:p(b)},null,8,["modelValue","onChange"])])]),_:1})),[[J,p(f).loading]]),E.value?(n(),d(Fe,{key:0,ref_key:"editRef",ref:D,"dict-data":p(g),onSuccess:p(b),onClose:o[7]||(o[7]=t=>E.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),y.value?(n(),d(ve,{key:1,ref_key:"detailRef",ref:w,"dict-data":p(g),onClose:o[8]||(o[8]=t=>y.value=!1)},null,8,["dict-data"])):U("",!0)])}}});export{Co as default};