diff --git a/src/views/Index.vue b/src/views/Index.vue
index 78e3c21..9c2886d 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -3,7 +3,7 @@
@@ -34,50 +34,16 @@
const isCollapsed = ref(true)
const isLoggedIn = computed(() => userStore.isLoggedIn)
+ const logo = ref('jifuyun.cn.png')
+ if(userStore.shopInfo && userStore.shopInfo.logo) {
+ logo.value = 'https://www.jifuyun.cn/' + userStore.shopInfo.logo
+ }
+ const title = ref('机联云维')
+ if(userStore.shopInfo && userStore.shopInfo.true_name) {
+ title.value = userStore.shopInfo.true_name
+ }
// 菜单配置
- const menuItems = [
- {
- icon: 'fa fa-home',
- name: '首页概览',
- path: '/home',
- id: 'home'
- },{
- icon: 'fa fa-shopping-cart',
- name: '询价管理',
- id: 'inquiry',
- children: [
- {
- icon: 'fa fa-list',
- name: '询价列表',
- path: '/order'
- },{
- icon: 'fa fa-plus',
- name: '新增询价',
- path: '/inquiry/create'
- }
- ]
- },{
- icon: 'fa fa-file-text',
- name: '报价管理',
- id: 'quote',
- children: [
- {
- icon: 'fa fa-list-alt',
- name: '报价列表',
- path: '/quote/list'
- },{
- icon: 'fa fa-plus-square',
- name: '新增报价',
- path: '/quote/create'
- }
- ]
- },{
- icon: 'fa fa-cog',
- name: '系统设置',
- path: '/settings',
- id: 'settings',
- }
- ]
+ const menuItems = userStore.menuList || []
// 走马灯消息列表
const newsList = [
@@ -97,7 +63,7 @@
}
const logout = () => {
- userStore.$reset()
+ userStore.logout()
removeToken()
router.push('/login')
}
diff --git a/src/views/Login.vue b/src/views/Login.vue
index ea14434..2812e92 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -226,7 +226,7 @@
router.push('/home')
} else {
ElMessage.error(res.msg)
- user_store.clearInfo()
+ user_store.logout()
removeToken()
}
}
diff --git a/src/views/customer/Index.vue b/src/views/customer/Index.vue
new file mode 100644
index 0000000..256ed6b
--- /dev/null
+++ b/src/views/customer/Index.vue
@@ -0,0 +1,28 @@
+
+
+
客户首页
+
当前时间:{{ new Date().toLocaleString() }}
+
+ 注销退出
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/inquiry/Index.vue b/src/views/inquiry/Index.vue
new file mode 100644
index 0000000..d635b51
--- /dev/null
+++ b/src/views/inquiry/Index.vue
@@ -0,0 +1,439 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 重置筛选
+
+
+
+
+
+
+
+
+ {{ row.order_no }}
+
+
+
+
+ {{ row.true_name ? row.true_name : row.user_name }}
+
+
+
+
+
+ {{ row.status==0 ? (row.goods.length == 0 ? '添加商品' : (statusList[row.id][1] == 0 ? '制询价函' : (statusList[row.id][1] == statusList[row.id][2] ? '等待报价' : '等待回函'))) : orderStatus(row.status,row.is_del) }}
+
+
+
+
+
+
+ {{ `${statusList[row.id][2]}/${statusList[row.id][1]}` }}
+
+
+
+
+
+
+ {{`¥${row.total_price.toFixed(2)}`}}
+
+
+
+
+ {{ row.note }}
+
+
+
+
+ {{ userStore.teamInfo[row.creator]?.name || `ID-${row.creator}` }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/product/Index.vue b/src/views/product/Index.vue
new file mode 100644
index 0000000..2ee2eab
--- /dev/null
+++ b/src/views/product/Index.vue
@@ -0,0 +1,28 @@
+
+
+
产品首页
+
当前时间:{{ new Date().toLocaleString() }}
+
+ 注销退出
+
+
+
+
+
+
+
\ No newline at end of file