index-984b770c.js 8.9 KB

1
  1. import{d as lr,u as ir,$ as or,r as e,o as u,C as P,A as k,B as i,E as cr,a as t,f as a,Q as _r,a$ as sr,k as p,a3 as g,a2 as E,v as y,c as $,P as nr,cT as mr,aB as d,aC as f,aG as ur,aa as pr,ab as dr,a_ as fr,Z as hr,L as yr,M as vr,_ as Pr,__tla as kr}from"./index-286756b9.js";import{_ as gr,__tla as br}from"./ContentWrap-83998678.js";import{_ as Fr,__tla as Dr}from"./SPuUploadImg-895192f9.js";import{u as Br,__tla as wr}from"./tagsView-11a568ba.js";import{g as Ur,__tla as Ir}from"./spu-c6e01563.js";import Sr,{__tla as Cr}from"./InfoForm-359154b5.js";import Tr,{__tla as xr}from"./DescriptionForm-1238ab4d.js";import Vr,{__tla as Rr}from"./OtherForm-7cf2b38f.js";import zr,{__tla as Ar}from"./SkuForm-c86b9196.js";import Er,{__tla as $r}from"./DeliveryForm-7af8de8d.js";import Gr,{__tla as Lr}from"./Service-5b9e74d4.js";import{A as Mr,__tla as Qr}from"./AfterSale-df64e0f3.js";import Xr,{__tla as Zr}from"./Comment-41de8dd0.js";import{u as jr,__tla as qr}from"./useMessage-084b1e70.js";import{__tla as Hr}from"./el-card-d3d5a654.js";import{__tla as Jr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6643271d.js";import{__tla as Kr}from"./index-5a40c383.js";import{__tla as Nr}from"./el-image-viewer-e0e5d3be.js";import{__tla as Or}from"./UploadImgs-b8116d2f.js";import{__tla as Wr}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-a65d467a.js";import"./tree-0af4953a.js";import{__tla as Yr}from"./category-2d544841.js";import{__tla as rt}from"./brand-93287a10.js";import{__tla as tt}from"./formRules-b40a428a.js";import{__tla as et}from"./Editor-514f76f8.js";import{__tla as at}from"./index-99c3aa61.js";import{__tla as lt}from"./SkuList-7139770f.js";import{__tla as it}from"./el-image-73c105b7.js";import{__tla as ot}from"./UploadImg-d2713eac.js";import{__tla as ct}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3e346ba0.js";import{__tla as _t}from"./ProductAttributes-26fd0703.js";import{__tla as st}from"./el-text-573636b0.js";import{__tla as nt}from"./property-7385b8c3.js";import{__tla as mt}from"./ProductPropertyAddForm-d29aa3c5.js";import{__tla as ut}from"./Dialog-4c2de357.js";import{__tla as pt}from"./index-bbc7fb57.js";import{__tla as dt}from"./dict-82dca549.js";import"./constants-637baed6.js";import{__tla as ft}from"./index-c6443726.js";import{__tla as ht}from"./index-ed6c67a8.js";import{__tla as yt}from"./index-fb47c94c.js";import{__tla as vt}from"./index-75b1e1db.js";let G,Pt=Promise.all([(()=>{try{return kr}catch{}})(),(()=>{try{return br}catch{}})(),(()=>{try{return Dr}catch{}})(),(()=>{try{return wr}catch{}})(),(()=>{try{return Ir}catch{}})(),(()=>{try{return Cr}catch{}})(),(()=>{try{return xr}catch{}})(),(()=>{try{return Rr}catch{}})(),(()=>{try{return Ar}catch{}})(),(()=>{try{return $r}catch{}})(),(()=>{try{return Lr}catch{}})(),(()=>{try{return Qr}catch{}})(),(()=>{try{return Zr}catch{}})(),(()=>{try{return qr}catch{}})(),(()=>{try{return Hr}catch{}})(),(()=>{try{return Jr}catch{}})(),(()=>{try{return Kr}catch{}})(),(()=>{try{return Nr}catch{}})(),(()=>{try{return Or}catch{}})(),(()=>{try{return Wr}catch{}})(),(()=>{try{return Yr}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return vt}catch{}})()]).then(async()=>{let U,I,S,C,T,x,V,R,z;U={class:"my-header"},I={class:"my-header-left"},S={class:"my-header-right"},C=["onClick"],T={class:"left"},x={class:"right"},V={key:0},R={key:1},z=(b=>(yr("data-v-473675a6"),b=b(),vr(),b))(()=>i("div",{style:{clear:"both"}},null,-1)),G=Pr(lr({name:"ProductSpuForm",__name:"index",emits:["success"],setup(b,{expose:L,emit:kt}){const{t:M}=nr();jr(),ir(),or(),Br();const B=e(!1),c=e("info"),l=e(!1),Q=e(),X=e(),Z=e(),j=e(),q=e(),_=e({name:"",categoryId:void 0,keyword:"",picUrl:"",producerArea:"",spuType:void 0,sliderPicUrls:[],introduction:"",deliveryTypes:[],deliveryTemplateId:void 0,brandId:void 0,specType:!1,subCommissionType:!1,highPrecision:!1,skus:[{price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,promotionFee:0,mark:"",highPrecisionPrice:0,highPrecisionSettlementPrice:0,firstBrokeragePrice:0,secondBrokeragePrice:0}],description:"",sort:0,giveIntegral:0,virtualSalesCount:0}),H=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:"",highPrecisionPrice:0,highPrecisionSettlementPrice:0,firstBrokeragePrice:0,secondBrokeragePrice:0}],description:"",sort:0,giveIntegral:0,virtualSalesCount:0}),F=e(!1),D=e(""),J=e(0),w=e(),K=e(""),N=e(),A=e(""),O=e(0),v=e(!1);L({open:async(s,o,h,r)=>{J.value=r,N.value=o,O.value=h,F.value=!0,w.value=o.id,K.value=o.picUrl,v.value=!1,await Y(),c.value="info",A.value=s,D.value=M("action."+s),s=="view"?D.value="\u67E5\u770B":s=="create"&&(_.value=mr(H.value)),A.value=="view"?l.value=!0:l.value=!1}});const W=()=>{v.value=!v.value},Y=async()=>{var o;const s=w.value;if(s){B.value=!0;try{const h=await Ur(s);(o=h.skus)==null||o.forEach(r=>{l.value?(r.price=d(r.price),r.highPrecisionPrice=r.highPrecisionPrice/100,r.settlementPrice=d(r.settlementPrice),r.highPrecisionSettlementPrice=r.highPrecisionSettlementPrice/100,r.marketPrice=d(r.marketPrice),r.costPrice=d(r.costPrice),r.promotionFee=d(r.promotionFee),r.firstBrokeragePrice=d(r.firstBrokeragePrice),r.secondBrokeragePrice=d(r.secondBrokeragePrice)):(r.price=f(r.price),r.highPrecisionPrice=r.highPrecisionPrice/100,r.settlementPrice=f(r.settlementPrice),r.highPrecisionSettlementPrice=r.highPrecisionSettlementPrice/100,r.marketPrice=f(r.marketPrice),r.costPrice=f(r.costPrice),r.promotionFee=f(r.promotionFee),r.firstBrokeragePrice=f(r.firstBrokeragePrice),r.secondBrokeragePrice=f(r.secondBrokeragePrice))}),_.value=h}finally{B.value=!1}}};return(s,o)=>{const h=ur,r=Fr,n=pr,rr=dr,tr=gr,er=fr,ar=hr;return u(),P(er,{modelValue:t(F),"onUpdate:modelValue":o[2]||(o[2]=m=>E(F)?F.value=m:null),title:t(D),fullscreen:t(v),"show-close":!1,width:"70%",draggable:"",class:"dialog"},{header:k(({close:m})=>[i("div",U,[i("div",I,cr(t(D)),1),i("div",S,[i("span",{onClick:W},[a(t(_r),{icon:t(v)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),i("span",{onClick:m},[a(h,null,{default:k(()=>[a(t(sr))]),_:1})],8,C)])])]),default:k(()=>[p((u(),P(tr,{style:{"max-height":"560px","min-height":"560px","overflow-y":"auto","border-bottom":"none"}},{default:k(()=>[i("div",T,[a(r,{modelValue:t(_).picUrl,"onUpdate:modelValue":o[0]||(o[0]=m=>t(_).picUrl=m),disabled:t(l)},null,8,["modelValue","disabled"]),a(rr,{modelValue:t(c),"onUpdate:modelValue":o[1]||(o[1]=m=>E(c)?c.value=m:null),"tab-position":"left",class:"child-tabs"},{default:k(()=>[a(n,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(n,{label:"\u4EF7\u683C/\u89C4\u683C/\u578B\u53F7",name:"sku"}),a(n,{label:"\u8BE6\u60C5",name:"description"}),t(l)?(u(),P(n,{key:0,label:"\u8BC4\u4EF7",name:"comment"})):g("",!0),t(l)?(u(),P(n,{key:1,label:"\u5BA2\u670D",name:"service"})):g("",!0),t(l)?(u(),P(n,{key:2,label:"\u552E\u540E",name:"aftersale"})):g("",!0),a(n,{label:"\u7269\u6D41\u8BBE\u7F6E",name:"delivery"})]),_:1},8,["modelValue"])]),i("div",x,[p(i("div",null,[a(Sr,{ref_key:"infoRef",ref:Q,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="info"]]),p(i("div",null,[a(zr,{ref_key:"skuRef",ref:X,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="sku"]]),p(i("div",null,[a(Er,{ref_key:"deliveryRef",ref:Z,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="delivery"]]),p(i("div",null,[a(Tr,{ref_key:"descriptionRef",ref:j,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="description"]]),p(i("div",null,[a(Vr,{ref_key:"otherRef",ref:q,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="other"]]),t(c)=="comment"?(u(),$("div",V,[a(Xr,{"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])])):g("",!0),p(i("div",null,[a(Gr,{"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="service"]]),t(c)=="aftersale"?(u(),$("div",R,[a(Mr,{productId:t(w),openSource:"Spu"},null,8,["productId"])])):g("",!0)]),z]),_:1})),[[ar,t(B)]])]),_:1},8,["modelValue","title","fullscreen"])}}}),[["__scopeId","data-v-473675a6"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/index.vue"]])});export{Pt as __tla,G as default};