소스 검색

feat(types): 修改定额属性

zhangweicheng 5 년 전
부모
커밋
14e18277f7
2개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      types/package.json
  2. 11 0
      types/src/interface/ration.ts

+ 1 - 1
types/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@sc/types",
   "name": "@sc/types",
-  "version": "1.0.5",
+  "version": "1.0.6",
   "description": "共用类型文件",
   "description": "共用类型文件",
   "main": "./dist/index.cjs.js",
   "main": "./dist/index.cjs.js",
   "module": "./dist/index.esm.js",
   "module": "./dist/index.esm.js",

+ 11 - 0
types/src/interface/ration.ts

@@ -171,6 +171,15 @@ export interface ICptComponent {
   from: fromType;
   from: fromType;
 }
 }
 
 
+export interface IBaseGlj {
+  code: string;
+  name: string;
+  specs?: string;
+  type: number;
+  unit: string;
+  [key: string]: any;
+}
+
 export interface IBaseRationGlj {
 export interface IBaseRationGlj {
   code: string;
   code: string;
   name: string;
   name: string;
@@ -211,6 +220,8 @@ export interface IRationGlj {
   customQuantity?: number;
   customQuantity?: number;
   rationQuantity?: number;
   rationQuantity?: number;
   tenderQuantity?: number; // 调整后消耗量
   tenderQuantity?: number; // 调整后消耗量
+  marketPrice?: number; // 市场价 - 不保存至数据库
+  basePrice?: number; // 定额价 - 不保存至数据库
   createType: gljCreateType; // normal、add、replace  正常、添加工料机、替换工料机
   createType: gljCreateType; // normal、add、replace  正常、添加工料机、替换工料机
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
 }
 }