6/22完善引入,

This commit is contained in:
Zy
2026-06-22 08:14:35 +08:00
parent ea8129216b
commit 826bf3c782
208 changed files with 1122 additions and 1685 deletions

View File

@@ -21,10 +21,10 @@
<template #header>
<el-row :gutter="10" class="mb8">
<!-- <el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:warehouse:add']">新增</el-button>
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-has-permi="['system:warehouse:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['system:warehouse:remove']"
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-has-permi="['system:warehouse:remove']"
>删除</el-button
>
</el-col> -->
@@ -43,6 +43,7 @@
<el-table v-loading="loading" border :data="warehouseList" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" />
<!-- <el-table-column label="隶属小区" align="center" prop="villageName" />-->
<el-table-column label="仓库名称" align="center" prop="warehouseName" />
<el-table-column label="联系人" width="100" align="center" prop="contactPerson" />
<el-table-column label="联系电话" width="120" align="center" prop="contactPhone" />
@@ -60,8 +61,8 @@
<el-table-column label="备注" width="80" align="center" prop="remark" show-overflow-tooltip />
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['system:warehouse:edit']">编辑</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['system:warehouse:remove']">删除</el-button>
<el-button link type="primary" @click="handleUpdate(scope.row)" v-has-permi="['system:warehouse:edit']">编辑</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)" v-has-permi="['system:warehouse:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -101,7 +102,7 @@
</template>
<script setup name="Warehouse" lang="ts">
import { listWarehouse, getWarehouse, delWarehouse, addWarehouse, updateWarehouse } from '@/api/system/Twarehouse/index';
import { listWarehouse, delWarehouse, addWarehouse, updateWarehouse } from '@/api/system/Twarehouse/index';
import { WarehouseVO, WarehouseQuery, WarehouseForm } from '@/api/system/Twarehouse/type';
import { checkPermi } from '@/utils/permission';
@@ -140,12 +141,10 @@ const data = reactive<PageData<WarehouseForm, WarehouseQuery>>({
pageNum: 1,
pageSize: 10,
warehouseName: undefined,
villageId: undefined,
contactPerson: undefined,
contactPhone: undefined,
address: undefined,
status: undefined,
params: {}
},
rules: {
id: [{ required: true, message: '仓库ID不能为空', trigger: 'blur' }],