1 |
- import{d as lr,u as ir,K as or,r as e,o as u,x as P,w as k,h as i,t as cr,a as t,g as a,q as _r,aN as sr,y as p,Q as g,P as j,a5 as y,c as q,i as nr,aO as mr,as as d,at as f,ay as ur,X as pr,Y as dr,aP as fr,J as hr,p as yr,k as vr,_ as Pr,__tla as kr}from"./index-b362e1d5.js";import{_ as gr,__tla as br}from"./ContentWrap-a3bb871b.js";import{_ as Fr,__tla as Dr}from"./SPuUploadImg-8c588231.js";import{u as wr,__tla as Ur}from"./tagsView-cac7a8eb.js";import{g as Br,__tla as Ir}from"./spu-8db32dd2.js";import Sr,{__tla as xr}from"./InfoForm-6a492fa8.js";import Tr,{__tla as Cr}from"./DescriptionForm-dda44a96.js";import Vr,{__tla as Rr}from"./OtherForm-c951703f.js";import zr,{__tla as Ar}from"./SkuForm-444781cf.js";import jr,{__tla as qr}from"./DeliveryForm-96af1d1f.js";import Er,{__tla as Jr}from"./Service-b1b77285.js";import{A as Kr,__tla as Nr}from"./AfterSale-592d9425.js";import Or,{__tla as Qr}from"./Comment-86b31dc2.js";import{u as Xr,__tla as Yr}from"./useMessage-7c1dd10e.js";import{__tla as Zr}from"./el-card-732e29b8.js";import{__tla as Gr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b4af8eb1.js";import{__tla as Hr}from"./index-6b00d885.js";import{__tla as Lr}from"./el-image-viewer-68ae3e49.js";import{__tla as Mr}from"./UploadImgs-38746988.js";import{__tla as Wr}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-e4965946.js";import"./tree-0af4953a.js";import{__tla as $r}from"./category-d9e07750.js";import{__tla as rt}from"./brand-bdcce6f8.js";import{__tla as tt}from"./formRules-c26349aa.js";import{__tla as et}from"./Editor-e146bd91.js";import{__tla as at}from"./index-9be4403d.js";import{__tla as lt}from"./SkuList-bd9b424b.js";import{__tla as it}from"./el-image-6c94a1ed.js";import{__tla as ot}from"./UploadImg-badad53e.js";import{__tla as ct}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-830ad10b.js";import{__tla as _t}from"./ProductAttributes-b3d95847.js";import{__tla as st}from"./el-text-50b1587f.js";import{__tla as nt}from"./property-771c5075.js";import{__tla as mt}from"./ProductPropertyAddForm-e02370d6.js";import{__tla as ut}from"./Dialog-71bebaff.js";import{__tla as pt}from"./index-6bcfd169.js";import{__tla as dt}from"./dict-9948b178.js";import"./constants-637baed6.js";import{__tla as ft}from"./index-4596f7c2.js";import{__tla as ht}from"./index-ccc64a6d.js";import{__tla as yt}from"./index-39b44010.js";import{__tla as vt}from"./index-73fd237a.js";let E,Pt=Promise.all([(()=>{try{return kr}catch{}})(),(()=>{try{return br}catch{}})(),(()=>{try{return Dr}catch{}})(),(()=>{try{return Ur}catch{}})(),(()=>{try{return Ir}catch{}})(),(()=>{try{return xr}catch{}})(),(()=>{try{return Cr}catch{}})(),(()=>{try{return Rr}catch{}})(),(()=>{try{return Ar}catch{}})(),(()=>{try{return qr}catch{}})(),(()=>{try{return Jr}catch{}})(),(()=>{try{return Nr}catch{}})(),(()=>{try{return Qr}catch{}})(),(()=>{try{return Yr}catch{}})(),(()=>{try{return Zr}catch{}})(),(()=>{try{return Gr}catch{}})(),(()=>{try{return Hr}catch{}})(),(()=>{try{return Lr}catch{}})(),(()=>{try{return Mr}catch{}})(),(()=>{try{return Wr}catch{}})(),(()=>{try{return $r}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 B,I,S,x,T,C,V,R,z;B={class:"my-header"},I={class:"my-header-left"},S={class:"my-header-right"},x=["onClick"],T={class:"left"},C={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)),E=Pr(lr({name:"ProductSpuForm",__name:"index",emits:["success"],setup(b,{expose:J,emit:kt}){const{t:K}=nr();Xr(),ir(),or(),wr();const w=e(!1),c=e("info"),l=e(!1),N=e(),O=e(),Q=e(),X=e(),Y=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}),Z=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(""),G=e(0),U=e(),H=e(""),L=e(),A=e(""),M=e(0),v=e(!1);J({open:async(s,o,h,r)=>{G.value=r,L.value=o,M.value=h,F.value=!0,U.value=o.id,H.value=o.picUrl,v.value=!1,await $(),c.value="info",A.value=s,D.value=K("action."+s),s=="view"?D.value="\u67E5\u770B":s=="create"&&(_.value=mr(Z.value)),A.value=="view"?l.value=!0:l.value=!1}});const W=()=>{v.value=!v.value},$=async()=>{var o;const s=U.value;if(s){w.value=!0;try{const h=await Br(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{w.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=>j(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",B,[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,x)])])]),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=>j(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",C,[p(i("div",null,[a(Sr,{ref_key:"infoRef",ref:N,"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:O,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="sku"]]),p(i("div",null,[a(jr,{ref_key:"deliveryRef",ref:Q,"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:X,"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:Y,"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="other"]]),t(c)=="comment"?(u(),q("div",V,[a(Or,{"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])])):g("",!0),p(i("div",null,[a(Er,{"is-detail":t(l),propFormData:t(_)},null,8,["is-detail","propFormData"])],512),[[y,t(c)=="service"]]),t(c)=="aftersale"?(u(),q("div",R,[a(Kr,{productId:t(U),openSource:"Spu"},null,8,["productId"])])):g("",!0)]),z]),_:1})),[[ar,t(w)]])]),_: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,E as default};
|