gaoluyang
4 天以前 e4994fccfb49ebfb108ba62cbd82aea4e004f6d8
src/views/wls/returnsales/data.ts
@@ -16,7 +16,7 @@
import CrmCustomerSelect from '#/components/crm-customer-select.vue';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { ErpSaleOrderSelect } from '#/views/erp/sale/order/components';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
import { WmBatchSelect } from '#/views/wls/batch/components';
import {
  WmWarehouseAreaSelect,
@@ -354,7 +354,7 @@
    {
      fieldName: 'itemId',
      label: '物料',
      component: hasItems ? 'Select' : markRaw(MdItemSelect),
      component: hasItems ? 'Select' : markRaw(MdmItemSelect),
      componentProps: hasItems
        ? {
            placeholder: '请选择物料',
@@ -362,6 +362,7 @@
              label: `${item.productName || ''}(${item.productBarCode || ''})`,
              value: item.productId,
            })),
            showSearch: true,
            onChange: (value: number | undefined) => {
              const selected = items.find((i) => i.productId === value);
              onItemChange?.(selected);
@@ -369,7 +370,6 @@
          }
        : {
            placeholder: '请选择物料',
            productIds: [],
          },
      rules: 'selectRequired',
    },
@@ -498,7 +498,7 @@
    {
      fieldName: 'itemId',
      label: '物料',
      component: markRaw(MdItemSelect),
      component: markRaw(MdmItemSelect),
      componentProps: {
        disabled: true,
      },