Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
| | |
| | | }, |
| | | { |
| | | 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', |
| | | }, |
| | | ] |
| | | |
| | |
| | | // 原片面积固定为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> |
| | | |
| | |
| | | :start-placeholder="$t('basicData.startDate')" |
| | | :end-placeholder="$t('basicData.endDate')" |
| | | type="daterange" |
| | | :shortcuts="shortcuts" |
| | | showToday |
| | | format="YYYY/MM/DD" |
| | | value-format="YYYY-MM-DD" |
| | | /> |