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)
| | |
| | | |
| | | 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 = { |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '不合格物料', |
| | | component: markRaw(MdItemSelect), |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | placeholder: '请选择不合格物料', |
| | | }, |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '不合格物料', |
| | | component: markRaw(MdItemSelect), |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | placeholder: '请选择物料', |
| | | }, |