2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{I as q,y as O,w as W,D as Z,C as z,L as G,Z as H,M as J,N as K}from"./element-plus.4ff6f47d.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as X,a as Y}from"./index.aaca920c.js";import{u as ee}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.c83e2497.js";import{d as oe,a as ae,e as le}from"./project_labor_budget.866a6a6f.js";import{d as D,s as re,r as F,a0 as ie,ai as ne,o as r,c as y,V as e,M as t,O as f,u as i,L as s,S as se,a as B,W as ue,a8 as pe,k as de,T as u,n as j,U as ce}from"./@vue.ab566ce7.js";import"./lodash.8ea2174a.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_projectLaborBudgetEdit_lang.e5510f2f.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_job_type.57be419c.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./project_labor_budget_detail.bb288c81.js";const _e=u("\u67E5\u8BE2"),fe=u("\u91CD\u7F6E"),be=u(" \u65B0\u589E "),ge=u(" \u5220\u9664 "),Ee={class:"mt-4"},ve=u(" \u7F16\u8F91 "),he=u(" \u5220\u9664 "),we={class:"flex justify-end mt-4"},Ce=D({name:"projectLaborBudgetLists"}),ft=D({...Ce,setup(ke){const b=re(),g=F(!1),p=ie({project_id:"",labor_budget_code:""}),h=F([]),V=l=>{h.value=l.map(({id:o})=>o)},{dictData:x}=te(""),{pager:m,getLists:E,resetParams:L,resetPage:P}=ee({fetchFun:oe,params:p}),$=async()=>{var l;g.value=!0,await j(),(l=b.value)==null||l.open("add")},S=async l=>{var _,d;let o=await ae({id:l.id});g.value=!0,await j(),(_=b.value)==null||_.open("edit"),(d=b.value)==null||d.setFormData(o)},C=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await le({id:l}),E()};return E(),(l,o)=>{const _=q,d=O,c=W,A=Z,k=z,N=Y,n=G,T=H,R=J,U=Q,v=ne("perms"),I=K;return r(),y("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(A,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[e(d,{label:"\u9879\u76EEid",prop:"project_id"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:p.project_id,"onUpdate:modelValue":o[0]||(o[0]=a=>p.project_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EEid"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u4EBA\u5DE5\u9884\u7B97\u5355\u53F7",prop:"labor_budget_code"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:p.labor_budget_code,"onUpdate:modelValue":o[1]||(o[1]=a=>p.labor_budget_code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5DE5\u9884\u7B97\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(c,{type:"primary",onClick:i(P)},{default:t(()=>[_e]),_:1},8,["onClick"]),e(c,{onClick:i(L)},{default:t(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),s(k,{class:"!border-none",shadow:"never"},{default:t(()=>[f((r(),s(c,{type:"primary",onClick:$},{icon:t(()=>[e(N,{name:"el-icon-Plus"})]),default:t(()=>[be]),_:1})),[[v,["project.project_labor_budget/add"]]]),f((r(),s(c,{disabled:!h.value.length,onClick:o[2]||(o[2]=a=>C(h.value))},{default:t(()=>[ge]),_:1},8,["disabled"])),[[v,["project.project_labor_budget/delete"]]]),B("div",Ee,[e(R,{data:i(m).lists,onSelectionChange:V},{default:t(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u4EBA\u5DE5\u9884\u7B97\u5355\u53F7",prop:"labor_budget_code","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":"",align:"center"},{default:t(({row:a})=>[(r(!0),y(ue,null,pe(a.annex,(w,M)=>(r(),s(T,{style:{"margin-right":"4px"},type:"primary",href:w.uri},{default:t(()=>[u("\u6587\u4EF6"+ce(M+1),1)]),_:2},1032,["href"]))),256))]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[f((r(),s(c,{type:"primary",link:"",onClick:w=>S(a)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[v,["project.project_labor_budget/edit"]]]),f((r(),s(c,{type:"danger",link:"",onClick:w=>C(a.id)},{default:t(()=>[he]),_:2},1032,["onClick"])),[[v,["project.project_labor_budget/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",we,[e(U,{modelValue:i(m),"onUpdate:modelValue":o[3]||(o[3]=a=>de(m)?m.value=a:null),onChange:i(E)},null,8,["modelValue","onChange"])])]),_:1})),[[I,i(m).loading]]),g.value?(r(),s(me,{key:0,ref_key:"editRef",ref:b,"dict-data":i(x),onSuccess:i(E),onClose:o[4]||(o[4]=a=>g.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{ft as default};
|