Pārlūkot izejas kodu

feat(types): 添加ActionName

zhangweicheng 5 gadi atpakaļ
vecāks
revīzija
b53080d87e
2 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  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', // 添加标准定额
   addStdRations = 'addStdRations', // 添加标准定额
   resetColMetas = 'resetColMetas', // 重置默认列设置
   resetColMetas = 'resetColMetas', // 重置默认列设置
   updateIndexKey = 'updateIndexKey', // 修改定额工料机的名称,规格,单位
   updateIndexKey = 'updateIndexKey', // 修改定额工料机的名称,规格,单位
-  addRationGljs = 'addRationGljs', // 添加定额工料机
+  addRationGljs = 'addRationGljs', // 添加定额工料机(多个)
+  replaceRationGlj = 'replaceRationGlj', // 替换定额工料机(单个)
 }
 }
 
 
 export interface IBaseFilter {
 export interface IBaseFilter {

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

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