src/assets/styles/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/Table/ETable.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/layout/components/TagsView/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/basicInformation/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/salesOutbound/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/warehouseManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/assets/styles/index.scss
@@ -124,9 +124,33 @@ //main-containerå ¨å±æ ·å¼ .app-container { padding: 20px; background-color: #f5f7fa; background-color: #F7F7F7; min-height: calc(100vh - 84px); } .search-form { background: #fff; padding: 20px 20px 0 20px; margin-bottom: 20px; border-radius: 4px; box-shadow: var(--el-box-shadow-light); } .table-toolbar { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; } /* ååºå¼å¸å± */ @media screen and (min-width: 768px) { .search-form :deep(.el-form-item) { width: 50%; } } @media screen and (min-width: 1200px) { .search-form :deep(.el-form-item) { width: 18%; } } .components-container { margin: 30px 50px; src/components/Table/ETable.vue
@@ -6,6 +6,7 @@ :border="border" :show-selection="showSelection" :max-height="maxHeight" :header-cell-style="{ background: '#EBEEF5', color: '#3D3D3D' }" @selection-change="handleSelectionChange" @row-click="handleRowClick" @row-dblclick="handleRowDblClick" @@ -20,7 +21,6 @@ v-bind="col" :show-overflow-tooltip="shouldShowTooltip(col, tableData)" :formatter="(row, column, cellValue) => cellValue == null || cellValue === '' ? '--' : cellValue" align="center" > <template v-if="col.slot" #default> <slot></slot> src/layout/components/TagsView/index.vue
@@ -259,7 +259,7 @@ <style lang="scss" scoped> .tags-view-container { height: 30px; height: 34px; width: 100%; position: fixed; /* å°å¤´é¨åºå® */ top: 50px; /* å¨é¡¶é¨åºå® */ @@ -292,7 +292,7 @@ &.active { border-radius: 10px 10px 0px 0px; background-color: #F2F2F4 !important; background-color: #F7F7F7 !important; color: #165DFF; } } src/views/basicInformation/index.vue
@@ -68,7 +68,7 @@ @delete="handleDeleteSuccess" :show-selection="true" :border="true" :maxHeight="440" :maxHeight="480" /> </div> <pagination @@ -509,28 +509,6 @@ </script> <style scoped> .app-container { padding: 20px; background-color: #f5f7fa; box-sizing: border-box; min-height: calc(100vh - 84px); } .search-form { background: #fff; padding: 20px 20px 0 20px; margin-bottom: 20px; border-radius: 4px; box-shadow: var(--el-box-shadow-light); } .el-form-item__label{ padding: 0 5px 0 0 !important; font-weight: 500; } .search-form :deep(.el-form-item) { margin-bottom: 16px; width: 100%; } /* ååºå¼å¸å± */ @media screen and (min-width: 768px) { .search-form :deep(.el-form-item) { @@ -541,9 +519,6 @@ .search-form :deep(.el-form-item) { width: 16%; } } .info-tabs { margin-bottom: 20px; } .table-toolbar { margin-bottom: 20px; src/views/salesOutbound/index.vue
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,111 @@ <template> <div class="app-container"> <el-form :inline="true" :model="queryParams" class="search-form"> <el-form-item label="æç´¢"> <el-input v-model="queryParams.searchText" placeholder="请è¾å ¥å ³é®è¯" clearable :style="{ width: '100%' }" /> </el-form-item> <el-form-item label="ä¾åºååç§°"> <el-input v-model="queryParams.supplierName" placeholder="请è¾å ¥" clearable :style="{ width: '100%' }" /> </el-form-item> <el-form-item label="ç»ä¸äººè¯å«å·"> <el-input v-model="queryParams.identifyNumber" placeholder="请è¾å ¥" clearable :style="{ width: '100%' }" /> </el-form-item> <el-form-item label="ç»è¥å°å"> <el-input v-model="queryParams.address" placeholder="请è¾å ¥" clearable :style="{ width: '100%' }" /> </el-form-item> <el-form-item> <el-button type="primary" @click="handleQuery">æ¥è¯¢</el-button> <el-button @click="resetQuery">éç½®</el-button> </el-form-item> </el-form> <el-card> <!-- æ ç¾é¡µ --> <el-tabs v-model="activeTab" class="info-tabs"> <el-tab-pane v-for="tab in tabs" :key="tab.name" :label="tab.label" :name="tab.name" /> </el-tabs> <!-- æä½æé®åº --> <el-space> <el-button type="primary" :icon="Plus" @click="handleAdd">æ°å»º</el-button> <el-button type="danger" :icon="Delete" @click="handleDelete">å é¤</el-button> <el-button type="info" :icon="Download" @click="handleExport">导åº</el-button> </el-space> </el-card> </div> </template> <script setup> import {ref, reactive} from "vue"; import {Delete, Download, Plus} from "@element-plus/icons-vue"; const activeTab = ref("out"); // æ ç¾é¡µæ°æ® const tabs = reactive([ { name: "out", label: "éå®åºåº" }, ]); const tableLoading = ref(false); // æ¥è¯¢åæ° const queryParams = reactive({ searchText: "", supplierName: "", identifyNumber: "", address: "", }) // ç¹å»æ¥è¯¢ const handleQuery = () => { tableLoading.value = true; setTimeout(() => { tableLoading.value = false; }, 500); } // éç½®æ¥è¯¢ const resetQuery = () => { Object.keys(queryParams).forEach((key) => { if (key !== "pageNum" && key !== "pageSize") { queryParams[key] = ""; } }); handleQuery(); }; // æ°å¢åºåº const handleAdd = () => { }; // å é¤åºåº const handleDelete = () => { }; // 导åºåºåº const handleExport = () => { }; </script> <style scoped> </style> src/views/warehouseManagement/index.vue
@@ -53,12 +53,12 @@ /> </el-tabs> <!-- æä½æé®åº --> <el-row :gutter="24" class="table-toolbar"> <el-space> <el-button type="primary" :icon="Plus" >æ°å»º</el-button> <el-button type="danger" :icon="Delete">å é¤</el-button> <el-button type="info" plain :icon="Download">导åº</el-button> <el-button type="success" plain :icon="Refresh" v-if="activeTab=== 'officialInventory'" @click="mergeRows">åå¹¶</el-button> </el-row> </el-space> <div> <el-table :data="tableData" border @selection-change="selectionChange"> <el-table-column type="selection" width="55" align="center" /> @@ -77,7 +77,6 @@ <el-table-column fixed="right" label="æä½" min-width="90" align="center"> <template #default> <el-button link type="primary" size="small">ç¼è¾</el-button> <el-button link type="danger" size="small">å é¤</el-button> </template> </el-table-column> </el-table> @@ -284,58 +283,7 @@ </script> <style scoped> .search-form { background-color: #fff; padding: 20px 20px 0 20px; margin-bottom: 20px; border-radius: 4px; box-shadow: var(--el-box-shadow-light); } .search-form :deep(.el-form-item) { margin-bottom: 16px; width: 100%; } /* ååºå¼å¸å± */ @media screen and (min-width: 768px) { .search-form :deep(.el-form-item) { width: 50%; } } @media screen and (min-width: 1200px) { .search-form :deep(.el-form-item) { width: 18%; } } .table-toolbar { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; } :deep(.el-table) { margin-bottom: 20px; overflow-x: auto; } :deep(.el-table th) { background-color: #f5f7fa; } /* ååºå¼æ ·å¼ */ @media screen and (max-width: 768px) { :deep(.el-table) { width: 100%; overflow-x: auto; } } /* è¡¨æ ¼å·¥å ·æ */ .table-toolbar, .table-toolbar > * { margin: 0 0 0 0 !important; } .table-toolbar{ margin-bottom: 20px !important; margin: 20px 0; } </style>