1 |
- import{d as C,r as e,J as R,k as S,l as U,x as i,a as t,o as j,v as z,w as P,g as _,f as a,O as A,a4 as m,h as M,ar as p,as as u,I as J,p as O,j as W,_ as q,__tla as L}from"./index-430b3151.js";import{_ as G,__tla as H}from"./ContentWrap-60842994.js";import{T as K,a as Q,__tla as V}from"./index-427c0538.js";import{g as X,__tla as Y}from"./spu-fa11f657.js";import Z,{__tla as $}from"./InfoForm-c97640de.js";import tt,{__tla as rt}from"./DescriptionForm-9c79df62.js";import at,{__tla as et}from"./OtherForm-1bf1bbdb.js";import ot,{__tla as _t}from"./SkuForm-323bf99e.js";import lt,{__tla as it}from"./DeliveryForm-f47c7aeb.js";import ct,{__tla as st}from"./Service-9505b68a.js";import{A as mt,__tla as nt}from"./AfterSale-5ff3e48a.js";import pt,{__tla as ut}from"./Comment-2c41303c.js";import{__tla as dt}from"./el-card-dee5b36b.js";import{__tla as ft}from"./UploadImgs-6e3d2ca2.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-7ba47553.js";import{__tla as ht}from"./el-image-viewer-467ebe35.js";import{__tla as vt}from"./useMessage-d226ba89.js";import"./tree-0af4953a.js";import{__tla as gt}from"./category-61e1eb2c.js";import{__tla as kt}from"./brand-a7961bee.js";import{__tla as Pt}from"./formRules-51914dec.js";import{__tla as Bt}from"./Editor-6ca3ff9c.js";import{__tla as Ft}from"./index-b3ba5914.js";import{__tla as Dt}from"./SkuList-6f86be5a.js";import{__tla as bt}from"./el-image-c98b70f9.js";import{__tla as Tt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f5de6f1b.js";import{__tla as wt}from"./index-255e3b1c.js";import{__tla as It}from"./UploadImg-2f818d4f.js";import{__tla as xt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3bbc6c3b.js";import{__tla as Et}from"./ProductAttributes-065c834d.js";import{__tla as Nt}from"./el-text-8208f30d.js";import{__tla as Ct}from"./property-1f1be759.js";import{__tla as Rt}from"./ProductPropertyAddForm-747a81c0.js";import{__tla as St}from"./Dialog-cd42c639.js";import{__tla as Ut}from"./index-aa6d3c0e.js";import{__tla as jt}from"./dict-603b6a58.js";import"./constants-637baed6.js";import{__tla as zt}from"./index-72a4fbcc.js";import{__tla as At}from"./index-c425c88f.js";import{__tla as Mt}from"./index-555139e7.js";import{__tla as Jt}from"./index-a205ae1b.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 jt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Mt}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){M();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((j(),z(x,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:P(()=>[_("div",h,[a(r,{active:t(o),"onUpdate:active":n[0]||(n[0]=N=>A(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};
|