1 |
- import{d as Y,r as i,$ as tt,u as rt,x as at,b as et,s as lt,a4 as ot,o as y,c as R,k as e,a as t,C as g,A as u,B as l,f as a,a2 as it,v as _,D as S,a3 as ct,F as st,P as _t,aB as f,aC as h,a9 as mt,V as nt,W as pt,J as ut,Z as dt,L as yt,M as ft,_ as ht,__tla as vt}from"./index-54aa57d8.js";import{_ as Pt,__tla as kt}from"./ContentWrap-260746ab.js";import{__tla as gt}from"./index-fe098889.js";import{g as bt,a as V,__tla as Bt}from"./spu-b4744276.js";import wt,{__tla as Ft}from"./InfoForm-8a1156fa.js";import Dt,{__tla as St}from"./DescriptionForm-9b580d1b.js";import Ct,{__tla as It}from"./OtherForm-7d2e07e5.js";import Tt,{__tla as xt}from"./SkuForm-cc53e4f6.js";import Nt,{__tla as Et}from"./DeliveryForm-6c649f33.js";import Ut,{__tla as Mt}from"./Service-3d4da465.js";import{A as Rt,__tla as Vt}from"./AfterSale-255a48ee.js";import At,{__tla as zt}from"./Apply-6360d92c.js";import Wt,{__tla as qt}from"./Comment-ceea28c0.js";import{c as Jt,__tla as Lt}from"./permission-1c0fa4cd.js";import{u as Xt,__tla as Zt}from"./useMessage-f56cafbb.js";import{T as $t,a as jt,__tla as Gt}from"./index-dd7d83aa.js";import{__tla as Ht}from"./el-card-e7d6628c.js";import{__tla as Kt}from"./UploadImgs-1c3a9b0d.js";import{__tla as Ot}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-6e3f8f3f.js";import{__tla as Qt}from"./el-image-viewer-ec0edec4.js";import"./tree-0af4953a.js";import{__tla as Yt}from"./category-25a5e37a.js";import{__tla as tr}from"./brand-e7a4cd3c.js";import{__tla as rr}from"./formRules-de58d92d.js";import{__tla as ar}from"./Editor-2839cd89.js";import{__tla as er}from"./index-e0572f5f.js";import{__tla as lr}from"./SkuList-6694cde5.js";import{__tla as or}from"./el-image-94dad5a7.js";import{__tla as ir}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-03e554d4.js";import{__tla as cr}from"./index-1a846221.js";import{__tla as sr}from"./UploadImg-46306ddf.js";import{__tla as _r}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-ebe3d168.js";import{__tla as mr}from"./ProductAttributes-406417eb.js";import{__tla as nr}from"./el-text-5b70ca38.js";import{__tla as pr}from"./property-e665e647.js";import{__tla as ur}from"./ProductPropertyAddForm-3cfd6c3c.js";import{__tla as dr}from"./Dialog-7bb778a5.js";import{__tla as yr}from"./index-fc0842b4.js";import{__tla as fr}from"./dict-573b3b04.js";import"./constants-c811e5ff.js";import{__tla as hr}from"./index-e7a32376.js";import{__tla as vr}from"./index-e6a7fd1e.js";import{__tla as Pr}from"./index-254a9b5e.js";import{__tla as kr}from"./index-692b7677.js";import{__tla as gr}from"./formatTime-e6197688.js";let A,br=Promise.all([(()=>{try{return vt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return tr}catch{}})(),(()=>{try{return rr}catch{}})(),(()=>{try{return ar}catch{}})(),(()=>{try{return er}catch{}})(),(()=>{try{return lr}catch{}})(),(()=>{try{return or}catch{}})(),(()=>{try{return ir}catch{}})(),(()=>{try{return cr}catch{}})(),(()=>{try{return sr}catch{}})(),(()=>{try{return _r}catch{}})(),(()=>{try{return mr}catch{}})(),(()=>{try{return nr}catch{}})(),(()=>{try{return pr}catch{}})(),(()=>{try{return ur}catch{}})(),(()=>{try{return dr}catch{}})(),(()=>{try{return yr}catch{}})(),(()=>{try{return fr}catch{}})(),(()=>{try{return hr}catch{}})(),(()=>{try{return vr}catch{}})(),(()=>{try{return Pr}catch{}})(),(()=>{try{return kr}catch{}})(),(()=>{try{return gr}catch{}})()]).then(async()=>{let C,I,T,x,N;C={class:"top",style:{position:"relative",overflow:"hidden"}},I={class:"bottom"},T=(v=>(yt("data-v-d9db1195"),v=v(),ft(),v))(()=>l("div",{style:{clear:"both"}},null,-1)),x={key:0,class:"bottom-button"},N={class:"flex"},A=ht(Y({name:"ProductSpuForm",__name:"MobileIndex",setup(v){const{t:E}=_t(),d=i(!1),o=i("info"),m=i(!0),z=i(),W=i(),q=i(),J=i(),L=i(),s=i({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}),P=Xt(),b=tt(),{push:X}=rt(),k=i(Number(b.params.id)),Z=i(Number(b.params.applyMemberUserId)),$=i(Number(b.params.checkStatus)),n=at({id:"",checkComment:"",checkStatus:0,applyMemberUserId:0}),B=()=>{X({name:"ProductSpu"})},j=async()=>{n.checkStatus=2;try{await P.confirm("\u62D2\u7EDD\u7533\u8BF7?"),await V(n).then(()=>{P.success(E("common.success")),B()})}catch{}},G=async()=>{n.checkStatus=1;try{await P.confirm("\u540C\u610F\u7533\u8BF7?"),await V(n).then(()=>{P.success(E("common.success")),B()})}catch{}};return et(()=>{(async()=>{var p;const w=k.value;if(w){d.value=!0;try{const c=await bt(w);(p=c.skus)==null||p.forEach(r=>{m.value?(r.price=f(r.price),r.marketPrice=f(r.marketPrice),r.costPrice=f(r.costPrice),r.firstBrokeragePrice=f(r.firstBrokeragePrice),r.secondBrokeragePrice=f(r.secondBrokeragePrice),r.highPrecisionPrice=r.highPrecisionPrice/100,r.settlementPrice=f(r.settlementPrice),r.highPrecisionSettlementPrice=r.highPrecisionSettlementPrice/100):(r.price=h(r.price),r.marketPrice=h(r.marketPrice),r.costPrice=h(r.costPrice),r.firstBrokeragePrice=h(r.firstBrokeragePrice),r.secondBrokeragePrice=h(r.secondBrokeragePrice),r.settlementPrice=h(r.settlementPrice),r.highPrecisionSettlementPrice=r.highPrecisionSettlementPrice/100,r.highPrecisionPrice=r.highPrecisionPrice/100)}),s.value=c}finally{d.value=!1}}})(),n.id=k.value,n.applyMemberUserId=Z,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"}),lt(()=>{document.getElementsByTagName("section")[1].style.width="auto",document.getElementsByTagName("section")[1].style.padding="20px",document.getElementsByTagName("section")[1].style.background="var(--el-color-white)"}),(w,p)=>{const c=$t,r=jt,H=Pt,K=mt,O=nt,Q=pt,F=ut,U=dt,M=ot("hasPermi");return y(),R(st,null,[e((y(),g(H,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:u(()=>[l("div",C,[a(r,{active:t(o),"onUpdate:active":p[0]||(p[0]=D=>it(o)?o.value=D:null)},{default:u(()=>[a(c,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(c,{title:"\u4EF7\u683C/\u89C4\u683C/\u578B\u53F7",name:"sku"}),a(c,{title:"\u8BE6\u60C5",name:"description"}),a(c,{title:"\u8BC4\u4EF7",name:"comment"}),a(c,{title:"\u5BA2\u670D",name:"service"}),a(c,{title:"\u552E\u540E",name:"aftersale"}),a(c,{title:"\u7269\u6D41\u8BBE\u7F6E",name:"delivery"}),a(c,{title:"\u7533\u8BF7\u8BB0\u5F55",name:"apply"})]),_:1},8,["active"])]),l("div",I,[e(l("div",null,[a(wt,{ref_key:"infoRef",ref:z,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="info"]]),e(l("div",null,[a(Tt,{ref_key:"skuRef",ref:W,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="sku"]]),e(l("div",null,[a(Nt,{ref_key:"deliveryRef",ref:q,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="delivery"]]),e(l("div",null,[a(Dt,{ref_key:"descriptionRef",ref:J,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="description"]]),e(l("div",null,[a(Ct,{ref_key:"otherRef",ref:L,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="other"]]),e(l("div",null,[a(Wt,{"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="comment"]]),e(l("div",null,[a(Ut,{"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="service"]]),e(l("div",null,[a(Rt,{productId:t(k),openSource:"Spu"},null,8,["productId"])],512),[[_,t(o)=="aftersale"]]),e(l("div",null,[a(At,{productId:t(k),propFormData:t(s)},null,8,["productId","propFormData"])],512),[[_,t(o)=="apply"]])]),T]),_:1})),[[U,t(d)]]),!t($)&&t(Jt)(["product:spu-apply:update"])?(y(),R("div",x,[e((y(),g(Q,{ref:"formRef","label-width":"80px",style:{display:"flex"},model:t(s)},{default:u(()=>[a(O,{label:"\u5BA1\u6838\u610F\u89C1",prop:"checkComment",style:{border:"none",width:"100%"}},{default:u(()=>[a(K,{modelValue:t(n).checkComment,"onUpdate:modelValue":p[1]||(p[1]=D=>t(n).checkComment=D),placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[U,t(d)]]),l("div",N,[a(F,{onClick:B,class:"w-31"},{default:u(()=>[S("\u8FD4 \u56DE")]),_:1}),e((y(),g(F,{disabled:t(d),class:"w-31",type:"danger",onClick:j},{default:u(()=>[S("\u62D2\u7EDD")]),_:1},8,["disabled"])),[[M,["product:spu-apply:update"]]]),e((y(),g(F,{disabled:t(d),class:"w-31",type:"primary",onClick:G},{default:u(()=>[S("\u540C\u610F")]),_:1},8,["disabled"])),[[M,["product:spu-apply:update"]]])])])):ct("",!0)],64)}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{br as __tla,A as default};
|