MobileIndex-71830080.js 7.5 KB

1
  1. import{d as x,r as e,$ as C,b as R,s as A,k as l,a as r,o as U,C as M,A as k,B as i,f as a,a2 as z,v as m,P as j,aB as n,aC as p,Z as L,L as W,M as q,_ as H,__tla as K}from"./index-286756b9.js";import{_ as Z,__tla as $}from"./ContentWrap-83998678.js";import{__tla as G}from"./index-3305e882.js";import{g as J,__tla as O}from"./spu-c6e01563.js";import Q,{__tla as V}from"./InfoForm-359154b5.js";import X,{__tla as Y}from"./DescriptionForm-1238ab4d.js";import tt,{__tla as rt}from"./OtherForm-7cf2b38f.js";import at,{__tla as et}from"./SkuForm-c86b9196.js";import ot,{__tla as it}from"./DeliveryForm-7af8de8d.js";import _t,{__tla as lt}from"./Service-5b9e74d4.js";import{A as ct,__tla as st}from"./AfterSale-df64e0f3.js";import mt,{__tla as nt}from"./Comment-41de8dd0.js";import{T as pt,a as ut,__tla as dt}from"./index-0999b092.js";import{__tla as ft}from"./el-card-d3d5a654.js";import{__tla as yt}from"./UploadImgs-b8116d2f.js";import{__tla as ht}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-a65d467a.js";import{__tla as Pt}from"./el-image-viewer-e0e5d3be.js";import{__tla as vt}from"./useMessage-084b1e70.js";import"./tree-0af4953a.js";import{__tla as gt}from"./category-2d544841.js";import{__tla as kt}from"./brand-93287a10.js";import{__tla as Bt}from"./formRules-b40a428a.js";import{__tla as Ft}from"./Editor-514f76f8.js";import{__tla as Dt}from"./index-99c3aa61.js";import{__tla as bt}from"./SkuList-7139770f.js";import{__tla as Tt}from"./el-image-73c105b7.js";import{__tla as wt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6643271d.js";import{__tla as It}from"./index-5a40c383.js";import{__tla as St}from"./UploadImg-d2713eac.js";import{__tla as Et}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3e346ba0.js";import{__tla as Nt}from"./ProductAttributes-26fd0703.js";import{__tla as xt}from"./el-text-573636b0.js";import{__tla as Ct}from"./property-7385b8c3.js";import{__tla as Rt}from"./ProductPropertyAddForm-d29aa3c5.js";import{__tla as At}from"./Dialog-4c2de357.js";import{__tla as Ut}from"./index-bbc7fb57.js";import{__tla as Mt}from"./dict-82dca549.js";import"./constants-637baed6.js";import{__tla as zt}from"./index-c6443726.js";import{__tla as jt}from"./index-ed6c67a8.js";import{__tla as Lt}from"./index-fb47c94c.js";import{__tla as Wt}from"./index-75b1e1db.js";let B,qt=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}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 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 Et}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Wt}catch{}})()]).then(async()=>{let h,P,v;h={class:"top",style:{position:"relative",overflow:"hidden"}},P={class:"bottom"},v=(d=>(W("data-v-d9db1195"),d=d(),q(),d))(()=>i("div",{style:{clear:"both"}},null,-1)),B=H(x({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 J(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"}),A(()=>{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 _=pt,t=ut,S=Z,E=L;return l((U(),M(S,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:k(()=>[i("div",h,[a(t,{active:r(o),"onUpdate:active":u[0]||(u[0]=N=>z(o)?o.value=N: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(Q,{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(at,{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(ot,{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(X,{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(tt,{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(mt,{"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="comment"]]),l(i("div",null,[a(_t,{"is-detail":r(c),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[m,r(o)=="service"]]),l(i("div",null,[a(ct,{productId:r(g),openSource:"Spu"},null,8,["productId"])],512),[[m,r(o)=="aftersale"]])]),v]),_:1})),[[E,r(f)]])}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{qt as __tla,B as default};