Ver código fonte

feat(types): 添加ActionName

zhangweicheng 5 anos atrás
pai
commit
b53080d87e
2 arquivos alterados com 4 adições e 3 exclusões
  1. 2 1
      types/src/interface/base.ts
  2. 2 2
      types/src/interface/ration.ts

+ 2 - 1
types/src/interface/base.ts

@@ -152,7 +152,8 @@ export enum ActionName {
   addStdRations = 'addStdRations', // 添加标准定额
   resetColMetas = 'resetColMetas', // 重置默认列设置
   updateIndexKey = 'updateIndexKey', // 修改定额工料机的名称,规格,单位
-  addRationGljs = 'addRationGljs', // 添加定额工料机
+  addRationGljs = 'addRationGljs', // 添加定额工料机(多个)
+  replaceRationGlj = 'replaceRationGlj', // 替换定额工料机(单个)
 }
 
 export interface IBaseFilter {

+ 2 - 2
types/src/interface/ration.ts

@@ -217,8 +217,8 @@ export interface IRationGlj {
   repositoryID?: number;
   name: string;
   code: string;
-  originalCode: string; // 原始的编码
-  beforeReplaceCode?: string; // 替换工料机后记录原来的工料机编码,要做判断
+  originalCode: string; // 原始的编码 不带 “-”的
+  beforeReplaceCode?: string; // 替换工料机后记录原来的工料机编码,要做判断 有可能带“-”
   specs?: string;
   unit: string;
   type: GljType;