1 |
- import{d as Y,r as c,$ 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,A as g,B as u,C as l,f as a,a2 as ct,v as _,E as I,D as it,F as st,Q as _t,aA as f,aB as h,a8 as mt,V as nt,W as pt,K as ut,Z as dt,M as yt,N as ft,__tla as ht}from"./index-e8bff8cb.js";import{_ as vt,__tla as Pt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{__tla as kt}from"./index-6cb4a29b.js";import{g as gt,a as A,__tla as bt}from"./spu-0f678412.js";import wt,{__tla as Bt}from"./InfoForm-d0808f51.js";import Ft,{__tla as Dt}from"./DescriptionForm-69f7c296.js";import It,{__tla as St}from"./OtherForm-a6d6dc29.js";import Tt,{__tla as Ct}from"./SkuForm-7002725f.js";import Nt,{__tla as Et}from"./DeliveryForm-46c4db2a.js";import xt,{__tla as Ut}from"./Service-537dd4ee.js";import{A as Rt,__tla as Mt}from"./AfterSale-ca4a39ce.js";import At,{__tla as Vt}from"./Apply-3b90570b.js";import Wt,{__tla as qt}from"./Comment-76a27203.js";import{c as zt,__tla as Jt}from"./permission-e1298f0a.js";import{u as Kt,__tla as Qt}from"./useMessage-de42a595.js";import{T as Zt,a as $t,__tla as jt}from"./index-212b6b5d.js";import{_ as Gt}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ht}from"./el-card-f9558d99.js";import{__tla as Lt}from"./UploadImgs-2ffc4b6b.js";import{__tla as Ot}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-5af276cc.js";import{__tla as Xt}from"./el-image-viewer-aab7739e.js";import"./tree-0af4953a.js";import{__tla as Yt}from"./category-fea8d45b.js";import{__tla as tr}from"./brand-bcf9728d.js";import{__tla as rr}from"./formRules-b7b841a2.js";import{__tla as ar}from"./style.css_vue_type_style_index_0_src_true_lang-d66aa64c.js";import{__tla as er}from"./index-cbfccc07.js";import{__tla as lr}from"./SkuList.vue_vue_type_script_setup_true_lang-6d3227ca.js";import{__tla as or}from"./el-image-7cacfc0f.js";import{__tla as cr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-1394f284.js";import{__tla as ir}from"./index-32ca9885.js";import{__tla as sr}from"./UploadImg-7600c145.js";import{__tla as _r}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-1f83414f.js";import{__tla as mr}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-5a5fedca.js";import{__tla as nr}from"./el-text-f88c4dda.js";import{__tla as pr}from"./property-4843ac8f.js";import{__tla as ur}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-dfa7cc0f.js";import{__tla as dr}from"./Dialog-4d17ac25.js";import{__tla as yr}from"./index-11215d04.js";import{__tla as fr}from"./dict-4a54e490.js";import"./constants-c811e5ff.js";import{__tla as hr}from"./index-5d2c0183.js";import{__tla as vr}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{__tla as Pr}from"./index-35928fe5.js";import{__tla as kr}from"./index-dc2d6a93.js";import{__tla as gr}from"./formatTime-4fdd5566.js";let V,br=Promise.all([(()=>{try{return ht}catch{}})(),(()=>{try{return Pt}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 Et}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Xt}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 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 vr}catch{}})(),(()=>{try{return Pr}catch{}})(),(()=>{try{return kr}catch{}})(),(()=>{try{return gr}catch{}})()]).then(async()=>{let S,T,C,N,E;S={class:"top",style:{position:"relative",overflow:"hidden"}},T={class:"bottom"},C=(v=>(yt("data-v-8d0a6f9e"),v=v(),ft(),v))(()=>l("div",{style:{clear:"both"}},null,-1)),N={key:0,class:"bottom-button"},E={class:"flex"},V=Gt(Y({name:"ProductSpuForm",__name:"MobileIndex",setup(v){const{t:x}=_t(),d=c(!1),o=c("info"),m=c(!0),W=c(),q=c(),z=c(),J=c(),K=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}),P=Kt(),b=tt(),{push:Q}=rt(),k=c(Number(b.params.id)),Z=c(Number(b.params.applyMemberUserId)),$=c(Number(b.params.checkStatus)),n=at({id:"",checkComment:"",checkStatus:0,applyMemberUserId:0}),w=()=>{Q({name:"ProductSpu"})},j=async()=>{n.checkStatus=2;try{await P.confirm("\u62D2\u7EDD\u7533\u8BF7?"),await A(n).then(()=>{P.success(x("common.success")),w()})}catch{}},G=async()=>{n.checkStatus=1;try{await P.confirm("\u540C\u610F\u7533\u8BF7?"),await A(n).then(()=>{P.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=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)"}),(B,p)=>{const i=Zt,r=$t,H=vt,L=mt,O=nt,X=pt,F=ut,U=dt,R=ot("hasPermi");return y(),M(st,null,[e((y(),g(H,{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:W,"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:q,"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:z,"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:J,"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:K,"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(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})),[[U,t(d)]]),!t($)&&t(zt)(["product:spu-apply:update"])?(y(),M("div",N,[e((y(),g(X,{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(L,{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",E,[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:G},{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};
|