云
8 天以前 0517176cf1c439d04be39a2313cf114ffc3ae080
src/views/wls/packages/data.ts
@@ -8,17 +8,14 @@
import {
  DICT_TYPE,
  MesAutoCodeRuleCode,
  MesProWorkOrderStatusEnum,
} from '@vben/constants';
import { Button } from 'ant-design-vue';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { getSimpleUserList } from '#/api/system/user';
import { MdClientSelect } from '#/views/mes/md/client/components';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdUnitMeasureSelect } from '#/views/mes/md/unitmeasure/components';
import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
/** 表单类型 */
export type FormType = 'create' | 'detail' | 'update';
@@ -78,7 +75,7 @@
      componentProps: {
        format: 'YYYY-MM-DD',
        placeholder: '请选择装箱日期',
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD',
      },
      rules: 'required',
    },
@@ -111,11 +108,11 @@
      },
    },
    {
      fieldName: 'clientId',
      fieldName: 'clientName',
      label: '客户',
      component: markRaw(MdClientSelect),
      component: 'Input',
      componentProps: {
        placeholder: '请选择客户',
        placeholder: '请输入客户名称',
      },
    },
    {
@@ -224,11 +221,12 @@
      },
    },
    {
      fieldName: 'clientId',
      fieldName: 'clientName',
      label: '客户',
      component: markRaw(MdClientSelect),
      component: 'Input',
      componentProps: {
        placeholder: '请选择客户',
        allowClear: true,
        placeholder: '请输入客户名称',
      },
    },
    {
@@ -418,14 +416,12 @@
export function useLineFormSchema(): VbenFormSchema[] {
  return [
    {
      fieldName: 'workOrderId',
      label: '生产订单',
      component: markRaw(ProWorkOrderSelect),
      fieldName: 'workOrderCode',
      label: '生产订单号',
      component: 'Input',
      componentProps: {
        placeholder: '请选择生产订单',
        status: MesProWorkOrderStatusEnum.CONFIRMED,
        placeholder: '请输入生产订单号',
      },
      rules: 'selectRequired',
    },
    {
      fieldName: 'itemId',
@@ -455,7 +451,7 @@
      componentProps: {
        format: 'YYYY-MM-DD',
        placeholder: '请选择有效期',
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD',
      },
    },
    {
@@ -546,11 +542,12 @@
      },
    },
    {
      fieldName: 'clientId',
      fieldName: 'clientName',
      label: '客户',
      component: markRaw(MdClientSelect),
      component: 'Input',
      componentProps: {
        placeholder: '请选择客户',
        allowClear: true,
        placeholder: '请输入客户名称',
      },
    },
    {