2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{R as j,S as w,L as k,M as N}from"./element-plus.4ff6f47d.js";import{P as O}from"./index.ff7c6188.js";import{a as R}from"./custom.01004c04.js";import{d as g,s as E,a0 as p,o as n,c,V as t,M as l,T as i,U as o,W as T,a8 as V,a as f}from"./@vue.ab566ce7.js";import"./lodash.8ea2174a.js";import{_ as P}from"./index.aaca920c.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";const S={class:"detail-popup"},I={key:0},L={style:{"margin-left":"5px",display:"block"}},M=["href"],U={key:1},W=g({name:"customdetail"}),q=g({...W,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(z,{expose:y,emit:C}){E();const _=E();p([]),p({provinceOptions:[],cityOptions:[],areaOptions:[]});const a=p([{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:""}]),u=p({}),b=async e=>{Object.assign(u,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)+"%"},D=async e=>{const d=await R({id:e.id});b(d)},x=async()=>{var e;(e=_.value)==null||e.close()},B=()=>{var e;console.log("1111111"),(e=_.value)==null||e.open()},F=()=>{C("close")};return y({open:B,setFormData:b,getDetail:D}),(e,d)=>{const s=j,h=w,r=k,A=N;return n(),c("div",S,[t(O,{ref_key:"popupRef",ref:_,title:"\u9879\u76EE\u603B\u9884\u7B97\u8BE6\u60C5",async:!0,width:"80%",onConfirm:x,onClose:F},{default:l(()=>[t(h,{column:2,title:"\u57FA\u672C\u4FE1\u606F",border:""},{default:l(()=>[t(s,{label:"\u90E8\u95E8\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.dept_name),1)]),_:1}),t(s,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.project_name),1)]),_:1}),t(s,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.project_code),1)]),_:1}),t(s,{label:"\u9879\u76EE\u5229\u6DA6(\u5143)","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.profit),1)]),_:1}),t(s,{label:"\u9879\u76EE\u5229\u6DA6\u7387(%)","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.profit_rate),1)]),_:1}),t(s,{label:"\u5408\u540C\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.contract_amount),1)]),_:1}),t(s,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.remark),1)]),_:1}),t(s,{label:"\u9879\u76EE\u7ECF\u7406","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.project_manager),1)]),_:1}),t(s,{label:"\u9884\u7B97\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(o(u.budget_date),1)]),_:1}),t(s,{label:"\u9884\u7B97\u6E05\u5355","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[u.budget_list&&u.budget_list.length>0?(n(),c("div",I,[(n(!0),c(T,null,V(u.budget_list,(m,v)=>(n(),c("div",L,[f("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:m.uri,target:"_blank"},"\u6587\u4EF6"+o(v+1)+" \u67E5\u770B",9,M)]))),256))])):(n(),c("div",U," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1}),t(A,{data:a},{default:l(()=>[t(r,{label:"\u5E8F\u53F7",type:"index",width:"56","show-overflow-tooltip":""}),t(r,{label:"\u5206\u9879"},{default:l(({row:m})=>[f("div",null,o(m.name),1),f("div",null,o(m.text),1)]),_:1}),t(r,{label:"\u9884\u7B97\u6210\u672C",prop:"cost","show-overflow-tooltip":""}),t(r,{label:"\u6210\u672C\u5360\u6BD4",prop:"rate",width:"156","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1},512)])}}});const Ae=P(q,[["__scopeId","data-v-2ded40e0"]]);export{Ae as default};
|