src/api/mes/pro/feedback/index.ts
@@ -1,8 +1,23 @@
import type { PageParam, PageResult } from '@vben/request';
import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
export namespace MesProFeedbackApi {
  export interface FeedbackSubmitReqVO {
    id: number;
    produceDate?: string;
    expireDate?: string;
    receiptDate?: string;
    vendorId?: number;
    clientId?: number;
    purchaseOrderCode?: string;
    salesOrderCode?: string;
    toolId?: number;
    moldId?: number;
    lotNumber?: string;
    qualityStatus?: number;
  }
  /** MES 生产报工 */
  export interface Feedback {
    id?: number;
@@ -47,6 +62,8 @@
    remark?: string; // 备注
    creator?: string; // 创建人
    createTime?: number; // 创建时间
    processInstanceId?: string; // BPM 流程实例编号
    processDefinitionKey?: string; // BPM 流程定义 Key
  }
  /** MES 生产报工分页查询参数 */
@@ -100,8 +117,8 @@
}
/** 提交生产报工 */
export function submitFeedback(id: number) {
  return requestClient.put(`/mes/pro/feedback/submit?id=${id}`);
export function submitFeedback(data: MesProFeedbackApi.FeedbackSubmitReqVO) {
  return requestClient.put(`/mes/pro/feedback/submit`, data);
}
/** 驳回生产报工 */