| 1 |
- import{d as P,b as E,s as q,a as S,u as Y,c as f,r as $,o as G,e as v,f as i,g as n,w as r,F as g,t as x,D as O,k as y,j as m,n as u,A as d,m as H,h as M,G as z,_ as J}from"./index-b3d5c748.js";import{A as K}from"./index-aacf363a.js";import{F as Q,C as W}from"./index-e0a50352.js";import"./index-d5acb7e5.js";import{F as X}from"./index-36e50274.js";import{f as Z}from"./formatTime-325dcd9a.js";import{u as L}from"./index-7da3b21b.js";import{u as h}from"./dict-49db7f1e.js";import{a as c,g as ee}from"./other-0a6516d1.js";import{u as oe}from"./claim-a88c89b9.js";import{_ as te}from"./_plugin-vue_export-helper-c27b6911.js";import"./use-id-d2a65d0a.js";const ae={id:"container",class:"container"},ne=P({__name:"detail",setup(le){const U=z(()=>J(()=>import("./FlowTable-f088299c.js"),["assets/FlowTable-f088299c.js","assets/index-b3d5c748.js","assets/index-7efcb25d.css","assets/index-e5a55eb6.js","assets/index-aba14064.css","assets/formatTime-325dcd9a.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/FlowTable-294dde73.css"])),j=E();q(j);const _=S(),k=Y(),F=L(),N=h(),w=oe();f([]);const C=f(),V=f([]),o=$({loading:!1,isActiveService:!1,showProject:!1,shwoService:!1,showExpenseCard:!1,showAppointUser:!1,isInstrHead:!1,detail:[],paymentForm:{detail:[],id:0,amount:0,manageAmount:0,taxAmount:0,proportion:0,date:"",type:"",serialNo:"",unit:"",remark:""},form:{id:0,amount:"",externalAmount:"",fundId:null,internalAmount:"",projectId:null,remark:"",schemeId:null,projectName:"",projectType:"",detail:[]}}),D=()=>{Promise.all([N.getDictDataByType("PaymentReceivedType"),F.getAllFirstSubj()]).then(([l,e])=>{var a;V.value=((a=l==null?void 0:l.data)==null?void 0:a.values)||[],o.detail=(e==null?void 0:e.data.map(s=>({...s,amount:0})))||[]})},I=l=>{let e="";switch(l){case"10":e="纵向项目";break;case"20":e="横向项目";break;case"30":e="内部项目";break;case"40":e="重点学科";break}return e},T=async l=>{const[e,a]=await x(w.getEntityByFundId({fundId:l}));if(e)return;a!=null&&a.data&&(o.form=a.data);const[s,p]=await x(F.getDetails({id:l}));s||(o.paymentForm=p==null?void 0:p.data)},b=(l,e)=>{k.push({path:l,query:{...e}})};return G(()=>{const l=_.query.id?+_.query.id:0;D(),T(l)}),(l,e)=>{const a=X,s=W,p=Q,A=K,B=O;return y(),v(g,null,[i("div",ae,[n(p,{ref_key:"formRef",ref:C,required:"auto"},{default:r(()=>[e[11]||(e[11]=i("h4",null,"到款信息",-1)),n(s,{class:"mt10"},{default:r(()=>[n(a,{modelValue:o.form.projectName,"onUpdate:modelValue":e[0]||(e[0]=t=>o.form.projectName=t),label:"项目名称",readonly:""},null,8,["modelValue"]),n(a,{modelValue:o.form.projectName,"onUpdate:modelValue":e[1]||(e[1]=t=>o.form.projectName=t),label:"项目类型",readonly:""},{input:r(()=>[m(u(I(o.form.projectType)),1)]),_:1},8,["modelValue"]),n(a,{modelValue:o.form.amount,"onUpdate:modelValue":e[2]||(e[2]=t=>o.form.amount=t),label:"到账金额",readonly:""},{input:r(()=>[m("¥"+u(d(c)(Number(o.paymentForm.amount?o.paymentForm.amount-o.paymentForm.manageAmount-o.paymentForm.taxAmount:0)))+"元",1)]),_:1},8,["modelValue"]),n(a,{modelValue:o.paymentForm.date,"onUpdate:modelValue":e[3]||(e[3]=t=>o.paymentForm.date=t),label:"到款日期",readonly:""},{input:r(()=>[m(u(d(Z)(new Date(o.paymentForm.date),"YYYY-mm-dd")),1)]),_:1},8,["modelValue"]),n(a,{modelValue:o.paymentForm.type,"onUpdate:modelValue":e[4]||(e[4]=t=>o.paymentForm.type=t),label:"经费类型",readonly:""},{input:r(()=>[m(u(d(ee)(V.value,o.paymentForm.type)),1)]),_:1},8,["modelValue"]),n(a,{modelValue:o.paymentForm.unit,"onUpdate:modelValue":e[5]||(e[5]=t=>o.paymentForm.unit=t),label:"打款单位",readonly:""},null,8,["modelValue"]),n(a,{modelValue:o.paymentForm.proportion,"onUpdate:modelValue":e[6]||(e[6]=t=>o.paymentForm.proportion=t),label:"管理费",readonly:""},{input:r(()=>[m(u(o.paymentForm.proportion)+"% -- "+u(d(c)(Number(o.paymentForm.manageAmount)))+"元",1)]),_:1},8,["modelValue"]),n(a,{modelValue:o.paymentForm.taxAmount,"onUpdate:modelValue":e[7]||(e[7]=t=>o.paymentForm.taxAmount=t),label:"税费",readonly:""},{input:r(()=>[m(u(d(c)(Number(o.paymentForm.taxAmount)))+"元",1)]),_:1},8,["modelValue"])]),_:1}),e[12]||(e[12]=i("h4",null,"认领经费",-1)),n(s,{class:"mt10"},{default:r(()=>[(y(!0),v(g,null,H(o.form.detail,t=>(y(),M(a,{key:t.id,label:t.subjName,placeholder:t.subjName,modelValue:t.amount,"onUpdate:modelValue":R=>t.amount=R,readonly:""},{extra:r(()=>e[10]||(e[10]=[m("元")])),_:2},1032,["label","placeholder","modelValue","onUpdate:modelValue"]))),128))]),_:1}),e[13]||(e[13]=i("h4",null,"审批记录",-1)),n(d(U),{id:o.form.id,businessCode:`${o.form.id}`,defCode:"sci_fund_allot_apply"},null,8,["id","businessCode"])]),_:1},512)]),n(B,{placeholder:""},{default:r(()=>[n(A,{icon:"wap-home-o",text:"首页",onClick:e[8]||(e[8]=t=>b("/home"))}),n(A,{icon:"balance-o",text:"经费认领",onClick:e[9]||(e[9]=t=>b("/fund/claim"))})]),_:1})],64)}}});const Ve=te(ne,[["__scopeId","data-v-47b93e2d"]]);export{Ve as default};
|