MobileIndex-03a4cb42.js 7.0 KB

1
  1. import{d as R,r as e,J as C,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 A,ar as p,as as u,I as J,p as O,k as W,_ as q,__tla as L}from"./index-8e30b17f.js";import{_ as G,__tla as H}from"./ContentWrap-0730b42c.js";import{T as K,a as Q,__tla as V}from"./index-b8515efe.js";import{g as X,__tla as Y}from"./spu-9278ab05.js";import Z,{__tla as $}from"./InfoForm-0dcbf36b.js";import tt,{__tla as rt}from"./DescriptionForm-377ee677.js";import at,{__tla as et}from"./OtherForm-5864e4ef.js";import ot,{__tla as lt}from"./SkuForm-794a79f6.js";import _t,{__tla as it}from"./DeliveryForm-329512d9.js";import st,{__tla as ct}from"./Service-5fc7efea.js";import mt,{__tla as nt}from"./AfterSale-eba2b4b8.js";import pt,{__tla as ut}from"./Comment-f14d29c2.js";import{__tla as dt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-14d08aa7.js";import{__tla as ft}from"./el-card-70b4f66a.js";import{__tla as yt}from"./UploadImgs-36eb6b9b.js";import{__tla as ht}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-18e90e1c.js";import{__tla as vt}from"./el-image-viewer-fb97741c.js";import{__tla as gt}from"./useMessage-ee50bd51.js";import"./tree-0af4953a.js";import{__tla as kt}from"./category-d033fe8c.js";import{__tla as Pt}from"./brand-6fcb1407.js";import{__tla as Ft}from"./formRules-57d6ba35.js";import{__tla as Bt}from"./Editor-ea1788e9.js";import{__tla as Dt}from"./index-38f6741e.js";import{__tla as Tt}from"./SkuList-2a85f0a3.js";import{__tla as bt}from"./el-image-830684bc.js";import{__tla as wt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f9173f05.js";import{__tla as xt}from"./index-7d9ab767.js";import{__tla as Et}from"./UploadImg-1c51a097.js";import{__tla as It}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-f1b36410.js";import{__tla as Nt}from"./ProductAttributes-fe490a68.js";import{__tla as Rt}from"./el-text-bd86be3e.js";import{__tla as Ct}from"./property-02e5a6de.js";import{__tla as Ut}from"./ProductPropertyAddForm-3543f600.js";import{__tla as St}from"./Dialog-9917188a.js";import{__tla as zt}from"./index-15221d0d.js";import{__tla as Mt}from"./dict-500f7ec9.js";import"./constants-40f13f5e.js";import{__tla as jt}from"./index-0befdeaa.js";let F,At=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 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 Rt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return zt}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))(()=>l("div",{style:{clear:"both"}},null,-1)),F=q(R({name:"ProductSpuForm",__name:"MobileIndex",setup(d){A();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=C(),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 _=K,r=Q,E=G,I=J;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{At as __tla,F as default};