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