engineering/public/admin/assets/detail.68b0c914.js
2024-02-27 10:28:16 +08:00

2 lines
5.9 KiB
JavaScript

import{_ as O,a as P}from"./index.011c79f0.js";import{R,S as T,L as V,M as L}from"./element-plus.517d4382.js";import{P as S}from"./index.b17dae19.js";import{a as I}from"./custom.99349afc.js";import{W as M,X as W}from"./flowSet.6da79e1c.js";import{d as C,s as $,a0 as g,r as U,o as n,c,V as l,M as u,T as i,U as o,W as X,a8 as q,a as f,L as y,u as z}from"./@vue.ab566ce7.js";import{_ as G}from"./index.8b1962e9.js";import"./@element-plus.b89f1627.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./vue-router.87ebc608.js";import"./@vueuse.8fcae4c2.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"./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";const H={class:"detail-popup"},J={key:0},K={style:{"margin-left":"5px",display:"block"}},Q=["href"],Y={key:1},Z=C({name:"customdetail"}),ee=C({...Z,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(te,{expose:v,emit:x}){const _=$(),a=g([{name:"\u6750\u6599/\u8BBE\u5907\u6210\u672C(\u5143)",text:"\u7528\u4E8E\u63A7\u5236\u6750\u6599\u6210\u672C",cost:"",rate:"",cl_cost:""},{name:"\u5206\u5305\u6210\u672C(\u5143)",text:"\u7528\u4E8E\u63A7\u5236\u5206\u5305\u6210\u672C",cost:"",rate:"",fb_cost:""},{name:"\u4EBA\u5DE5\u6210\u672C(\u5143)",text:"\u7528\u4E8E\u63A7\u5236\u5DE5\u65F6\u6210\u672C\u53CA\u9879\u76EE\u4EBA\u529B\u6210\u672C",cost:"",rate:"",rg_cost:""},{name:"\u8D39\u7528\u6210\u672C(\u5143)",text:"\u7528\u4E8E\u63A7\u5236\u8D39\u7528\u62A5\u9500\u53CA\u5DEE\u65C5\u62A5\u9500",cost:"",rate:"",fy_cost:""},{name:"\u673A\u68B0 & \u5DE5\u5177\u6210\u672C(\u5143)",text:"\u7528\u4E8E\u63A7\u5236\u673A\u68B0\u53CA\u8BBE\u5907\u6210\u672C",cost:"",rate:"",jj_cost:""}]),t=g({}),b=async e=>{Object.assign(t,e),a[0].cost=e.cl_cost,a[1].cost=e.fb_cost,a[2].cost=e.rg_cost,a[3].cost=e.fy_cost,a[4].cost=e.jj_cost,a[0].rate=(Number(e.cl_cost)/e.total_cost).toFixed(2)+"%",a[1].rate=(Number(e.fb_cost)/e.total_cost).toFixed(2)+"%",a[2].rate=(Number(e.rg_cost)/e.total_cost).toFixed(2)+"%",a[3].rate=(Number(e.fy_cost)/e.total_cost).toFixed(2)+"%",a[4].rate=(Number(e.jj_cost)/e.total_cost).toFixed(2)+"%",A()},F=async e=>{const E=await I({id:e.id});b(E)},B=async()=>{var e;(e=_.value)==null||e.close()},h=()=>{var e;console.log("1111111"),(e=_.value)==null||e.open()},m=()=>{x("close")},d=U([]),A=async()=>{if(t!=null&&t.approve_id)return;let e=await M();d.value=e};return v({open:h,setFormData:b,getDetail:F}),(e,E)=>{const s=R,w=T,r=V,D=L,j=O,k=P;return n(),c("div",H,[l(S,{ref_key:"popupRef",ref:_,title:"\u9879\u76EE\u603B\u9884\u7B97\u8BE6\u60C5",async:!0,width:"80%",onConfirm:B,onClose:m},{default:u(()=>[l(w,{column:2,title:"\u57FA\u672C\u4FE1\u606F",border:""},{default:u(()=>[l(s,{label:"\u90E8\u95E8\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.dept_name),1)]),_:1}),l(s,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.project_name),1)]),_:1}),l(s,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.project_code),1)]),_:1}),l(s,{label:"\u9879\u76EE\u5229\u6DA6(\u5143)","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.profit),1)]),_:1}),l(s,{label:"\u9879\u76EE\u5229\u6DA6\u7387(%)","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.profit_rate),1)]),_:1}),l(s,{label:"\u5408\u540C\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.contract_amount),1)]),_:1}),l(s,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.remark),1)]),_:1}),l(s,{label:"\u9879\u76EE\u7ECF\u7406","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.project_manager),1)]),_:1}),l(s,{label:"\u9884\u7B97\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[i(o(t.budget_date),1)]),_:1}),l(s,{label:"\u9884\u7B97\u6E05\u5355","label-align":"left",align:"left","label-class-name":"my-label"},{default:u(()=>[t.budget_list&&t.budget_list.length>0?(n(),c("div",J,[(n(!0),c(X,null,q(t.budget_list,(p,N)=>(n(),c("div",K,[f("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:p.uri,target:"_blank"},"\u6587\u4EF6"+o(N+1)+" \u67E5\u770B",9,Q)]))),256))])):(n(),c("div",Y," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1}),l(D,{data:a},{default:u(()=>[l(r,{label:"\u5E8F\u53F7",type:"index",width:"56","show-overflow-tooltip":""}),l(r,{label:"\u5206\u9879"},{default:u(({row:p})=>[f("div",null,o(p.name),1),f("div",null,o(p.text),1)]),_:1}),l(r,{label:"\u9884\u7B97\u6210\u672C",prop:"cost","show-overflow-tooltip":""}),l(r,{label:"\u6210\u672C\u5360\u6BD4",prop:"rate",width:"156","show-overflow-tooltip":""})]),_:1},8,["data"]),!(t!=null&&t.approve_id)||t.approve_check_status==4?(n(),y(j,{key:0,flows:d.value,submitApi:z(W),id:t==null?void 0:t.id,onOff:m},null,8,["flows","submitApi","id"])):(n(),y(k,{key:1,approve_id:t==null?void 0:t.approve_id,onOff:m},null,8,["approve_id"]))]),_:1},512)])}}});const We=G(ee,[["__scopeId","data-v-2d71672c"]]);export{We as default};