engineering/public/admin/assets/index.2c3540b4.js
2024-02-20 17:15:05 +08:00

2 lines
7.3 KiB
JavaScript

import{I as Q,y as X,w as Y,D as Z,C as ee,L as te,a0 as oe,M as ae,N as le}from"./element-plus.b3353ca6.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as re,a as ie}from"./index.892155dd.js";import{u as se}from"./usePaging.f6660143.js";import{u as ne}from"./useDictOptions.c47985a3.js";import{_ as pe,a as R,b as de,c as ce}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.32a194e0.js";import{d as N,s as A,r as j,a0 as me,ai as _e,o as u,c as b,V as e,M as a,O as _,u as s,L as p,S,n as y,a as I,W as fe,a8 as ve,k as be,T as d,U as Ee}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import ge from"./detail.172a2c43.js";import{u as we}from"./vue-router.87ebc608.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.vue_vue_type_style_index_0_lang.0516907d.js";import"./common.1dd75afe.js";import"./index.771e5a41.js";import"./index.vue_vue_type_script_setup_true_lang.f1ca1c0b.js";import"./contract.f3f9485a.js";import"./index.vue_vue_type_script_setup_true_lang.3dd325bc.js";import"./project.31b61d2e.js";import"./projecttype.87f07315.js";import"./department.cd9c927d.js";import"./organization.c13a1cd8.js";import"./index.cf38292c.js";import"./approve.cdf281c2.js";import"./flow.ec77bb69.js";import"./custom.735a8774.js";import"./flowSet.0350f9c8.js";const he=d("\u67E5\u8BE2"),Ce=d("\u91CD\u7F6E"),ke=d(" \u65B0\u589E "),Fe=d(" \u5220\u9664 "),je={class:"mt-4"},ye={key:0},Be={key:1},De=d(" \u7F16\u8F91 "),Ve=d(" \u5220\u9664 "),xe=d(" \u8BE6\u60C5 "),Pe={class:"flex justify-end mt-4"},$e=N({name:"projectLists"}),Lt=N({...$e,setup(Le){var P;const C=A(),E=A(),g=j(!1),k=j(!1),m=me({total_budget_code:"",project_manager:""}),F=j([]),T=r=>{F.value=r.map(({id:o})=>o)},{dictData:B}=ne("invoice_type"),{pager:f,getLists:w,resetParams:U,resetPage:q}=se({fetchFun:de,params:m}),M=async()=>{var r;g.value=!0,await y(),(r=E.value)==null||r.open("add")},O=async r=>{var n,i;console.log(r.id);let o=await R({id:r.id});g.value=!0,await y(),(n=E.value)==null||n.open("edit"),(i=E.value)==null||i.setFormData(o)},D=async r=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ce({id:r}),w()},V=async r=>{var n,i;let o=await R({id:r.id});k.value=!0,await y(),(n=C.value)==null||n.open(),(i=C.value)==null||i.setFormData(o)},x=we();return(P=x.query)!=null&&P.listId&&V({id:x.query.listId}),w(),(r,o)=>{const n=Q,i=X,c=Y,W=Z,$=ee,z=ie,t=te,G=oe,H=ae,J=ue,v=_e("perms"),K=le;return u(),b("div",null,[e($,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(W,{class:"mb-[-16px]",model:m,inline:""},{default:a(()=>[e(i,{label:"\u9879\u76EE\u7ECF\u7406"},{default:a(()=>[e(n,{modelValue:m.project_manager,"onUpdate:modelValue":o[0]||(o[0]=l=>m.project_manager=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7ECF\u7406"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9879\u76EE\u603B\u9884\u7B97\u7F16\u7801"},{default:a(()=>[e(n,{modelValue:m.total_budget_code,"onUpdate:modelValue":o[1]||(o[1]=l=>m.total_budget_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u603B\u9884\u7B97\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(i,null,{default:a(()=>[e(c,{type:"primary",onClick:s(q)},{default:a(()=>[he]),_:1},8,["onClick"]),e(c,{onClick:s(U)},{default:a(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),p($,{class:"!border-none",shadow:"never"},{default:a(()=>[_((u(),p(c,{type:"primary",onClick:M},{icon:a(()=>[e(z,{name:"el-icon-Plus"})]),default:a(()=>[ke]),_:1})),[[v,["project.project_manager_apiprojectbudget/add"]]]),_((u(),p(c,{disabled:!F.value.length,onClick:o[2]||(o[2]=l=>D(F.value))},{default:a(()=>[Fe]),_:1},8,["disabled"])),[[v,["project.project_manager_apiprojectbudget/delete"]]]),I("div",je,[e(H,{data:s(f).lists,onSelectionChange:T},{default:a(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(t,{label:"\u9884\u7B97\u5355\u53F7",prop:"total_budget_code","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7ECF\u7406",prop:"project_manager","show-overflow-tooltip":""}),e(t,{label:"\u9884\u7B97\u65E5\u671F",prop:"budget_date","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u91D1\u989D",prop:"contract_amount","show-overflow-tooltip":""}),e(t,{label:"\u603B\u6210\u672C",prop:"total_cost","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u5229\u6DA6",prop:"profit","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u5229\u6DA6\u7387",prop:"profit_rate","show-overflow-tooltip":""}),e(t,{label:"\u6750\u6599\u9884\u7B97\u6210\u672C",prop:"cl_cost","show-overflow-tooltip":""}),e(t,{label:"\u5206\u5305\u9884\u7B97\u6210\u672C",prop:"fb_cost","show-overflow-tooltip":""}),e(t,{label:"\u4EBA\u5DE5\u9884\u7B97\u6210\u672C",prop:"rg_cost","show-overflow-tooltip":""}),e(t,{label:"\u8D39\u7528\u9884\u7B97\u6210\u672C",prop:"fy_cost","show-overflow-tooltip":""}),e(t,{label:"\u673A\u5177\u9884\u7B97\u6210\u672C",prop:"jj_cost","show-overflow-tooltip":""}),e(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u9884\u7B97\u6E05\u5355","show-overflow-tooltip":""},{default:a(({row:l})=>[l.budget_list&&l.budget_list.length>0?(u(),b("div",ye,[(u(!0),b(fe,null,ve(l.budget_list,(h,L)=>(u(),b("div",{key:L},[e(G,{href:h,target:"_blank"},{default:a(()=>[d("\u6587\u4EF6"+Ee(L+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(u(),b("div",Be," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(t,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:l})=>[_((u(),p(c,{type:"primary",link:"",onClick:h=>O(l)},{default:a(()=>[De]),_:2},1032,["onClick"])),[[v,["project.project_manager_apiprojectbudget/edit"]]]),_((u(),p(c,{type:"danger",link:"",onClick:h=>D(l.id)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[v,["project.project_manager_apiprojectbudget/delete"]]]),_((u(),p(c,{link:"",onClick:h=>V(l)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[v,["project.project_manager_apiprojectbudget/detail"]]])]),_:1})]),_:1},8,["data"])]),I("div",Pe,[e(J,{modelValue:s(f),"onUpdate:modelValue":o[3]||(o[3]=l=>be(f)?f.value=l:null),onChange:s(w)},null,8,["modelValue","onChange"])])]),_:1})),[[K,s(f).loading]]),g.value?(u(),p(pe,{key:0,ref_key:"editRef",ref:E,"dict-data":s(B),onSuccess:s(w),onClose:o[4]||(o[4]=l=>g.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0),k.value?(u(),p(ge,{key:1,ref_key:"detailRef",ref:C,"dict-data":s(B),onClose:o[5]||(o[5]=l=>k.value=!1)},null,8,["dict-data"])):S("",!0)])}}});export{Lt as default};