MobileIndex-bd51454b.js 9.7 KB

1
  1. import{d as $,r as c,Z as tt,u as rt,x as at,b as et,s as lt,a3 as ot,o as y,c as M,k as e,a as t,C as g,A as u,B as l,f as a,a1 as ct,v as _,D as I,a2 as it,F as st,P as _t,aA as f,aB as h,a8 as mt,U as nt,V as pt,J as ut,Y as dt,L as yt,M as ft,__tla as ht}from"./index-1f518666.js";import{_ as Pt,__tla as vt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{__tla as kt}from"./index-db300042.js";import{g as gt,a as A,__tla as bt}from"./spu-7f489e39.js";import wt,{__tla as Bt}from"./InfoForm-844f627d.js";import Ft,{__tla as Dt}from"./DescriptionForm-280513fd.js";import It,{__tla as St}from"./OtherForm-53ab991c.js";import Tt,{__tla as Ct}from"./SkuForm-022e8174.js";import Nt,{__tla as Ut}from"./DeliveryForm-2a680eef.js";import xt,{__tla as Et}from"./Service-1cccf6e1.js";import{A as Rt,__tla as Mt}from"./AfterSale-91d87e93.js";import At,{__tla as Vt}from"./Apply-833f59d6.js";import qt,{__tla as Ht}from"./Comment-006d3a21.js";import{c as Jt,__tla as Lt}from"./permission-0d7bfa3b.js";import{u as Wt,__tla as Xt}from"./useMessage-633c11d2.js";import{T as Yt,a as Zt,__tla as jt}from"./index-73c22252.js";import{_ as zt}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Gt}from"./el-card-955661ed.js";import{__tla as Kt}from"./UploadImgs-cff47360.js";import{__tla as Ot}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-c1ca9484.js";import{__tla as Qt}from"./el-image-viewer-91778fd6.js";import"./tree-0af4953a.js";import{__tla as $t}from"./category-af81e9cc.js";import{__tla as tr}from"./brand-f1d03f48.js";import{__tla as rr}from"./formRules-c96b6a75.js";import{__tla as ar}from"./style.css_vue_type_style_index_0_src_true_lang-4c80b346.js";import{__tla as er}from"./index-43761a7b.js";import{__tla as lr}from"./SkuList.vue_vue_type_script_setup_true_lang-be3b32c8.js";import{__tla as or}from"./el-image-1ae80d1a.js";import{__tla as cr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-f02ca529.js";import{__tla as ir}from"./index-32463859.js";import{__tla as sr}from"./UploadImg-832a2277.js";import{__tla as _r}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d48dad9e.js";import{__tla as mr}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-44313f42.js";import{__tla as nr}from"./el-text-51f1e949.js";import{__tla as pr}from"./property-e914cd5f.js";import{__tla as ur}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-635d64c3.js";import{__tla as dr}from"./Dialog-4c960d8c.js";import{__tla as yr}from"./index-c06d95ba.js";import{__tla as fr}from"./dict-167d9193.js";import"./constants-c811e5ff.js";import{__tla as hr}from"./index-0df6bae7.js";import{__tla as Pr}from"./index.vue_vue_type_script_setup_true_lang-cf2a6735.js";import{__tla as vr}from"./index-a37b14c7.js";import{__tla as kr}from"./index-eb0421d0.js";import{__tla as gr}from"./formatTime-a4909bb5.js";let V,br=Promise.all([(()=>{try{return ht}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return $t}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 cr}catch{}})(),(()=>{try{return ir}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 Pr}catch{}})(),(()=>{try{return vr}catch{}})(),(()=>{try{return kr}catch{}})(),(()=>{try{return gr}catch{}})()]).then(async()=>{let S,T,C,N,U;S={class:"top",style:{position:"relative",overflow:"hidden"}},T={class:"bottom"},C=(P=>(yt("data-v-8d0a6f9e"),P=P(),ft(),P))(()=>l("div",{style:{clear:"both"}},null,-1)),N={key:0,class:"bottom-button"},U={class:"flex"},V=zt($({name:"ProductSpuForm",__name:"MobileIndex",setup(P){const{t:x}=_t(),d=c(!1),o=c("info"),m=c(!0),q=c(),H=c(),J=c(),L=c(),W=c(),s=c({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}),v=Wt(),b=tt(),{push:X}=rt(),k=c(Number(b.params.id)),Y=c(Number(b.params.applyMemberUserId)),Z=c(Number(b.params.checkStatus)),n=at({id:"",checkComment:"",checkStatus:0,applyMemberUserId:0}),w=()=>{X({name:"ProductSpu"})},j=async()=>{n.checkStatus=2;try{await v.confirm("\u62D2\u7EDD\u7533\u8BF7?"),await A(n).then(()=>{v.success(x("common.success")),w()})}catch{}},z=async()=>{n.checkStatus=1;try{await v.confirm("\u540C\u610F\u7533\u8BF7?"),await A(n).then(()=>{v.success(x("common.success")),w()})}catch{}};return et(()=>{(async()=>{var p;const B=k.value;if(B){d.value=!0;try{const i=await gt(B);(p=i.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=i}finally{d.value=!1}}})(),n.id=k.value,n.applyMemberUserId=Y,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)"}),(B,p)=>{const i=Yt,r=Zt,G=Pt,K=mt,O=nt,Q=pt,F=ut,E=dt,R=ot("hasPermi");return y(),M(st,null,[e((y(),g(G,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:u(()=>[l("div",S,[a(r,{active:t(o),"onUpdate:active":p[0]||(p[0]=D=>ct(o)?o.value=D:null)},{default:u(()=>[a(i,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(i,{title:"\u4EF7\u683C/\u89C4\u683C/\u578B\u53F7",name:"sku"}),a(i,{title:"\u8BE6\u60C5",name:"description"}),a(i,{title:"\u8BC4\u4EF7",name:"comment"}),a(i,{title:"\u5BA2\u670D",name:"service"}),a(i,{title:"\u552E\u540E",name:"aftersale"}),a(i,{title:"\u7269\u6D41\u8BBE\u7F6E",name:"delivery"}),a(i,{title:"\u7533\u8BF7\u8BB0\u5F55",name:"apply"})]),_:1},8,["active"])]),l("div",T,[e(l("div",null,[a(wt,{ref_key:"infoRef",ref:q,"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:H,"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:J,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="delivery"]]),e(l("div",null,[a(Ft,{ref_key:"descriptionRef",ref:L,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="description"]]),e(l("div",null,[a(It,{ref_key:"otherRef",ref:W,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="other"]]),e(l("div",null,[a(qt,{"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="comment"]]),e(l("div",null,[a(xt,{"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"]])]),C]),_:1})),[[E,t(d)]]),!t(Z)&&t(Jt)(["product:spu-apply:update"])?(y(),M("div",N,[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"])),[[E,t(d)]]),l("div",U,[a(F,{onClick:w,class:"w-31"},{default:u(()=>[I("\u8FD4 \u56DE")]),_:1}),e((y(),g(F,{disabled:t(d),class:"w-31",type:"danger",onClick:j},{default:u(()=>[I("\u62D2\u7EDD")]),_:1},8,["disabled"])),[[R,["product:spu-apply:update"]]]),e((y(),g(F,{disabled:t(d),class:"w-31",type:"primary",onClick:z},{default:u(()=>[I("\u540C\u610F")]),_:1},8,["disabled"])),[[R,["product:spu-apply:update"]]])])])):it("",!0)],64)}}}),[["__scopeId","data-v-8d0a6f9e"]])});export{br as __tla,V as default};