1 |
- import{d as D,ai as I,b as F,e as O,r as c,g as x,O as C,o as S,k as U,w as o,a,a1 as j,J as k,i as r,aU as z,aW as N,I as P,_ as B,__tla as J}from"./index-66208f93.js";import{u as M,__tla as R}from"./useMessage-798a77de.js";import{r as n,__tla as W}from"./formRules-f0247544.js";let _,q=Promise.all([(()=>{try{return J}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{_=B(D({name:"ProductOtherForm",__name:"OtherForm",props:{propFormData:{type:Object,default:()=>{}},isDetail:I.bool.def(!1)},emits:["update:activeName"],setup(i,{expose:v,emit:f}){const h=F(),b=O(()=>h.getMobile),g=M(),p=i,u=c(),e=c({sort:0,giveIntegral:0,virtualSalesCount:0}),w=x({sort:[n],giveIntegral:[n],virtualSalesCount:[n]});C(()=>p.propFormData,t=>{t&&z(e.value,t)},{immediate:!0});const V=f;return v({validate:async()=>{var t;if(u)try{await((t=a(u))==null?void 0:t.validate()),Object.assign(p.propFormData,e.value)}catch(l){throw g.error("\u3010\u5176\u5B83\u8BBE\u7F6E\u3011\u4E0D\u5B8C\u5584\uFF0C\u8BF7\u586B\u5199\u76F8\u5173\u4FE1\u606F"),V("update:activeName","other"),l}}}),(t,l)=>{const d=N,m=P,y=k;return S(),U(y,{ref_key:"formRef",ref:u,model:a(e),rules:a(w),class:j([{view:i.isDetail,"mobile-card":a(b)},"noBorder"]),"label-width":"120px",disabled:i.isDetail},{default:o(()=>[r(m,{label:"\u5546\u54C1\u6392\u5E8F",prop:"sort"},{default:o(()=>[r(d,{modelValue:a(e).sort,"onUpdate:modelValue":l[0]||(l[0]=s=>a(e).sort=s),min:0,placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6392\u5E8F",class:"w-80!"},null,8,["modelValue"])]),_:1}),r(m,{label:"\u8D60\u9001\u79EF\u5206",prop:"giveIntegral"},{default:o(()=>[r(d,{modelValue:a(e).giveIntegral,"onUpdate:modelValue":l[1]||(l[1]=s=>a(e).giveIntegral=s),min:0,placeholder:"\u8BF7\u8F93\u5165\u8D60\u9001\u79EF\u5206",class:"w-80!"},null,8,["modelValue"])]),_:1}),r(m,{label:"\u865A\u62DF\u9500\u91CF",prop:"virtualSalesCount"},{default:o(()=>[r(d,{modelValue:a(e).virtualSalesCount,"onUpdate:modelValue":l[2]||(l[2]=s=>a(e).virtualSalesCount=s),min:0,placeholder:"\u8BF7\u8F93\u5165\u865A\u62DF\u9500\u91CF",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules","class","disabled"])}}}),[["__scopeId","data-v-5c945c3e"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/product/spu/form/OtherForm.vue"]])});export{q as __tla,_ as default};
|