2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{w as U,L as z,M as G,C as H,N as J}from"./element-plus.258bf9e7.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Q,a as W}from"./index.ec401e3b.js";import{u as X}from"./usePaging.f6660143.js";import{u as Y}from"./useDictOptions.c644f395.js";import{s as $,c as Z,d as tt}from"./project_subpackage_budget.fdcaf195.js";import"./lodash.1d82ee7c.js";import{_ as et}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.b62bed3b.js";import ot from"./detail.c9746955.js";import{u as at}from"./vue-router.87ebc608.js";import{d as P,a0 as x,s as V,r as k,ai as it,o as l,c as lt,O as c,u as p,L as n,M as r,S as R,n as g,V as o,a as L,k as rt,T as _}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./project_subpackage_budget_detail.b29b14e4.js";import"./index.vue_vue_type_script_setup_true_lang.56061058.js";import"./material_list.9f618924.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const st=_(" \u65B0\u589E "),nt=_(" \u5220\u9664 "),ut={class:"mt-4"},pt=_(" \u7F16\u8F91 "),ct=_(" \u5220\u9664 "),mt=_(" \u8BE6\u60C5 "),dt={class:"flex justify-end mt-4"},_t=P({name:"projectLists"}),ve=P({..._t,setup(ft){var B;x([]);const C=V(),f=V(),v=k(!1),h=k(!1),N=x({}),w=k([]),S=e=>{w.value=e.map(({id:t})=>t)},{dictData:y}=Y("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:m,getLists:b,resetParams:vt,resetPage:bt}=X({fetchFun:Z,params:N}),T=async()=>{var e;v.value=!0,await g(),(e=f.value)==null||e.open("add")},q=async e=>{var u,a;console.log(e.id);let t=await $({id:e.id});v.value=!0,await g(),(u=f.value)==null||u.open("edit"),(a=f.value)==null||a.setFormData(t)},D=async e=>{await Q.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await tt({id:e}),b()},F=async e=>{var u,a;let t=await $({id:e.id});h.value=!0,await g(),(u=C.value)==null||u.open(),(a=C.value)==null||a.setFormData(t)},E=at();return(B=E.query)!=null&&B.listId&&F({id:E.query.listId}),b(),(e,t)=>{const u=W,a=U,i=z,A=G,I=K,M=H,d=it("perms"),O=J;return l(),lt("div",null,[c((l(),n(M,{class:"!border-none",shadow:"never"},{default:r(()=>[c((l(),n(a,{type:"primary",onClick:T},{icon:r(()=>[o(u,{name:"el-icon-Plus"})]),default:r(()=>[st]),_:1})),[[d,["project.project/add"]]]),c((l(),n(a,{disabled:!w.value.length,onClick:t[0]||(t[0]=s=>D(w.value))},{default:r(()=>[nt]),_:1},8,["disabled"])),[[d,["project.project/delete"]]]),L("div",ut,[o(A,{data:p(m).lists,onSelectionChange:S},{default:r(()=>[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:r(({row:s})=>[c((l(),n(a,{type:"primary",link:"",onClick:j=>q(s)},{default:r(()=>[pt]),_:2},1032,["onClick"])),[[d,["project.project/edit"]]]),c((l(),n(a,{type:"danger",link:"",onClick:j=>D(s.id)},{default:r(()=>[ct]),_:2},1032,["onClick"])),[[d,["project.project/delete"]]]),c((l(),n(a,{link:"",onClick:j=>F(s)},{default:r(()=>[mt]),_:2},1032,["onClick"])),[[d,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",dt,[o(I,{modelValue:p(m),"onUpdate:modelValue":t[1]||(t[1]=s=>rt(m)?m.value=s:null),onChange:p(b)},null,8,["modelValue","onChange"])])]),_:1})),[[O,p(m).loading]]),v.value?(l(),n(et,{key:0,ref_key:"editRef",ref:f,"dict-data":p(y),onSuccess:p(b),onClose:t[2]||(t[2]=s=>v.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),h.value?(l(),n(ot,{key:1,ref_key:"detailRef",ref:C,"dict-data":p(y),onClose:t[3]||(t[3]=s=>h.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{ve as default};
|