|
@@ -8,6 +8,7 @@ import {
|
|
|
canReject,
|
|
|
formatNumber
|
|
|
} from '@/constants/forecast'
|
|
|
+import { dateFormat } from '@/util/date'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
|
/**
|
|
@@ -459,7 +460,7 @@ export default {
|
|
|
approvalComment: null, // 不再需要审批备注
|
|
|
approvedBy: this.$store.getters.userInfo.user_id,
|
|
|
approvedName: this.$store.getters.userInfo.real_name,
|
|
|
- approvedTime: new Date().toISOString().replace('T', ' ').substring(0, 19)
|
|
|
+ approvedTime: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss')
|
|
|
}
|
|
|
|
|
|
const res = await updateForecast(updateData)
|