From efb8a0b8c778e6341d5d3fe44649fa7929cec10f Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 25 Mar 2025 16:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/view/ticket/index.html | 17 +++++++++++++++++ .../src/view/ticket_outer/index.html | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) 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