1 |
- import{d as S,r as e,I as x,k as C,l as U,v as i,a as t,o as q,q as A,w as P,g as _,f as a,N as j,a3 as m,h as H,aq as p,ar as u,H as M,p as W,j as z,__tla as O}from"./index-73e02845.js";import{_ as G,__tla as J}from"./ContentWrap.vue_vue_type_script_setup_true_lang-589371a6.js";import{T as K,a as L,__tla as Q}from"./index-9abc45d0.js";import{g as V,__tla as X}from"./spu-a6b1f90b.js";import Y,{__tla as Z}from"./InfoForm-7372da12.js";import $,{__tla as tt}from"./DescriptionForm-433288d4.js";import rt,{__tla as at}from"./OtherForm-d11aef3d.js";import et,{__tla as ot}from"./SkuForm-842a3b76.js";import _t,{__tla as lt}from"./DeliveryForm-e8306404.js";import it,{__tla as ct}from"./Service-ab175072.js";import{A as st,__tla as mt}from"./AfterSale-f843bc25.js";import nt,{__tla as pt}from"./Comment-a5a8532c.js";import{_ as ut}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as dt}from"./el-card-ada74e7d.js";import{__tla as ft}from"./UploadImgs-9684a6c6.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_0ff04634_lang-12da345f.js";import{__tla as ht}from"./el-image-viewer-a6b3dac3.js";import{__tla as vt}from"./useMessage-1490ad82.js";import"./tree-fd3a041e.js";import{__tla as gt}from"./category-ee994b51.js";import{__tla as kt}from"./brand-1eee4d67.js";import{__tla as Pt}from"./formRules-839fbb1b.js";import{__tla as Bt}from"./style.css_vue_type_style_index_0_src_true_lang-6489f3d1.js";import{__tla as Ft}from"./index-555e7ca9.js";import{__tla as Dt}from"./SkuList.vue_vue_type_script_setup_true_lang-e0ed54c5.js";import{__tla as Tt}from"./el-image-6a280602.js";import{__tla as bt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-f7f68f03.js";import{__tla as Nt}from"./index-c6e30cdd.js";import{__tla as wt}from"./UploadImg-0588e092.js";import{__tla as It}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-653bc615.js";import{__tla as Et}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-ffc13cd9.js";import{__tla as Rt}from"./el-text-42605a6c.js";import{__tla as St}from"./property-2ef26372.js";import{__tla as xt}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-39455eb7.js";import{__tla as Ct}from"./Dialog-1f04d1b7.js";import{__tla as Ut}from"./index-4345eded.js";import{__tla as qt}from"./dict-0fdd6c74.js";import"./constants-a3c69b57.js";import{__tla as At}from"./index-cd8f4967.js";import{__tla as jt}from"./index.vue_vue_type_script_setup_true_lang-2534a34f.js";import{__tla as Ht}from"./index-c1a24aa4.js";import{__tla as Mt}from"./index-3ebb11c3.js";let B,Wt=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return pt}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 Bt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Mt}catch{}})()]).then(async()=>{let h,v,g;h={class:"top",style:{position:"relative",overflow:"hidden"}},v={class:"bottom"},g=(d=>(W("data-v-e85a6f20"),d=d(),z(),d))(()=>_("div",{style:{clear:"both"}},null,-1)),B=ut(S({name:"ProductSpuForm",__name:"MobileIndex",setup(d){H();const f=e(!1),o=e("info"),c=e(!0),F=e(),D=e(),T=e(),b=e(),N=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 w=x(),k=e(Number(w.params.id));return C(()=>{(async()=>{var n;const y=k.value;if(y){f.value=!0;try{const l=await V(y);(n=l.skus)==null||n.forEach(r=>{c.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=l}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,n)=>{const l=K,r=L,I=G,E=M;return i((q(),A(I,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:P(()=>[_("div",h,[a(r,{active:t(o),"onUpdate:active":n[0]||(n[0]=R=>j(o)?o.value=R:null)},{default:P(()=>[a(l,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(l,{title:"\u4EF7\u683C/\u89C4\u683C/\u578B\u53F7",name:"sku"}),a(l,{title:"\u8BE6\u60C5",name:"description"}),a(l,{title:"\u8BC4\u4EF7",name:"comment"}),a(l,{title:"\u5BA2\u670D",name:"service"}),a(l,{title:"\u552E\u540E",name:"aftersale"}),a(l,{title:"\u7269\u6D41\u8BBE\u7F6E",name:"delivery"})]),_:1},8,["active"])]),_("div",v,[i(_("div",null,[a(Y,{ref_key:"infoRef",ref:F,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="info"]]),i(_("div",null,[a(et,{ref_key:"skuRef",ref:D,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="sku"]]),i(_("div",null,[a(_t,{ref_key:"deliveryRef",ref:T,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="delivery"]]),i(_("div",null,[a($,{ref_key:"descriptionRef",ref:b,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="description"]]),i(_("div",null,[a(rt,{ref_key:"otherRef",ref:N,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="other"]]),i(_("div",null,[a(nt,{"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="comment"]]),i(_("div",null,[a(it,{"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="service"]]),i(_("div",null,[a(st,{productId:t(k),openSource:"Spu"},null,8,["productId"])],512),[[m,t(o)=="aftersale"]])]),g]),_:1})),[[E,t(f)]])}}}),[["__scopeId","data-v-e85a6f20"]])});export{Wt as __tla,B as default};
|