chenlu
2025-01-10 8f31c7d59e03b974cb389b6268ce552a43df458c
Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
1个文件已修改
63 ■■■■■ 已修改文件
north-glass-erp/northglass-erp/src/views/pp/glassOptimize/ProjectMange.vue 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/views/pp/glassOptimize/ProjectMange.vue
@@ -471,27 +471,27 @@
  },
  {
    value: '1',
    label: '初始工程',
    label: '初始状态,1',
  },
  {
    value: '2',
    label: '第一次优化',
    label: '第一次优化,2',
  },
  {
    value: '10',
    label: '模拟计算保存',
    label: '模拟计算,10',
  },
  {
    value: '20',
    label: '优化保存',
    label: '优化完成,20',
  },
  {
    value: '100',
    label: '允许生产',
    label: '生产可见,100',
  },
  {
    value: '200',
    label: '已领取',
    label: '生产领取,200',
  },
]
@@ -632,6 +632,55 @@
// 原片面积固定为0,直接返回0
const originalPieceAreaInput = 0;
//日期左侧栏快捷选项
const shortcuts = [
  {
    text: '当日',
    value: () => {
      const end = new Date()
      const start = new Date(end)
      start.setHours(0, 0, 0, 0) // 设置为当天的凌晨 00:00:00
      return [start, end]
    }
  },
  {
    text: '近1周',
    value: () => {
      const end = new Date()
      const start = new Date()
      start.setDate(start.getDate() - 7)
      return [start, end]
    }
  },
  {
    text: '近1个月',
    value: () => {
      const end = new Date()
      const start = new Date()
      start.setMonth(start.getMonth() - 1)
      return [start, end]
    }
  },
  {
    text: '近2个月',
    value: () => {
      const end = new Date()
      const start = new Date()
      start.setMonth(start.getMonth() - 2)
      return [start, end]
    }
  },
  {
    text: '近3个月',
    value: () => {
      const end = new Date()
      const start = new Date()
      start.setMonth(start.getMonth() - 3)
      return [start, end]
    }
  }
]
</script>
@@ -646,6 +695,8 @@
          :start-placeholder="$t('basicData.startDate')"
          :end-placeholder="$t('basicData.endDate')"
          type="daterange"
          :shortcuts="shortcuts"
          showToday
          format="YYYY/MM/DD"
          value-format="YYYY-MM-DD"
      />