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,j as sr,aK as cr,x as p,P as g,O as j,a4 as f,c as E,h as mr,aL as nr,ar as y,as as h,aM as ur,W as pr,X as dr,aN as fr,I as yr,p as hr,k as vr,_ as kr,__tla as Pr}from"./index-6d7b82ba.js";import{_ as gr,__tla as br}from"./ContentWrap-1ba5c8ca.js";import{_ as Fr,__tla as wr}from"./SPuUploadImg-3b4ba08d.js";import{u as Dr,__tla as Ir}from"./tagsView-e5f9218a.js";import{g as Ur,__tla as Br}from"./spu-402402f7.js";import xr,{__tla as Tr}from"./InfoForm-3e08bea7.js";import Cr,{__tla as Vr}from"./DescriptionForm-fcc81e9a.js";import Rr,{__tla as Sr}from"./OtherForm-1477f15d.js";import zr,{__tla as Ar}from"./SkuForm-045c0566.js";import jr,{__tla as Er}from"./DeliveryForm-56c630ab.js";import Hr,{__tla as Jr}from"./Service-533005de.js";import{A as Kr,__tla as Lr}from"./AfterSale-2cc5199e.js";import Mr,{__tla as Nr}from"./Comment-465fd3fc.js";import{u as Or,__tla as Wr}from"./useMessage-be161634.js";import{__tla as Xr}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as qr}from"./el-card-1a4b93b1.js";import{__tla as Gr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b2231227.js";import{__tla as Qr}from"./index-8e19be94.js";import{__tla as Yr}from"./el-image-viewer-4a19ded4.js";import{__tla as Zr}from"./UploadImgs-dc546496.js";import{__tla as $r}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-aa91c91b.js";import"./tree-0af4953a.js";import{__tla as ra}from"./category-d8fb78d9.js";import{__tla as aa}from"./brand-627164f1.js";import{__tla as ta}from"./formRules-7ebbbdb0.js";import{__tla as ea}from"./Editor-1d56306f.js";import{__tla as la}from"./index-b18db770.js";import{__tla as oa}from"./SkuList-50c3eabb.js";import{__tla as ia}from"./el-image-afb9e567.js";import{__tla as _a}from"./UploadImg-f5f3b1db.js";import{__tla as sa}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-5325525b.js";import{__tla as ca}from"./ProductAttributes-6de94886.js";import{__tla as ma}from"./el-text-cceaf178.js";import{__tla as na}from"./property-16374bc3.js";import{__tla as ua}from"./ProductPropertyAddForm-65b0268c.js";import{__tla as pa}from"./Dialog-78181bae.js";import{__tla as da}from"./index-51575069.js";import{__tla as fa}from"./dict-efb5f3b6.js";import"./constants-a3c69b57.js";import{__tla as ya}from"./index-c52f3d88.js";import{__tla as ha}from"./index-a786614b.js";import{__tla as va}from"./index-e37504b6.js";import{__tla as ka}from"./index-abce4807.js";let H,Pa=Promise.all([(()=>{try{return Pr}catch{}})(),(()=>{try{return br}catch{}})(),(()=>{try{return wr}catch{}})(),(()=>{try{return Ir}catch{}})(),(()=>{try{return Br}catch{}})(),(()=>{try{return Tr}catch{}})(),(()=>{try{return Vr}catch{}})(),(()=>{try{return Sr}catch{}})(),(()=>{try{return Ar}catch{}})(),(()=>{try{return Er}catch{}})(),(()=>{try{return Jr}catch{}})(),(()=>{try{return Lr}catch{}})(),(()=>{try{return Nr}catch{}})(),(()=>{try{return Wr}catch{}})(),(()=>{try{return Xr}catch{}})(),(()=>{try{return qr}catch{}})(),(()=>{try{return Gr}catch{}})(),(()=>{try{return Qr}catch{}})(),(()=>{try{return Yr}catch{}})(),(()=>{try{return Zr}catch{}})(),(()=>{try{return $r}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{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{let U,B,x,T,C,V,R,S,z;U={class:"my-header"},B={class:"my-header-left"},x={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)),H=kr(lr({name:"ProductSpuForm",__name:"index",emits:["success"],setup(b,{expose:J,emit:ga}){const{t:K}=mr();Or(),or(),ir(),Dr();const D=t(!1),_=t("info"),l=t(!1),L=t(),M=t(),N=t(),O=t(),W=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}),X=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(""),q=t(0),I=t(),G=t(""),Q=t(),A=t(""),Y=t(0),v=t(!1);J({open:async(c,i,d,a)=>{q.value=a,Q.value=i,Y.value=d,F.value=!0,I.value=i.id,G.value=i.picUrl,v.value=!1,await $(),_.value="info",A.value=c,w.value=K("action."+c),c=="view"?w.value="\u67E5\u770B":c=="create"&&(s.value=nr(X.value)),A.value=="view"?l.value=!0:l.value=!1}});const Z=()=>{v.value=!v.value},$=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",B,_r(r(w)),1),o("div",x,[o("span",{onClick:Z},[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(xr,{ref_key:"infoRef",ref:L,"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:M,"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:N,"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:O,"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:W,"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="other"]]),r(_)=="comment"?(u(),E("div",R,[e(Mr,{"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])])):g("",!0),p(o("div",null,[e(Hr,{"is-detail":r(l),propFormData:r(s)},null,8,["is-detail","propFormData"])],512),[[f,r(_)=="service"]]),r(_)=="aftersale"?(u(),E("div",S,[e(Kr,{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{Pa as __tla,H as default};
|