Explorar o código

feat(types): 修改类型

zhangweicheng %!s(int64=5) %!d(string=hai) anos
pai
achega
1c8fc0851b

+ 1 - 1
types/package.json

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

+ 1 - 0
types/src/interface/base.ts

@@ -16,6 +16,7 @@ export interface IFileRef {
 export interface INumFileRef {
 export interface INumFileRef {
   ID: number;
   ID: number;
   name: string;
   name: string;
+  isDefault?: boolean;
 }
 }
 
 
 export enum DeleteEnum {
 export enum DeleteEnum {

+ 3 - 4
types/src/interface/ration.ts

@@ -255,7 +255,7 @@ export interface IProjectGlj {
 
 
 export interface IProjectGljs {
 export interface IProjectGljs {
   projectID: string;
   projectID: string;
-  projectGLJs: IProjectGlj[];
+  projectGljs: IProjectGlj[];
 }
 }
 
 
 export interface IStdRationGlj extends IBaseRationGlj {
 export interface IStdRationGlj extends IBaseRationGlj {
@@ -346,7 +346,6 @@ export interface IRation {
   maskName?: string;
   maskName?: string;
   caption?: string;
   caption?: string;
   evaluationProject?: boolean; // { type: boolean; default: false }; // 1 true 0 false 估价项目
   evaluationProject?: boolean; // { type: boolean; default: false }; // 1 true 0 false 估价项目
-  isFromDetail: boolean; // { type: boolean; default: false }; // 1 true 0 false
   adjustState?: string;
   adjustState?: string;
   comments?: string; // 说明
   comments?: string; // 说明
   content?: string; // 工作内容
   content?: string; // 工作内容
@@ -374,9 +373,9 @@ export interface IRation {
   rationGljList?: IRationGlj[]; // 定额工料机
   rationGljList?: IRationGlj[]; // 定额工料机
   rationAssList?: IRationAss[]; // 辅助定额
   rationAssList?: IRationAss[]; // 辅助定额
   quantityDetails?: any; // 工程量明细 -- 原先保存在另外的表中
   quantityDetails?: any; // 工程量明细 -- 原先保存在另外的表中
-  rationCoeList: IRationCoe[]; // 定额调整系数
+  rationCoeList?: IRationCoe[]; // 定额调整系数
   rationTemplate?: IRationTemplate; // 定额模板
   rationTemplate?: IRationTemplate; // 定额模板
-  rationInstallList: IRationInstall[]; // 定额安装增加
+  rationInstallList?: IRationInstall[]; // 定额安装增加
 }
 }
 
 
 export interface IRations {
 export interface IRations {

+ 1 - 1
types/src/interface/unitPrice.ts

@@ -21,7 +21,7 @@ export interface IUnitPrice {
   code: string; // 编码
   code: string; // 编码
   originalCode: string; // 原始的编码
   originalCode: string; // 原始的编码
   name: string; // 名称
   name: string; // 名称
-  specs?: string; // 规格型号
+  specs: string; // 规格型号
   unit: string; // 单位
   unit: string; // 单位
   model?: number; // 机型
   model?: number; // 机型
   type: number; // 类型
   type: number; // 类型