MobileIndex-9ed3f696.js 9.4 KB

1
  1. import{d as O,r as c,$ as X,u as Y,x as tt,b as rt,s as at,a4 as et,o as y,c as M,k as e,a as t,C as g,A as u,B as l,f as a,a2 as lt,v as _,D,a3 as ot,F as it,P as ct,aB as f,aC as h,a9 as st,V as _t,W as mt,J as nt,Z as pt,L as ut,M as dt,_ as yt,__tla as ft}from"./index-f6fb8e95.js";import{_ as ht,__tla as vt}from"./ContentWrap-96bb70ec.js";import{__tla as Pt}from"./index-ba345db4.js";import{g as kt,a as R,__tla as gt}from"./spu-a7f31871.js";import bt,{__tla as wt}from"./InfoForm-854f4ded.js";import Bt,{__tla as Ft}from"./DescriptionForm-53896f4d.js";import Dt,{__tla as It}from"./OtherForm-f2af2890.js";import Ct,{__tla as St}from"./SkuForm-31cd50f4.js";import Tt,{__tla as xt}from"./DeliveryForm-4a16b5fa.js";import Nt,{__tla as Et}from"./Service-c3f4917f.js";import{A as Ut,__tla as Mt}from"./AfterSale-bb603685.js";import Rt,{__tla as Vt}from"./Apply-db2834c8.js";import At,{__tla as zt}from"./Comment-89ff6a3c.js";import{c as Wt,__tla as qt}from"./permission-f83c775b.js";import{u as Jt,__tla as Lt}from"./useMessage-3b767a67.js";import{T as Qt,a as Zt,__tla as $t}from"./index-6385cdcd.js";import{__tla as jt}from"./el-card-8db16709.js";import{__tla as Gt}from"./UploadImgs-52ac4257.js";import{__tla as Ht}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-1b59ad7e.js";import{__tla as Kt}from"./el-image-viewer-cfdb08a7.js";import"./tree-0af4953a.js";import{__tla as Ot}from"./category-4baa8823.js";import{__tla as Xt}from"./brand-ad379847.js";import{__tla as Yt}from"./formRules-e7596da3.js";import{__tla as tr}from"./Editor-87b5f27a.js";import{__tla as rr}from"./index-8bf65b8f.js";import{__tla as ar}from"./SkuList-d402df2e.js";import{__tla as er}from"./el-image-fefb4b54.js";import{__tla as lr}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8b438c45.js";import{__tla as or}from"./index-b76b57e5.js";import{__tla as ir}from"./UploadImg-76a51b31.js";import{__tla as cr}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3d49d983.js";import{__tla as sr}from"./ProductAttributes-56aad337.js";import{__tla as _r}from"./el-text-0047659b.js";import{__tla as mr}from"./property-40d7be25.js";import{__tla as nr}from"./ProductPropertyAddForm-b3029d18.js";import{__tla as pr}from"./Dialog-ac2b0e4e.js";import{__tla as ur}from"./index-aac71c4d.js";import{__tla as dr}from"./dict-c9a7f6a4.js";import"./constants-c811e5ff.js";import{__tla as yr}from"./index-fb236505.js";import{__tla as fr}from"./index-58a94653.js";import{__tla as hr}from"./index-07a2f7ed.js";import{__tla as vr}from"./index-74af911b.js";import{__tla as Pr}from"./formatTime-ddd96ac8.js";let V,kr=Promise.all([(()=>{try{return ft}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return St}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 $t}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Kt}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 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{}})()]).then(async()=>{let I,C,S,T;I={class:"top",style:{position:"relative",overflow:"hidden"}},C={class:"bottom"},S=(v=>(ut("data-v-d9db1195"),v=v(),dt(),v))(()=>l("div",{style:{clear:"both"}},null,-1)),T={key:0,class:"bottom-button"},V=yt(O({name:"ProductSpuForm",__name:"MobileIndex",setup(v){const{t:x}=ct(),d=c(!1),o=c("info"),m=c(!0),A=c(),z=c(),W=c(),q=c(),J=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=Jt(),N=X(),{push:L}=Y(),k=c(Number(N.params.id)),Q=c(Number(N.params.applyMemberUserId)),n=tt({id:"",checkComment:"",checkStatus:0,applyMemberUserId:0}),b=()=>{L({name:"ProductSpu"})},Z=async()=>{n.checkStatus=2;try{await P.confirm("\u62D2\u7EDD\u7533\u8BF7?"),await R(n).then(()=>{P.success(x("common.success")),b()})}catch{}},$=async()=>{n.checkStatus=1;try{await P.confirm("\u540C\u610F\u7533\u8BF7?"),await R(n).then(()=>{P.success(x("common.success")),b()})}catch{}};return rt(()=>{(async()=>{var p;const w=k.value;if(w){d.value=!0;try{const i=await kt(w);(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=Q,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"}),at(()=>{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 i=Qt,r=Zt,j=ht,G=st,H=_t,K=mt,B=nt,E=pt,U=et("hasPermi");return y(),M(it,null,[e((y(),g(j,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:u(()=>[l("div",I,[a(r,{active:t(o),"onUpdate:active":p[0]||(p[0]=F=>lt(o)?o.value=F: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",C,[e(l("div",null,[a(bt,{ref_key:"infoRef",ref:A,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="info"]]),e(l("div",null,[a(Ct,{ref_key:"skuRef",ref:z,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="sku"]]),e(l("div",null,[a(Tt,{ref_key:"deliveryRef",ref:W,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="delivery"]]),e(l("div",null,[a(Bt,{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(Dt,{ref_key:"otherRef",ref:J,"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="other"]]),e(l("div",null,[a(At,{"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="comment"]]),e(l("div",null,[a(Nt,{"is-detail":t(m),propFormData:t(s)},null,8,["is-detail","propFormData"])],512),[[_,t(o)=="service"]]),e(l("div",null,[a(Ut,{productId:t(k),openSource:"Spu"},null,8,["productId"])],512),[[_,t(o)=="aftersale"]]),e(l("div",null,[a(Rt,{productId:t(k),propFormData:t(s)},null,8,["productId","propFormData"])],512),[[_,t(o)=="apply"]])]),S]),_:1})),[[E,t(d)]]),t(Wt)(["product:spu-apply:update"])?(y(),M("div",T,[e((y(),g(K,{ref:"formRef","label-width":"80px",style:{display:"flex"},model:t(s)},{default:u(()=>[a(H,{label:"\u5BA1\u6838\u610F\u89C1",prop:"checkComment",style:{border:"none",width:"100%"}},{default:u(()=>[a(G,{modelValue:t(n).checkComment,"onUpdate:modelValue":p[1]||(p[1]=F=>t(n).checkComment=F),placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[E,t(d)]]),l("div",null,[a(B,{onClick:b,class:"w-31"},{default:u(()=>[D("\u8FD4 \u56DE")]),_:1}),e((y(),g(B,{disabled:t(d),class:"w-31",type:"danger",onClick:Z},{default:u(()=>[D("\u62D2\u7EDD")]),_:1},8,["disabled"])),[[U,["product:spu-apply:update"]]]),e((y(),g(B,{disabled:t(d),class:"w-31",type:"primary",onClick:$},{default:u(()=>[D("\u540C\u610F")]),_:1},8,["disabled"])),[[U,["product:spu-apply:update"]]])])])):ot("",!0)],64)}}}),[["__scopeId","data-v-d9db1195"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/MobileIndex.vue"]])});export{kr as __tla,V as default};