1 |
- import{d as N,r as e,K as C,l as R,m as U,y as l,a as r,o as z,x as A,w as k,h as i,g as a,P as M,a6 as m,i as j,as as n,at as p,J,p as K,k as q,_ as L,__tla as O}from"./index-3fb48822.js";import{_ as W,__tla as G}from"./ContentWrap-afa47a64.js";import{T as H,a as Q,__tla as V}from"./index-299cada5.js";import{g as X,__tla as Y}from"./spu-94822e38.js";import Z,{__tla as $}from"./InfoForm-0e906fab.js";import tt,{__tla as rt}from"./DescriptionForm-dd4fa4d4.js";import at,{__tla as et}from"./OtherForm-5e8155b6.js";import ot,{__tla as it}from"./SkuForm-b78ee32c.js";import _t,{__tla as lt}from"./DeliveryForm-4cd92951.js";import ct,{__tla as st}from"./Service-a86e165d.js";import{A as mt,__tla as nt}from"./AfterSale-9e9db6c0.js";import pt,{__tla as ut}from"./Comment-875f9994.js";import{__tla as dt}from"./el-card-8960fd94.js";import{__tla as ft}from"./UploadImgs-dcdd8369.js";import{__tla as yt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-cb39c220.js";import{__tla as ht}from"./el-image-viewer-ff953702.js";import{__tla as Pt}from"./useMessage-b6c78c26.js";import"./tree-0af4953a.js";import{__tla as vt}from"./category-aaa44366.js";import{__tla as gt}from"./brand-fd975921.js";import{__tla as kt}from"./formRules-079bdea5.js";import{__tla as Bt}from"./Editor-9a032f03.js";import{__tla as Ft}from"./index-d08e67c8.js";import{__tla as Dt}from"./SkuList-c3b47d99.js";import{__tla as bt}from"./el-image-27385f7d.js";import{__tla as Tt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-7872c8ab.js";import{__tla as wt}from"./index-3dfce5d7.js";import{__tla as It}from"./UploadImg-5bedc878.js";import{__tla as St}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-bf9722a3.js";import{__tla as xt}from"./ProductAttributes-3e71e537.js";import{__tla as Et}from"./el-text-5e72453c.js";import{__tla as Nt}from"./property-8d563b2f.js";import{__tla as Ct}from"./ProductPropertyAddForm-b7ab720c.js";import{__tla as Rt}from"./Dialog-7d4425a0.js";import{__tla as Ut}from"./index-b96a9b0e.js";import{__tla as zt}from"./dict-51415be4.js";import"./constants-637baed6.js";import{__tla as At}from"./index-01bff116.js";import{__tla as Mt}from"./index-5771c6d6.js";import{__tla as jt}from"./index-cf9cdfb4.js";import{__tla as Jt}from"./index-72ebef64.js";let B,Kt=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return lt}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 Pt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}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 St}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Rt}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,P,v;h={class:"top",style:{position:"relative",overflow:"hidden"}},P={class:"bottom"},v=(d=>(K("data-v-d9db1195"),d=d(),q(),d))(()=>i("div",{style:{clear:"both"}},null,-1)),B=L(N({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=C(),g=e(Number(I.params.id));return R(()=>{(async()=>{var u;const y=g.value;if(y){f.value=!0;try{const _=await X(y);(u=_.skus)==null||u.forEach(t=>{c.value?(t.price=n(t.price),t.marketPrice=n(t.marketPrice),t.costPrice=n(t.costPrice),t.firstBrokeragePrice=n(t.firstBrokeragePrice),t.secondBrokeragePrice=n(t.secondBrokeragePrice),t.highPrecisionPrice=t.highPrecisionPrice/100,t.settlementPrice=n(t.settlementPrice),t.highPrecisionSettlementPrice=t.highPrecisionSettlementPrice/100):(t.price=p(t.price),t.marketPrice=p(t.marketPrice),t.costPrice=p(t.costPrice),t.firstBrokeragePrice=p(t.firstBrokeragePrice),t.secondBrokeragePrice=p(t.secondBrokeragePrice),t.settlementPrice=p(t.settlementPrice),t.highPrecisionSettlementPrice=t.highPrecisionSettlementPrice/100,t.highPrecisionPrice=t.highPrecisionPrice/100)}),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"}),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,u)=>{const _=H,t=Q,S=W,x=J;return l((z(),A(S,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:k(()=>[i("div",h,[a(t,{active:r(o),"onUpdate:active":u[0]||(u[0]=E=>M(o)?o.value=E:null)},{default:k(()=>[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"])]),i("div",P,[l(i("div",null,[a(Z,{ref_key:"infoRef",ref:F,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="info"]]),l(i("div",null,[a(ot,{ref_key:"skuRef",ref:D,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="sku"]]),l(i("div",null,[a(_t,{ref_key:"deliveryRef",ref:b,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="delivery"]]),l(i("div",null,[a(tt,{ref_key:"descriptionRef",ref:T,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="description"]]),l(i("div",null,[a(at,{ref_key:"otherRef",ref:w,"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="other"]]),l(i("div",null,[a(pt,{"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="comment"]]),l(i("div",null,[a(ct,{"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="service"]]),l(i("div",null,[a(mt,{productId:r(g),openSource:"Spu"},null,8,["productId"])],512),[[m,r(o)=="aftersale"]])]),v]),_:1})),[[x,r(f)]])}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{Kt as __tla,B as default};
|