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

2 lines
6.2 KiB
JavaScript

import{I as K,y as Q,w as X,D as Y,C as Z,L as ee,_ as te,M as oe,N as ae}from"./element-plus.517d4382.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as re,a as ie}from"./index.8b1962e9.js";import{u as ne}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.b5854a9e.js";import{d as se,a as x,e as pe}from"./project_labor_budget.12dc1a8f.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_projectLaborBudgetEdit_lang.28b65bb5.js";import me from"./detail.ab5b76aa.js";import{u as ce}from"./vue-router.87ebc608.js";import{d as S,s as L,r as y,a0 as _e,ai as fe,o as r,c as P,V as e,M as o,O as _,u,L as s,S as $,a as R,W as be,a8 as ve,k as ge,T as d,n as F,U as Ee}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"./lodash.1d82ee7c.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_job_type.a34d9934.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./project_labor_budget_detail.248ce0ea.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./flowSet.6da79e1c.js";import"./custom.99349afc.js";const he=d("\u67E5\u8BE2"),we=d("\u91CD\u7F6E"),Ce=d(" \u65B0\u589E "),ke=d(" \u5220\u9664 "),ye={class:"mt-4"},Fe=d(" \u7F16\u8F91 "),De=d(" \u5220\u9664 "),je=d(" \u8BE6\u60C5 "),Be={class:"flex justify-end mt-4"},Ve=S({name:"projectLaborBudgetLists"}),Vt=S({...Ve,setup(xe){var B;const w=L(),v=L(),g=y(!1),C=y(!1),c=_e({project_id:"",labor_budget_code:""}),k=y([]),A=l=>{k.value=l.map(({id:t})=>t)},{dictData:D}=ue(""),{pager:f,getLists:E,resetParams:N,resetPage:T}=ne({fetchFun:se,params:c}),I=async()=>{var l;g.value=!0,await F(),(l=v.value)==null||l.open("add")},U=async l=>{var p,i;let t=await x({id:l.id});g.value=!0,await F(),(p=v.value)==null||p.open("edit"),(i=v.value)==null||i.setFormData(t)},j=async l=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:l}),E()},q=async l=>{var p,i;let t=await x({id:l.id});C.value=!0,await F(),(p=w.value)==null||p.open(),(i=w.value)==null||i.setFormData(t)};return(B=ce().query)!=null&&B.listId,E(),(l,t)=>{const p=K,i=Q,m=X,M=Y,V=Z,O=ie,n=ee,W=te,z=oe,G=le,b=fe("perms"),H=ae;return r(),P("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(M,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[e(i,{label:"\u9879\u76EEid",prop:"project_id"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:c.project_id,"onUpdate:modelValue":t[0]||(t[0]=a=>c.project_id=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4EBA\u5DE5\u9884\u7B97\u5355\u53F7",prop:"labor_budget_code"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:c.labor_budget_code,"onUpdate:modelValue":t[1]||(t[1]=a=>c.labor_budget_code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5DE5\u9884\u7B97\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(i,null,{default:o(()=>[e(m,{type:"primary",onClick:u(T)},{default:o(()=>[he]),_:1},8,["onClick"]),e(m,{onClick:u(N)},{default:o(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),s(V,{class:"!border-none",shadow:"never"},{default:o(()=>[_((r(),s(m,{type:"primary",onClick:I},{icon:o(()=>[e(O,{name:"el-icon-Plus"})]),default:o(()=>[Ce]),_:1})),[[b,["project.project_labor_budget/add"]]]),_((r(),s(m,{disabled:!k.value.length,onClick:t[2]||(t[2]=a=>j(k.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[b,["project.project_labor_budget/delete"]]]),R("div",ye,[e(z,{data:u(f).lists,onSelectionChange:A},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u4EBA\u5DE5\u9884\u7B97\u5355\u53F7",prop:"labor_budget_code","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(n,{label:"\u6570\u91CF",prop:"total_num","show-overflow-tooltip":""}),e(n,{label:"\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":"",align:"center"},{default:o(({row:a})=>[(r(!0),P(be,null,ve(a.annex,(h,J)=>(r(),s(W,{style:{"margin-right":"4px"},type:"primary",href:h.uri},{default:o(()=>[d("\u6587\u4EF6"+Ee(J+1),1)]),_:2},1032,["href"]))),256))]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[_((r(),s(m,{type:"primary",link:"",onClick:h=>U(a)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[b,["project.project_labor_budget/edit"]]]),_((r(),s(m,{type:"danger",link:"",onClick:h=>j(a.id)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[b,["project.project_labor_budget/delete"]]]),_((r(),s(m,{link:"",onClick:h=>q(a)},{default:o(()=>[je]),_:2},1032,["onClick"])),[[b,["project.project_labor_budget/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Be,[e(G,{modelValue:u(f),"onUpdate:modelValue":t[3]||(t[3]=a=>ge(f)?f.value=a:null),onChange:u(E)},null,8,["modelValue","onChange"])])]),_:1})),[[H,u(f).loading]]),g.value?(r(),s(de,{key:0,ref_key:"editRef",ref:v,"dict-data":u(D),onSuccess:u(E),onClose:t[4]||(t[4]=a=>g.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),C.value?(r(),s(me,{key:1,ref_key:"detailRef",ref:w,"dict-data":u(D),onClose:t[5]||(t[5]=a=>C.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{Vt as default};