Commit c93e5c54 by qinjianhui

fix: 问题修改

parent 278ecd7f
...@@ -16,6 +16,8 @@ declare module 'vue' { ...@@ -16,6 +16,8 @@ declare module 'vue' {
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']
...@@ -34,6 +36,7 @@ declare module 'vue' { ...@@ -34,6 +36,7 @@ declare module 'vue' {
ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow'] ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect'] ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
......
...@@ -83,6 +83,8 @@ export const dynamicComponentMap: Record<string, LazyComponent> = { ...@@ -83,6 +83,8 @@ export const dynamicComponentMap: Record<string, LazyComponent> = {
'/MyDownloads': () => import('@/views/MyDownloads.vue'), '/MyDownloads': () => import('@/views/MyDownloads.vue'),
'/supply/supplierManagement': () => '/supply/supplierManagement': () =>
import('@/views/supply/supplierManagement/index.vue'), import('@/views/supply/supplierManagement/index.vue'),
'/warehouse/warehouse-rule-setting': () =>
import('@/views/warehouse/warehouseRuleSetting/index.vue'),
} }
/** dashboard 是登录后的默认页,保留为静态路由 */ /** dashboard 是登录后的默认页,保留为静态路由 */
......
<template> <template>
<div class="page card h-100 flex-gap-10 overflow-hidden flex"> <div class="page card h-100 flex-gap-10 overflow-hidden flex">
<div class="status-container">
<div
class="status-item"
:class="{ 'is-active': currentStatus === 'sharedInventory' }"
@click="handleStatusClick('sharedInventory')"
>
<span>共享库存设置</span>
</div>
</div>
<div class="content-container flex-1 flex-column overflow-hidden"> <div class="content-container flex-1 flex-column overflow-hidden">
<div class="search-form"> <div class="search-form">
<ElForm ref="searchFormRef" :model="searchForm" inline> <ElForm ref="searchFormRef" :model="searchForm" inline>
...@@ -118,7 +108,6 @@ import { ...@@ -118,7 +108,6 @@ import {
} from '@/types/api/warehouse/warehouseRuleSetting' } from '@/types/api/warehouse/warehouseRuleSetting'
import usePageList from '@/utils/hooks/usePageList' import usePageList from '@/utils/hooks/usePageList'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
import { ElDatePicker, ElFormItem } from 'element-plus'
import { useWarehouseRuleSettingTableColumns } from './hooks/useWarehouseRuleSettingTableColumns' import { useWarehouseRuleSettingTableColumns } from './hooks/useWarehouseRuleSettingTableColumns'
import EditFormDialog from './components/EditDialog.vue' import EditFormDialog from './components/EditDialog.vue'
import { WarehouseListData } from '@/types' import { WarehouseListData } from '@/types'
...@@ -136,13 +125,9 @@ const handleReset = () => { ...@@ -136,13 +125,9 @@ const handleReset = () => {
dateRange.value = [] dateRange.value = []
search() search()
} }
const currentStatus = ref('sharedInventory')
const editDialogVisible = ref(false) const editDialogVisible = ref(false)
const editFormRef = ref() const editFormRef = ref()
const warehouseList = ref<WarehouseListData[]>([]) const warehouseList = ref<WarehouseListData[]>([])
const handleStatusClick = (status: string) => {
currentStatus.value = status
}
const { const {
loading, loading,
...@@ -266,24 +251,6 @@ onMounted(async () => { ...@@ -266,24 +251,6 @@ onMounted(async () => {
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.status-container {
width: 160px;
.status-item {
font-size: 14px;
line-height: 30px;
height: 30px;
cursor: pointer;
padding-left: 18px;
&:hover {
background-color: #f5f7fa;
}
&.is-active {
background-color: #ecf5ff;
color: #409eff;
font-weight: 500;
}
}
}
.table-wrapper { .table-wrapper {
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment