import{d as N,r as e,K as C,l as R,m as U,y as l,a as r,o as z,x as A,w as k,h as i,g as a,P as M,a5 as m,i as j,as as n,at as p,J,p as K,k as q,_ as L,__tla as O}from"./index-b362e1d5.js";import{_ as W,__tla as G}from"./ContentWrap-a3bb871b.js";import{T as H,a as Q,__tla as V}from"./index-6edd13da.js";import{g as X,__tla as Y}from"./spu-8db32dd2.js";import Z,{__tla as $}from"./InfoForm-6a492fa8.js";import tt,{__tla as rt}from"./DescriptionForm-dda44a96.js";import at,{__tla as et}from"./OtherForm-c951703f.js";import ot,{__tla as it}from"./SkuForm-444781cf.js";import _t,{__tla as lt}from"./DeliveryForm-96af1d1f.js";import ct,{__tla as st}from"./Service-b1b77285.js";import{A as mt,__tla as nt}from"./AfterSale-592d9425.js";import pt,{__tla as ut}from"./Comment-86b31dc2.js";import{__tla as dt}from"./el-card-732e29b8.js";import{__tla as ft}from"./UploadImgs-38746988.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-e4965946.js";import{__tla as ht}from"./el-image-viewer-68ae3e49.js";import{__tla as Pt}from"./useMessage-7c1dd10e.js";import"./tree-0af4953a.js";import{__tla as vt}from"./category-d9e07750.js";import{__tla as gt}from"./brand-bdcce6f8.js";import{__tla as kt}from"./formRules-c26349aa.js";import{__tla as Bt}from"./Editor-e146bd91.js";import{__tla as Ft}from"./index-9be4403d.js";import{__tla as Dt}from"./SkuList-bd9b424b.js";import{__tla as bt}from"./el-image-6c94a1ed.js";import{__tla as Tt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b4af8eb1.js";import{__tla as wt}from"./index-6b00d885.js";import{__tla as It}from"./UploadImg-badad53e.js";import{__tla as St}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-830ad10b.js";import{__tla as xt}from"./ProductAttributes-b3d95847.js";import{__tla as Et}from"./el-text-50b1587f.js";import{__tla as Nt}from"./property-771c5075.js";import{__tla as Ct}from"./ProductPropertyAddForm-e02370d6.js";import{__tla as Rt}from"./Dialog-71bebaff.js";import{__tla as Ut}from"./index-6bcfd169.js";import{__tla as zt}from"./dict-9948b178.js";import"./constants-637baed6.js";import{__tla as At}from"./index-4596f7c2.js";import{__tla as Mt}from"./index-ccc64a6d.js";import{__tla as jt}from"./index-39b44010.js";import{__tla as Jt}from"./index-73fd237a.js";let B,Kt=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Jt}catch{}})()]).then(async()=>{let h,P,v;h={class:"top",style:{position:"relative",overflow:"hidden"}},P={class:"bottom"},v=(d=>(K("data-v-d9db1195"),d=d(),q(),d))(()=>i("div",{style:{clear:"both"}},null,-1)),B=L(N({name:"ProductSpuForm",__name:"MobileIndex",setup(d){j();const f=e(!1),o=e("info"),c=e(!0),F=e(),D=e(),b=e(),T=e(),w=e(),s=e({name:"",categoryId:void 0,keyword:"",picUrl:"",producerArea:"",spuType:void 0,sliderPicUrls:[],introduction:"",deliveryTypes:[],deliveryTemplateId:void 0,brandId:void 0,specType:!1,subCommissionType:!1,skus:[{price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,promotionFee:0,mark:"",firstBrokeragePrice:0,secondBrokeragePrice:0}],description:"",sort:0,giveIntegral:0,virtualSalesCount:0});e(0),e(""),e(),e(0);const I=C(),g=e(Number(I.params.id));return R(()=>{(async()=>{var u;const y=g.value;if(y){f.value=!0;try{const _=await X(y);(u=_.skus)==null||u.forEach(t=>{c.value?(t.price=n(t.price),t.marketPrice=n(t.marketPrice),t.costPrice=n(t.costPrice),t.firstBrokeragePrice=n(t.firstBrokeragePrice),t.secondBrokeragePrice=n(t.secondBrokeragePrice),t.highPrecisionPrice=t.highPrecisionPrice/100,t.settlementPrice=n(t.settlementPrice),t.highPrecisionSettlementPrice=t.highPrecisionSettlementPrice/100):(t.price=p(t.price),t.marketPrice=p(t.marketPrice),t.costPrice=p(t.costPrice),t.firstBrokeragePrice=p(t.firstBrokeragePrice),t.secondBrokeragePrice=p(t.secondBrokeragePrice),t.settlementPrice=p(t.settlementPrice),t.highPrecisionSettlementPrice=t.highPrecisionSettlementPrice/100,t.highPrecisionPrice=t.highPrecisionPrice/100)}),s.value=_}finally{f.value=!1}}})(),document.getElementsByTagName("section")[1].style.padding="0px",document.getElementsByTagName("section")[1].style.width="100%",document.getElementsByTagName("section")[1].querySelector("div").style.border="none",document.getElementsByTagName("section")[1].style.background="#f5f7f9"}),U(()=>{document.getElementsByTagName("section")[1].style.width="auto",document.getElementsByTagName("section")[1].style.padding="20px",document.getElementsByTagName("section")[1].style.background="var(--el-color-white)"}),(y,u)=>{const _=H,t=Q,S=W,x=J;return l((z(),A(S,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:k(()=>[i("div",h,[a(t,{active:r(o),"onUpdate:active":u[0]||(u[0]=E=>M(o)?o.value=E:null)},{default:k(()=>[a(_,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(_,{title:"\u4EF7\u683C/\u89C4\u683C/\u578B\u53F7",name:"sku"}),a(_,{title:"\u8BE6\u60C5",name:"description"}),a(_,{title:"\u8BC4\u4EF7",name:"comment"}),a(_,{title:"\u5BA2\u670D",name:"service"}),a(_,{title:"\u552E\u540E",name:"aftersale"}),a(_,{title:"\u7269\u6D41\u8BBE\u7F6E",name:"delivery"})]),_:1},8,["active"])]),i("div",P,[l(i("div",null,[a(Z,{ref_key:"infoRef",ref:F,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="info"]]),l(i("div",null,[a(ot,{ref_key:"skuRef",ref:D,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="sku"]]),l(i("div",null,[a(_t,{ref_key:"deliveryRef",ref:b,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="delivery"]]),l(i("div",null,[a(tt,{ref_key:"descriptionRef",ref:T,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="description"]]),l(i("div",null,[a(at,{ref_key:"otherRef",ref:w,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="other"]]),l(i("div",null,[a(pt,{"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="comment"]]),l(i("div",null,[a(ct,{"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="service"]]),l(i("div",null,[a(mt,{productId:r(g),openSource:"Spu"},null,8,["productId"])],512),[[m,r(o)=="aftersale"]])]),v]),_:1})),[[x,r(f)]])}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{Kt as __tla,B as default};