import{J as s}from"./vue.1703796278973.js";import{d as r,f as i}from"./product.17037962789737.js";import{e as a}from"./encodeQuery.1703796278973.js";const n=s({id:"product",state:()=>({current:{},detail:{},tabActiveKey:"Info"}),actions:{setCurrent(t){this.current=t,this.detail=t},async getDetail(t){const e=await r(t);e.status===200&&(this.current={...this.current,...e.result},this.detail=e.result)},async refresh(t){await this.getDetail(t);const e=await i(a({terms:{productId:t}}));e.status===200&&(this.current.count=e.result)},setTabActiveKey(t){this.tabActiveKey=t},reSet(){this.current={},this.detail={}}}});export{n as u};