gaoluyang
21 小时以前 a5a963be7707fa32b7442e88a07c88b69b00286a
fix(mes/qc): 不合格品处理单的不合格物料改查 MDM 物料

万通没有生产模块,mes_md_item 是空的,选物料时弹框没数据;后端 NCR
的 validateItemExists 本来就拿 mdmItemApi 校验 itemId,所以只需要前端
把 MdItemSelect 换成 MdmItemSelect(/mdm/item/page 需要 mdm:item:query,
万通各角色都有)。

Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit e4994fccfb49ebfb108ba62cbd82aea4e004f6d8)
已修改1个文件
6 ■■■■■ 文件已修改
src/views/mes/qc/ncr/data.ts 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/ncr/data.ts
@@ -11,7 +11,7 @@
import { getSimpleUserList } from '#/api/system/user';
import { DeptTreeSelect } from '#/views/system/dept/components';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
/** NCR 状态枚举 */
export const NCR_STATUS = {
@@ -110,7 +110,7 @@
    {
      fieldName: 'itemId',
      label: '不合格物料',
      component: markRaw(MdItemSelect),
      component: markRaw(MdmItemSelect),
      componentProps: {
        placeholder: '请选择不合格物料',
      },
@@ -320,7 +320,7 @@
    {
      fieldName: 'itemId',
      label: '不合格物料',
      component: markRaw(MdItemSelect),
      component: markRaw(MdmItemSelect),
      componentProps: {
        placeholder: '请选择物料',
      },