package com.xunhong.erp.turbo.api.biz.dto.qry;

import com.xunhong.erp.turbo.api.biz.dto.enums.OrderAuditStateEnum;
import com.xunhong.erp.turbo.api.biz.dto.enums.OrderStateEnum;
import com.xunhong.erp.turbo.api.biz.dto.enums.OrderTypeEnum;
import com.xunhong.erp.turbo.base.dto.Query;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "采购订单列表查询")
@EqualsAndHashCode(callSuper = true)
public class OrderListQry extends Query {

	@Schema(title = "采购订单ID", type = "string")
	private Long orderId;

	@Schema(title = "采购订单编号", type = "string")
	private String orderSn;

	/**
	 * 采购订单状态: 0_草稿；1_审核中；2_已完成；3_已关闭；
	 */
	@Schema(title = "采购订单状态: 0_草稿；1_审核中；2_已完成；3_已关闭；")
	private OrderStateEnum state;

	/**
	 * 采购单审核状态: 1_待报价审核；2_待老板审批；3_老板审批通过；4_报价审核驳回；5_老板审批驳回
	 */
	@Schema(title = "采购单审核状态: 1_待报价审核；2_待老板审批；3_老板审批通过；4_报价审核驳回；5_老板审批驳回")
	private OrderAuditStateEnum auditState;

	/**
	 * 采购类型：1_产地采购；2_市场采购；
	 */
	@Schema(title = "采购类型：1_产地采购；2_市场采购；")
	private OrderTypeEnum type;
}

