获取工单模板详情
GET
/open-api/workorder/template/detail错误码 | 说明 |
---|---|
223014 | template_id非法,对应工单模板不存在 |
调用此接口需购买服务席位。 |
请求参数
Query 参数
template_id
string
工单模板id
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
id
number
模板id
title
string
模板标题
permission_type
number
可选
is_flow_view
boolean
可选
is_evaluate
boolean
可选
creator_staff_filter
object
创建工单权限筛选器
staff_ids
array[string]
员工id列表
department_ids
array[string]
部门id列表
creator_staff_details
object
可选
创建本模板的员工详情
staff_list
array [object {3}]
员工列表
department_list
array [object {2}]
部门列表
component_list
array [object {5}]
自定义组件列表
id
number
组件id
title
string
组件标题
type
string
组件
is_show
boolean
是否向客户展示
config
object
组件配置
flow_list
array [object {5}]
可选
工单模板流程信息列表
id
number
流程id
deal_staff_filter
object
处理者权限筛选
deal_staff_details
object
处理人详情
cc_staff_filter
object
抄送人筛选
cc_staff_details
object
抄送员工详情
示例
{
"errcode": 0,
"errmsg": "ok",
"template_detail": {
"component_list": [
{
"config": {
"component_id": "default-number",
"is_custom_attr": false,
"is_required": true,
"option_list": [],
"placeholder": "",
"sort": 0
},
"id": 155,
"is_show": false,
"title": "工单编号",
"type": "label"
},
{
"config": {
"component_id": "default-title",
"is_custom_attr": false,
"is_required": true,
"max_length": 50,
"option_list": [],
"placeholder": "请输入工单标题",
"sort": 1
},
"id": 156,
"is_show": false,
"title": "工单标题",
"type": "input"
},
{
"config": {
"component_id": "default-flow",
"is_custom_attr": false,
"is_required": true,
"option_list": [],
"placeholder": "请选择工单流程",
"sort": 2
},
"id": 157,
"is_show": false,
"title": "工单流程",
"type": "select"
},
{
"config": {
"component_id": "default-describe",
"is_custom_attr": false,
"is_required": true,
"max_length": 400,
"option_list": [],
"placeholder": "请用一两句话描述您遇到的问题\n支持在此粘贴照片",
"sort": 3
},
"id": 158,
"is_show": false,
"title": "内容描述",
"type": "textarea"
},
{
"config": {
"component_id": "default-customer-or-group",
"is_custom_attr": false,
"is_required": true,
"option_list": [],
"placeholder": "客户昵称",
"sort": 4
},
"id": 159,
"is_show": false,
"title": "关联客户/群",
"type": "select"
},
{
"config": {
"component_id": "default-handler",
"is_custom_attr": false,
"is_required": true,
"option_list": [],
"placeholder": "请选择处理人",
"sort": 5
},
"id": 160,
"is_show": false,
"title": "处理人",
"type": "select"
},
{
"config": {
"component_id": "self-select-1641889474627",
"is_custom_attr": false,
"is_required": false,
"option_list": [
{
"img_src": "",
"key": "1",
"no_delete": true,
"value": "营销"
},
{
"img_src": "",
"key": "2",
"no_delete": true,
"value": "运营"
},
{
"img_src": "",
"key": "3",
"no_delete": true,
"value": "销售"
},
{
"img_src": "",
"key": "1641889487983",
"no_delete": true,
"value": "服务"
},
{
"img_src": "",
"key": "1641889488581",
"no_delete": true,
"value": "开放平台"
},
{
"img_src": "",
"key": "1641889489133",
"no_delete": true,
"value": "商业化"
},
{
"img_src": "",
"key": "1641889499573",
"no_delete": true,
"value": "其他"
}
],
"placeholder": "请选择",
"sort": 6
},
"id": 161,
"is_show": false,
"title": "所属模块",
"type": "select"
},
{
"config": {
"component_id": "basic-copy",
"is_custom_attr": false,
"is_required": false,
"option_list": [],
"placeholder": "请选择抄送人",
"sort": 7
},
"id": 162,
"is_show": false,
"title": "抄送人",
"type": "select"
},
{
"config": {
"component_id": "self-input-1641889519142",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "请输入",
"sort": 8
},
"id": 163,
"is_show": false,
"title": "企业名称",
"type": "input"
},
{
"config": {
"component_id": "self-input-1641889543774",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "请输入",
"sort": 9
},
"id": 164,
"is_show": false,
"title": "需求提出方",
"type": "input"
},
{
"config": {
"component_id": "self-select-1641889577044",
"is_custom_attr": false,
"is_required": false,
"option_list": [
{
"img_src": "",
"key": "1",
"no_delete": true,
"value": "S8"
},
{
"img_src": "",
"key": "2",
"no_delete": true,
"value": "KA"
},
{
"img_src": "",
"key": "3",
"no_delete": true,
"value": "A6"
},
{
"img_src": "",
"key": "1641889590957",
"no_delete": true,
"value": "标准版"
},
{
"img_src": "",
"key": "1641889591533",
"no_delete": true,
"value": "小客户"
},
{
"img_src": "",
"key": "1641889599742",
"no_delete": true,
"value": "其他"
}
],
"placeholder": "请选择",
"sort": 10
},
"id": 165,
"is_show": false,
"title": "客户等级",
"type": "select"
},
{
"config": {
"component_id": "self-select-1641889608782",
"is_custom_attr": false,
"is_required": false,
"option_list": [
{
"img_src": "",
"key": "1",
"no_delete": true,
"value": "很着急"
},
{
"img_src": "",
"key": "2",
"no_delete": true,
"value": "急"
},
{
"img_src": "",
"key": "3",
"no_delete": true,
"value": "普通"
}
],
"placeholder": "请选择",
"sort": 11
},
"id": 166,
"is_show": false,
"title": "客情",
"type": "select"
},
{
"config": {
"component_id": "self-select-1641889628247",
"is_custom_attr": false,
"is_required": false,
"option_list": [
{
"img_src": "",
"key": "1",
"no_delete": true,
"value": "Bug转需求"
},
{
"img_src": "",
"key": "2",
"no_delete": true,
"value": "重要且紧急"
},
{
"img_src": "",
"key": "3",
"no_delete": true,
"value": "重要不紧急"
},
{
"img_src": "",
"key": "1641889654581",
"no_delete": true,
"value": "其他"
}
],
"placeholder": "请选择",
"sort": 12
},
"id": 167,
"is_show": false,
"title": "特殊权重类型",
"type": "select"
},
{
"config": {
"component_id": "self-mul-input-1641889662868",
"is_custom_attr": false,
"is_required": false,
"max_length": 400,
"option_list": [],
"placeholder": "请输入",
"sort": 13
},
"id": 168,
"is_show": false,
"title": "特殊权重描述",
"type": "textarea"
},
{
"config": {
"component_id": "self-select-1641889673277",
"is_custom_attr": false,
"is_required": false,
"option_list": [
{
"img_src": "",
"key": "1",
"no_delete": true,
"value": "P0"
},
{
"img_src": "",
"key": "2",
"no_delete": true,
"value": "P1"
},
{
"img_src": "",
"key": "3",
"no_delete": true,
"value": "P2"
},
{
"img_src": "",
"key": "1641889696557",
"no_delete": true,
"value": "其他"
}
],
"placeholder": "请选择",
"sort": 14
},
"id": 169,
"is_show": false,
"title": "建议优先级",
"type": "select"
},
{
"config": {
"component_id": "basic-file",
"is_custom_attr": false,
"is_required": false,
"option_list": [],
"placeholder": "",
"sort": 15
},
"id": 170,
"is_show": false,
"title": "附件",
"type": "file"
},
{
"config": {
"component_id": "basic-chat-record",
"is_custom_attr": false,
"is_required": false,
"option_list": [],
"placeholder": "",
"sort": 16
},
"id": 171,
"is_show": false,
"title": "附带聊天记录",
"type": "speakRecord"
},
{
"config": {
"component_id": "self-input-1641889727758",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "系统自动维护,无需填写",
"sort": 17
},
"id": 172,
"is_show": false,
"title": "Jira链接",
"type": "input"
},
{
"config": {
"component_id": "self-input-1641993107226",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "请输入",
"sort": 18
},
"id": 177,
"is_show": false,
"title": "Jira状态",
"type": "input"
},
{
"config": {
"component_id": "self-input-1641889745806",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "系统自动维护,无需填写",
"sort": 19
},
"id": 173,
"is_show": false,
"title": "主工单链接",
"type": "input"
},
{
"config": {
"component_id": "self-mul-input-1641889756091",
"is_custom_attr": false,
"is_required": false,
"max_length": 400,
"option_list": [],
"placeholder": "请输入",
"sort": 20
},
"id": 174,
"is_show": false,
"title": "从工单链接链接",
"type": "textarea"
},
{
"config": {
"component_id": "self-input-1641889773158",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "系统自动维护,无需填写",
"sort": 21
},
"id": 175,
"is_show": false,
"title": "模块产品负责人",
"type": "input"
},
{
"config": {
"component_id": "self-input-1641889783406",
"is_custom_attr": false,
"is_required": false,
"max_length": 200,
"option_list": [],
"placeholder": "系统自动维护,无需填写",
"sort": 22
},
"id": 176,
"is_show": false,
"title": "当前状态",
"type": "input"
}
],
"creator_staff_details": {
"department_list": [],
"staff_list": [
{
"avatar": "http://wework.qpic.cn/bizmail/pqic6ciciaqTPaliaZn3BjhlU1glZAHzpKFahMxseYcGwReVQucE9sDxfw/0",
"id": 3427,
"name": "边权",
"staff_id": "BianQuan"
},
{
"avatar": "http://wework.qpic.cn/bizmail/0qLHk7aPkGRiaHKnWiaBcv9jKaJxmaq9VTGADRibOPSD1S9VUoOdLc20Q/0",
"id": 3074,
"name": "叶鹏腾",
"staff_id": "YePengTeng"
},
{
"avatar": "http://wework.qpic.cn/bizmail/Relia0icEBhhTKib08ZU4UBXsxjMqnFwlicZ56weJqxicibGicZPyysCiaCAFA/0",
"id": 2908,
"name": "莫鹏程",
"staff_id": "cheng"
}
]
},
"creator_staff_filter": {
"department_ext_ids": [],
"staff_ext_ids": [
"BianQuan",
"YePengTeng",
"cheng"
]
},
"flow_list": [
{
"cc_staff_details": {
"department_list": [],
"staff_list": []
},
"cc_staff_filter": {
"department_ext_ids": [],
"staff_ext_ids": []
},
"deal_staff_details": {
"department_list": [],
"staff_list": [
{
"avatar": "http://wework.qpic.cn/bizmail/Relia0icEBhhTKib08ZU4UBXsxjMqnFwlicZ56weJqxicibGicZPyysCiaCAFA/0",
"id": 2908,
"name": "莫鹏程",
"staff_id": "cheng"
}
]
},
"deal_staff_filter": {
"department_ext_ids": [],
"staff_ext_ids": [
"cheng"
]
},
"id": 92
}
],
"id": 21,
"is_evaluate": true,
"is_flow_view": false,
"is_staff_view": 1,
"permission_type": 1,
"title": "【勿删】-需求统一管理流"
}
}
最后修改时间: 8 个月前