128 lines
2.4 KiB
JSON
128 lines
2.4 KiB
JSON
{
|
||
"bsonType": "object",
|
||
"required": [],
|
||
"permission": {
|
||
"read": false,
|
||
"create": false,
|
||
"update": false,
|
||
"delete": false
|
||
},
|
||
"properties": {
|
||
"_id": {
|
||
"description": "ID,系统自动生成"
|
||
},
|
||
"comment": {
|
||
"bsonType": "string",
|
||
"description": "备注",
|
||
"title": "备注",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": false
|
||
}
|
||
},
|
||
"WorkOrder_No": {
|
||
"bsonType": "string",
|
||
"description": "工单编号",
|
||
"title": "工单编号",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Device_No": {
|
||
"bsonType": "string",
|
||
"description": "设备编号",
|
||
"title": "设备编号",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"WorkOrder_type": {
|
||
"bsonType": "int",
|
||
"defaultValue": 0,
|
||
"description": "工单类型:0 补货工单 1 投放工单 2 维修工单 3 撤机工单",
|
||
"enum": [{
|
||
"text": "补货工单",
|
||
"value": 0
|
||
}, {
|
||
"text": "投放工单",
|
||
"value": 1
|
||
}, {
|
||
"text": "维修工单",
|
||
"value": 2
|
||
}, {
|
||
"text": "撤机工单",
|
||
"value": 3
|
||
}],
|
||
"title": "工单类型",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"WorkOrder_mode": {
|
||
"bsonType": "int",
|
||
"defaultValue": 0,
|
||
"description": "工单方式:0 自动 1 手动",
|
||
"enum": [{
|
||
"text": "自动",
|
||
"value": 0
|
||
}, {
|
||
"text": "手动",
|
||
"value": 1
|
||
}],
|
||
"title": "工单方式",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"WorkOrder_state": {
|
||
"bsonType": "int",
|
||
"defaultValue": 0,
|
||
"description": "工单状态:0 完成 1 进行 2 取消 3 拒绝",
|
||
"enum": [{
|
||
"text": "完成",
|
||
"value": 0
|
||
}, {
|
||
"text": "进行",
|
||
"value": 1
|
||
}, {
|
||
"text": "取消",
|
||
"value": 2
|
||
}, {
|
||
"text": "拒绝",
|
||
"value": 3
|
||
}],
|
||
"title": "工单状态",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Operators": {
|
||
"bsonType": "string",
|
||
"description": "运营人员",
|
||
"title": "运营人员",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"CreationDate": {
|
||
"bsonType": "timestamp",
|
||
"title": "创建日期",
|
||
"description": "创建日期",
|
||
"forceDefaultValue": {
|
||
"$env": "now",
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
}
|
||
}
|
||
}
|