2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{w as O,L as U,M as z,C as G,N as H}from"./element-plus.4ff6f47d.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as J,a as K}from"./index.aaca920c.js";import{u as Q}from"./usePaging.f6660143.js";import{u as W}from"./useDictOptions.c83e2497.js";import{c as X,s as E,d as Y}from"./project_subpackage_budget.9b324715.js";import"./lodash.8ea2174a.js";import{_ as Z}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.3a9a9b57.js";import ee from"./detail.74c420af.js";import{d as V,a0 as B,s as j,r as k,ai as te,o as l,c as oe,O as c,u as p,L as n,M as s,S as $,V as o,a as x,k as ae,T as _,n as g}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.ff7c6188.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./project_subpackage_budget_detail.0650519e.js";import"./index.vue_vue_type_script_setup_true_lang.200350f4.js";import"./material_list.a39f4e8c.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./custom.01004c04.js";const ie=_(" \u65B0\u589E "),le=_(" \u5220\u9664 "),se={class:"mt-4"},re=_(" \u7F16\u8F91 "),ne=_(" \u5220\u9664 "),ue=_(" \u8BE6\u60C5 "),pe={class:"flex justify-end mt-4"},ce=V({name:"projectLists"}),ut=V({...ce,setup(de){B([]);const C=j(),f=j(),v=k(!1),h=k(!1),L=B({}),w=k([]),P=t=>{w.value=t.map(({id:e})=>e)},{dictData:D}=W("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:d,getLists:b,resetParams:me,resetPage:_e}=Q({fetchFun:X,params:L}),R=async()=>{var t;v.value=!0,await g(),(t=f.value)==null||t.open("add")},N=async t=>{var u,a;console.log(t.id);let e=await E({id:t.id});v.value=!0,await g(),(u=f.value)==null||u.open("edit"),(a=f.value)==null||a.setFormData(e)},y=async t=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:t}),b()},S=async t=>{var u,a;let e=await E({id:t.id});h.value=!0,await g(),(u=C.value)==null||u.open(),(a=C.value)==null||a.setFormData(e)};return b(),(t,e)=>{const u=K,a=O,i=U,T=z,A=I,M=G,m=te("perms"),q=H;return l(),oe("div",null,[c((l(),n(M,{class:"!border-none",shadow:"never"},{default:s(()=>[c((l(),n(a,{type:"primary",onClick:R},{icon:s(()=>[o(u,{name:"el-icon-Plus"})]),default:s(()=>[ie]),_:1})),[[m,["project.project/add"]]]),c((l(),n(a,{disabled:!w.value.length,onClick:e[0]||(e[0]=r=>y(w.value))},{default:s(()=>[le]),_:1},8,["disabled"])),[[m,["project.project/delete"]]]),x("div",se,[o(T,{data:p(d).lists,onSelectionChange:P},{default:s(()=>[o(i,{type:"selection",width:"55"}),o(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(i,{label:"\u9884\u7B97\u5355\u53F7",prop:"subpackage_budget_code","show-overflow-tooltip":""}),o(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(i,{label:"\u9884\u7B97\u603B\u5DE5\u4F5C\u91CF",prop:"total_num","show-overflow-tooltip":""}),o(i,{label:"\u5269\u4F59\u9884\u7B97\u5DE5\u4F5C\u91CF",prop:"residue_num","show-overflow-tooltip":""}),o(i,{label:"\u9884\u7B97\u603B\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),o(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(i,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:s(({row:r})=>[c((l(),n(a,{type:"primary",link:"",onClick:F=>N(r)},{default:s(()=>[re]),_:2},1032,["onClick"])),[[m,["project.project/edit"]]]),c((l(),n(a,{type:"danger",link:"",onClick:F=>y(r.id)},{default:s(()=>[ne]),_:2},1032,["onClick"])),[[m,["project.project/delete"]]]),c((l(),n(a,{link:"",onClick:F=>S(r)},{default:s(()=>[ue]),_:2},1032,["onClick"])),[[m,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),x("div",pe,[o(A,{modelValue:p(d),"onUpdate:modelValue":e[1]||(e[1]=r=>ae(d)?d.value=r:null),onChange:p(b)},null,8,["modelValue","onChange"])])]),_:1})),[[q,p(d).loading]]),v.value?(l(),n(Z,{key:0,ref_key:"editRef",ref:f,"dict-data":p(D),onSuccess:p(b),onClose:e[2]||(e[2]=r=>v.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),h.value?(l(),n(ee,{key:1,ref_key:"detailRef",ref:C,"dict-data":p(D),onClose:e[3]||(e[3]=r=>h.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{ut as default};
|