add price list
This commit is contained in:
2025-10-13 19:45:14 +08:00
parent e0ef897a62
commit 803e218a09
4 changed files with 81 additions and 39 deletions

View File

@@ -11,6 +11,9 @@
</el-col>
<el-col :span="19">
<basic-container>
<div style="margin-bottom: 20px;">
<el-tag effect="dark">{{ deptName || 'Not selected' }}</el-tag>
</div>
<avue-crud
:option="option"
v-model:search="search"
@@ -37,9 +40,9 @@
type="primary"
plain
icon="el-icon-refresh"
v-if="permission.priceList_refresh_price"
@click="handleRefresh"
>Refresh
v-if="permission.priceList_sync"
@click="handleSync"
>Sync
</el-button>
</template>
</avue-crud>
@@ -64,7 +67,7 @@ export default {
loading: true,
initLoading: false,
page: {
pageSize: 10,
pageSize: 50,
currentPage: 1,
total: 0
},
@@ -74,7 +77,8 @@ export default {
treeDeptId: '0',
treeParentId: '0',
treeData: [],
treeOption: treeOption
treeOption: treeOption,
deptName: '',
};
},
computed: {
@@ -99,6 +103,7 @@ export default {
nodeClick(data) {
this.treeDeptId = data.id;
this.treeParentId = data.parentId;
this.deptName = data.title;
this.page.currentPage = 1;
if (this.treeParentId !== '0') {
this.onLoad(this.page);

View File

@@ -28,7 +28,7 @@
v-if="permission.dictbiz_delete"
plain
@click="handleDelete"
>删 除
>Delete
</el-button>
</template>
<template #menu="scope">
@@ -38,17 +38,17 @@
icon="el-icon-setting"
@click.stop="handleRowClick(scope.row)"
v-if="userInfo.authority.includes('admin')"
>字典配置
>Config
</el-button>
</template>
<template #code="{ row }">
<el-tag @click="handleRowClick(row)" style="cursor: pointer">{{ row.code }}</el-tag>
</template>
<template #isSealed="{ row }">
<el-tag>{{ row.isSealed === 0 ? '否' : '是' }}</el-tag>
<el-tag>{{ row.isSealed === 0 ? 'N' : 'Y' }}</el-tag>
</template>
</avue-crud>
<el-dialog :title="`[${dictValue}]字典配置`" append-to-body v-model="box" width="1000px">
<el-dialog :title="`[${dictValue}]Config`" append-to-body v-model="box" width="1000px">
<avue-crud
:option="optionChild"
:table-loading="loadingChild"
@@ -76,7 +76,7 @@
v-if="permission.dict_delete"
plain
@click="handleDelete"
>删 除
>Delete
</el-button>
</template>
<template #menu="scope">
@@ -86,11 +86,11 @@
icon="el-icon-circle-plus"
@click.stop="handleAdd(scope.row, scope.index)"
v-if="userInfo.authority.includes('admin')"
>新增子项
>Add Sub
</el-button>
</template>
<template #isSealed="{ row }">
<el-tag>{{ row.isSealed === 0 ? '否' : '是' }}</el-tag>
<el-tag>{{ row.isSealed === 0 ? 'N' : 'Y' }}</el-tag>
</template>
</avue-crud>
</el-dialog>
@@ -113,7 +113,7 @@ import { mapGetters } from 'vuex';
export default {
data() {
return {
dictValue: '暂无',
dictValue: 'Empty',
parentId: -1,
formParent: {},
formChild: {},