Просмотр исходного кода

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/SCCommon

qinlaiqiao 5 лет назад
Родитель
Сommit
763abe85ed
3 измененных файлов с 13 добавлено и 7 удалено
  1. 1 1
      types/package.json
  2. 9 3
      types/src/interface/option.ts
  3. 3 3
      types/src/interface/project.ts

+ 1 - 1
types/package.json

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

+ 9 - 3
types/src/interface/option.ts

@@ -1,8 +1,14 @@
 // 系统选项
 // 系统选项
-export interface IOptions {
+
+// 工程量相关选项
+export interface IQtyOption {
+  rationQtyFromBillQty: boolean; // 自动根据清单工程量填写定额工程量
+  rationQtyFromRationUnit: boolean; // 自动根据定额单位转换定额工程量
+}
+
+export interface IOption {
   ID: string;
   ID: string;
   userID: string;
   userID: string;
   compilationID: string;
   compilationID: string;
-  rationQtyFromBillQty: boolean; // 自动根据清单工程量填写定额工程量
-  rationQtyFromRationUnit: boolean; // 自动根据定额单位转换定额工程量
+  qtyOption: IQtyOption;
 }
 }

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

@@ -23,9 +23,9 @@ export interface IGLJCol {
 
 
 // 小数位数
 // 小数位数
 export interface IDecimal {
 export interface IDecimal {
-  bills: { unitFee: number; totalFee: number };
-  ration: { quantity: number; unitFee: number; totalFee: number };
-  glj: { quantity: number; unitPriceHasMix: number; unitFee: number };
+  bills: { unitPrice: number; totalPrice: number };
+  ration: { quantity: number; unitPrice: number; totalPrice: number };
+  glj: { quantity: number; unitPriceHasMix: number; unitPrice: number };
   feeRate: number;
   feeRate: number;
   quantityDetail: number;
   quantityDetail: number;
   material: number; // 三材系数
   material: number; // 三材系数