Quellcode durchsuchen

退回原因查看

ljy121 vor 1 Jahr
Ursprung
Commit
95e9f9778b

+ 4 - 0
zjugis-workflow/src/main/resources/templates/IFlowRecord/css/index.css

@@ -210,6 +210,10 @@ body{
     text-decoration: underline;
 }
 
+.wf-reason-more:hover{
+    text-decoration: underline;
+}
+
 .clearfix{
     clear:both;
 }

+ 18 - 1
zjugis-workflow/src/main/resources/templates/IFlowRecord/index.ftl

@@ -146,6 +146,23 @@
                                     <ul class="workflow-chart-details-list">
                                         <li>退回人:${f.returnWorkName!}</li>
                                         <li>退回时间:${(f.returnTime?string("yyyy-MM-dd HH:mm:ss"))!}</li>
+                                        <#if (f.backReason)??>
+                                            <li>
+                                                <div class="z-form-table">
+                                                    <div style="white-space: nowrap;">退回原因:</div>
+                                                    <div style="word-wrap:break-all;">
+                                                        <#if f.backReason?length gt 20>
+                                                            ${f.backReason?substring(0, 20)}...
+                                                        <#else>
+                                                            ${f.backReason!}
+                                                        </#if>
+                                                        <a class="wf-reason-more" rUser="${f.returnWorkName!}" activityid="${f.activityInsId}">
+                                                            查看退回原因<i class="fa fa-angle-double-right"></i>
+                                                        </a>
+                                                    </div>
+                                                </div>
+                                            </li>
+                                        </#if>
                                     </ul>
                                 </li>
                                 <#break>
@@ -180,4 +197,4 @@
             flowDesign: '${flowDesign!}'
         }
     </script>
-</@mp.masterPage>
+</@mp.masterPage>

+ 11 - 1
zjugis-workflow/src/main/resources/templates/IFlowRecord/js/index.js

@@ -419,6 +419,16 @@
                 height: 372
             });
         });
+        //绑定查看更多退回原因事件
+        $("a.wf-reason-more").on("click", function () {
+            z.ui.modal("viewReason").init({
+                url: "/IFlowRecord/viewBackReason",
+                title: "查看退回原因",
+                data: { "activityInsId": $(this).attr("activityid"),"backUser": $(this).attr("rUser") },
+                width: 680,
+                height: 372
+            });
+        });
         //绑定活动节点移上去事件
         var nodes = z.workflow.gooflow("[name=gooflow]").getData().nodes;
         z.ui.ajax({
@@ -490,4 +500,4 @@
         }
         return content;
     }
-}());
+}());

+ 24 - 0
zjugis-workflow/src/main/resources/templates/IFlowRecord/viewBackReason.ftl

@@ -0,0 +1,24 @@
+<div class="z-form-wrap" name="viewOpinionForm" style="height: 100%;">
+    <#list returnRecords as o>
+        <div class="z-form-row" style="margin-top: 4px;margin-bottom: 0px;">
+            <div class="z-sub-title">
+                <span>
+                    <p style="float: left;margin: 0px;padding: 0px;width: 190px;">退回人:${backUser!}</p>
+                    <p style="float: left;margin: 0px;padding: 0px;">
+                        退回时间:${(o.createTime?string("yyyy-MM-dd HH:mm:ss"))!}
+                    </p>
+                </span>
+            </div>
+        </div>
+        <div class="z-form-row">
+            <div class="z-form-group z-col-100">
+                <div class="z-form-control z-col-100">
+                    <div class="z-comp-textarea z-readonly">
+                        <textarea style="height: 120px;">${o.backReason!}</textarea>
+                    </div>
+                </div>
+            </div>
+        </div>
+        <div style="clear: both;"></div>
+    </#list>
+</div>