xiaoyi
3 天以前 1eba515718ec0420b8e6f3353c12179539d4c8b1
src/views/wls/productissue/data.ts
@@ -11,8 +11,8 @@
  DICT_TYPE,
  MesAutoCodeRuleCode,
  MesProWorkOrderStatusEnum,
} from '../../../packages/constants/src';
import { getDictOptions } from '../../../packages/effects/hooks/src';
} from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { Button } from 'ant-design-vue';
@@ -93,6 +93,19 @@
      rules: 'required',
    },
    {
      fieldName: 'issueType',
      label: '单据类型',
      component: 'Select',
      componentProps: {
        options: getDictOptions(DICT_TYPE.MES_WM_PRODUCT_ISSUE_TYPE, 'number'),
        placeholder: '请选择单据类型',
      },
      dependencies: {
        triggerFields: ['status'],
        show: (values) => values.status === undefined || values.status === 0,
      },
    },
    {
      fieldName: 'requiredTime',
      label: '需求时间',
      component: 'DatePicker',
@@ -101,7 +114,7 @@
        format: 'YYYY-MM-DD HH:mm:ss',
        placeholder: '请选择需求时间',
        showTime: true,
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
      rules: 'required',
    },
@@ -194,6 +207,15 @@
      field: 'name',
      title: '领料单名称',
      minWidth: 150,
    },
    {
      field: 'issueType',
      title: '单据类型',
      width: 100,
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.MES_WM_PRODUCT_ISSUE_TYPE },
      },
    },
    {
      field: 'workOrderCode',
@@ -399,7 +421,7 @@
      dependencies: {
        triggerFields: ['itemId'],
        componentProps: (values) => ({
          itemId: values.itemId,
          mdmItemId: values.itemId,
        }),
      },
    },