1 |
- import{d as C,r as e,J as R,l as S,m as U,x as i,a as t,o as z,v as A,w as P,g as _,f as a,O as M,a4 as m,h as j,ar as p,as as u,I as J,p as O,k as W,_ as q,__tla as L}from"./index-297c97b3.js";import{_ as G,__tla as H}from"./ContentWrap-2a772ce5.js";import{T as K,a as Q,__tla as V}from"./index-63e8bcea.js";import{g as X,__tla as Y}from"./spu-d00e1e27.js";import Z,{__tla as $}from"./InfoForm-0ca63423.js";import tt,{__tla as rt}from"./DescriptionForm-3e305826.js";import at,{__tla as et}from"./OtherForm-e1ca8f74.js";import ot,{__tla as _t}from"./SkuForm-a3f463f9.js";import lt,{__tla as it}from"./DeliveryForm-495b9cce.js";import ct,{__tla as st}from"./Service-a1b78f5f.js";import{A as mt,__tla as nt}from"./AfterSale-32206d11.js";import pt,{__tla as ut}from"./Comment-427fad69.js";import{__tla as dt}from"./el-card-22a26825.js";import{__tla as ft}from"./UploadImgs-2eb5bd0c.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-22dc46a8.js";import{__tla as ht}from"./el-image-viewer-3c943bf5.js";import{__tla as vt}from"./useMessage-8a849e40.js";import"./tree-0af4953a.js";import{__tla as gt}from"./category-d1509c57.js";import{__tla as kt}from"./brand-d865b56f.js";import{__tla as Pt}from"./formRules-b4d34ddc.js";import{__tla as Bt}from"./Editor-5eae0fc5.js";import{__tla as Ft}from"./index-7d8d1352.js";import{__tla as Dt}from"./SkuList-8ab676f5.js";import{__tla as bt}from"./el-image-82bf40c6.js";import{__tla as Tt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ae102e4a.js";import{__tla as wt}from"./index-ef616a81.js";import{__tla as It}from"./UploadImg-76828272.js";import{__tla as xt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-f12c4225.js";import{__tla as Et}from"./ProductAttributes-77824756.js";import{__tla as Nt}from"./el-text-85a32bfc.js";import{__tla as Ct}from"./property-27197f49.js";import{__tla as Rt}from"./ProductPropertyAddForm-1e7ea467.js";import{__tla as St}from"./Dialog-6d866407.js";import{__tla as Ut}from"./index-f4176fa9.js";import{__tla as zt}from"./dict-299f12fd.js";import"./constants-637baed6.js";import{__tla as At}from"./index-40f9ff9c.js";import{__tla as Mt}from"./index-eead3ef4.js";import{__tla as jt}from"./index-97931d72.js";import{__tla as Jt}from"./index-31557480.js";let B,Ot=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}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 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 bt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return St}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,v,g;h={class:"top",style:{position:"relative",overflow:"hidden"}},v={class:"bottom"},g=(d=>(O("data-v-d9db1195"),d=d(),W(),d))(()=>_("div",{style:{clear:"both"}},null,-1)),B=q(C({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=R(),k=e(Number(I.params.id));return S(()=>{(async()=>{var n;const y=k.value;if(y){f.value=!0;try{const l=await X(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=Q,x=G,E=J;return i((z(),A(x,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:P(()=>[_("div",h,[a(r,{active:t(o),"onUpdate:active":n[0]||(n[0]=N=>M(o)?o.value=N: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(Z,{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(ot,{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(lt,{ref_key:"deliveryRef",ref:b,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="delivery"]]),i(_("div",null,[a(tt,{ref_key:"descriptionRef",ref:T,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="description"]]),i(_("div",null,[a(at,{ref_key:"otherRef",ref:w,"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="other"]]),i(_("div",null,[a(pt,{"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="comment"]]),i(_("div",null,[a(ct,{"is-detail":t(c),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[m,t(o)=="service"]]),i(_("div",null,[a(mt,{productId:t(k),openSource:"Spu"},null,8,["productId"])],512),[[m,t(o)=="aftersale"]])]),g]),_:1})),[[E,t(f)]])}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{Ot as __tla,B as default};
|