|
@@ -77,6 +77,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import moment from 'moment'
|
|
import { triggerWindowResizeEvent } from '@/utils/util'
|
|
import { triggerWindowResizeEvent } from '@/utils/util'
|
|
import { mapState, mapActions, mapGetters } from 'vuex'
|
|
import { mapState, mapActions, mapGetters } from 'vuex'
|
|
import { mixin, mixinDevice } from '@/utils/mixin'
|
|
import { mixin, mixinDevice } from '@/utils/mixin'
|
|
@@ -202,6 +203,14 @@ export default {
|
|
// dark
|
|
// dark
|
|
// this.$store.dispatch('ToggleColor', '#f30f30')
|
|
// this.$store.dispatch('ToggleColor', '#f30f30')
|
|
this.$store.dispatch('ToggleTheme', 'dark')
|
|
this.$store.dispatch('ToggleTheme', 'dark')
|
|
|
|
+ this.$store.state.app.isLastDayForMonth = moment().daysInMonth() - moment().date() < 7
|
|
|
|
+ // 判断是否是当月最后一天
|
|
|
|
+ if (this.$store.state.app.isLastDayForMonth) {
|
|
|
|
+ this.$notification.warning({
|
|
|
|
+ message: '提示',
|
|
|
|
+ description: `快到月底了,请尽快处理未完成的单据!`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
const userAgent = navigator.userAgent
|
|
const userAgent = navigator.userAgent
|