1 |
- import{d as lr,u as or,J as ir,r as t,o as u,v as k,w as P,g as o,t as _r,a as r,f as e,n as sr,aN as cr,x as p,P as g,O as j,a4 as f,c as O,h as mr,aO as nr,ar as y,as as h,ax as ur,W as pr,X as dr,aP as fr,I as yr,p as hr,j as vr,_ as kr,__tla as Pr}from"./index-430b3151.js";import{_ as gr,__tla as br}from"./ContentWrap-60842994.js";import{_ as Fr,__tla as wr}from"./SPuUploadImg-e216b873.js";import{u as Dr,__tla as Ir}from"./tagsView-37437d92.js";import{g as Ur,__tla as xr}from"./spu-fa11f657.js";import Br,{__tla as Tr}from"./InfoForm-c97640de.js";import Cr,{__tla as Vr}from"./DescriptionForm-9c79df62.js";import Rr,{__tla as Sr}from"./OtherForm-1bf1bbdb.js";import zr,{__tla as Ar}from"./SkuForm-323bf99e.js";import jr,{__tla as Or}from"./DeliveryForm-f47c7aeb.js";import Er,{__tla as Jr}from"./Service-9505b68a.js";import{A as Nr,__tla as Wr}from"./AfterSale-5ff3e48a.js";import Xr,{__tla as $r}from"./Comment-2c41303c.js";import{u as qr,__tla as Gr}from"./useMessage-d226ba89.js";import{__tla as Hr}from"./el-card-dee5b36b.js";import{__tla as Kr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f5de6f1b.js";import{__tla as Lr}from"./index-255e3b1c.js";import{__tla as Mr}from"./el-image-viewer-467ebe35.js";import{__tla as Qr}from"./UploadImgs-6e3d2ca2.js";import{__tla as Yr}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-7ba47553.js";import"./tree-0af4953a.js";import{__tla as Zr}from"./category-61e1eb2c.js";import{__tla as ra}from"./brand-a7961bee.js";import{__tla as aa}from"./formRules-51914dec.js";import{__tla as ta}from"./Editor-6ca3ff9c.js";import{__tla as ea}from"./index-b3ba5914.js";import{__tla as la}from"./SkuList-6f86be5a.js";import{__tla as oa}from"./el-image-c98b70f9.js";import{__tla as ia}from"./UploadImg-2f818d4f.js";import{__tla as _a}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3bbc6c3b.js";import{__tla as sa}from"./ProductAttributes-065c834d.js";import{__tla as ca}from"./el-text-8208f30d.js";import{__tla as ma}from"./property-1f1be759.js";import{__tla as na}from"./ProductPropertyAddForm-747a81c0.js";import{__tla as ua}from"./Dialog-cd42c639.js";import{__tla as pa}from"./index-aa6d3c0e.js";import{__tla as da}from"./dict-603b6a58.js";import"./constants-637baed6.js";import{__tla as fa}from"./index-72a4fbcc.js";import{__tla as ya}from"./index-c425c88f.js";import{__tla as ha}from"./index-555139e7.js";import{__tla as va}from"./index-a205ae1b.js";let E,ka=Promise.all([(()=>{try{return Pr}catch{}})(),(()=>{try{return br}catch{}})(),(()=>{try{return wr}catch{}})(),(()=>{try{return Ir}catch{}})(),(()=>{try{return xr}catch{}})(),(()=>{try{return Tr}catch{}})(),(()=>{try{return Vr}catch{}})(),(()=>{try{return Sr}catch{}})(),(()=>{try{return Ar}catch{}})(),(()=>{try{return Or}catch{}})(),(()=>{try{return Jr}catch{}})(),(()=>{try{return Wr}catch{}})(),(()=>{try{return $r}catch{}})(),(()=>{try{return Gr}catch{}})(),(()=>{try{return Hr}catch{}})(),(()=>{try{return Kr}catch{}})(),(()=>{try{return Lr}catch{}})(),(()=>{try{return Mr}catch{}})(),(()=>{try{return Qr}catch{}})(),(()=>{try{return Yr}catch{}})(),(()=>{try{return Zr}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})()]).then(async()=>{let U,x,B,T,C,V,R,S,z;U={class:"my-header"},x={class:"my-header-left"},B={class:"my-header-right"},T=["onClick"],C={class:"left"},V={class:"right"},R={key:0},S={key:1},z=(b=>(hr("data-v-473675a6"),b=b(),vr(),b))(()=>o("div",{style:{clear:"both"}},null,-1)),E=kr(lr({name:"ProductSpuForm",__name:"index",emits:["success"],setup(b,{expose:J,emit:Pa}){const{t:N}=mr();qr(),or(),ir(),Dr();const D=t(!1),_=t("info"),l=t(!1),W=t(),X=t(),$=t(),q=t(),G=t(),s=t({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:"",firstBrokeragePrice:0,secondBrokeragePrice:0}],description:"",sort:0,giveIntegral:0,virtualSalesCount:0}),H=t({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}),F=t(!1),w=t(""),K=t(0),I=t(),L=t(""),M=t(),A=t(""),Q=t(0),v=t(!1);J({open:async(c,i,d,a)=>{K.value=a,M.value=i,Q.value=d,F.value=!0,I.value=i.id,L.value=i.picUrl,v.value=!1,await Z(),_.value="info",A.value=c,w.value=N("action."+c),c=="view"?w.value="\u67E5\u770B":c=="create"&&(s.value=nr(H.value)),A.value=="view"?l.value=!0:l.value=!1}});const Y=()=>{v.value=!v.value},Z=async()=>{var i;const c=I.value;if(c){D.value=!0;try{const d=await Ur(c);(i=d.skus)==null||i.forEach(a=>{l.value?(a.price=y(a.price),a.highPrecisionPrice=a.highPrecisionPrice/100,a.marketPrice=y(a.marketPrice),a.costPrice=y(a.costPrice),a.promotionFee=y(a.promotionFee),a.firstBrokeragePrice=y(a.firstBrokeragePrice),a.secondBrokeragePrice=y(a.secondBrokeragePrice)):(a.price=h(a.price),a.highPrecisionPrice=a.highPrecisionPrice/100,a.marketPrice=h(a.marketPrice),a.costPrice=h(a.costPrice),a.promotionFee=h(a.promotionFee),a.firstBrokeragePrice=h(a.firstBrokeragePrice),a.secondBrokeragePrice=h(a.secondBrokeragePrice))}),s.value=d}finally{D.value=!1}}};return(c,i)=>{const d=ur,a=Fr,m=pr,rr=dr,ar=gr,tr=fr,er=yr;return u(),k(tr,{modelValue:r(F),"onUpdate:modelValue":i[2]||(i[2]=n=>j(F)?F.value=n:null),title:r(w),fullscreen:r(v),"show-close":!1,width:"70%",draggable:"",class:"dialog"},{header:P(({close:n})=>[o("div",U,[o("div",x,_r(r(w)),1),o("div",B,[o("span",{onClick:Y},[e(r(sr),{icon:r(v)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),o("span",{onClick:n},[e(d,null,{default:P(()=>[e(r(cr))]),_:1})],8,T)])])]),default:P(()=>[p((u(),k(ar,{style:{"max-height":"560px","min-height":"560px","overflow-y":"auto","border-bottom":"none"}},{default:P(()=>[o("div",C,[e(a,{modelValue:r(s).picUrl,"onUpdate:modelValue":i[0]||(i[0]=n=>r(s).picUrl=n),disabled:r(l)},null,8,["modelValue","disabled"]),e(rr,{modelValue:r(_),"onUpdate:modelValue":i[1]||(i[1]=n=>j(_)?_.value=n:null),"tab-position":"left",class:"child-tabs"},{default:P(()=>[e(m,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),e(m,{label:"\u4EF7\u683C/\u89C4\u683C/\u578B\u53F7",name:"sku"}),e(m,{label:"\u8BE6\u60C5",name:"description"}),r(l)?(u(),k(m,{key:0,label:"\u8BC4\u4EF7",name:"comment"})):g("",!0),r(l)?(u(),k(m,{key:1,label:"\u5BA2\u670D",name:"service"})):g("",!0),r(l)?(u(),k(m,{key:2,label:"\u552E\u540E",name:"aftersale"})):g("",!0),e(m,{label:"\u7269\u6D41\u8BBE\u7F6E",name:"delivery"})]),_:1},8,["modelValue"])]),o("div",V,[p(o("div",null,[e(Br,{ref_key:"infoRef",ref:W,"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="info"]]),p(o("div",null,[e(zr,{ref_key:"skuRef",ref:X,"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="sku"]]),p(o("div",null,[e(jr,{ref_key:"deliveryRef",ref:$,"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="delivery"]]),p(o("div",null,[e(Cr,{ref_key:"descriptionRef",ref:q,"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="description"]]),p(o("div",null,[e(Rr,{ref_key:"otherRef",ref:G,"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="other"]]),r(_)=="comment"?(u(),O("div",R,[e(Xr,{"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])])):g("",!0),p(o("div",null,[e(Er,{"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="service"]]),r(_)=="aftersale"?(u(),O("div",S,[e(Nr,{productId:r(I),openSource:"Spu"},null,8,["productId"])])):g("",!0)]),z]),_:1})),[[er,r(D)]])]),_: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{ka as __tla,E as default};
|