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

2 lines
6.1 KiB
JavaScript

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