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

@@ -8,11 +8,12 @@ export default {
index: true,
viewBtn: false,
addBtn: false,
editBtn: false,
editBtn: true,
delBtn: false,
cellBtn: true,
selection: false,
dialogClickModal: false,
menuWidth: 150,
// menuWidth: 150,
column: [
{
label: '主键',
@@ -43,38 +44,74 @@ export default {
},
{
label: 'Category',
prop: 'name',
type: 'input'
prop: 'categoryName',
type: 'input',
overHidden: true,
},
{
label: 'Type',
prop: 'categoryType',
type: 'input'
type: 'radio',
dicUrl: '/blade-system/dict-biz/dictionary?code=category_type',
props: {
label: 'dictValue',
value: 'dictKey'
},
overHidden: true,
},
{
label: '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',
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',
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',
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',
prop: 'price',
type: 'input'
type: 'number',
cell: true,
},
{
label: 'DeptId',

View File

@@ -13,7 +13,7 @@ export const optionParent = {
dialogClickModal: false,
column: [
{
label: '字典编号',
label: 'Code',
prop: 'code',
search: true,
slot: true,
@@ -27,7 +27,7 @@ export const optionParent = {
],
},
{
label: '字典名称',
label: 'Value',
prop: 'dictValue',
search: true,
align: 'center',
@@ -40,7 +40,7 @@ export const optionParent = {
],
},
{
label: '字典排序',
label: 'Sort',
prop: 'sort',
type: 'number',
align: 'right',
@@ -55,18 +55,18 @@ export const optionParent = {
],
},
{
label: '封存',
label: 'Sealed',
prop: 'isSealed',
type: 'switch',
align: 'center',
width: 100,
dicData: [
{
label: '否',
label: 'N',
value: 0,
},
{
label: '是',
label: 'Y',
value: 1,
},
],
@@ -81,7 +81,7 @@ export const optionParent = {
],
},
{
label: '字典备注',
label: 'Remark',
prop: 'remark',
hide: true,
},
@@ -104,7 +104,7 @@ export const optionChild = {
dialogClickModal: false,
column: [
{
label: '字典编号',
label: 'Code',
prop: 'code',
addDisabled: true,
editDisabled: true,
@@ -119,7 +119,7 @@ export const optionChild = {
],
},
{
label: '字典名称',
label: 'Value',
prop: 'dictValue',
search: true,
align: 'center',
@@ -132,7 +132,7 @@ export const optionChild = {
],
},
{
label: '上级字典',
label: 'Parent',
prop: 'parentId',
type: 'tree',
dicData: [],
@@ -151,7 +151,7 @@ export const optionChild = {
],
},
{
label: '字典键值',
label: 'Key',
prop: 'dictKey',
width: 85,
rules: [
@@ -163,7 +163,7 @@ export const optionChild = {
],
},
{
label: '字典排序',
label: 'Sort',
prop: 'sort',
type: 'number',
align: 'right',
@@ -177,18 +177,18 @@ export const optionChild = {
],
},
{
label: '封存',
label: 'Sealed',
prop: 'isSealed',
type: 'switch',
align: 'center',
width: 80,
dicData: [
{
label: '否',
label: 'N',
value: 0,
},
{
label: '是',
label: 'Y',
value: 1,
},
],
@@ -203,7 +203,7 @@ export const optionChild = {
],
},
{
label: '字典备注',
label: 'Remark',
prop: 'remark',
hide: true,
},