feat:
add price list
This commit is contained in:
@@ -8,11 +8,12 @@ export default {
|
|||||||
index: true,
|
index: true,
|
||||||
viewBtn: false,
|
viewBtn: false,
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
editBtn: false,
|
editBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
|
cellBtn: true,
|
||||||
selection: false,
|
selection: false,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
menuWidth: 150,
|
// menuWidth: 150,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: '主键',
|
label: '主键',
|
||||||
@@ -43,38 +44,74 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Category',
|
label: 'Category',
|
||||||
prop: 'name',
|
prop: 'categoryName',
|
||||||
type: 'input'
|
type: 'input',
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Type',
|
label: 'Type',
|
||||||
prop: 'categoryType',
|
prop: 'categoryType',
|
||||||
type: 'input'
|
type: 'radio',
|
||||||
|
dicUrl: '/blade-system/dict-biz/dictionary?code=category_type',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
|
},
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Shape',
|
label: 'Shape',
|
||||||
prop: 'shape',
|
prop: 'shape',
|
||||||
type: 'input'
|
type: 'radio',
|
||||||
|
dicUrl: '/blade-system/dict-biz/dictionary?code=shape_type',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
|
},
|
||||||
|
dataType: 'number',
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Material',
|
label: 'Material',
|
||||||
prop: 'material',
|
prop: 'material',
|
||||||
type: 'input'
|
type: 'radio',
|
||||||
|
dicUrl: '/blade-system/dict-biz/dictionary?code=material_type',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
|
},
|
||||||
|
dataType: 'number',
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Size',
|
label: 'Size',
|
||||||
prop: 'size',
|
prop: 'size',
|
||||||
type: 'input'
|
type: 'radio',
|
||||||
|
dicUrl: '/blade-system/dict-biz/dictionary?code=size_type',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
|
},
|
||||||
|
dataType: 'number',
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Currency',
|
label: 'Currency',
|
||||||
prop: 'currency',
|
prop: 'currency',
|
||||||
type: 'input'
|
type: 'select',
|
||||||
|
dicUrl: '/blade-system/dict-biz/dictionary?code=currency_type',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
|
},
|
||||||
|
dataType: 'number',
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Price',
|
label: 'Price',
|
||||||
prop: 'price',
|
prop: 'price',
|
||||||
type: 'input'
|
type: 'number',
|
||||||
|
cell: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'DeptId',
|
label: 'DeptId',
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const optionParent = {
|
|||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: '字典编号',
|
label: 'Code',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
search: true,
|
search: true,
|
||||||
slot: true,
|
slot: true,
|
||||||
@@ -27,7 +27,7 @@ export const optionParent = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典名称',
|
label: 'Value',
|
||||||
prop: 'dictValue',
|
prop: 'dictValue',
|
||||||
search: true,
|
search: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -40,7 +40,7 @@ export const optionParent = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典排序',
|
label: 'Sort',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
align: 'right',
|
align: 'right',
|
||||||
@@ -55,18 +55,18 @@ export const optionParent = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '封存',
|
label: 'Sealed',
|
||||||
prop: 'isSealed',
|
prop: 'isSealed',
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
dicData: [
|
dicData: [
|
||||||
{
|
{
|
||||||
label: '否',
|
label: 'N',
|
||||||
value: 0,
|
value: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '是',
|
label: 'Y',
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -81,7 +81,7 @@ export const optionParent = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典备注',
|
label: 'Remark',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
hide: true,
|
hide: true,
|
||||||
},
|
},
|
||||||
@@ -104,7 +104,7 @@ export const optionChild = {
|
|||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: '字典编号',
|
label: 'Code',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
addDisabled: true,
|
addDisabled: true,
|
||||||
editDisabled: true,
|
editDisabled: true,
|
||||||
@@ -119,7 +119,7 @@ export const optionChild = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典名称',
|
label: 'Value',
|
||||||
prop: 'dictValue',
|
prop: 'dictValue',
|
||||||
search: true,
|
search: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -132,7 +132,7 @@ export const optionChild = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '上级字典',
|
label: 'Parent',
|
||||||
prop: 'parentId',
|
prop: 'parentId',
|
||||||
type: 'tree',
|
type: 'tree',
|
||||||
dicData: [],
|
dicData: [],
|
||||||
@@ -151,7 +151,7 @@ export const optionChild = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典键值',
|
label: 'Key',
|
||||||
prop: 'dictKey',
|
prop: 'dictKey',
|
||||||
width: 85,
|
width: 85,
|
||||||
rules: [
|
rules: [
|
||||||
@@ -163,7 +163,7 @@ export const optionChild = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典排序',
|
label: 'Sort',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
align: 'right',
|
align: 'right',
|
||||||
@@ -177,18 +177,18 @@ export const optionChild = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '封存',
|
label: 'Sealed',
|
||||||
prop: 'isSealed',
|
prop: 'isSealed',
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 80,
|
width: 80,
|
||||||
dicData: [
|
dicData: [
|
||||||
{
|
{
|
||||||
label: '否',
|
label: 'N',
|
||||||
value: 0,
|
value: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '是',
|
label: 'Y',
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -203,7 +203,7 @@ export const optionChild = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '字典备注',
|
label: 'Remark',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
hide: true,
|
hide: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19">
|
<el-col :span="19">
|
||||||
<basic-container>
|
<basic-container>
|
||||||
|
<div style="margin-bottom: 20px;">
|
||||||
|
<el-tag effect="dark">{{ deptName || 'Not selected' }}</el-tag>
|
||||||
|
</div>
|
||||||
<avue-crud
|
<avue-crud
|
||||||
:option="option"
|
:option="option"
|
||||||
v-model:search="search"
|
v-model:search="search"
|
||||||
@@ -37,9 +40,9 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
v-if="permission.priceList_refresh_price"
|
v-if="permission.priceList_sync"
|
||||||
@click="handleRefresh"
|
@click="handleSync"
|
||||||
>Refresh
|
>Sync
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
@@ -64,7 +67,7 @@ export default {
|
|||||||
loading: true,
|
loading: true,
|
||||||
initLoading: false,
|
initLoading: false,
|
||||||
page: {
|
page: {
|
||||||
pageSize: 10,
|
pageSize: 50,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
total: 0
|
total: 0
|
||||||
},
|
},
|
||||||
@@ -74,7 +77,8 @@ export default {
|
|||||||
treeDeptId: '0',
|
treeDeptId: '0',
|
||||||
treeParentId: '0',
|
treeParentId: '0',
|
||||||
treeData: [],
|
treeData: [],
|
||||||
treeOption: treeOption
|
treeOption: treeOption,
|
||||||
|
deptName: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -99,6 +103,7 @@ export default {
|
|||||||
nodeClick(data) {
|
nodeClick(data) {
|
||||||
this.treeDeptId = data.id;
|
this.treeDeptId = data.id;
|
||||||
this.treeParentId = data.parentId;
|
this.treeParentId = data.parentId;
|
||||||
|
this.deptName = data.title;
|
||||||
this.page.currentPage = 1;
|
this.page.currentPage = 1;
|
||||||
if (this.treeParentId !== '0') {
|
if (this.treeParentId !== '0') {
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
v-if="permission.dictbiz_delete"
|
v-if="permission.dictbiz_delete"
|
||||||
plain
|
plain
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
>删 除
|
>Delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #menu="scope">
|
<template #menu="scope">
|
||||||
@@ -38,17 +38,17 @@
|
|||||||
icon="el-icon-setting"
|
icon="el-icon-setting"
|
||||||
@click.stop="handleRowClick(scope.row)"
|
@click.stop="handleRowClick(scope.row)"
|
||||||
v-if="userInfo.authority.includes('admin')"
|
v-if="userInfo.authority.includes('admin')"
|
||||||
>字典配置
|
>Config
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #code="{ row }">
|
<template #code="{ row }">
|
||||||
<el-tag @click="handleRowClick(row)" style="cursor: pointer">{{ row.code }}</el-tag>
|
<el-tag @click="handleRowClick(row)" style="cursor: pointer">{{ row.code }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
<template #isSealed="{ row }">
|
<template #isSealed="{ row }">
|
||||||
<el-tag>{{ row.isSealed === 0 ? '否' : '是' }}</el-tag>
|
<el-tag>{{ row.isSealed === 0 ? 'N' : 'Y' }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</avue-crud>
|
</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
|
<avue-crud
|
||||||
:option="optionChild"
|
:option="optionChild"
|
||||||
:table-loading="loadingChild"
|
:table-loading="loadingChild"
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
v-if="permission.dict_delete"
|
v-if="permission.dict_delete"
|
||||||
plain
|
plain
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
>删 除
|
>Delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #menu="scope">
|
<template #menu="scope">
|
||||||
@@ -86,11 +86,11 @@
|
|||||||
icon="el-icon-circle-plus"
|
icon="el-icon-circle-plus"
|
||||||
@click.stop="handleAdd(scope.row, scope.index)"
|
@click.stop="handleAdd(scope.row, scope.index)"
|
||||||
v-if="userInfo.authority.includes('admin')"
|
v-if="userInfo.authority.includes('admin')"
|
||||||
>新增子项
|
>Add Sub
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #isSealed="{ row }">
|
<template #isSealed="{ row }">
|
||||||
<el-tag>{{ row.isSealed === 0 ? '否' : '是' }}</el-tag>
|
<el-tag>{{ row.isSealed === 0 ? 'N' : 'Y' }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -113,7 +113,7 @@ import { mapGetters } from 'vuex';
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dictValue: '暂无',
|
dictValue: 'Empty',
|
||||||
parentId: -1,
|
parentId: -1,
|
||||||
formParent: {},
|
formParent: {},
|
||||||
formChild: {},
|
formChild: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user