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-a9d538d5.js";import{_ as Pt,__tla as vt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{__tla as kt}from"./index-f71c9881.js";import{g as gt,a as A,__tla as bt}from"./spu-df5e2077.js";import wt,{__tla as Bt}from"./InfoForm-9b12586d.js";import Ft,{__tla as Dt}from"./DescriptionForm-33f35d0a.js";import It,{__tla as St}from"./OtherForm-a83cffe1.js";import Tt,{__tla as Ct}from"./SkuForm-73cf8f7d.js";import Nt,{__tla as Ut}from"./DeliveryForm-7de384de.js";import xt,{__tla as Et}from"./Service-6f9b02b9.js";import{A as Rt,__tla as Mt}from"./AfterSale-dbddf774.js";import At,{__tla as Vt}from"./Apply-cd052e2f.js";import qt,{__tla as Jt}from"./Comment-b9e92725.js";import{c as Lt,__tla as Qt}from"./permission-4d24aebd.js";import{u as Wt,__tla as Xt}from"./useMessage-d5cbbfad.js";import{T as Yt,a as Zt,__tla as jt}from"./index-87951f55.js";import{_ as zt}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Gt}from"./el-card-0ea446a3.js";import{__tla as Ht}from"./UploadImgs-bafc3b8f.js";import{__tla as Kt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-e129a17c.js";import{__tla as Ot}from"./el-image-viewer-2e77a3e7.js";import"./tree-fd3a041e.js";import{__tla as $t}from"./category-3fc66a6d.js";import{__tla as tr}from"./brand-90ae5930.js";import{__tla as rr}from"./formRules-08c9aa65.js";import{__tla as ar}from"./style.css_vue_type_style_index_0_src_true_lang-0456a07b.js";import{__tla as er}from"./index-a5b4bb1c.js";import{__tla as lr}from"./SkuList.vue_vue_type_script_setup_true_lang-d84a8045.js";import{__tla as or}from"./el-image-2dadd73e.js";import{__tla as cr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-7f19656e.js";import{__tla as ir}from"./index-ab25a150.js";import{__tla as sr}from"./UploadImg-4d05829d.js";import{__tla as _r}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-86429bd4.js";import{__tla as mr}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-ebacb462.js";import{__tla as nr}from"./el-text-e6b9efbd.js";import{__tla as pr}from"./property-9b7f233c.js";import{__tla as ur}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-4a5d93b7.js";import{__tla as dr}from"./Dialog-f354f369.js";import{__tla as yr}from"./index-7975ae58.js";import{__tla as fr}from"./dict-0e53af99.js";import"./constants-c811e5ff.js";import{__tla as hr}from"./index-6451d5a2.js";import{__tla as Pr}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{__tla as vr}from"./index-95ad39b3.js";import{__tla as kr}from"./index-95f2e02a.js";import{__tla as gr}from"./formatTime-8985a9d0.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 Jt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Ot}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(),J=c(),L=c(),Q=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,H=mt,K=nt,O=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:J,"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:L,"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:Q,"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(Lt)(["product:spu-apply:update"])?(y(),M("div",N,[e((y(),g(O,{ref:"formRef","label-width":"80px",style:{display:"flex"},model:t(s)},{default:u(()=>[a(K,{label:"\u5BA1\u6838\u610F\u89C1",prop:"checkComment",style:{border:"none",width:"100%"}},{default:u(()=>[a(H,{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};
|