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

2 lines
6.1 KiB
JavaScript

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