From a728db86a0e9e5ffc567900a2b4f4451daffc924 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 26 Mar 2025 00:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/model/TicketTicket.php | 2 +- .../src/view/common/ticket_flow.html | 87 +++++-- .../src/view/ticket_inter/detail.html | 216 +----------------- 3 files changed, 64 insertions(+), 241 deletions(-) diff --git a/plugs/think-plugs-ticket/src/model/TicketTicket.php b/plugs/think-plugs-ticket/src/model/TicketTicket.php index e8d592d..846e9a3 100644 --- a/plugs/think-plugs-ticket/src/model/TicketTicket.php +++ b/plugs/think-plugs-ticket/src/model/TicketTicket.php @@ -95,7 +95,7 @@ class TicketTicket extends Model public function inspectionShares() { - return $this->hasMany(TicketUserShare::class, 'linked_ticket_id'); + return $this->hasMany(TicketInspectionShare::class, 'linked_ticket_id'); } public function dept() diff --git a/plugs/think-plugs-ticket/src/view/common/ticket_flow.html b/plugs/think-plugs-ticket/src/view/common/ticket_flow.html index ffcff35..2c27a95 100644 --- a/plugs/think-plugs-ticket/src/view/common/ticket_flow.html +++ b/plugs/think-plugs-ticket/src/view/common/ticket_flow.html @@ -1,7 +1,10 @@
- {if $ticket.view_process} + {if $ticket.user_shares}
-
-
-
审核流程
-
-
-
- -
-

提交审核

-
- {$ticket.view_process.create_name}于{$ticket.view_process.create_time|date='Y-m-d H:i:s'}提交 -
- 审核说明:{$ticket.view_process.content} -
-
-
-
- {foreach $ticket.view_process.steps as $index=>$step} - {include file="common/step" /} - {/foreach} -
-
+
+
关联随手拍
+
+ + + + + + + + + + + + {foreach $ticket.user_shares as $user_share} + + + + + + + + + {/foreach} +
随手拍编号问题类型反馈人反馈内容反馈时间
{$user_share.id}{$user_share.type_name|default=""}{$user_share.contact_name|default=""}({$user_share.contact_phone|default=""}){$user_share.content|default=""}{$user_share.create_at|default=""}
+
+
+
+ {/if} + {if $ticket.inspection_shares} +
+
+
关联维修人员上报
+
+ + + + + + + + + + + + {foreach $ticket.inspection_shares as $inspection_share} + + + + + + + + + {/foreach} +
维修人员上报编号问题类型维修人员反馈内容反馈时间
{$inspection_share.id}{$inspection_share.type_name|default=""}{$inspection_share.contact_name|default=""}({$inspection_share.contact_phone|default=""}){$inspection_share.content|default=""}{$inspection_share.create_at|default=""}
diff --git a/plugs/think-plugs-ticket/src/view/ticket_inter/detail.html b/plugs/think-plugs-ticket/src/view/ticket_inter/detail.html index ffb893f..5cfb3fa 100644 --- a/plugs/think-plugs-ticket/src/view/ticket_inter/detail.html +++ b/plugs/think-plugs-ticket/src/view/ticket_inter/detail.html @@ -1,215 +1 @@ -
-
    -
  • 基本信息
  • -
  • 核实情况
  • -
  • 维修情况
  • -
  • 验收情况
  • -
  • 结算情况
  • -
-
-
-
-
工单内容
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
工单编号{$vo.id|default=""}
工单标题{$vo.title|default=""}
工单类型{$vo.type_name|default=""}
工单地址{$vo.ticket_region|default=""} {$vo.ticket_address|default=""}
工单内容{$vo.content|default=""}
反馈人信息{$vo.contact_name|default="未填写名称"} {$vo.contact_phone|default="未填写联系方式"}
工单图片 -
- {if count($vo.imgs_arr) > 0} - {foreach $vo.imgs_arr as $img} - image -   - {/foreach} - {else} - 无图片 - {/if} -
-
-
-
-
-
-
-
-
现场核实情况
- {if $vo.verify} -
- {foreach $vo.verify as $verify} - - - - - - - - - - - - - - - - - - - - - - - -
提交时间{$verify.create_at|default=""}
核实人{$verify.staff.name|default=""}【联系方式:{$verify.staff.phone|default=""}】
核实结果{$verify.content|default=""}
图片 -
- {foreach $verify.imgs_arr as $img} - image -   - {/foreach} -
-
预估工作量{$verify.work_days|default=""}
- {/foreach} -
- {else /} -
-
- 暂无核实记录 -
-
- {/if} -
-
-
-
-
工单维修情况
- {if $vo.repair} -
- {foreach $vo.repair as $repair} - - - - - - - - - - - - - - - - - - - -
提交时间{$repair.create_at|default=""}
维修人{$repair.staff.name|default=""}【联系方式:{$repair.staff.phone|default=""}】
维修结果{$repair.content|default=""}
图片 -
- {foreach $repair.imgs_arr as $img} - image -   - {/foreach} -
-
- {/foreach} -
- {else /} -
-
- 暂无维修记录 -
-
- {/if} -
-
-
-
-
工单验收情况
- {if $vo.repair_accept} -
- {foreach $vo.repair_accept as $accept} - - - - - - - - - - - - - - - - - - - -
提交时间{$accept.create_at|default=""}
验收人{$accept.staff.name|default=""}【联系方式:{$accept.staff.phone|default=""}】
验收结果{$accept.content|default=""}
图片 -
- {foreach $accept.imgs_arr as $img} - image -   - {/foreach} -
-
- {/foreach} -
- {else /} -
-
- 暂无验收记录 -
-
- {/if} -
-
-
-
-
工单结算情况
- {if $vo.calculate} - {else /} -
-
- 暂无结算记录 -
-
- 结算 -
-
- {/if} -
-
-
-
\ No newline at end of file +{include file="common/ticket_flow" /}