1import{f as Ve,ao as Ne,ap as Ee,ae as ke,aH as Re,aq as Be,aG as Fe,c8 as Oe,E as l,by as K,F as Ae,d8 as ae,I as ze,d9 as Ge,o as f,c as j,ah as oe,b as t,d as c,w as r,X as s,m as o,bc as H,ai as Le,n as B,Q as Ue,v as g,bz as P,t as q,at as Ke,P as je,aM as He,K as F,ay as qe,aD as Qe,aS as We,bD as $e,bw as V,da as le,db as ne,aQ as Xe,aV as Ye,aW as Ze,aU as Je,L as et,p as tt,e as at,a as ot}from"./index-50d9289b.js";import{v as lt}from"./loading-8d4f36f4.js";import{E as nt}from"./drawer-e16ffdad.js";import"./overlay-6057a84f.js";import it from"./e-index-tab-detail-8e3a1b1a.js";import ct from"./e-building-80623d86.js";import rt from"./e-contract-detail-include-table-7926b646.js";import{E as st}from"./input-number-3a408d73.js";/* empty css *//* empty css */import{b as ut,a as pt,E as dt}from"./radio-group-3ec042d5.js";/* empty css */import{u as mt}from"./index-b5289b53.js";import{u as vt}from"./favorite-85ad833e.js";import"./index-a3fb10ba.js";import"./reactivity.esm-bundler-110b9fd9.js";import"./scroll-0d08af5d.js";import"./event-9519ab40.js";import"./tab-pane-f0bc34ea.js";import"./strings-9c3ed76f.js";import"./e-index-world-market-71177388.js";import"./e-index-market-price-6c45ac7b.js";import"./empty-78172836.js";import"./virtual-list-2d630dcc.js";import"./table-v2-ff304f0a.js";import"./constants-da684881.js";import"./e-index-market-price-row-17da86dd.js";import"./e-station-name-4445409f.js";import"./result-d7e588f6.js";import"./e-index-contracts-history-04b5eeb5.js";import"./pagination-ddb022be.js";import"./select-64867153.js";import"./index-9d0190ce.js";import"./index-0575e30a.js";import"./validator-6ce9f772.js";import"./e-select-contract-type-e5d9f2be.js";import"./contract-fc35952c.js";import"./e-contract-history-list-ff155ef4.js";import"./e-contract-history-row-8512ec60.js";import"./e-character-name.vue_vue_type_script_setup_true_lang-27c53264.js";import"./e-contract-history-type-c8a30b33.js";import"./dayjs.min-23f66eac.js";import"./e-need-permission-7302fee6.js";import"./e-index-contracts-e1f582d9.js";import"./e-contract-list-db9f5063.js";import"./e-contract-row-65948ed1.js";import"./e-contract-type-200cd47a.js";import"./e-index-market-chart-history-d262e4f0.js";import"./e-echart.vue_vue_type_script_setup_true_lang-dc63f250.js";import"./e-index-market-history-3526d66f.js";import"./image-viewer-4e7e9372.js";import"./usePro-ced85efa.js";import"./e-type-name-48e3cb5f.js";import"./EContractPrice-b63492d5.js";import"./ECostCalcPrice-5ce37e08.js";import"./index-37c123af.js";const S=i=>(tt("data-v-0ab4ca8c"),i=i(),at(),i),_t={class:"e-contract-valuation"},ft={class:"e-contract-valuation-wrapper"},yt={class:"e-contract-valuation-left"},bt={class:"price-body"},ht={class:"price-body-header"},Tt=S(()=>t("div",{class:"price-body-header-left"},"ååä¼°ä»·ï¼",-1)),gt={class:"price-body-header-right"},Pt={class:"price-body-material-list"},St={class:"e-contract-valuation-right"},Dt={class:"e-contract-valuation-data-table"},wt={class:"e-contract-valuation-table-footer-left"},It={class:"e-contract-valuation-table-footer-wrapper"},Ct={class:"e-contract-valuation-table-footer-row"},xt={class:"price-sell"},Mt={class:"price-sell"},Vt=S(()=>t("span",null,"ååä»·ï¼",-1)),Nt={class:"price-sell"},Et=S(()=>t("span",null,"ä¹°åä»·",-1)),kt={class:"e-contract-valuation-table-footer-row"},Rt={class:"price-buy"},Bt={class:"price-buy"},Ft=S(()=>t("span",null,"ååä»·ï¼",-1)),Ot={class:"price-buy"},At=S(()=>t("span",null,"ä¹°åä»·",-1)),zt={class:"e-contract-valuation-table-footer-right"},Gt=S(()=>t("div",null,[t("span",null,"æ")],-1)),Lt={class:"drawer-wrapper"},Ut={class:"drawer-wrapper-main"},Kt={class:"drawer-wrapper-content"},jt=Ve({__name:"e-contract-valuation",props:{valuationData:{type:Object,default:null},contractData:{type:Object,default:null},autoPlusOne:{type:Number,default:1},initTimerName:{type:String,default:"e-contract-valuation-init-timer"},includeTableInitTimerName:{type:String,default:"e-contract-valuation-table-init"},action:{type:Number,default:0},calcIdData:{type:Object,default:null}},emits:["calcStart","calcDone"],setup(i,{emit:Q}){const D=i,w=Ne(),I=Ee();ke(()=>D.valuationData,()=>{ee()});const O=mt(),v=Re(),ie=Be();Fe();const ce=Oe(),re=vt(),N=l(!0),A=l(!0),W=l([]),z=l(200);let y=null,$=null,G=null,L=null,U=[],X=[];const C=l(null),se=l(null),_=K("contract_contractPriceType",0),b=K("contract_priceSourceType",3),ue=l(0),Y=l(0),u=l(null),pe=l(null),E=l(!1);l(!1);const k=l([]),x=l(null),M=l(!1),d=l(0),n=l(null),R=K("contract_discount",10);function de(){}function me(e){x.value={keyID:e,text:y[He(e)]},M.value=!0,O.groupChildItem(e)}async function ve(){M.value=!1}function _e(e){let a=e.type_id;F("openInfo",a,y[a]),qe(a,y[a])}function fe(e){re.addFavorite(Qe(e))}function ye(e){e&&e.length&&e.map(a=>{a.sellTotalPrice||k.value.push(a)})}function be(e){d.value=0,e.zeroList=[],Q("calcStart",e),E.value=!1}function he(e){F("onIncludeCalcDone",Date.now());let{amountData:a,listData:m}=e;E.value=!0,Y.value++,a?u.value=a:u.value=null,ye(m),e.zeroList=We(k.value),e.contractPriceType=_.value,e.priceSourceType=b.value,Q("calcDone",e),Z()}async function Te(){await $e(50,"contract-valueation-onDiscountChange"),Z()}async function Z(){if(!u.value){d.value=0,n.value=null;return}let e=await O.getPlexPrice();if(!(e&&e.buyPrice&&e.sellPrice)){d.value=0,n.value=null;return}if(!(u.value.sellTotalPrice||u.value.buyTotalPrice)){d.value=0,n.value=null;return}
1let a=V(R.value*100,0),m=u.value.sellTotalPrice*a/1e3,h=u.value.buyTotalPrice*a/1e3;F("discountInt",a);let T={sellPrice:m,sellPriceToSellPrice:V(m/e.sellPrice.price,2),sellPriceToBuyPrice:V(m/e.buyPrice.price,2),buyPrice:h,buyPriceToSellPrice:V(h/e.sellPrice.price,2),buyPriceToBuyPrice:V(h/e.buyPrice.price,2)};n.value=T,d.value=40,F("plexPrice",e,u.value)}function ge(e){le(),N.value&&(J(),ne("contractPriceType",e,w,I))}function Pe(e){le(),N.value&&(J(),ne("contractPriceSourceType",e,w,I))}function J(){Y.value=0,u.value=null,pe.value=null,k.value=[]}function Se(){N.value=!1,A.value=!0,z.value=200,C.value={data:[]},se.value={data:[]},k.value=[]}async function ee(){Se(),y||(y=await v.allTypeIDName()),$||($=await v.getStationMap()),G||(G=await v.globalGroupIdMap()),L||(L=await v.getTreeMenuDataMap()),U.length||(U=(await v.columnsContractInclude()).data),X.length||(X=(await v.columnsContractExchange()).data);const e=await Xe();let a=await Ye(Ze,e);await Je.sessionGet(a),et(200,D.initTimerName,async()=>{D.valuationData?(te(D.valuationData.list),W.value=D.valuationData.list,z.value=200):(te([]),W.value=[],z.value=200),A.value=!1,N.value=!0})}function te(e){e.length?C.value={data:e}:C.value=null}return Ae(async()=>{ae("contractPriceType",w,I).then(e=>{e&&(_.value=parseInt(e)||0)}),ae("contractPriceSourceType",w,I).then(e=>{e&&(b.value=parseInt(e)||0)}),ee()}),ze(async()=>{Ge("contractPriceType",w,I,["contractPriceSourceType"])}),(e,a)=>{const m=ut,h=pt,T=dt,De=st,we=rt,Ie=ct,Ce=it,xe=nt,Me=lt;return f(),j(je,null,[oe((f(),j("div",_t,[t("div",ft,[t("div",yt,[t("div",bt,[t("div",ht,[Tt,t("div",gt,[c(h,{modelValue:o(_),"onUpdate:modelValue":a[0]||(a[0]=p=>H(_)?_.value=p:null),onChange:ge,disabled:!E.value},{default:r(()=>[c(m,{label:0},{default:r(()=>[s("å¸åºä»·æ ¼ä¼°ä»·")]),_:1}),c(m,{label:1},{default:r(()=>[s("ç产ææä¼°ä»·")]),_:1})]),_:1},8,["modelValue","disabled"])])]),oe(t("div",Pt,[c(h,{modelValue:o(b),"onUpdate:modelValue":a[1]||(a[1]=p=>H(b)?b.value=p:null),class:"price-radios-group flex-center",disabled:!E.value,onChange:Pe},{default:r(()=>[c(T,{label:0},{default:r(()=>[s("å¸åºä»·æ ¼")]),_:1}),c(T,{label:1},{default:r(()=>[s("å¸åº+åå²")]),_:1}),c(T,{label:2},{default:r(()=>[s("å¸åº+ææ")]),_:1}),c(T,{label:3},{default:r(()=>[s("åææ")]),_:1})]),_:1},8,["modelValue","disabled"])],512),[[Le,o(_)==1]])])]),t("div",St,[t("div",Dt,[C.value?(f(),B(we,{key:0,title:"ååè´§æä¼°å¼è¡¨",clacMsg:"æ£å¨è®¡ç®ç©åä»·å¼ï¼",showHeader:!0,headerClass:"price-sell font-bold",columns:o(U),list:C.value.data,allTypeIDNameMap:o(y),globalGroupIdMap:o(G),getTreeMenuDataMap:o(L),columnClass:{type_id:"price-sell",quantity:"price-sell"},emptyTitle:"没ææä¾ç©å交æ¢",initTimerName:i.includeTableInitTimerName,apiStore:o(O),esiStore:o(ie),staticDataStore:o(v),serverStore:o(ce),priceSourceType:o(b),blueprintEfficiency:ue.value,contractPriceType:o(_),action:i.action+1,calcIdData:i.calcIdData,"footer-height":d.value,autoPlusOne:i.autoPlusOne,onCalcStart:be,onCalcDone:he,onOpenInfo:_e,onAddFavorite:fe,onShowMarketItem:me},{footer:r(()=>[d.value&&n.value?(f(),j("div",{key:0,class:"e-contract-valuation-table-footer",style:Ue({height:`${d.value}px`})},[t("div",wt,[t("div",It,[t("div",Ct,[t("span",null,[s("å忻价ï¼"),t("span",xt,g(o(P)(n.value.sellPrice,0))+" isk",1),s(" 约å")]),t("span",Mt,g(o(P)(n.value.sellPriceToSellPrice,0))+"ä¼ç¸å¸",1),Vt,t("span",Nt,g(o(P)(n.value.sellPriceToBuyPrice,0))+"ä¼ç¸å¸",1),Et]),t("div",kt,[t("span",null,[s("买忻价ï¼"),t("span",Rt,g(o(P)(n.value.buyPrice,0))+" isk",1),s(" 约å")]),t("span",Bt,g(o(P)(n.value.buyPriceToSellPrice,0))+"ä¼ç¸å¸",1),Ft,t("span",Ot,g(o(P)(n.value.buyPriceToBuyPrice,0))+"ä¼ç¸å¸",1),At])])]),t("div",zt,[c(De,{modelValue:o(R),"onUpdate:modelValue":a[2]||(a[2]=p=>H(R)?R.value=p:null),min:0,max:10,precision:2,step:.5,size:"small",style:{width:"80px"},onChange:Te},null,8,["modelValue"]),Gt])],4)):q("",!0)]),_:1},8,["columns","list","allTypeIDNameMap","globalGroupIdMap","getTreeMenuDataMap","initTimerName","apiStore","esiStore","staticDataStore","serverStore","priceSourceType","blueprintEfficiency","contractPriceType","action","calcIdData","footer-height","autoPlusOne"])):(f(),B(Ie,{key:1,title:"ææ æ°æ®"}))])])])])),[[Me,A.value]]),t("div",Lt,[x.value?(f(),B(xe,{key:0,modelValue:M.value,"onUpdate:modelValue":a[4]||(a[4]=p=>M.value=p),"with-header":!1,size:1100,"show-close":!0,direction:"rtl",ref:"drawer",onClose:de},{default:r(()=>
1[t("div",{class:"drawer-wrapper-close",onClick:ve},[c(o(Ke),{icon:"ep:close-bold"})]),t("div",Ut,[t("div",Kt,[x.value&&M.value?(f(),B(Ce,{key:0,modelValue:x.value,"onUpdate:modelValue":a[3]||(a[3]=p=>x.value=p),action:i.action,showCastcalcIcon:!1,"show-detail-nav":!1,showContractTab:!1},null,8,["modelValue","action"])):q("",!0)])])]),_:1},8,["modelValue"])):q("",!0)])],64)}}});const Qa=ot(jt,[["__scopeId","data-v-0ab4ca8c"]]);export{Qa as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.