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 A,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 F,V as e,M as a,O as _,u as p,L as d,S as U,a as P,W as ce,a8 as me,k as _e,T as c,n as B,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.5d17657e.js";import Fe from"./detail.a6ebe5a5.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=c("\u67E5\u8BE2"),be=c("\u91CD\u7F6E"),we=c(" \u65B0\u589E "),he=c(" \u5220\u9664 "),ye={class:"mt-4"},Ce={key:0},De={key:1},ke=c(" \u7F16\u8F91 "),Be=c(" \u5220\u9664 "),ge=c(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},je=R({name:"projectLists"}),Do=R({...je,setup(xe){$([]);const y=L(),E=L(),b=k(!1),C=k(!1),u=$({type:"",insurance_no:"",insurance_company:"",invoice_no:"",handler:""}),D=k([]),S=r=>{D.value=r.map(({id:o})=>o)},{dictData:g}=ie("labor_contract_status,labor_contract_type,labor_contract_name,pay_type"),{pager:f,getLists:w,resetParams:N,resetPage:T}=re({fetchFun:se,params:u}),I=async()=>{var r;b.value=!0,await B(),(r=E.value)==null||r.open("add")},M=async r=>{var s,i;console.log(r.id);let o=await A({id:r.id});b.value=!0,await B(),(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}),w()},q=async r=>{var s,i;let o=await A({id:r.id});C.value=!0,await B(),(s=y.value)==null||s.open(),(i=y.value)==null||i.setFormData(o)};return w(),(r,o)=>{const s=K,i=Q,m=X,O=Y,j=Z,W=ue,l=ee,z=oe,G=te,H=le,v=de("perms"),J=ae;return n(),F("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(m,{type:"primary",onClick:p(T)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(m,{onClick:p(N)},{default:a(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),d(j,{class:"!border-none",shadow:"never"},{default:a(()=>[_((n(),d(m,{type:"primary",onClick:I},{icon:a(()=>[e(W,{name:"el-icon-Plus"})]),default:a(()=>[we]),_:1})),[[v,["project.project_salary/add"]]]),_((n(),d(m,{disabled:!D.value.length,onClick:o[5]||(o[5]=t=>V(D.value))},{default:a(()=>[he]),_:1},8,["disabled"])),[[v,["project.project_salary/delete"]]]),P("div",ye,[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:"\u7EC4\u7EC7\u540D\u79F0",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u90E8\u95E8\u540D\u79F0",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u9884\u8B66\u5206\u7C7B",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7F16\u7801",prop:"person_name","show-overflow-tooltip":""}),e(l,{label:"\u9884\u8B66\u4E8B\u9879",prop:"person_idcard","show-overflow-tooltip":""}),e(l,{label:"\u72B6\u6001",prop:"insurance_date","show-overflow-tooltip":""}),e(l,{label:"\u5904\u7406\u4EBA",prop:"due_date","show-overflow-tooltip":""}),e(l,{label:"\u5904\u7406\u65E5\u671F",prop:"insurance_no","show-overflow-tooltip":""}),e(l,{label:"\u6DFB\u52A0\u4EBA",prop:"insurance","show-overflow-tooltip":""}),e(l,{label:"\u521B\u5EFA\u65E5\u671F",prop:"insured_amount","show-overflow-tooltip":""}),e(l,{label:"\u66F4\u65B0\u4EBA",prop:"insurance_company","show-overflow-tooltip":""}),e(l,{label:"\u66F4\u65B0\u65E5\u671F",prop:"insurance_detail","show-overflow-tooltip":""}),e(l,{label:"\u8D1F\u8D23\u4EBA",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(),F("div",Ce,[(n(!0),F(ce,null,me(t.annex,(h,x)=>(n(),F("div",{key:x},[e(z,{href:h,target:"_blank"},{default:a(()=>[c("\u6587\u4EF6"+fe(x+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(n(),F("div",De," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[_((n(),d(m,{type:"primary",link:"",onClick:h=>M(t)},{default:a(()=>[ke]),_:2},1032,["onClick"])),[[v,["project.project_salary/edit"]]]),_((n(),d(m,{type:"danger",link:"",onClick:h=>V(t.id)},{default:a(()=>[Be]),_:2},1032,["onClick"])),[[v,["project.project_salary/delete"]]]),_((n(),d(m,{link:"",onClick:h=>q(t)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[v,["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(w)},null,8,["modelValue","onChange"])])]),_:1})),[[J,p(f).loading]]),b.value?(n(),d(ve,{key:0,ref_key:"editRef",ref:E,"dict-data":p(g),onSuccess:p(w),onClose:o[7]||(o[7]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),C.value?(n(),d(Fe,{key:1,ref_key:"detailRef",ref:y,"dict-data":p(g),onClose:o[8]||(o[8]=t=>C.value=!1)},null,8,["dict-data"])):U("",!0)])}}});export{Do as default};
|