2 lines
7.6 KiB
JavaScript
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,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 x,a as pe}from"./project_salary.ad3c75be.js";import{d as R,a0 as $,s as L,r as k,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 g,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.191ba24b.js";import ve from"./detail.5fea8425.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 Ee=m("\u67E5\u8BE2"),be=m("\u91CD\u7F6E"),he=m(" \u65B0\u589E "),we=m(" \u5220\u9664 "),De={class:"mt-4"},ye={key:0},Ce={key:1},ke=m(" \u7F16\u8F91 "),ge=m(" \u5220\u9664 "),Be=m(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},Ae=R({name:"projectLists"}),Co=R({...Ae,setup(je){$([]);const D=L(),E=L(),b=k(!1),y=k(!1),u=$({type:"",insurance_no:"",insurance_company:"",invoice_no:"",handler:""}),C=k([]),S=r=>{C.value=r.map(({id:o})=>o)},{dictData:B}=ie("labor_contract_status,labor_contract_type,labor_contract_name,pay_type"),{pager:f,getLists:h,resetParams:N,resetPage:T}=re({fetchFun:se,params:u}),I=async()=>{var r;b.value=!0,await g(),(r=E.value)==null||r.open("add")},M=async r=>{var s,i;console.log(r.id);let o=await x({id:r.id});b.value=!0,await g(),(s=E.value)==null||s.open("edit"),(i=E.value)==null||i.setFormData(o)},V=async r=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:r}),h()},q=async r=>{var s,i;let o=await x({id:r.id});y.value=!0,await g(),(s=D.value)==null||s.open(),(i=D.value)==null||i.setFormData(o)};return h(),(r,o)=>{const s=K,i=Q,c=X,O=Y,A=Z,W=ue,l=ee,z=oe,G=te,H=le,F=de("perms"),J=ae;return n(),v("div",null,[e(A,{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(()=>[Ee]),_:1},8,["onClick"]),e(c,{onClick:p(N)},{default:a(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),d(A,{class:"!border-none",shadow:"never"},{default:a(()=>[_((n(),d(c,{type:"primary",onClick:I},{icon:a(()=>[e(W,{name:"el-icon-Plus"})]),default:a(()=>[he]),_:1})),[[F,["project.project_salary/add"]]]),_((n(),d(c,{disabled:!C.value.length,onClick:o[5]||(o[5]=t=>V(C.value))},{default:a(()=>[we]),_:1},8,["disabled"])),[[F,["project.project_salary/delete"]]]),P("div",De,[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:"\u6D41\u7A0B\u6B65\u9AA4",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u7533\u8BF7\u5355\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7ECF\u7406",prop:"person_name","show-overflow-tooltip":""}),e(l,{label:"\u76F4\u63A5\u4E0A\u7EA7",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u4E8B\u7531",prop:"insurance_date","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u65F6\u95F4",prop:"due_date","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u8D77\u59CB\u5730",prop:"insurance_no","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u76EE\u7684\u5730",prop:"insurance","show-overflow-tooltip":""}),e(l,{label:"\u4EA4\u901A\u5DE5\u5177",prop:"insured_amount","show-overflow-tooltip":""}),e(l,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"insurance_company","show-overflow-tooltip":""}),e(l,{label:"\u5386\u65F6\u5929\u6570",prop:"insurance_detail","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,(w,j)=>(n(),v("div",{key:j},[e(z,{href:w,target:"_blank"},{default:a(()=>[m("\u6587\u4EF6"+fe(j+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:w=>M(t)},{default:a(()=>[ke]),_:2},1032,["onClick"])),[[F,["project.project_salary/edit"]]]),_((n(),d(c,{type:"danger",link:"",onClick:w=>V(t.id)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[F,["project.project_salary/delete"]]]),_((n(),d(c,{link:"",onClick:w=>q(t)},{default:a(()=>[Be]),_: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(h)},null,8,["modelValue","onChange"])])]),_:1})),[[J,p(f).loading]]),b.value?(n(),d(Fe,{key:0,ref_key:"editRef",ref:E,"dict-data":p(B),onSuccess:p(h),onClose:o[7]||(o[7]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),y.value?(n(),d(ve,{key:1,ref_key:"detailRef",ref:D,"dict-data":p(B),onClose:o[8]||(o[8]=t=>y.value=!1)},null,8,["dict-data"])):U("",!0)])}}});export{Co as default};
|