多设备协同盘点需要前端明确知道「在盘哪个公司」: - userStore 从 JWT claim company_name 解出 companyName 并暴露,登录、 刷新 token、登出时同步维护。后端 get_current_company_filter() 读的 也是这个 claim,两侧口径一致。 - 新增 getStocktakeCompanies(),对应盘点页的公司下拉接口。 - 盘点 API 增加公司维度:scanStockByBarcode 加可选 company; getDraftMergedList / getAllStocktakeItems 加 company_name; updateStocktakeQuantity 加第二个参数。 公司标识一律走 query string 而非 body:后端 get_current_company_filter() 只读 request.args,POST 请求 body 里的 company_name 会被直接忽略。
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.