list.vue 与 buyOdoo.vue 同步改造。这两个文件是手工维护的副本、不是共享组件, 改动必须两边都做 —— 本项目已多次因只改单边导致同一 bug 在另一页长期存活 (参考价格脏检查、表单禁用守卫、发起采购申请按钮等都曾漏同步)。 改动: - 移除「标记已采购」按钮、handleMarkOrdered 函数与 markWarningOrdered 引用 - 操作列改为只读 el-tag「采购在途」,由后端 isPurchasing 派生 - 预警状态列降级:缺货但已有在途采购单时显示蓝色「缺货(已采购)」而非红/黄 ★ 降级只改前端展示,后端 warningStatus 原样保留 —— 预警强排 (enableWarningSort 的 order_by case())依赖它,改后端会连带影响排序。 ★ 顺带修掉一个历史问题:前端 `scope.row.warningOrdered` 这个字段后端从未输出过 (后端只给 isOrdered,且列表接口根本没查这一列),所以那个 disabled 的 「采购在途」按钮从来不会显示,用户标记后永远看不到已标记状态。
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.