|
|
@@ -7,9 +7,18 @@ import {
|
|
|
BRType,
|
|
|
} from './base';
|
|
|
import { IBookmark } from './bill';
|
|
|
-import { GljType, MaterialType } from './glj';
|
|
|
+import { GljType, ICptGlj, IStdGlj, MaterialType } from './glj';
|
|
|
import { IQuantityDetail } from './quantityDetail';
|
|
|
|
|
|
+// 标准定额库
|
|
|
+export interface IStdRationLib {
|
|
|
+ dispName: string;
|
|
|
+ compilationId: string;
|
|
|
+ compilationName: string;
|
|
|
+ gljLib: number;
|
|
|
+ ID: number;
|
|
|
+}
|
|
|
+
|
|
|
export interface IStdRationChapter {
|
|
|
rationRepId: number; // 标准库的属性
|
|
|
ID: string; // 补充库的直接用新结构,所以有两种类型
|
|
|
@@ -176,40 +185,6 @@ export interface ICptRation extends IBaseRation {
|
|
|
chapter?: ICptRationChapter;
|
|
|
}
|
|
|
|
|
|
-export interface IStdComponent {
|
|
|
- ID: number;
|
|
|
- consumeAmt: number;
|
|
|
- consumeAmtProperty: any; // 多消耗量的情况
|
|
|
-}
|
|
|
-export interface ICptComponent {
|
|
|
- ID: string; // 补充的ID改成了UUID ,标准的不变,但是这里
|
|
|
- consumeAmt: number;
|
|
|
- consumeAmtProperty: any; // 多消耗量的情况
|
|
|
- from: fromType;
|
|
|
-}
|
|
|
-
|
|
|
-export interface IBaseRationGlj {
|
|
|
- code: string;
|
|
|
- name: string;
|
|
|
- specs?: string;
|
|
|
- basePrice: number;
|
|
|
- priceProperty: any; // 多单价的情况
|
|
|
- gljClass: number;
|
|
|
- type: number; // 这个要和项目工料机等统一,所以在查找项目工料机的时候转一下,
|
|
|
- gljType: number;
|
|
|
- model: number; // 机型
|
|
|
- shortName: string;
|
|
|
- unit: string;
|
|
|
- adjCoe: number;
|
|
|
- materialType: MaterialType; // 三材类别
|
|
|
- materialCoe: number; // 三材系数
|
|
|
- // 经济指标数据
|
|
|
- materialIndexType: string; // 工料指标类别
|
|
|
- materialIndexUnit: string; // 工料指标单位
|
|
|
- materialIndexCoe: number; // 单位转换系数
|
|
|
- taxRate: string; // 税率
|
|
|
-}
|
|
|
-
|
|
|
// 保存到项目下的定额工料机
|
|
|
export interface IRationGlj {
|
|
|
ID: string;
|
|
|
@@ -234,19 +209,6 @@ export interface IRationGlj {
|
|
|
from: fromType; // std, cpt 来自标准工料机库、补充工料机库
|
|
|
}
|
|
|
|
|
|
-export interface IStdRationGlj extends IBaseRationGlj {
|
|
|
- ID: number;
|
|
|
- repositoryId: number;
|
|
|
- components: IStdComponent[];
|
|
|
-}
|
|
|
-
|
|
|
-export interface ICptRationGlj extends IBaseRationGlj {
|
|
|
- ID: string;
|
|
|
- userID: string;
|
|
|
- compilationID: string;
|
|
|
- components: ICptComponent[];
|
|
|
-}
|
|
|
-
|
|
|
export interface IGljQtyCoe {
|
|
|
labour: number; // 人工
|
|
|
material: number; // 材料
|
|
|
@@ -369,7 +331,7 @@ export interface IRations {
|
|
|
|
|
|
export interface IStdRationsAndGljs {
|
|
|
rations: (IStdRation | ICptRation)[];
|
|
|
- rationGljs: (IStdRationGlj | ICptRationGlj)[];
|
|
|
+ rationGljs: (IStdGlj | ICptGlj)[];
|
|
|
}
|
|
|
|
|
|
export enum RationListType {
|