瀏覽代碼

feat(types): 工料机类型

zhangweicheng 5 年之前
父節點
當前提交
bd6112dc0c
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. 3 3
      types/src/interface/glj.ts
  2. 2 1
      types/src/interface/ration.ts

+ 3 - 3
types/src/interface/glj.ts

@@ -37,7 +37,7 @@ export interface IBaseGlj {
   code: string;
   code: string;
   name: string;
   name: string;
   specs?: string;
   specs?: string;
-  type: number;
+  type: GljType;
   unit: string;
   unit: string;
   [key: string]: any;
   [key: string]: any;
 }
 }
@@ -84,7 +84,7 @@ export interface IComponent {
   unit: string; // 单位
   unit: string; // 单位
   name: string; // 名称
   name: string; // 名称
   code: string; // 对应工料机code
   code: string; // 对应工料机code
-  type: number; // 工料机类型
+  type: GljType; // 工料机类型
   model?: number; // 机型
   model?: number; // 机型
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
 }
 }
@@ -104,7 +104,7 @@ export interface IProjectGlj {
   nTaxEqp: boolean; // 不计税设备  { type: boolean; default: false }
   nTaxEqp: boolean; // 不计税设备  { type: boolean; default: false }
   adjCoe?: number; // 调整系数ID
   adjCoe?: number; // 调整系数ID
   specs: string; // 规格型号
   specs: string; // 规格型号
-  type: number; // 类型
+  type: GljType; // 类型
   model?: number; // 机型
   model?: number; // 机型
   unit: string; // 单位
   unit: string; // 单位
   isAdd: boolean; // 是否新增
   isAdd: boolean; // 是否新增

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

@@ -6,6 +6,7 @@ import {
   createLocation,
   createLocation,
   BRType,
   BRType,
 } from './base';
 } from './base';
+import { GljType } from './glj';
 import { IQuantityDetail } from './quantityDetail';
 import { IQuantityDetail } from './quantityDetail';
 
 
 export interface IStdRationChapter {
 export interface IStdRationChapter {
@@ -204,7 +205,7 @@ export interface IRationGlj {
   rcode?: string; // 替换工料机后记录原来的工料机编码,要做判断
   rcode?: string; // 替换工料机后记录原来的工料机编码,要做判断
   specs?: string;
   specs?: string;
   unit: string;
   unit: string;
-  type: number;
+  type: GljType;
   model?: number; // 机型
   model?: number; // 机型
   adjCoe?: number; // 调整系数ID
   adjCoe?: number; // 调整系数ID
   quantity: number;
   quantity: number;