2 lines
6.8 KiB
JavaScript
2 lines
6.8 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./HourlyPricingPane-WkG9QINp.js","./workspace-DxKKyh8w.js","./rolldown-runtime-fVNAxIxX.js","./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-CFxQnYK4.js","./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-BnO-wAhh.js","./vendor-ag-grid~index~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeL~h29xz5eu-CW8VCi7z.js","./vendor-vue-CSlAvuUs.js","./sql-C69Jo4HU.js","./decimal-D3bp1pbs.js","./numberFormat-jhZZmX17.js","./HourlyFeeGrid-DixkKG6W.js","./_plugin-vue_export-helper-DUFB50Ey.js","./index-CAPJG_im.js","./vendor-ui-B4V4Cf1T.js","./vendor-ag-grid~index-Ch1jbN8D.js","./utils-DFe0HVk9.js","../css/index-CI_Unp5q.css","./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-DXO754eW.js","./agGridReadonlyAutoHeight-BpRhYCq1.js","../css/HourlyFeeGrid-B40FytkG.css","./pricingPersistControl-DVG_7RF1.js","./InvestmentScalePricingPane-CSaa1AOt.js","./pricingScaleCalc-CxdG8IMv.js","./pricingScaleDetail-CuzzWQVd.js","./pricingScaleGrid-BCsr0Q1x.js","./pricingScaleLink-BNsm4Fxd.js","./pricingScaleProject-DnXeytCB.js","./pricingScalePaneLifecycle-CUGyrg3j.js","./xmFactorDefaults-yPGPQ25R.js","./LandScalePricingPane-DgT-hiGV.js","./OtherService-I-FCHt--.js","../css/OtherService-poy4GwCf.css","./ScaleFormulaReadonlyPane-LcS4i8Fj.js","./ScaleFormulaReadonlyPane-AeIzjaXU.js","./WorkloadPricingPane-DgYywEPP.js","./MethodUnavailableNotice-Cx7GLj7Z.js","./WorkContentGrid-nNmx9oMr.js","../css/WorkContentGrid-B4nOYGuK.css"])))=>i.map(i=>d[i]);
|
|
import{Bt as e,H as t,Rn as n,W as r,er as i,et as a,ft as o,tt as s}from"./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-CFxQnYK4.js";import"./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-BnO-wAhh.js";import"./vendor-vue-CSlAvuUs.js";import{D as c}from"./workspace-DxKKyh8w.js";import"./decimal-D3bp1pbs.js";import"./vendor-ui-B4V4Cf1T.js";import"./numberFormat-jhZZmX17.js";import"./sql-C69Jo4HU.js";import{t as l}from"./index-CAPJG_im.js";import"./agGridReadonlyAutoHeight-BpRhYCq1.js";import"./pricingScaleLink-BNsm4Fxd.js";import{t as u}from"./_rolldown_dynamic_import_helper-CwdEGLFc.js";import{t as d}from"./typeLine-BCKblICF.js";import"./pricingScaleGrid-BCsr0Q1x.js";import{t as f}from"./ScaleFormulaReadonlyPane-AeIzjaXU.js";import{t as p}from"./MethodUnavailableNotice-Cx7GLj7Z.js";var m=s({__name:`ZxFwView`,props:{contractId:{},contractName:{},serviceId:{},fwName:{},type:{},projectInfoKey:{}},setup(m){let h=m;console.log(h.contractId);let{t:g}=c(),_=(e,t=!0)=>typeof e==`boolean`?e:t,v=t(()=>{let e=_(h.type?.scale,!0),t=_(h.type?.onlyCostScale,!1),n=_(h.type?.amount,!0),r=_(h.type?.workDay,!0);return{investmentScale:e,landScale:e&&!t,workload:n,hourly:r}}),y=e=>n(s({name:e,setup(){let t=a({loader:()=>u(Object.assign({"../../pricing/components/HourlyPricingPane.vue":()=>l(()=>import(`./HourlyPricingPane-WkG9QINp.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),"../../pricing/components/InvestmentScalePricingPane.vue":()=>l(()=>import(`./InvestmentScalePricingPane-CSaa1AOt.js`),__vite__mapDeps([21,12,11,2,13,3,4,5,1,6,7,8,9,14,15,16,17,18,20,22,23,24,25,26,27,28]),import.meta.url),"../../pricing/components/LandScalePricingPane.vue":()=>l(()=>import(`./LandScalePricingPane-DgT-hiGV.js`),__vite__mapDeps([29,12,11,2,13,3,4,5,1,6,7,8,9,14,15,16,17,18,22,23,24,25,26,27,28]),import.meta.url),"../../pricing/components/OtherService.vue":()=>l(()=>import(`./OtherService-I-FCHt--.js`),__vite__mapDeps([30,11,12,2,13,3,4,5,1,6,7,8,9,14,15,16,17,18,20,31]),import.meta.url),"../../pricing/components/ScaleFormulaReadonlyPane.vue":()=>l(()=>import(`./ScaleFormulaReadonlyPane-LcS4i8Fj.js`),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,33,12,11,13,14,15,16,17,18,24,25]),import.meta.url),"../../pricing/components/WorkloadPricingPane.vue":()=>l(()=>import(`./WorkloadPricingPane-DgYywEPP.js`),__vite__mapDeps([34,12,11,2,13,3,4,5,1,6,7,8,9,14,15,16,17,35,18,20,22,27,28]),import.meta.url)}),`../../pricing/components/${e}.vue`,5),onError:e=>{console.error(`load PricingMethodView failed:`,e)}});return()=>o(t,{contractId:h.contractId,contractName:h.contractName,serviceId:h.serviceId,projectInfoKey:h.projectInfoKey})}})),b=(e,t)=>n(s({name:`MethodUnavailablePane`,setup(){return()=>o(p,{title:e,message:t})}})),x=y(`InvestmentScalePricingPane`),S=y(`LandScalePricingPane`),C=y(`WorkloadPricingPane`),w=y(`HourlyPricingPane`),T=y(`OtherService`),E=(e,t)=>n(s({name:t,setup(){return()=>o(f,{contractId:h.contractId,serviceId:h.serviceId,method:e})}}));E(`investScale`,`InvestmentScaleFormulaPane`),E(`landScale`,`LandScaleFormulaPane`);let D=n(s({name:`WorkContentPane`,setup(){let e=a({loader:()=>l(()=>import(`./WorkContentGrid-nNmx9oMr.js`),__vite__mapDeps([36,11,12,2,13,3,4,5,1,6,7,8,9,14,15,16,17,18,37]),import.meta.url),onError:e=>{console.error(`load WorkContentGrid failed:`,e)}});return()=>o(e,{title:g(`zxFwView.workContentTitle`),storageKey:`work-content-${h.contractId}-${h.serviceId}`,contractId:h.contractId,projectInfoKey:h.projectInfoKey,serviceId:h.serviceId,dictMode:`service`,"show-no-column":!0})}})),O=b(g(`zxFwView.unavailable.investmentScaleTitle`),g(`zxFwView.unavailable.investmentScaleMessage`)),k=b(g(`zxFwView.unavailable.landScaleTitle`),g(`zxFwView.unavailable.landScaleMessage`)),A=b(g(`zxFwView.unavailable.workloadTitle`),g(`zxFwView.unavailable.workloadMessage`)),j=b(g(`zxFwView.unavailable.hourlyTitle`),g(`zxFwView.unavailable.hourlyMessage`)),M=t(()=>[{key:`investment-scale-method`,label:g(`zxFwView.categories.investmentScale`),component:v.value.investmentScale?x:O},{key:`land-scale-method`,label:g(`zxFwView.categories.landScale`),component:v.value.landScale?S:k},{key:`workload-method`,label:g(`zxFwView.categories.workload`),component:v.value.workload?C:A},{key:`hourly-method`,label:g(`zxFwView.categories.hourly`),component:v.value.hourly?w:j},{key:`work-content`,label:g(`zxFwView.categories.workContent`),component:D},{key:`other-service`,label:g(`zxFwView.categories.otherservice`),component:T}]),N=t(()=>{let e=v.value;return e.investmentScale?`investment-scale-method`:e.landScale?`land-scale-method`:e.workload?`workload-method`:e.hourly?`hourly-method`:`work-content`});return(t,n)=>(e(),r(d,{scene:`zxfw-pricing-tab`,title:`${m.contractName?`${i(g)(`zxFwView.contractPrefix`,{name:m.contractName})} · `:``}${m.fwName}${i(g)(`zxFwView.calcSuffix`)}`,subtitle:i(g)(`zxFwView.contractId`,{id:m.contractId}),"copy-text":m.contractId,"storage-key":`zxfw-pricing-active-cat-${m.contractId}-${m.serviceId}`,"default-category":N.value,categories:M.value},null,8,[`title`,`subtitle`,`copy-text`,`storage-key`,`default-category`,`categories`]))}});export{m as default}; |