2 天以前 1c1af9b0fc10778ae5ac13cc68fd4030affbcfe1
src/views/wls/stocktaking/task/data.ts
@@ -11,8 +11,8 @@
  DICT_TYPE,
  MesAutoCodeRuleCode,
  WlsStockTakingTypeEnum,
} 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';
@@ -29,13 +29,11 @@
} from '#/views/wls/warehouse/components';
/** 表单类型 */
export type FormType = 'create' | 'detail' | 'execute' | 'submit' | 'update';
export type FormType = 'create' | 'detail' | 'submit' | 'update';
/** 表单头部是否只读(提交、执行盘点、详情态) */
/** 表单头部是否只读(提交、详情态) */
function isHeaderReadonly(formType: FormType): boolean {
  return (
    formType === 'detail' || formType === 'execute' || formType === 'submit'
  );
  return formType === 'detail' || formType === 'submit';
}
/** 新增/修改的表单 */
@@ -134,7 +132,7 @@
      componentProps: {
        placeholder: '请选择开始时间',
        showTime: true,
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
      dependencies: {
        triggerFields: ['type'],
@@ -148,7 +146,7 @@
      componentProps: {
        placeholder: '请选择结束时间',
        showTime: true,
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
      dependencies: {
        triggerFields: ['type'],