engineering/public/admin/assets/index.578ccda6.js
2024-02-27 10:28:16 +08:00

2 lines
7.5 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as W,L as X,M as Y,N as Z}from"./element-plus.517d4382.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as oe,a as te}from"./index.8b1962e9.js";import{u as le}from"./usePaging.f6660143.js";import{u as ae}from"./useDictOptions.b5854a9e.js";import{i as ue,b as j,a as ne}from"./project_salary.71280862.js";import"./lodash.1d82ee7c.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.80e2c306.js";import ie from"./detail.24f9562c.js";import{d as P,a0 as A,s as x,r as h,ai as se,o as s,c as pe,V as e,M as l,O as _,u as p,L as d,S as $,a as L,k as de,T as m,n as y}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./project_insurance_management.6e781053.js";import"./index.vue_vue_type_script_setup_true_lang.3836b80f.js";import"./project_personnel.b59a00de.js";import"./custom.99349afc.js";const ce=m("\u67E5\u8BE2"),me=m("\u91CD\u7F6E"),_e=m(" \u65B0\u589E "),fe=m(" \u5220\u9664 "),Fe={class:"mt-4"},ve=m(" \u7F16\u8F91 "),we=m(" \u5220\u9664 "),Ce=m(" \u8BE6\u60C5 "),be={class:"flex justify-end mt-4"},De=P({name:"projectLists"}),Fo=P({...De,setup(Ee){A([]);const b=x(),v=x(),w=h(!1),D=h(!1),u=A({type:"",insurance_no:"",insurance_company:"",invoice_no:"",handler:""}),E=h([]),R=n=>{E.value=n.map(({id:o})=>o)},{dictData:B}=ae("labor_contract_status,labor_contract_type,labor_contract_name,pay_type"),{pager:f,getLists:C,resetParams:U,resetPage:N}=le({fetchFun:ue,params:u}),S=async()=>{var n;w.value=!0,await y(),(n=v.value)==null||n.open("add")},T=async n=>{var i,r;console.log(n.id);let o=await j({id:n.id});w.value=!0,await y(),(i=v.value)==null||i.open("edit"),(r=v.value)==null||r.setFormData(o)},k=async n=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:n}),C()},I=async n=>{var i,r;let o=await j({id:n.id});D.value=!0,await y(),(i=b.value)==null||i.open(),(r=b.value)==null||r.setFormData(o)};return C(),(n,o)=>{const i=H,r=J,c=K,M=Q,V=W,q=te,t=X,O=Y,z=ee,F=se("perms"),G=Z;return s(),pe("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(M,{class:"mb-[-16px]",model:u,inline:""},{default:l(()=>[e(r,{label:"\u4FDD\u5355\u53F7",prop:"insurance_no"},{default:l(()=>[e(i,{modelValue:u.insurance_no,"onUpdate:modelValue":o[0]||(o[0]=a=>u.insurance_no=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4FDD\u9669\u79CD\u7C7B",prop:"type"},{default:l(()=>[e(i,{modelValue:u.type,"onUpdate:modelValue":o[1]||(o[1]=a=>u.type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u79CD\u7C7B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4FDD\u9669\u516C\u53F8",prop:"insurance_company"},{default:l(()=>[e(i,{modelValue:u.insurance_company,"onUpdate:modelValue":o[2]||(o[2]=a=>u.insurance_company=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u516C\u53F8"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no"},{default:l(()=>[e(i,{modelValue:u.invoice_no,"onUpdate:modelValue":o[3]||(o[3]=a=>u.invoice_no=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7ECF\u529E\u4EBA",prop:"handler"},{default:l(()=>[e(i,{modelValue:u.handler,"onUpdate:modelValue":o[4]||(o[4]=a=>u.handler=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ECF\u529E\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(c,{type:"primary",onClick:p(N)},{default:l(()=>[ce]),_:1},8,["onClick"]),e(c,{onClick:p(U)},{default:l(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),d(V,{class:"!border-none",shadow:"never"},{default:l(()=>[_((s(),d(c,{type:"primary",onClick:S},{icon:l(()=>[e(q,{name:"el-icon-Plus"})]),default:l(()=>[_e]),_:1})),[[F,["project.project_salary/add"]]]),_((s(),d(c,{disabled:!E.value.length,onClick:o[5]||(o[5]=a=>k(E.value))},{default:l(()=>[fe]),_:1},8,["disabled"])),[[F,["project.project_salary/delete"]]]),L("div",Fe,[e(O,{data:p(f).lists,onSelectionChange:R},{default:l(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index","show-overflow-tooltip":""}),e(t,{label:"\u4EA7\u503C\u6C47\u62A5\u5355\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"person_idcard","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u540D\u79F0",prop:"person_idcard","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u7F16\u53F7",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u5206\u90E8\u5DE5\u7A0B",prop:"person_name","show-overflow-tooltip":""}),e(t,{label:"\u5B50\u5206\u90E8\u5DE5\u7A0B",prop:"person_idcard","show-overflow-tooltip":""}),e(t,{label:"\u5206\u9879\u5DE5\u7A0B",prop:"insurance_date","show-overflow-tooltip":""}),e(t,{label:"\u5B50\u76EE\u540D\u79F0",prop:"due_date","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7279\u5F81",prop:"insurance_no","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4F4D",prop:"insurance","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u91CF",prop:"insured_amount","show-overflow-tooltip":""}),e(t,{label:"\u5DF2\u5B8C\u5DE5\u91CF",prop:"insurance_company","show-overflow-tooltip":""}),e(t,{label:"\u672C\u6708\u5B8C\u5DE5\u91CF",prop:"insurance_detail","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4EF7",prop:"insurance_detail","show-overflow-tooltip":""}),e(t,{label:"\u672C\u6708\u4EA7\u503C",prop:"insurance_detail","show-overflow-tooltip":""}),e(t,{label:"\u603B\u8FDB\u5EA6(\uFF05)",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:l(({row:a})=>[_((s(),d(c,{type:"primary",link:"",onClick:g=>T(a)},{default:l(()=>[ve]),_:2},1032,["onClick"])),[[F,["project.project_salary/edit"]]]),_((s(),d(c,{type:"danger",link:"",onClick:g=>k(a.id)},{default:l(()=>[we]),_:2},1032,["onClick"])),[[F,["project.project_salary/delete"]]]),_((s(),d(c,{link:"",onClick:g=>I(a)},{default:l(()=>[Ce]),_:2},1032,["onClick"])),[[F,["project.project_salary/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",be,[e(z,{modelValue:p(f),"onUpdate:modelValue":o[6]||(o[6]=a=>de(f)?f.value=a:null),onChange:p(C)},null,8,["modelValue","onChange"])])]),_:1})),[[G,p(f).loading]]),w.value?(s(),d(re,{key:0,ref_key:"editRef",ref:v,"dict-data":p(B),onSuccess:p(C),onClose:o[7]||(o[7]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),D.value?(s(),d(ie,{key:1,ref_key:"detailRef",ref:b,"dict-data":p(B),onClose:o[8]||(o[8]=a=>D.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{Fo as default};