feat: add order

This commit is contained in:
2025-10-08 04:39:40 +08:00
parent 86a309cda0
commit a290db8b35
6 changed files with 742 additions and 1 deletions

120
src/option/kiosk/order.js Normal file
View File

@@ -0,0 +1,120 @@
export default {
height:'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
addBtn: true,
delBtn: false,
editBtn: false,
viewBtn: false,
selection: true,
menuWidth: 300,
column: [
{
label: "Id",
prop: "id",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "TenantId",
prop: "tenantId",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "SerialNumber",
prop: "serialNumber",
type: "input",
},
{
label: "Phone",
prop: "userPhone",
type: "input",
},
{
label: "Email",
prop: "userEmail",
type: "input",
},
{
label: "Amount",
prop: "totalAmount",
type: "input",
},
{
label: "创建人",
prop: "createUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建部门",
prop: "createDept",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建时间",
prop: "createTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改人",
prop: "updateUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改时间",
prop: "updateTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "Status",
prop: "status",
type: 'radio',
dicUrl: '/blade-system/dict-biz/dictionary?code=order_status',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
},
{
label: "是否已删除",
prop: "isDeleted",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
]
}

View File

@@ -0,0 +1,161 @@
export default {
height:'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: false,
addBtn: false,
delBtn: false,
editBtn: false,
selection: true,
menuWidth: 300,
column: [
{
label: "Id",
prop: "id",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "TenantId",
prop: "tenantId",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "oid",
prop: "orderId",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "cid",
prop: "categoryId",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "CategoryType",
prop: "categoryType",
type: 'radio',
dicUrl: '/blade-system/dict-biz/dictionary?code=category_type',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
},
{
label: "Material",
prop: "material",
type: "input",
},
{
label: "Size",
prop: "size",
type: "input",
},
{
label: "Shape",
prop: "shape",
type: "input",
},
{
label: "Snapshot",
prop: "snapshotLink",
type: 'upload',
listType: 'picture-img',
dataType: 'string',
action: '/blade-resource/oss/endpoint/put-file',
propsHttp: {
res: 'data',
url: 'link'
}
},
{
label: "Amount",
prop: "totalAmount",
type: "number",
},
{
label: "创建人",
prop: "createUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建部门",
prop: "createDept",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建时间",
prop: "createTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改人",
prop: "updateUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改时间",
prop: "updateTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "Status",
prop: "status",
type: 'radio',
dicUrl: '/blade-system/dict-biz/dictionary?code=production_status',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
},
{
label: "是否已删除",
prop: "isDeleted",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
]
}