guoyuji
2024-07-22 c88c4a251024412c5a0b2ba19d26620fdc7b6990
添加  重新登陆后日期变回默认值
2个文件已修改
7 ■■■■■ 已修改文件
north-glass-erp/northglass-erp/src/layout/MainErpView.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/stores/sd/order/orderInfo.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/layout/MainErpView.vue
@@ -6,6 +6,7 @@
import {onMounted, reactive, ref, watch} from "vue"
import deepClone from "@/utils/deepClone"
import userInfo from '@/stores/userInfo'
import userOrderInfo from '@/stores/sd/order/orderInfo'
import {Close, Grid, Histogram, MessageBox, SwitchButton} from "@element-plus/icons-vue"
import { useI18n } from 'vue-i18n'
import i18n from "@/lang/index"
@@ -17,6 +18,9 @@
const router = useRouter()
const userStore = useUserInfoStore()
const user = userStore.user?.userName
const orderInfo = userOrderInfo()
orderInfo.clearSelectDate()
//监听异步返回代码
watch(()=>userStore.responseCode,(newVal) => {
    switch (newVal){
north-glass-erp/northglass-erp/src/stores/sd/order/orderInfo.js
@@ -21,6 +21,9 @@
        clearOrderInfo(){
            this.orderId = null
            this.reviewList = []
        },
        clearSelectDate(){
            this.selectDate=["",""]
        }
    },
    persist: true