engineering/public/admin/assets/index.25339465.js
2024-02-20 17:15:05 +08:00

2 lines
6.1 KiB
JavaScript

import{I as K,y as Q,w as X,D as Y,C as Z,L as ee,a0 as te,M as oe,N as ae}from"./element-plus.b3353ca6.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as ne,a as se}from"./index.892155dd.js";import{u as ie}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.c47985a3.js";import{a as ue,e as pe,b as de}from"./project_cost_budget.7580e3aa.js";import{_ as ce}from"./edit.vue_vue_type_script_setup_true_name_projectCostBudgetEdit_lang.8da2dde2.js";import me from"./detail.f0b7369d.js";import{u as _e}from"./vue-router.87ebc608.js";import{d as I,s as $,r as D,a0 as fe,ai as ve,o as n,c as L,V as t,M as o,O as _,u as s,L as i,S as R,n as F,a as S,W as ge,a8 as be,k as Ce,T as u,U as he}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.771e5a41.js";import"./department.cd9c927d.js";import"./organization.c13a1cd8.js";import"./index.vue_vue_type_script_setup_true_lang.3dd325bc.js";import"./project.31b61d2e.js";import"./index.vue_vue_type_script_setup_true_lang.f5b22695.js";import"./project_cost_temp_set.dac01225.js";import"./project_cost_budget_detail.eb1773d6.js";import"./index.cf38292c.js";import"./approve.cdf281c2.js";import"./flow.ec77bb69.js";import"./flowSet.0350f9c8.js";import"./custom.735a8774.js";const ke=u("\u67E5\u8BE2"),we=u("\u91CD\u7F6E"),ye=u(" \u65B0\u589E "),De=u(" \u5220\u9664 "),Fe={class:"mt-4"},Ee=u(" \u7F16\u8F91 "),Be=u(" \u5220\u9664 "),je=u(" \u8BE6\u60C5 "),xe={class:"flex justify-end mt-4"},Ve=I({name:"projectCostBudgetLists"}),Vt=I({...Ve,setup(Pe){var V;const k=$(),g=$(),b=D(!1),w=D(!1),c=fe({project_id:"",cost_budget_code:"",annex:""}),y=D([]),N=l=>{y.value=l.map(({id:e})=>e)},{dictData:E}=re(""),{pager:f,getLists:C,resetParams:T,resetPage:U}=ie({fetchFun:ue,params:c}),q=async()=>{var l;b.value=!0,await F(),(l=g.value)==null||l.open("add")},B=async l=>{var e,r;b.value=!0,await F(),(e=g.value)==null||e.open("edit"),(r=g.value)==null||r.setFormData(l)},j=async l=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:l}),C()},A=async l=>{var r,m;let e=await de({id:l.id});w.value=!0,await F(),(r=k.value)==null||r.open(),(m=k.value)==null||m.setFormData(e)},x=_e();return(V=x.query)!=null&&V.listId&&B({id:x.query.listId}),C(),(l,e)=>{const r=K,m=Q,p=X,M=Y,P=Z,O=se,d=ee,W=te,z=oe,G=le,v=ve("perms"),H=ae;return n(),L("div",null,[t(P,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(M,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[t(m,{label:"\u8D39\u7528\u9884\u7B97\u5355\u53F7",prop:"cost_budget_code"},{default:o(()=>[t(r,{class:"w-[280px]",modelValue:c.cost_budget_code,"onUpdate:modelValue":e[0]||(e[0]=a=>c.cost_budget_code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D39\u7528\u9884\u7B97\u5355\u53F7"},null,8,["modelValue"])]),_:1}),t(m,{label:"",prop:"annex"},{default:o(()=>[t(r,{class:"w-[280px]",modelValue:c.annex,"onUpdate:modelValue":e[1]||(e[1]=a=>c.annex=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(p,{type:"primary",onClick:s(U)},{default:o(()=>[ke]),_:1},8,["onClick"]),t(p,{onClick:s(T)},{default:o(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),i(P,{class:"!border-none",shadow:"never"},{default:o(()=>[_((n(),i(p,{type:"primary",onClick:q},{icon:o(()=>[t(O,{name:"el-icon-Plus"})]),default:o(()=>[ye]),_:1})),[[v,["project.project_cost_budget/add"]]]),_((n(),i(p,{disabled:!y.value.length,onClick:e[2]||(e[2]=a=>j(y.value))},{default:o(()=>[De]),_:1},8,["disabled"])),[[v,["project.project_cost_budget/delete"]]]),S("div",Fe,[t(z,{data:s(f).lists,onSelectionChange:N},{default:o(()=>[t(d,{type:"selection",width:"55"}),t(d,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(d,{label:"\u8D39\u7528\u9884\u7B97\u5355\u53F7",prop:"cost_budget_code","show-overflow-tooltip":""}),t(d,{label:"\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),t(d,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),t(d,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":"",align:"center"},{default:o(({row:a})=>[(n(!0),L(ge,null,be(a.annex,(h,J)=>(n(),i(W,{style:{"margin-right":"4px"},type:"primary",href:h.uri},{default:o(()=>[u("\u6587\u4EF6"+he(J+1),1)]),_:2},1032,["href"]))),256))]),_:1}),t(d,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[_((n(),i(p,{type:"primary",link:"",onClick:h=>B(a)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[v,["project.project_cost_budget/edit"]]]),_((n(),i(p,{type:"danger",link:"",onClick:h=>j(a.id)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[v,["project.project_cost_budget/delete"]]]),_((n(),i(p,{link:"",onClick:h=>A(a)},{default:o(()=>[je]),_:2},1032,["onClick"])),[[v,["project.project_cost_budget/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",xe,[t(G,{modelValue:s(f),"onUpdate:modelValue":e[3]||(e[3]=a=>Ce(f)?f.value=a:null),onChange:s(C)},null,8,["modelValue","onChange"])])]),_:1})),[[H,s(f).loading]]),b.value?(n(),i(ce,{key:0,ref_key:"editRef",ref:g,"dict-data":s(E),onSuccess:s(C),onClose:e[4]||(e[4]=a=>b.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),w.value?(n(),i(me,{key:1,ref_key:"detailRef",ref:k,"dict-data":s(E),onClose:e[5]||(e[5]=a=>w.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{Vt as default};