Jelajahi Sumber

fix(forecast): 将年份字段转换为字符串类型以保持数据一致性

yz 1 Minggu lalu
induk
melakukan
68489c8872

+ 1 - 1
src/components/forecast-form/forecast-form-avue.vue

@@ -218,7 +218,7 @@ export default {
         
         this.formData = {
           forecastCode: '',
-          year: nextYear,
+          year: nextYear.toString(),
           month: nextMonth,
           customerId: '',
           customerCode: '',

+ 1 - 1
src/constants/forecast.js

@@ -522,7 +522,7 @@ export const FORECAST_SUMMARY_FORM_RULES = {
  */
 export const DEFAULT_FORECAST_SUMMARY_FORM = {
   id: null,
-  year: new Date().getFullYear(),
+  year: new Date().getFullYear().toString(),
   month: new Date().getMonth() + 1,
   customerId: null,
   customerCode: '',