diff --git a/plugs/think-plugs-ticket/src/view/ticket/index.html b/plugs/think-plugs-ticket/src/view/ticket/index.html index fafbf16..e1d5df2 100644 --- a/plugs/think-plugs-ticket/src/view/ticket/index.html +++ b/plugs/think-plugs-ticket/src/view/ticket/index.html @@ -71,6 +71,23 @@ return ''; } }}, + {field: 'view', title:'核验情况', width: 100, minWidth:100, templet:function(item){ + if (item.views && item.views.length > 0) { + // 已有核验工单 + const view = item.views[item.views.length - 1]; + if (view.status == 1) { + if (view.is_error == 1) { + return `存在异常`; + } else { + return `不存在异常`; + } + } else { + return `查看工单`; + } + } else { + return `创建核验工单`; + } + }}, {field:'status', title:'状态', width:80, templet:function(item){ if (item.status === 0) { /** {if auth("move")} */ diff --git a/plugs/think-plugs-ticket/src/view/ticket_outer/index.html b/plugs/think-plugs-ticket/src/view/ticket_outer/index.html index 69ae367..f02febb 100644 --- a/plugs/think-plugs-ticket/src/view/ticket_outer/index.html +++ b/plugs/think-plugs-ticket/src/view/ticket_outer/index.html @@ -71,6 +71,23 @@ return ''; } }}, + {field: 'view', title:'核验情况', width: 100, minWidth:100, templet:function(item){ + if (item.views && item.views.length > 0) { + // 已有核验工单 + const view = item.views[item.views.length - 1]; + if (view.status == 1) { + if (view.is_error == 1) { + return `存在异常`; + } else { + return `不存在异常`; + } + } else { + return `查看工单`; + } + } else { + return `创建核验工单`; + } + }}, {fixed: 'right', title:'操作', toolbar: '#toolbar', width:200} ]], page: true