申请进货单

This commit is contained in:
zhonghua.li
2026-04-29 20:36:43 +08:00
parent 3890552611
commit a3d86b3fcd
6 changed files with 845 additions and 30 deletions

View File

@@ -1,24 +1,18 @@
<template>
<div class="app-container">
<el-card class="filter-container" shadow="never">
<el-form :model="queryParams" :inline="true" label-width="100px">
<el-form-item label="租户ID">
<el-input v-model="queryParams.tenantId" clearable placeholder="请输入租户ID" style="width: 180px" />
</el-form-item>
<el-form-item label="用户ID">
<el-input v-model="queryParams.userId" clearable placeholder="请输入用户ID" style="width: 180px" />
</el-form-item>
<el-form-item label="父级ID">
<el-input v-model="queryParams.parentId" clearable placeholder="请输入父级ID" style="width: 180px" />
</el-form-item>
<el-form :model="queryParams" :inline="true" label-width="100px">
<el-form-item label="姓名">
<el-input v-model="queryParams.name" clearable placeholder="请输入姓名" style="width: 180px" />
</el-form-item>
<el-form-item label="电话">
<el-input v-model="queryParams.phone" clearable placeholder="请输入电话" style="width: 180px" />
</el-form-item>
<el-form-item label="行业">
<el-input v-model="queryParams.industry" clearable placeholder="请输入行业" style="width: 180px" />
<el-form-item label="用户ID">
<el-input v-model="queryParams.userId" clearable placeholder="请输入用户ID" style="width: 180px" />
</el-form-item>
<el-form-item label="父级ID">
<el-input v-model="queryParams.parentId" clearable placeholder="请输入父级ID" style="width: 180px" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
@@ -32,11 +26,15 @@
</el-card>
<el-card class="table-container" shadow="never">
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="户ID" prop="tenantId" min-width="140" show-overflow-tooltip />
<el-table-column label="用户ID" prop="userId" min-width="140" show-overflow-tooltip />
<el-table-column label="父级ID" prop="parentId" min-width="140" show-overflow-tooltip />
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="户ID" prop="userId" min-width="140" show-overflow-tooltip />
<el-table-column label="姓名" prop="name" min-width="120" />
<el-table-column label="上级ID" prop="parentId" min-width="140" show-overflow-tooltip />
<el-table-column label="上级姓名" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.parentName || scope.row.parentUserName || '-' }}
</template>
</el-table-column>
<el-table-column label="电话" prop="phone" min-width="120" />
<el-table-column label="地址" prop="address" min-width="160" show-overflow-tooltip />
<el-table-column label="行业" prop="industry" min-width="120" />
@@ -223,17 +221,14 @@ export default {
queryParams: {
current: 1,
size: 10,
tenantId: '',
userId: '',
parentId: '',
name: '',
phone: '',
industry: ''
phone: ''
},
parentQueryParams: {
current: 1,
size: 10,
tenantId: '',
userId: '',
parentId: '',
name: '',
@@ -289,12 +284,10 @@ export default {
const params = {
current: this.queryParams.current,
size: this.queryParams.size,
tenantId: this.queryParams.tenantId || undefined,
userId: this.queryParams.userId || undefined,
parentId: this.queryParams.parentId || undefined,
name: this.queryParams.name || undefined,
phone: this.queryParams.phone || undefined,
industry: this.queryParams.industry || undefined
phone: this.queryParams.phone || undefined
}
Object.keys(params).forEach((key) => {
if (params[key] === undefined || params[key] === '') delete params[key]
@@ -309,12 +302,10 @@ export default {
this.queryParams = {
current: 1,
size: 10,
tenantId: '',
userId: '',
parentId: '',
name: '',
phone: '',
industry: ''
phone: ''
}
this.fetchList()
},
@@ -373,7 +364,6 @@ export default {
this.parentQueryParams = {
current: 1,
size: 10,
tenantId: row.tenantId || '',
userId: '',
parentId: '',
name: '',
@@ -409,7 +399,6 @@ export default {
const params = {
current: this.parentQueryParams.current,
size: this.parentQueryParams.size,
tenantId: this.parentQueryParams.tenantId || undefined,
userId: this.parentQueryParams.userId || undefined,
parentId: this.parentQueryParams.parentId || undefined,
name: this.parentQueryParams.name || undefined,
@@ -443,7 +432,6 @@ export default {
this.parentQueryParams = {
current: 1,
size: 10,
tenantId: (this.currentParentTarget && this.currentParentTarget.tenantId) || '',
userId: '',
parentId: '',
name: '',
@@ -508,7 +496,6 @@ export default {
this.parentQueryParams = {
current: 1,
size: 10,
tenantId: '',
userId: '',
parentId: '',
name: '',