|
@@ -355,60 +355,11 @@ export function formatCurrency(value) {
|
|
|
|
|
|
// ==================== 汇总模块相关常量 ====================
|
|
|
|
|
|
-/**
|
|
|
- * 预测汇总查询参数类型定义
|
|
|
- * @typedef {Object} ForecastSummaryQueryParams
|
|
|
- * @property {number} [current=1] - 当前页码
|
|
|
- * @property {number} [size=10] - 每页数量
|
|
|
- * @property {number} [year] - 年份
|
|
|
- * @property {number} [month] - 月份
|
|
|
- * @property {number} [customerId] - 客户ID
|
|
|
- * @property {string} [customerCode] - 客户编码
|
|
|
- * @property {string} [customerName] - 客户名称
|
|
|
- * @property {number} [brandId] - 品牌ID
|
|
|
- * @property {string} [brandCode] - 品牌编码
|
|
|
- * @property {string} [brandName] - 品牌名称
|
|
|
- * @property {number} [itemId] - 物料ID
|
|
|
- * @property {string} [itemCode] - 物料编码
|
|
|
- * @property {string} [itemName] - 物料名称
|
|
|
- * @property {typeof APPROVAL_STATUS[keyof typeof APPROVAL_STATUS]} [approvalStatus] - 审批状态
|
|
|
- */
|
|
|
-
|
|
|
-/**
|
|
|
- * 预测汇总数据项类型定义
|
|
|
- * @typedef {Object} ForecastSummaryItem
|
|
|
- * @property {string} id - 汇总记录ID
|
|
|
- * @property {string} createUser - 创建用户ID
|
|
|
- * @property {string} createDept - 创建部门ID
|
|
|
- * @property {string} createTime - 创建时间
|
|
|
- * @property {string} updateUser - 更新用户ID
|
|
|
- * @property {string} updateTime - 更新时间
|
|
|
- * @property {number} status - 状态
|
|
|
- * @property {number} isDeleted - 是否删除
|
|
|
- * @property {number} year - 年份
|
|
|
- * @property {number} month - 月份
|
|
|
- * @property {number} customerId - 客户ID
|
|
|
- * @property {string} customerCode - 客户编码
|
|
|
- * @property {string} customerName - 客户名称
|
|
|
- * @property {number} brandId - 品牌ID
|
|
|
- * @property {string} brandCode - 品牌编码
|
|
|
- * @property {string} brandName - 品牌名称
|
|
|
- * @property {number} itemId - 物料ID
|
|
|
- * @property {string} itemCode - 物料编码
|
|
|
- * @property {string} itemName - 物料名称
|
|
|
- * @property {string} specs - 规格
|
|
|
- * @property {string} pattern - 花纹
|
|
|
- * @property {string} forecastQuantity - 预测数量
|
|
|
- * @property {typeof APPROVAL_STATUS[keyof typeof APPROVAL_STATUS]} approvalStatus - 审批状态 0未审批 1已通过 2已拒绝
|
|
|
- * @property {number|null} approvedBy - 审批人ID
|
|
|
- * @property {string|null} approvedName - 审批人姓名
|
|
|
- * @property {string|null} approvedTime - 审批时间
|
|
|
- */
|
|
|
+// 类型定义已迁移到 @/api/types/forecast.d.ts
|
|
|
|
|
|
/**
|
|
|
* 预测汇总默认查询参数
|
|
|
* @readonly
|
|
|
- * @type {ForecastSummaryQueryParams}
|
|
|
*/
|
|
|
export const DEFAULT_FORECAST_SUMMARY_QUERY = {
|
|
|
current: 1,
|
|
@@ -430,7 +381,6 @@ export const DEFAULT_FORECAST_SUMMARY_QUERY = {
|
|
|
/**
|
|
|
* 月份选项数组
|
|
|
* @readonly
|
|
|
- * @type {Array<{label: string, value: number}>}
|
|
|
*/
|
|
|
export const MONTH_OPTIONS = [
|
|
|
{ label: '1月', value: 1 },
|
|
@@ -542,7 +492,6 @@ export const FORECAST_SUMMARY_FORM_RULES = {
|
|
|
/**
|
|
|
* 销售预测汇总默认表单数据
|
|
|
* @readonly
|
|
|
- * @type {Object}
|
|
|
*/
|
|
|
export const DEFAULT_FORECAST_SUMMARY_FORM = {
|
|
|
id: null,
|