engineering/public/admin/assets/index.16c80e05.js
2024-03-04 15:04:21 +08:00

2 lines
6.7 KiB
JavaScript

import{I as ee,y as te,G as ae,H as oe,J as le,w as ne,D as ue,C as se,L as pe,a2 as re,M as ie,N as de}from"./element-plus.258bf9e7.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ce,a as _e}from"./index.ec401e3b.js";import{u as fe}from"./usePaging.f6660143.js";import{u as ye}from"./useDictOptions.c644f395.js";import{_ as ve,p as Ee,a as $,b as ke}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.cfa67fa8.js";import De from"./detail.7c0fd3b3.js";import{d as U,a0 as L,s as P,r as B,ai as he,o as l,c as f,V as e,M as o,O as y,u as p,L as r,S,W as R,a8 as N,a as T,k as be,T as d,n as g,U as Ce}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"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.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"./index.vue_vue_type_script_setup_true_lang.0ec25c70.js";import"./project_personnel.09fb588e.js";import"./project_salary_detail.57d1cdc6.js";import"./index.a7758114.js";import"./custom.13e75d58.js";const Fe=d("\u67E5\u8BE2"),we=d("\u91CD\u7F6E"),Be=d(" \u65B0\u589E "),ge=d(" \u5220\u9664 "),Ve={class:"mt-4"},je={key:0},xe={key:1},$e=d(" \u7F16\u8F91 "),Le=d(" \u5220\u9664 "),Pe=d(" \u8BE6\u60C5 "),Se={class:"flex justify-end mt-4"},Re=U({name:"projectLists"}),jt=U({...Re,setup(Ne){L([]);const b=P(),k=P(),D=B(!1),C=B(!1),i=L({payment_code:"",apply_date:"",payment_type:""}),F=B([]),A=n=>{F.value=n.map(({id:a})=>a)},{dictData:w}=ye("salary_payment_type"),{pager:v,getLists:h,resetParams:I,resetPage:M}=fe({fetchFun:Ee,params:i}),Y=async()=>{var n;D.value=!0,await g(),(n=k.value)==null||n.open("add")},O=async n=>{var m,u;console.log(n.id);let a=await $({id:n.id});D.value=!0,await g(),(m=k.value)==null||m.open("edit"),(u=k.value)==null||u.setFormData(a)},V=async n=>{await ce.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ke({id:n}),h()},q=async n=>{var m,u;let a=await $({id:n.id});C.value=!0,await g(),(m=b.value)==null||m.open(),(u=b.value)==null||u.setFormData(a)};return h(),(n,a)=>{const m=ee,u=te,G=ae,H=oe,J=le,c=ne,W=ue,j=se,z=_e,s=pe,K=re,Q=ie,X=me,E=he("perms"),Z=de;return l(),f("div",null,[e(j,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(W,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(u,{label:"\u5DE5\u8D44\u4ED8\u6B3E\u5355\u53F7",prop:"payment_code"},{default:o(()=>[e(m,{modelValue:i.payment_code,"onUpdate:modelValue":a[0]||(a[0]=t=>i.payment_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5DE5\u8D44\u4ED8\u6B3E\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u4ED8\u6B3E\u7C7B\u578B",prop:"payment_type"},{default:o(()=>[e(H,{class:"flex-1",modelValue:i.payment_type,"onUpdate:modelValue":a[1]||(a[1]=t=>i.payment_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:o(()=>[(l(!0),f(R,null,N(p(w).pay_type,(t,_)=>(l(),r(G,{key:_,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u7533\u8BF7\u65E5\u671F",prop:"apply_date"},{default:o(()=>[e(J,{class:"flex-1 !flex",modelValue:i.apply_date,"onUpdate:modelValue":a[2]||(a[2]=t=>i.apply_date=t),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u7533\u8BF7\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(c,{type:"primary",onClick:p(M)},{default:o(()=>[Fe]),_:1},8,["onClick"]),e(c,{onClick:p(I)},{default:o(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((l(),r(j,{class:"!border-none",shadow:"never"},{default:o(()=>[y((l(),r(c,{type:"primary",onClick:Y},{icon:o(()=>[e(z,{name:"el-icon-Plus"})]),default:o(()=>[Be]),_:1})),[[E,["project.project_salary_payment/add"]]]),y((l(),r(c,{disabled:!F.value.length,onClick:a[3]||(a[3]=t=>V(F.value))},{default:o(()=>[ge]),_:1},8,["disabled"])),[[E,["project.project_salary_payment/delete"]]]),T("div",Ve,[e(Q,{data:p(v).lists,onSelectionChange:A},{default:o(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(s,{label:"\u5DE5\u8D44\u4ED8\u6B3E\u5355\u53F7",prop:"payment_code","show-overflow-tooltip":""}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(s,{label:"\u4ED8\u6B3E\u7C7B\u578B",prop:"payment_type","show-overflow-tooltip":""}),e(s,{label:"\u7533\u8BF7\u65E5\u671F",prop:"apply_date","show-overflow-tooltip":""}),e(s,{label:"\u5408\u8BA1\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(s,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:o(({row:t})=>[t.annex&&t.annex.length>0?(l(),f("div",je,[(l(!0),f(R,null,N(t.annex,(_,x)=>(l(),f("div",{key:x},[e(K,{href:_,target:"_blank"},{default:o(()=>[d("\u6587\u4EF6"+Ce(x+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),f("div",xe," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:t})=>[y((l(),r(c,{type:"primary",link:"",onClick:_=>O(t)},{default:o(()=>[$e]),_:2},1032,["onClick"])),[[E,["project.project_salary_payment/edit"]]]),y((l(),r(c,{type:"danger",link:"",onClick:_=>V(t.id)},{default:o(()=>[Le]),_:2},1032,["onClick"])),[[E,["project.project_salary_payment/delete"]]]),y((l(),r(c,{link:"",onClick:_=>q(t)},{default:o(()=>[Pe]),_:2},1032,["onClick"])),[[E,["project.project_salary_payment/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Se,[e(X,{modelValue:p(v),"onUpdate:modelValue":a[4]||(a[4]=t=>be(v)?v.value=t:null),onChange:p(h)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,p(v).loading]]),D.value?(l(),r(ve,{key:0,ref_key:"editRef",ref:k,"dict-data":p(w),onSuccess:p(h),onClose:a[5]||(a[5]=t=>D.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0),C.value?(l(),r(De,{key:1,ref_key:"detailRef",ref:b,"dict-data":p(w),onClose:a[6]||(a[6]=t=>C.value=!1)},null,8,["dict-data"])):S("",!0)])}}});export{jt as default};