MobileIndex-f422cf59.js 6.9 KB

1
  1. import{d as C,r as e,J as R,l as U,m as S,x as c,a as t,o as z,v as M,w as P,g as l,f as a,O as j,a4 as m,h as q,ar as p,as as u,I as A,p as J,k as O,_ as W,__tla as G}from"./index-e3afde76.js";import{_ as H,__tla as K}from"./ContentWrap-5f2f4872.js";import{T as L,a as Q,__tla as V}from"./index-53c764a0.js";import{g as X,__tla as Y}from"./spu-9313bd7b.js";import Z,{__tla as $}from"./InfoForm-e572ceff.js";import tt,{__tla as rt}from"./DescriptionForm-813b36a3.js";import at,{__tla as et}from"./OtherForm-5dc52988.js";import ot,{__tla as lt}from"./SkuForm-e4ed3301.js";import _t,{__tla as it}from"./DeliveryForm-d2fe0b3b.js";import st,{__tla as ct}from"./Service-2863750d.js";import mt,{__tla as nt}from"./AfterSale-964805ee.js";import pt,{__tla as ut}from"./Comment-09d092a6.js";import{__tla as dt}from"./el-card-6198c22a.js";import{__tla as ft}from"./UploadImgs-94102248.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-919f7924.js";import{__tla as ht}from"./el-image-viewer-9d1c7d33.js";import{__tla as vt}from"./useMessage-0b1b25bd.js";import"./tree-0af4953a.js";import{__tla as gt}from"./category-e7301561.js";import{__tla as kt}from"./brand-e2c00116.js";import{__tla as Pt}from"./formRules-2fe7b606.js";import{__tla as Ft}from"./Editor-9c92736f.js";import{__tla as Bt}from"./index-7cf37194.js";import{__tla as Dt}from"./SkuList-ea3d1cb7.js";import{__tla as Tt}from"./el-image-65304aa9.js";import{__tla as bt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb39998f.js";import{__tla as wt}from"./index-15373756.js";import{__tla as xt}from"./UploadImg-78fd4518.js";import{__tla as Et}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-97b1f5ff.js";import{__tla as It}from"./ProductAttributes-25e92ea3.js";import{__tla as Nt}from"./el-text-a1884411.js";import{__tla as Ct}from"./property-d4cacf80.js";import{__tla as Rt}from"./ProductPropertyAddForm-380dc28a.js";import{__tla as Ut}from"./Dialog-c20523c4.js";import{__tla as St}from"./index-3f6e0b28.js";import{__tla as zt}from"./dict-a141296d.js";import"./constants-40f13f5e.js";import{__tla as Mt}from"./index-e23f4f5a.js";let F,jt=Promise.all([(()=>{try{return G}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ct}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 vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Mt}catch{}})()]).then(async()=>{let h,v,g;h={class:"top",style:{position:"relative",overflow:"hidden"}},v={class:"bottom"},g=(d=>(J("data-v-d9db1195"),d=d(),O(),d))(()=>l("div",{style:{clear:"both"}},null,-1)),F=W(C({name:"ProductSpuForm",__name:"MobileIndex",setup(d){q();const f=e(!1),o=e("info"),i=e(!0),B=e(),D=e(),T=e(),b=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 x=R(),k=e(x.params.id);return console.log(k.value),U(()=>{(async()=>{var n;const y=k.value;if(y){f.value=!0;try{const _=await X(y);(n=_.skus)==null||n.forEach(r=>{i.value?(r.price=p(r.price),r.marketPrice=p(r.marketPrice),r.costPrice=p(r.costPrice),r.firstBrokeragePrice=p(r.firstBrokeragePrice),r.secondBrokeragePrice=p(r.secondBrokeragePrice)):(r.price=u(r.price),r.marketPrice=u(r.marketPrice),r.costPrice=u(r.costPrice),r.firstBrokeragePrice=u(r.firstBrokeragePrice),r.secondBrokeragePrice=u(r.secondBrokeragePrice))}),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"}),S(()=>{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,n)=>{const _=L,r=Q,E=H,I=A;return c((z(),M(E,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:P(()=>[l("div",h,[a(r,{active:t(o),"onUpdate:active":n[0]||(n[0]=N=>j(o)?o.value=N:null)},{default:P(()=>[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"])]),l("div",v,[c(l("div",null,[a(Z,{ref_key:"infoRef",ref:B,"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="info"]]),c(l("div",null,[a(ot,{ref_key:"skuRef",ref:D,"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="sku"]]),c(l("div",null,[a(_t,{ref_key:"deliveryRef",ref:T,"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="delivery"]]),c(l("div",null,[a(tt,{ref_key:"descriptionRef",ref:b,"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="description"]]),c(l("div",null,[a(at,{ref_key:"otherRef",ref:w,"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="other"]]),c(l("div",null,[a(pt,{"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="comment"]]),c(l("div",null,[a(st,{"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="service"]]),c(l("div",null,[a(mt,{"is-detail":t(i),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="aftersale"]])]),g]),_:1})),[[I,t(f)]])}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{jt as __tla,F as default};