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

2 lines
7.2 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{s as ue,a as j,b as ne}from"./project_subcontract_settlement.c75b619b.js";import"./lodash.1d82ee7c.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_customerDemandEdit_lang.7e3c35cd.js";import ie from"./detail.96f3fba5.js";import{d as P,a0 as A,s as x,r as E,ai as se,o as s,c as pe,V as e,M as t,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"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./customer_demand.ccb61d2f.js";import"./custom.99349afc.js";const ce=m("\u67E5\u8BE2"),me=m("\u91CD\u7F6E"),_e=m(" \u65B0\u589E "),fe=m(" \u5220\u9664 "),ve={class:"mt-4"},De=m(" \u7F16\u8F91 "),Fe=m(" \u5220\u9664 "),be=m(" \u8BE6\u60C5 "),we={class:"flex justify-end mt-4"},Ce=P({name:"projectLists"}),vo=P({...Ce,setup(he){A([]);const w=x(),D=x(),F=E(!1),C=E(!1),u=A({type:"",insurance_no:"",insurance_company:"",invoice_no:"",handler:""}),h=E([]),R=n=>{h.value=n.map(({id:o})=>o)},{dictData:B}=ae("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:f,getLists:b,resetParams:U,resetPage:N}=le({fetchFun:ue,params:u}),S=async()=>{var n;F.value=!0,await y(),(n=D.value)==null||n.open("add")},T=async n=>{var i,r;console.log(n.id);let o=await j({id:n.id});F.value=!0,await y(),(i=D.value)==null||i.open("edit"),(r=D.value)==null||r.setFormData(o)},k=async n=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:n}),b()},I=async n=>{var i,r;let o=await j({id:n.id});C.value=!0,await y(),(i=w.value)==null||i.open(),(r=w.value)==null||r.setFormData(o)};return b(),(n,o)=>{const i=H,r=J,c=K,M=Q,V=W,q=te,a=X,O=Y,z=ee,v=se("perms"),G=Z;return s(),pe("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(M,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(r,{label:"\u4FDD\u5355\u53F7",prop:"insurance_no"},{default:t(()=>[e(i,{modelValue:u.insurance_no,"onUpdate:modelValue":o[0]||(o[0]=l=>u.insurance_no=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4FDD\u9669\u79CD\u7C7B",prop:"type"},{default:t(()=>[e(i,{modelValue:u.type,"onUpdate:modelValue":o[1]||(o[1]=l=>u.type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u79CD\u7C7B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4FDD\u9669\u516C\u53F8",prop:"insurance_company"},{default:t(()=>[e(i,{modelValue:u.insurance_company,"onUpdate:modelValue":o[2]||(o[2]=l=>u.insurance_company=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u9669\u516C\u53F8"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no"},{default:t(()=>[e(i,{modelValue:u.invoice_no,"onUpdate:modelValue":o[3]||(o[3]=l=>u.invoice_no=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7ECF\u529E\u4EBA",prop:"handler"},{default:t(()=>[e(i,{modelValue:u.handler,"onUpdate:modelValue":o[4]||(o[4]=l=>u.handler=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ECF\u529E\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(c,{type:"primary",onClick:p(N)},{default:t(()=>[ce]),_:1},8,["onClick"]),e(c,{onClick:p(U)},{default:t(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),d(V,{class:"!border-none",shadow:"never"},{default:t(()=>[_((s(),d(c,{type:"primary",onClick:S},{icon:t(()=>[e(q,{name:"el-icon-Plus"})]),default:t(()=>[_e]),_:1})),[[v,["project.project_salary/add"]]]),_((s(),d(c,{disabled:!h.value.length,onClick:o[5]||(o[5]=l=>k(h.value))},{default:t(()=>[fe]),_:1},8,["disabled"])),[[v,["project.project_salary/delete"]]]),L("div",ve,[e(O,{data:p(f).lists,onSelectionChange:R},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"person_idcard","show-overflow-tooltip":""}),e(a,{label:"\u7ED3\u7B97\u5355\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u59D3\u540D",prop:"person_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"person_idcard","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u540D\u79F0",prop:"insurance_date","show-overflow-tooltip":""}),e(a,{label:"\u5408\u8BA1\u91D1\u989D",prop:"due_date","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"insurance_no","show-overflow-tooltip":""}),e(a,{label:"\u7ED3\u7B97\u65E5\u671F",prop:"insurance","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u91D1\u989D",prop:"insured_amount","show-overflow-tooltip":""}),e(a,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"insurance_company","show-overflow-tooltip":""}),e(a,{label:"\u7ED3\u7B97\u5DEE\u5F02",prop:"insurance_detail","show-overflow-tooltip":""}),e(a,{label:"\u6DFB\u52A0\u4EBA",prop:"invoice_no","show-overflow-tooltip":""}),e(a,{label:"\u8D1F\u8D23\u4EBA",prop:"handler","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:l})=>[_((s(),d(c,{type:"primary",link:"",onClick:g=>T(l)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[v,["project.project_salary/edit"]]]),_((s(),d(c,{type:"danger",link:"",onClick:g=>k(l.id)},{default:t(()=>[Fe]),_:2},1032,["onClick"])),[[v,["project.project_salary/delete"]]]),_((s(),d(c,{link:"",onClick:g=>I(l)},{default:t(()=>[be]),_:2},1032,["onClick"])),[[v,["project.project_salary/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",we,[e(z,{modelValue:p(f),"onUpdate:modelValue":o[6]||(o[6]=l=>de(f)?f.value=l:null),onChange:p(b)},null,8,["modelValue","onChange"])])]),_:1})),[[G,p(f).loading]]),F.value?(s(),d(re,{key:0,ref_key:"editRef",ref:D,"dict-data":p(B),onSuccess:p(b),onClose:o[7]||(o[7]=l=>F.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),C.value?(s(),d(ie,{key:1,ref_key:"detailRef",ref:w,"dict-data":p(B),onClose:o[8]||(o[8]=l=>C.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{vo as default};