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 L}from"./index-2eab2d23.js";import{_ as G,__tla as J}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{T as K,a as O,__tla as Q}from"./index-a16914a3.js";import{g as V,__tla as X}from"./spu-73047b60.js";import Y,{__tla as Z}from"./InfoForm-7faea2d0.js";import $,{__tla as tt}from"./DescriptionForm-7e64fe15.js";import rt,{__tla as at}from"./OtherForm-f34a583e.js";import et,{__tla as ot}from"./SkuForm-4d15ae27.js";import _t,{__tla as lt}from"./DeliveryForm-b244d671.js";import it,{__tla as ct}from"./Service-39db17d3.js";import{A as st,__tla as mt}from"./AfterSale-82845424.js";import nt,{__tla as pt}from"./Comment-0718ca3a.js";import{_ as ut}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as dt}from"./el-card-c558f0ec.js";import{__tla as ft}from"./UploadImgs-88de5939.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_0ff04634_lang-20f165d6.js";import{__tla as ht}from"./el-image-viewer-5d14bc77.js";import{__tla as vt}from"./useMessage-171aa63e.js";import"./tree-fd3a041e.js";import{__tla as gt}from"./category-c573377b.js";import{__tla as kt}from"./brand-f2788f28.js";import{__tla as Pt}from"./formRules-228bd511.js";import{__tla as Bt}from"./style.css_vue_type_style_index_0_src_true_lang-2706eaa9.js";import{__tla as Ft}from"./index-6bdb8877.js";import{__tla as Dt}from"./SkuList.vue_vue_type_script_setup_true_lang-d7f9bf43.js";import{__tla as Tt}from"./el-image-2171f3ff.js";import{__tla as bt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as Nt}from"./index-d3f876ab.js";import{__tla as wt}from"./UploadImg-90fe71c2.js";import{__tla as It}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-df9c704a.js";import{__tla as Et}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-ac3c1619.js";import{__tla as Rt}from"./el-text-b1163e3d.js";import{__tla as St}from"./property-64c4a36d.js";import{__tla as xt}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-a3ddb9c8.js";import{__tla as Ct}from"./Dialog-c2716df6.js";import{__tla as Ut}from"./index-8bc1e5b3.js";import{__tla as qt}from"./dict-1ad71b6f.js";import"./constants-40f13f5e.js";import{__tla as At}from"./index-3562b2a3.js";let B,jt=Promise.all([(()=>{try{return L}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{}})()]).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=O,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{jt as __tla,B as default};
|