销售管理

This commit is contained in:
ll 2025-09-08 10:01:42 +08:00
parent 0ff9255150
commit c72b53af1f

View File

@ -43,8 +43,8 @@
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
@ -55,7 +55,7 @@
type="primary"
plain
icon="el-icon-plus"
size="mini"
size="small"
@click="handleAdd"
v-hasPermi="['saleRecord:saleRecord:add']"
>新增</el-button>
@ -65,7 +65,7 @@
type="success"
plain
icon="el-icon-edit"
size="mini"
size="small"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['saleRecord:saleRecord:edit']"
@ -76,7 +76,7 @@
type="danger"
plain
icon="el-icon-delete"
size="mini"
size="small"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['saleRecord:saleRecord:remove']"
@ -87,12 +87,13 @@
type="warning"
plain
icon="el-icon-download"
size="mini"
size="small"
@click="handleExport"
v-hasPermi="['saleRecord:saleRecord:export']"
>导出</el-button>
</el-col>
<right-toolbar :show-search="showSearch" @update:showSearch="val => showSearch = val" @queryTable="getList" />
<!-- 修复使用 v-model:showSearch 替代 :showSearch.sync -->
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList" />
</el-row>
<!-- 表格区域 -->
@ -164,14 +165,14 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150" fixed="right">
<template #default="scope">
<el-button
size="mini"
size="small"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['saleRecord:saleRecord:edit']"
>修改</el-button>
<el-button
size="mini"
size="small"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
@ -190,7 +191,8 @@
/>
<!-- 添加或修改羊只销售记录对话框 -->
<el-dialog :title="title" :model-value="open" width="1200px" append-to-body @update:modelValue="val => open = val">
<!-- 修复使用 v-model 替代 :visible.sync -->
<el-dialog :title="title" v-model="open" width="1200px" append-to-body>
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-row :gutter="20">
<el-col :span="12">
@ -932,4 +934,4 @@ export default {
.breadcrumb { margin-bottom: 16px; }
.app-container { position: relative; }
.el-table { width: 100%; overflow-x: auto; }
</style>
</style>