ソースを参照

将生产管理所需的API以及DTO移动到admin/productionManagement中

wyoujia 2 年 前
コミット
18f2ffa984

+ 4 - 209
admin.ui.plus-master/src/api/admin/data-contracts.ts

@@ -758,109 +758,6 @@ export interface DocumentUpdateMenuInput {
   id: number
 }
 
-export interface DynamicFilterInfo {
-  field?: string | null
-  /** Contains=0,StartsWith=1,EndsWith=2,NotContains=3,NotStartsWith=4,NotEndsWith=5,Equal=6,Equals=7,Eq=8,NotEqual=9,GreaterThan=10,GreaterThanOrEqual=11,LessThan=12,LessThanOrEqual=13,Range=14,DateRange=15,Any=16,NotAny=17,Custom=18 */
-  operator?: DynamicFilterOperator
-  value?: any
-  /** And=0,Or=1 */
-  logic?: DynamicFilterLogic
-  filters?: DynamicFilterInfo[] | null
-}
-
-/**
- * And=0,Or=1
- * @format int32
- */
-export type DynamicFilterLogic = 0 | 1
-
-/**
- * Contains=0,StartsWith=1,EndsWith=2,NotContains=3,NotStartsWith=4,NotEndsWith=5,Equal=6,Equals=7,Eq=8,NotEqual=9,GreaterThan=10,GreaterThanOrEqual=11,LessThan=12,LessThanOrEqual=13,Range=14,DateRange=15,Any=16,NotAny=17,Custom=18
- * @format int32
- */
-export type DynamicFilterOperator = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18
-
-export interface FileDeleteInput {
-  /**
-   * 文件Id
-   * @format int64
-   */
-  id: number
-}
-
-/** 文件 */
-export interface FileEntity {
-  /**
-   * 主键Id
-   * @format int64
-   */
-  id?: number
-  /**
-   * 创建者Id
-   * @format int64
-   */
-  createdUserId?: number | null
-  /**
-   * 创建者
-   * @maxLength 50
-   */
-  createdUserName?: string | null
-  /**
-   * 创建时间
-   * @format date-time
-   */
-  createdTime?: string | null
-  /**
-   * 修改者Id
-   * @format int64
-   */
-  modifiedUserId?: number | null
-  /**
-   * 修改者
-   * @maxLength 50
-   */
-  modifiedUserName?: string | null
-  /**
-   * 修改时间
-   * @format date-time
-   */
-  modifiedTime?: string | null
-  /** 是否删除 */
-  isDeleted?: boolean
-  /** Invalid=0,Minio=1,Aliyun=2,QCloud=3,Qiniu=4,HuaweiCloud=5 */
-  provider?: OSSProvider
-  /** 存储桶名称 */
-  bucketName?: string | null
-  /** 文件目录 */
-  fileDirectory?: string | null
-  /**
-   * 文件Guid
-   * @format uuid
-   */
-  fileGuid?: string
-  /** 保存文件名 */
-  saveFileName?: string | null
-  /** 文件名 */
-  fileName?: string | null
-  /** 文件扩展名 */
-  extension?: string | null
-  /**
-   * 文件字节长度
-   * @format int64
-   */
-  size?: number
-  /** 文件大小格式化 */
-  sizeFormat?: string | null
-  /** 链接地址 */
-  linkUrl?: string | null
-  /** md5码,防止上传重复文件 */
-  md5?: string | null
-}
-
-export interface FileGetPageDto {
-  /** 文件名 */
-  fileName?: string | null
-}
 
 export interface FileGetPageOutput {
   /**
@@ -981,11 +878,7 @@ export interface LoginLogListOutput {
   createdTime?: string | null
 }
 
-/**
- * Invalid=0,Minio=1,Aliyun=2,QCloud=3,Qiniu=4,HuaweiCloud=5
- * @format int32
- */
-export type OSSProvider = 0 | 1 | 2 | 3 | 4 | 5
+
 
 /** 添加 */
 export interface OprationLogAddInput {
@@ -1303,21 +1196,7 @@ export interface PageInputDictTypeGetPageDto {
   filter?: DictTypeGetPageDto
 }
 
-/** 分页信息输入 */
-export interface PageInputFileGetPageDto {
-  /**
-   * 当前页标
-   * @format int32
-   */
-  currentPage?: number
-  /**
-   * 每页大小
-   * @format int32
-   */
-  pageSize?: number
-  dynamicFilter?: DynamicFilterInfo
-  filter?: FileGetPageDto
-}
+
 
 /** 分页信息输入 */
 export interface PageInputLogGetPageDto {
@@ -2575,17 +2454,7 @@ export interface ResultOutputDocumentGetMenuOutput {
   data?: DocumentGetMenuOutput
 }
 
-/** 结果输出 */
-export interface ResultOutputFileEntity {
-  /** 是否成功标记 */
-  success?: boolean
-  /** 编码 */
-  code?: string | null
-  /** 消息 */
-  msg?: string | null
-  /** 文件 */
-  data?: FileEntity
-}
+
 
 /** 结果输出 */
 export interface ResultOutputIEnumerableObject {
@@ -2662,17 +2531,7 @@ export interface ResultOutputListDocumentListOutput {
   data?: DocumentListOutput[] | null
 }
 
-/** 结果输出 */
-export interface ResultOutputListFileEntity {
-  /** 是否成功标记 */
-  success?: boolean
-  /** 编码 */
-  code?: string | null
-  /** 消息 */
-  msg?: string | null
-  /** 数据 */
-  data?: FileEntity[] | null
-}
+
 
 /** 结果输出 */
 export interface ResultOutputListInt64 {
@@ -4541,75 +4400,11 @@ export interface ViewUpdateInput {
 
 
 
-/** 结果输出 */
-export interface ResultOutputPageComponentGetPageOutPut {
-  /** 是否成功标记 */
-  success?: boolean
-  /** 编码 */
-  code?: string | null
-  /** 消息 */
-  msg?: string | null
-  /** 分页信息输出 */
-  data?: PageOutputPageComponentGetPage
-}
-
-export interface PageOutputPageComponentGetPage{
-    /**
-   * 数据总数
-   * @format int64
-   */
-    total?: number
-    /** 数据 */
-    list?: ComponentGetPageOutPut[] | null
-}
 
-/**部件列表对象 */
-export interface ComponentGetPageOutPut{
-  /**序号 */
-   guid: number
 
-   /**部件名称 */
-   bomName:string | null
 
-   /**部件编号 */
-   bomNo:string | null
-   bomProNo: string | null
-   cpuId:string | null
-   software_v: string | null
-   status: number
-   key_name: number
-   stand_name:number
-   createTime: Date
-   remark:string |null
-}
 
-/** 分页信息输入 */
-export interface PageInputComponentGetPageDto {
-  /**
-   * 当前页标
-   * @format int32
-   */
-  currentPage?: number
-  /**
-   * 每页大小
-   * @format int32
-   */
-  pageSize?: number
-  dynamicFilter?: DynamicFilterInfo
-  filter?: ComponentGetPageDto
-}
 
 
-/**部件列表对象 */
-export interface ComponentGetPageDto{
 
-   /**部件名称 */
-   bomName:string | null
-   /**部件编号 */
-   bomNo:string | null
-   bomProNo: string | null
-   bomMateNo:string | null
-   bomType: number
-   status: number
 
-}

+ 151 - 0
admin.ui.plus-master/src/api/admin/productionManagement/CommunalDto.ts

@@ -0,0 +1,151 @@
+/**
+ * 生产管理
+ * 共有的Dto
+ * 数据对象的Dto
+ * */
+/**
+ * Invalid=0,Minio=1,Aliyun=2,QCloud=3,Qiniu=4,HuaweiCloud=5
+ * @format int32
+ */
+export type OSSProvider = 0 | 1 | 2 | 3 | 4 | 5
+
+/** 文件 */
+export interface FileEntity {
+  /**
+   * 主键Id
+   * @format int64
+   */
+  id?: number
+  /**
+   * 创建者Id
+   * @format int64
+   */
+  createdUserId?: number | null
+  /**
+   * 创建者
+   * @maxLength 50
+   */
+  createdUserName?: string | null
+  /**
+   * 创建时间
+   * @format date-time
+   */
+  createdTime?: string | null
+  /**
+   * 修改者Id
+   * @format int64
+   */
+  modifiedUserId?: number | null
+  /**
+   * 修改者
+   * @maxLength 50
+   */
+  modifiedUserName?: string | null
+  /**
+   * 修改时间
+   * @format date-time
+   */
+  modifiedTime?: string | null
+  /** 是否删除 */
+  isDeleted?: boolean
+  /** Invalid=0,Minio=1,Aliyun=2,QCloud=3,Qiniu=4,HuaweiCloud=5 */
+  provider?: OSSProvider
+  /** 存储桶名称 */
+  bucketName?: string | null
+  /** 文件目录 */
+  fileDirectory?: string | null
+  /**
+   * 文件Guid
+   * @format uuid
+   */
+  fileGuid?: string
+  /** 保存文件名 */
+  saveFileName?: string | null
+  /** 文件名 */
+  fileName?: string | null
+  /** 文件扩展名 */
+  extension?: string | null
+  /**
+   * 文件字节长度
+   * @format int64
+   */
+  size?: number
+  /** 文件大小格式化 */
+  sizeFormat?: string | null
+  /** 链接地址 */
+  linkUrl?: string | null
+  /** md5码,防止上传重复文件 */
+  md5?: string | null
+}
+
+export interface FileDeleteInput {
+  /**
+   * 文件Id
+   * @format int64
+   */
+  id: number
+}
+/**部件列表对象 */
+export interface ComponentGetPageOutPut{
+  /**序号 */
+  guid: number
+
+  /**部件名称 */
+  bomName:string | null
+
+  /**部件编号 */
+  bomNo:string | null
+  bomProNo: string | null
+  cpuId:string | null
+  software_v: string | null
+  status: number
+  key_name: number
+  stand_name:number
+  createTime: Date
+  remark:string |null
+}
+
+export interface PageOutputPageComponentGetPage{
+  /**
+   * 数据总数
+   * @format int64
+   */
+  total?: number
+  /** 数据 */
+  list?: ComponentGetPageOutPut[] | null
+}
+/** 结果输出 */
+export interface ResultOutputFileEntity {
+  /** 是否成功标记 */
+  success?: boolean
+  /** 编码 */
+  code?: string | null
+  /** 消息 */
+  msg?: string | null
+  /** 文件 */
+  data?: FileEntity
+}
+
+/** 结果输出 */
+export interface ResultOutputListFileEntity {
+  /** 是否成功标记 */
+  success?: boolean
+  /** 编码 */
+  code?: string | null
+  /** 消息 */
+  msg?: string | null
+  /** 数据 */
+  data?: FileEntity[] | null
+}
+
+/** 结果输出 */
+export interface ResultOutputPageComponentGetPageOutPut {
+  /** 是否成功标记 */
+  success?: boolean
+  /** 编码 */
+  code?: string | null
+  /** 消息 */
+  msg?: string | null
+  /** 分页信息输出 */
+  data?: PageOutputPageComponentGetPage
+}

+ 51 - 0
admin.ui.plus-master/src/api/admin/productionManagement/ComopnentDto.ts

@@ -0,0 +1,51 @@
+/**
+ * 生产管理 - 部件电子档案
+ *  数据对象的Dto
+ * */
+
+/**
+ * And=0,Or=1
+ * @format int32
+ */
+export type DynamicFilterLogic = 0 | 1
+
+/**
+ * Contains=0,StartsWith=1,EndsWith=2,NotContains=3,NotStartsWith=4,NotEndsWith=5,Equal=6,Equals=7,Eq=8,NotEqual=9,GreaterThan=10,GreaterThanOrEqual=11,LessThan=12,LessThanOrEqual=13,Range=14,DateRange=15,Any=16,NotAny=17,Custom=18
+ * @format int32
+ */
+export type DynamicFilterOperator = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18
+
+export interface DynamicFilterInfo {
+  field?: string | null
+  /** Contains=0,StartsWith=1,EndsWith=2,NotContains=3,NotStartsWith=4,NotEndsWith=5,Equal=6,Equals=7,Eq=8,NotEqual=9,GreaterThan=10,GreaterThanOrEqual=11,LessThan=12,LessThanOrEqual=13,Range=14,DateRange=15,Any=16,NotAny=17,Custom=18 */
+  operator?: DynamicFilterOperator
+  value?: any
+  /** And=0,Or=1 */
+  logic?: DynamicFilterLogic
+  filters?: DynamicFilterInfo[] | null
+}
+
+export interface FileGetPageDto {
+  /** 文件名 */
+  fileName?: string | null
+}
+
+/** 分页信息输入 */
+export interface PageInputFileGetPageDto {
+  /**
+   * 当前页标
+   * @format int32
+   */
+  currentPage?: number
+  /**
+   * 每页大小
+   * @format int32
+   */
+  pageSize?: number
+  dynamicFilter?: DynamicFilterInfo
+  filter?: FileGetPageDto
+}
+
+
+
+

+ 4 - 2
admin.ui.plus-master/src/api/admin/productionManagement/Component.ts

@@ -12,11 +12,13 @@
 import { AxiosResponse } from 'axios'
 import {
   FileDeleteInput,
-  PageInputFileGetPageDto,
   ResultOutputFileEntity,
   ResultOutputListFileEntity,
   ResultOutputPageComponentGetPageOutPut,
-} from '../data-contracts'
+} from '/@/api/admin/productionManagement/CommunalDto'
+import {
+  PageInputFileGetPageDto,
+} from '/@/api/admin/productionManagement/ComopnentDto'
 import { ContentType, HttpClient, RequestParams } from '../http-client'
 
 export class ComponentApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {

+ 1 - 1
admin.ui.plus-master/src/api/admin/productionManagement/ComponentDetails.ts

@@ -139,7 +139,7 @@ export class ComponentDetails<SecurityDataType = unknown> extends HttpClient<Sec
             { prop: 'workingProcedure', label: '工序' },
             { prop: 'state', label: '状态' },
             { prop: 'productionPictures', label: '生产图片' },
-            // { prop: 'remarks', label: '备注' }
+            { prop: 'remarks', label: '备注' }
             // You can generate and push more columns based on your data
           ]
         })

+ 2 - 2
admin.ui.plus-master/src/api/admin/productionManagement/ComponentType.ts

@@ -12,11 +12,11 @@
 import { AxiosResponse } from 'axios'
 import {
   FileDeleteInput,
-  PageInputComponentGetPageDto,
   ResultOutputFileEntity,
   ResultOutputListFileEntity,
   ResultOutputPageComponentGetPageOutPut,
-} from '../data-contracts'
+} from '/@/api/admin/productionManagement/CommunalDto'
+import {   PageInputComponentGetPageDto } from '/@/api/admin/productionManagement/ComponentTypeDto'
 import { ContentType, HttpClient, RequestParams } from '../http-client'
 
 export class ComponentTypeApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {

+ 34 - 0
admin.ui.plus-master/src/api/admin/productionManagement/ComponentTypeDto.ts

@@ -0,0 +1,34 @@
+/**
+ * 生产管理 - 部件类型
+ *  数据对象的Dto
+ * */
+
+/**部件列表对象 */
+export interface ComponentGetPageDto{
+
+  /**部件名称 */
+  bomName:string | null
+  /**部件编号 */
+  bomNo:string | null
+  bomProNo: string | null
+  bomMateNo:string | null
+  bomType: number
+  status: number
+
+}
+
+/** 分页信息输入 */
+export interface PageInputComponentGetPageDto {
+  /**
+   * 当前页标
+   * @format int32
+   */
+  currentPage?: number
+  /**
+   * 每页大小
+   * @format int32
+   */
+  pageSize?: number
+  dynamicFilter?: DynamicFilterInfo
+  filter?: ComponentGetPageDto
+}

+ 12 - 0
admin.ui.plus-master/src/api/admin/productionManagement/README.md

@@ -1,15 +1,27 @@
 #### 简介
 
 	productionManagement 目录中的ts文件用于后端接口请求交互和转换前端页面对象处理
+
+#### CommunalDto.ts
+
+	生产管理 共有的Dto
 	
 #### Component.ts
 
 	生产管理 - 部件电子档案 发送后端请求数据
 
+#### ComponentDto.ts
+
+	生产管理 - 部件电子档案 数据对象的DTO
+
 #### ComponentType.ts
 
 	生产管理 - 部件类型 发送后端请求数据
 
+#### ComponentTypeDto.ts
+
+	生产管理 - 部件类型 数据对象的DTO
+
 #### ComponentDetails.ts
 
 	生产管理 - 部件详情发送后端请求数据