ソースを参照

下载文件pdf修改

zhanglinxin 1 年間 前
コミット
93047c374c

+ 0 - 108
application/api/view/common/index.html

@@ -1,108 +0,0 @@
-<style>
-    table {
-        /*letter-spacing: 1px;*/
-        width: 100%;
-        border-collapse: collapse;
-        table-layout: fixed;
-    }
-    td {
-        text-align: left; /* 文本左对齐 */
-        /*border: 1px solid black; !* 设置单元格边框 *!*/
-    }
-    .content {
-        border: 1px solid black;
-        /*line-height: 1.6em;*/
-        /*text-indent: 5px;*/
-    }
-    .content1 {
-        border: 1px solid black;
-        /*line-height: 1.6em;*/
-        /*text-indent: 5px;*/
-        /*padding: 10px;*/
-        /*box-sizing: border-box;*/
-    }
-    .with-30{
-        width:30%;
-    }
-    .with-70{
-        width:60%;
-    }
-    .border-0{
-        border: none;
-    }
-    .line-height-30{
-        line-height: 30px;
-    }
-    .align-center {
-        text-align: center;
-    }
-    .font-size-14{
-        font-size: 14pt;
-    }
-</style>
-<div class="align-center font-size-14">出差审批单</div>
-<table cellpadding="8">
-    <tr>
-        <td class="content">附件</td>
-        <td class="content1">深圳市食药安办 深圳市教育局 深圳市市场监督管理局关于开展2022年“护苗促食安”校园食品安全专项行动的通知(深食药安办〔2022〕23号).pdf</td>
-    </tr>
-</table>
-<table cellpadding="8">
-    <tr>
-        <td class="content" rowspan="3">审批流程</td>
-        <td class="content" style="line-height: 100%;">
-            <div style="line-height: 100%;">拟由总务处(安全办)阅办。请校长审批。</div>
-            <div style="line-height: 100%;">范静 已同意 create-time</div>
-            <table>
-                <tr>
-                    <td><img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
-                             height="20px"></td>
-                    <td align="right">createtime</td>
-                </tr>
-            </table>
-        </td>
-    </tr>
-    <tr>
-        <td class="content" style="line-height: 100%;">
-            <div style="line-height: 100%;">拟由总务处(安全办)阅办。请校长审批。</div>
-            <div style="line-height: 100%;">范静 已同意 create-time</div>
-            <table>
-                <tr>
-                    <td><img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
-                             height="20px"></td>
-                    <td align="right">createtime</td>
-                </tr>
-            </table>
-        </td>
-    </tr>
-    <tr>
-        <td class="content" style="line-height: 100%;">
-            <div style="line-height: 100%;">拟由总务处(安全办)阅办。请校长审批。</div>
-            <div style="line-height: 100%;">范静 已同意 create-time</div>
-            <table>
-                <tr>
-                    <td><img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
-                             height="20px"></td>
-                    <td align="right">createtime</td>
-                </tr>
-            </table>
-        </td>
-    </tr>
-</table>
-
-<!--<table cellpadding="8">-->
-<!--    <tr>-->
-<!--        <td class="content" rowspan="3">审批流程</td>-->
-<!--        <td colspan="2" class="content">拟由总务处(安全办)阅办。请校长审批。</td>-->
-<!--    </tr>-->
-<!--    <tr>-->
-<!--        <td class="content">范静 已同意</td>-->
-<!--        <td class="content" align="right">create-time</td>-->
-<!--    </tr>-->
-<!--    <tr>-->
-<!--        <td class="content" align="left" colspan="2" >-->
-<!--            <img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"-->
-<!--                 height="20px">-->
-<!--        </td>-->
-<!--    </tr>-->
-<!--</table>-->

+ 83 - 37
application/api/view/common/index_10.html

@@ -1,40 +1,86 @@
-{include file='approve_info/index_search_10'}
-<table class="layui-table margin-top-10" lay-skin="line">
-    {notempty name='list'}
-    <thead>
-    <tr>
-        <th class='text-left nowrap'>申请ID</th>
-        <th class='text-left nowrap'>提交人</th>
-        <th class='text-left nowrap'>审批状态</th>
-        <th class='text-left nowrap'>创建时间</th>
-        <th class='text-left nowrap'>审批编号</th>
-        <th class='text-left nowrap'>申请日期</th>
-        <th class='text-left nowrap'>来文单位</th>
-        <th class='text-left nowrap'>文件名称</th>
-        <th class="text-center nowrap">操作</th>
-    </tr>
-    </thead>
-    {/notempty}
-    <tbody>
-    {foreach $list as $key=>$vo}
-    <tr>
-        <td class='text-left nowrap'>{$vo.id}</td>
-        <td class='text-left nowrap'>
-            <p>用户姓名:{$vo.create_user.name|default='--'}</p>
-            <p class="color-desc">手机号码:{$vo.create_user.mobile|default="--"}</p>
-        </td>
-        <td class='text-left nowrap'><strong>{$get_approve_status_list[$vo.status]}</strong></td>
-        <td class='text-left nowrap'>{$vo.create_at}</td>
-        <td class='text-left nowrap'>{$vo.order_no}</td>
-        <td class='text-left nowrap'>{$vo.apply_date}</td>
-        <td class='text-left nowrap'>{$vo.desc}</td>
-        <td class='text-left nowrap'>{$vo.reason}</td>
-        <td class='text-center nowrap'>
-            <a class="layui-btn layui-btn-xs layui-bg-blue" data-open="{:url('approve_info_log/index')}?info_id={$vo.id}">审批人修改记录</a>
-            <a class="layui-btn layui-btn-xs" data-open="{:url('edit')}?id={$vo.id}">详 情</a>
+<style>
+    table {
+        /*letter-spacing: 1px;*/
+        width: 100%;
+        border-collapse: collapse;
+        table-layout: fixed;
+    }
+    td {
+        text-align: left;
+    }
+    .content {
+        border: 1px solid black;
+    }
+    .with-30{
+        width:30%;
+    }
+    .with-70{
+        width:60%;
+    }
+    .align-center {
+        text-align: center;
+    }
+    .font-size-14{
+        font-size: 14pt;
+    }
+</style>
+<div class="align-center font-size-14">{$get_module_list[$vo.module]|default='--'}审批单</div>
+<table cellpadding="6">
+    <tr>
+        <td class="with-30">{$vo.subject|default='--'}</td>
+        <td class="with-70">&nbsp;&nbsp;创建时间:{$vo.apply_date|default='--'}</td>
+        <td></td>
+    </tr>
+</table>
+<table cellpadding="8">
+    <tr>
+        <td class="content with-30">审批编号</td>
+        <td class="content with-70">{$vo.order_no|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">审批状态</td>
+        <td class="content">{$get_approve_status_list[$vo.status]|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">创建人</td>
+        <td class="content">{$vo.create_user.name|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">创建人部门</td>
+        <td class="content">{foreach $vo.department_data as $k=>$v} {$v.name}&nbsp;{/foreach}
         </td>
     </tr>
-    {/foreach}
-    </tbody>
+    <tr>
+        <td class="content">创建人</td>
+        <td class="content">{$vo.module_info.founder|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">来文单位名称</td>
+        <td class="content">{$vo.module_info.desc|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">收文序号</td>
+        <td class="content">{$vo.module_info.serial_number|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">文件名称</td>
+        <td class="content">{$vo.reason|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">附件</td>
+        <td class="content"></td>
+    </tr>
+    <tr>
+        <td class="content">缓急程度</td>
+        <td class="content">{$get_degree_list[$vo.module_info.degree]|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">收文日期</td>
+        <td class="content">{$vo.module_info.start_time|default='--'}</td>
+    </tr>
+    <tr>
+        <td class="content">内容摘要</td>
+        <td class="content">{$vo.module_info.remark|default='--'}</td>
+    </tr>
 </table>
-{empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
+{include file='common/index_approve'}

+ 1 - 26
application/api/view/common/index_11.html

@@ -83,29 +83,4 @@
         <td class="content">{$vo.module_info.serial_number|default='--'}</td>
     </tr>
 </table>
-{notempty name='vo.approve'}
-<table cellpadding="8">
-    {foreach $vo.approve as $k=>$v}
-    <tr>
-        {if ($k eq 1)}<td class="content with-30" rowspan="{$vo.approve_count}">审批流程</td>{/if}
-        <td class="content with-70" style="line-height: 100%;">
-            {if $v.remark}<div style="line-height: 100%;">{$v.remark}</div> {/if}
-            <table cellpadding="0">
-                <tr>
-                    <td>{$v.user.name|default='--'}&nbsp;{$get_approve_status_list_admin[$v.status]|default='--'}</td>
-                    <td align="right">{$v.approve_time|default='--'}</td>
-                </tr>
-            </table>
-            {if ($v.user.signature_status eq 3)}
-            <div style="line-height: 100%;"><img src="{$v.user.signature}" with="20px" height="20px"></div>
-            {/if}
-        </td>
-    </tr>
-    {/foreach}
-    {notempty name='vo.approve_copy'}
-    <tr>
-        <td class="content">抄送 {foreach $vo.approve_copy as $k=>$v}{$v.user.name|default='--'}&nbsp;{/foreach}</td>
-    </tr>
-    {/notempty}
-</table>
-{/notempty}
+{include file='common/index_approve'}

+ 4 - 4
application/approve/view/approve_info/form_1.html

@@ -87,29 +87,29 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
-                {notempty name='vo.module_info.images_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">图片</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.images_text'}
                         {foreach $vo.module_info.images_text as $k=>$v}
                         <img data-tips-image src="{$v}" style="height: 300px;vertical-align:top"
                              class="margin-right-10 margin-bottom-10">
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">支付方式</label>
                     <div class="layui-input-block">

+ 14 - 13
application/approve/view/approve_info/form_10.html

@@ -74,39 +74,40 @@
                     </div>
                 </div>
                 <div class="layui-form-item">
-                    <label class="layui-form-label color-green font-w7">收文日期</label>
+                    <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
-                        <input name="" placeholder="" value="{$vo.module_info.start_time|default='--'}"
-                               class="layui-input border-0" disabled>
+                        {notempty name='vo.module_info.document_text'}
+                        {foreach $vo.module_info.document_text as $k=>$v}
+                        <p><a href="{$v}" target="_blank">{$v}</a></p>
+                        {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
                 <div class="layui-form-item">
-                    <label class="layui-form-label color-green font-w7">内容摘要</label>
+                    <label class="layui-form-label color-green font-w7">缓急程度</label>
                     <div class="layui-input-block">
-                        <textarea class="layui-input border-0" style="height: 100px" disabled>{$vo.module_info.remark|default='--'}</textarea>
+                        <input name="" placeholder="" value="{$get_degree_list[$vo.module_info.degree]|default='--'}"
+                               class="layui-input border-0" disabled>
                         <p class="help-block"></p>
                     </div>
                 </div>
                 <div class="layui-form-item">
-                    <label class="layui-form-label color-green font-w7">缓急程度</label>
+                    <label class="layui-form-label color-green font-w7">收文日期</label>
                     <div class="layui-input-block">
-                        <input name="" placeholder="" value="{$get_degree_list[$vo.module_info.degree]|default='--'}"
+                        <input name="" placeholder="" value="{$vo.module_info.start_time|default='--'}"
                                class="layui-input border-0" disabled>
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
-                    <label class="layui-form-label color-green font-w7">附件</label>
+                    <label class="layui-form-label color-green font-w7">内容摘要</label>
                     <div class="layui-input-block">
-                        {foreach $vo.module_info.document_text as $k=>$v}
-                        <p><a href="{$v}" target="_blank">{$v}</a></p>
-                        {/foreach}
+                        <textarea class="layui-input border-0" style="height: 100px" disabled>{$vo.module_info.remark|default='--'}</textarea>
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
+
 
             </div>
         </div>

+ 2 - 2
application/approve/view/approve_info/form_11.html

@@ -74,17 +74,17 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">缓急程度</label>
                     <div class="layui-input-block">

+ 2 - 2
application/approve/view/approve_info/form_2.html

@@ -81,17 +81,17 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
             </div>
         </div>
     </div>

+ 4 - 4
application/approve/view/approve_info/form_3.html

@@ -41,29 +41,29 @@
                     </div>
                 </div>
 
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
-                {notempty name='vo.module_info.images_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">图片</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.images_text'}
                         {foreach $vo.module_info.images_text as $k=>$v}
                         <img data-tips-image src="{$v}" style="height: 300px;vertical-align:top"
                              class="margin-right-10 margin-bottom-10">
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">其它补充说明</label>
                     <div class="layui-input-block">

+ 2 - 2
application/approve/view/approve_info/form_4.html

@@ -49,17 +49,17 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">其它补充说明</label>
                     <div class="layui-input-block">

+ 4 - 4
application/approve/view/approve_info/form_5.html

@@ -75,29 +75,29 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
-                {notempty name='vo.module_info.images_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">图片</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.images_text'}
                         {foreach $vo.module_info.images_text as $k=>$v}
                         <img data-tips-image src="{$v}" style="height: 300px;vertical-align:top"
                              class="margin-right-10 margin-bottom-10">
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">出差类型</label>
                     <div class="layui-input-block">

+ 4 - 4
application/approve/view/approve_info/form_6.html

@@ -93,29 +93,29 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
-                {notempty name='vo.module_info.images_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">图片</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.images_text'}
                         {foreach $vo.module_info.images_text as $k=>$v}
                         <img data-tips-image src="{$v}" style="height: 300px;vertical-align:top"
                              class="margin-right-10 margin-bottom-10">
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">是否离"深"</label>
                     <div class="layui-input-block">

+ 4 - 4
application/approve/view/approve_info/form_7.html

@@ -95,29 +95,29 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
-                {notempty name='vo.module_info.images_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">图片</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.images_text'}
                         {foreach $vo.module_info.images_text as $k=>$v}
                         <img data-tips-image src="{$v}" style="height: 300px;vertical-align:top"
                              class="margin-right-10 margin-bottom-10">
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
 
             </div>
         </div>

+ 2 - 3
application/approve/view/approve_info/form_8.html

@@ -64,19 +64,18 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.images_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">图片</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.images_text'}
                         {foreach $vo.module_info.images_text as $k=>$v}
                         <img data-tips-image src="{$v}" style="height: 300px;vertical-align:top"
                              class="margin-right-10 margin-bottom-10">
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
-
                 {if ($vo.maintain_user_id > 0)}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">维修人员</label>

+ 2 - 2
application/approve/view/approve_info/form_9.html

@@ -109,17 +109,17 @@
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {notempty name='vo.module_info.document_text'}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">附件</label>
                     <div class="layui-input-block">
+                        {notempty name='vo.module_info.document_text'}
                         {foreach $vo.module_info.document_text as $k=>$v}
                         <p><a href="{$v}" target="_blank">{$v}</a></p>
                         {/foreach}
+                        {/notempty}
                         <p class="help-block"></p>
                     </div>
                 </div>
-                {/notempty}
                 <div class="layui-form-item">
                     <label class="layui-form-label color-green font-w7">备注说明</label>
                     <div class="layui-input-block">

+ 2 - 0
application/approve/view/approve_info/form_approve.html

@@ -12,6 +12,7 @@
                         <legend>审批流程</legend>
                     </fieldset>
                     <ul class="layui-timeline">
+                        {notempty name='vo.approve'}
                         {foreach $vo.approve as $k=>$v}
                         <li class="layui-timeline-item">
                             <i class="layui-icon layui-timeline-axis"></i>
@@ -29,6 +30,7 @@
                             </div>
                         </li>
                         {/foreach}
+                        {/notempty}
                         {notempty name='vo.approve_copy'}
                         {foreach $vo.approve_copy as $k=>$v}
                         <li class="layui-timeline-item">

+ 15 - 13
application/common/service/ApproveInfoService.php

@@ -1486,27 +1486,29 @@ class ApproveInfoService
         $get_degree_list = OfferConstant::get_degree_list();
         $get_type_list = CommonService::get_type_list($data['module']);
         $title = $get_module_list[$data['module']];
-        $name = $data['create_user']['name'].'提交的'.$title.'审批单';
-        $data = compact('vo','template','get_module_list','get_approve_status_list','get_approve_status_list_admin','get_is_who_list','get_pay_type_list','get_degree_list','get_type_list');
+        $name = $data['create_user']['name'] . '提交的' . $title . '审批单';
+        $data = compact('vo', 'template', 'get_module_list', 'get_approve_status_list', 'get_approve_status_list_admin', 'get_is_who_list', 'get_pay_type_list', 'get_degree_list', 'get_type_list');
 
         $html = self::get_html($data);
         $realpath = self::getPath($name);
         $pdf = new \TCPDF();
         $pdf = self::setPdfAttr($pdf);
-        self::exportPdf($pdf,$html,$realpath);
-        return ['url' => $realpath, 'fullurl' => 'https://'.$_SERVER['HTTP_HOST'].$realpath];
+        self::exportPdf($pdf, $html, $realpath);
+        return ['url' => $realpath, 'fullurl' => 'https://' . $_SERVER['HTTP_HOST'] . $realpath];
     }
 
     // 获取html
-    public static function get_html($data){
-//        $htmlUrl=app()->getRootPath() . 'public/upload/1.html';
-//        $html=file_get_contents($htmlUrl);
-        $html = view('common/'.$data['template'],$data)->getContent();
+    public static function get_html($data)
+    {
+//        $htmlUrl = app()->getRootPath() . 'public/1.html';
+//        $html = file_get_contents($htmlUrl);
+        $html = view('common/' . $data['template'], $data)->getContent();
         return $html;
     }
 
     // 获取路径
-    public static  function getPath($name){
+    public static function getPath($name)
+    {
         //保存文件
         $subPath = date('Ymd');
         $savePath = './upload/pdf/' . $subPath;
@@ -1529,14 +1531,14 @@ class ApproveInfoService
             }
         }
         $filename = date('Ymd') . sha1(date('YmdHis', time()) . uniqid());
-        $filename = $name.date('Ymd') . date('YmdHis', time()).time();
+        $filename = $name . date('Ymd') . date('YmdHis', time()) . time();
         $suffix = '.pdf';
         $realpath = substr($savePath, 1) . '/' . $filename . $suffix;
         return $realpath;
     }
 
     // 设置PDF参数
-    public static  function setPdfAttr($pdf)
+    public static function setPdfAttr($pdf)
     {
         // 设置页面信息
         $pdf->SetTitle("简历文件");
@@ -1548,7 +1550,7 @@ class ApproveInfoService
         $pdf->setPrintHeader(false);
         $pdf->setPrintFooter(false);
         // 自动分页 (第二个参数可以设置距离底部多少距离时分页)
-        $pdf->setAutoPageBreak(true,15);
+        $pdf->setAutoPageBreak(true, 15);
         // 设置边距(左 上 右 下) 右边距默认左侧值 下边距是bool值(是否覆盖默认页边距)
         $pdf->setMargins(26, 18, 26);
         // 定义默认的单间距字体 (设置为等宽字体)
@@ -1561,7 +1563,7 @@ class ApproveInfoService
     }
 
     // 生成下载pdf
-    public static  function exportPdf($pdf,$html,$realpath)
+    public static function exportPdf($pdf, $html, $realpath)
     {
         // 新增页面
         $pdf->AddPage();

+ 45 - 196
public/1.html

@@ -1,14 +1,4 @@
-<!DOCTYPE html>
 <style>
-    /*body {*/
-    /*    margin:0 auto;*/
-    /*    padding:0;*/
-    /*}*/
-    /*.container {*/
-    /*    height: 100%;*/
-    /*    margin: auto;*/
-    /*    padding: 0;*/
-    /*}*/
     table {
         /*letter-spacing: 1px;*/
         width: 100%;
@@ -16,20 +6,10 @@
         table-layout: fixed;
     }
     td {
-        text-align: left; /* 文本左对齐 */
-        /*border: 1px solid black; !* 设置单元格边框 *!*/
+        text-align: left;
     }
     .content {
         border: 1px solid black;
-        /*line-height: 1.6em;*/
-        /*text-indent: 5px;*/
-    }
-    .content1 {
-        border: 1px solid black;
-        /*line-height: 1.6em;*/
-        /*text-indent: 5px;*/
-        /*padding: 10px;*/
-        /*box-sizing: border-box;*/
     }
     .with-30{
         width:30%;
@@ -37,42 +17,14 @@
     .with-70{
         width:60%;
     }
-    .border-0{
-        border: none;
-    }
-    .line-height-30{
-        line-height: 30px;
-    }
     .align-center {
         text-align: center;
     }
     .font-size-14{
         font-size: 14pt;
     }
-    .font-size-10{
-        font-size: 10pt;
-    }
-    .approve__sign {
-        float: right;
-        width: 60px;
-        height: auto;
-    }
-    .approve-table {
-        /*border-collapse: initial;*/
-    }
-    .approve-table > tbody > tr {
-        border-bottom: 1px solid #000;
-    }
-    .approve-table > tbody > tr:last-child {
-        border-bottom: initial;
-    }
-
 </style>
 <div class="align-center font-size-14">出差审批单</div>
-<!--    <div style="text-align: left;">-->
-<!--        <span>深圳市第二特殊教育学校&nbsp;</span>-->
-<!--        <span>创建时间:2022-10-11</span>-->
-<!--    </div>-->
 <table cellpadding="6">
     <tr>
         <td class="with-30">深圳市第二特殊教育学校</td>
@@ -81,168 +33,65 @@
     </tr>
 </table>
 <table cellpadding="8">
-    <!--        <tr>-->
-    <!--            <td class="content with-30">审批编号</td>-->
-    <!--            <td class="content with-70" colspan="2">202210111716000137453</td>-->
-    <!--            <td>123456</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">创建人</td>-->
-    <!--            <td class="content" colspan="2">余珊珊</td>-->
-    <!--            <td>123456</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">创建人部门</td>-->
-    <!--            <td class="content">教导处-体育与康复训练组</td>-->
-    <!--            <td>123456</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">来文单位名称</td>-->
-    <!--            <td class="content">深圳市教育局学校安全管理处</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">收文序号</td>-->
-    <!--            <td class="content">2022101101</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">文件名称</td>-->
-    <!--            <td class="content1">深圳市食药安办 深圳市教育局 深圳市市场监督管理局关于开展2022年“护苗促食安”校园食品安全专项行动的通知(深食药安办〔2022〕23号)</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">收文日期</td>-->
-    <!--            <td class="content">2022-10-11</td>-->
-    <!--        </tr>-->
-    <!--        <tr valign="middle">-->
-    <!--            <td valign="middle" class="content">内容摘要</td>-->
-    <!--            <td class="content1">为贯彻落实习近平总书记“四个最严”的重要要求和孟凡利书记、覃伟中市长关于校 园食品安全的指示批示精神,聚焦我市校园食品安全的突出问题、薄弱环节,进一步 压实学校、校外供餐单位、市场监管部门、教育部门食品安全责任,严严管严控校 园食品安全风险,全力保障校园食品安全,以实际行动迎接党的二十大胜利召开,市 食药安办、市市场监管局、市教育局决定自即日起至年底,开展校园食品安全“护苗 促食安”行动。10月15日前,各学校应建立家长付费陪餐制度,定期邀请学生家长参与学生餐的监督,做好陪餐记录并存档备查。</td>-->
-    <!--        </tr>-->
-    <!--        <tr>-->
-    <!--            <td class="content">缓急程度</td>-->
-    <!--            <td class="content">限时</td>-->
-    <!--        </tr>-->
+    <tr>
+        <td class="content with-30">审批编号</td>
+        <td class="content with-70" colspan="2">202210111716000137453</td>
+        <td>123456</td>
+    </tr>
+    <tr>
+        <td class="content">创建人</td>
+        <td class="content" colspan="2">余珊珊</td>
+        <td>123456</td>
+    </tr>
+    <tr>
+        <td class="content">创建人部门</td>
+        <td class="content">教导处-体育与康复训练组</td>
+        <td>123456</td>
+    </tr>
+    <tr>
+        <td class="content">来文单位名称</td>
+        <td class="content">深圳市教育局学校安全管理处</td>
+    </tr>
+    <tr>
+        <td class="content">收文序号</td>
+        <td class="content">2022101101</td>
+    </tr>
+    <tr>
+        <td class="content">文件名称</td>
+        <td class="content1">深圳市食药安办 深圳市教育局 深圳市市场监督管理局关于开展2022年“护苗促食安”校园食品安全专项行动的通知(深食药安办〔2022〕23号)</td>
+    </tr>
+    <tr>
+        <td class="content">收文日期</td>
+        <td class="content">2022-10-11</td>
+    </tr>
+    <tr valign="middle">
+        <td valign="middle" class="content">内容摘要</td>
+        <td class="content1">为贯彻落实习近平总书记“四个最严”的重要要求和孟凡利书记、覃伟中市长关于校 园食品安全的指示批示精神,聚焦我市校园食品安全的突出问题、薄弱环节,进一步 压实学校、校外供餐单位、市场监管部门、教育部门食品安全责任,严严管严控校 园食品安全风险,全力保障校园食品安全,以实际行动迎接党的二十大胜利召开,市 食药安办、市市场监管局、市教育局决定自即日起至年底,开展校园食品安全“护苗 促食安”行动。10月15日前,各学校应建立家长付费陪餐制度,定期邀请学生家长参与学生餐的监督,做好陪餐记录并存档备查。</td>
+    </tr>
+    <tr>
+        <td class="content">缓急程度</td>
+        <td class="content">限时</td>
+    </tr>
     <tr>
         <td class="content">附件</td>
         <td class="content1">深圳市食药安办 深圳市教育局 深圳市市场监督管理局关于开展2022年“护苗促食安”校园食品安全专项行动的通知(深食药安办〔2022〕23号).pdf</td>
     </tr>
-
-    <!--        <tr>-->
-    <!--            <td class="content">审批流程</td>-->
-    <!--            <td class="content1" cellpadding="0" cellspacing="0" style="padding: 0; margin: 0;">-->
-    <!--                <ul style="list-style: none; margin: 0; padding: 0;">-->
-    <!--                    <li style="padding: 0; margin: 0; border-bottom: 1px solid #000;">-->
-    <!--                        <ol style="list-style: none; margin: 0; padding: 0;">-->
-    <!--                            <li style="padding: 0; margin: 0;">-->
-    <!--                                <span>拟由总务处(安全办)阅办。请校长审批。</span>-->
-    <!--                                <img border="0" width="60" class="approve__sign"-->
-    <!--                                     src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" />-->
-    <!--                            </li>-->
-    <!--                            <li style="padding: 0; margin: 0;">-->
-    <!--                                <span>范静 已同意</span>-->
-    <!--                                <span> crate time</span>-->
-    <!--                            </li>-->
-    <!--                        </ol>-->
-    <!--                    </li>-->
-    <!--                    <li style="padding: 0; margin: 0; border-bottom: 1px solid #000;">-->
-    <!--                        <ol style="list-style: none; margin: 0; padding: 0;">-->
-    <!--                            <li style="padding: 0; margin: 0;">-->
-    <!--                                <span>拟由总务处(安全办)阅办。请校长审批。</span>-->
-    <!--                                <img border="0" width="60"-->
-    <!--                                     src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" />-->
-    <!--                            </li>-->
-    <!--                            <li style="padding: 0; margin: 0;">-->
-    <!--                                <span>范静 已同意</span>-->
-    <!--                                <span> crate time</span>-->
-    <!--                            </li>-->
-    <!--                        </ol>-->
-    <!--                    </li>-->
-    <!--                    <li style="padding: 0; margin: 0;">-->
-    <!--                        <ol style="list-style: none; margin: 0; padding: 0;">-->
-    <!--                            <li style="padding: 0; margin: 0;">-->
-    <!--                                <span>拟由总务处(安全办)阅办。请校长审批。</span>-->
-    <!--                                <img border="0" width="60" class="approve__sign"-->
-    <!--                                     src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" />-->
-    <!--                            </li>-->
-    <!--                            <li style="padding: 0; margin: 0;">-->
-    <!--                                <span>范静 已同意</span>-->
-    <!--                                <span> crate time</span>-->
-    <!--                            </li>-->
-    <!--                        </ol>-->
-    <!--                    </li>-->
-    <!--                </ul>-->
-    <!--                    <table class="approve-table" border="0" cellpadding="0" cellspacing="0">-->
-    <!--                    <tr>-->
-    <!--                        <td>-->
-    <!--                            <table cellpadding="0" >-->
-    <!--                                <tr>-->
-    <!--                                    <td>拟由总务处(安全办)阅办。请校长审批。</td>-->
-    <!--                                    <td align="right"><img class="approve__sign"-->
-    <!--                                                           src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg"></td>-->
-    <!--                                </tr>-->
-    <!--                                <tr>-->
-    <!--                                    <td>范静 已同意</td>-->
-    <!--                                    <td align="right"> create-time </td>-->
-    <!--                                </tr>-->
-    <!--                            </table>-->
-    <!--                        </td>-->
-    <!--                    </tr>-->
-    <!--                    <tr>-->
-    <!--                        <td>-->
-    <!--                            <table>-->
-    <!--                                <tr>-->
-    <!--                                    <td>拟由总务处(安全办)阅办。请校长审批。</td>-->
-    <!--                                    <td align="right"><img class="approve__sign"-->
-    <!--                                                           src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg"></td>-->
-    <!--                                </tr>-->
-    <!--                                <tr>-->
-    <!--                                    <td>范静 已同意</td>-->
-    <!--                                    <td align="right"> create-time </td>-->
-    <!--                                </tr>-->
-    <!--                            </table>-->
-    <!--                        </td>-->
-    <!--                    </tr>-->
-    <!--                </table>-->
-    <!--            </td>-->
-    <!--        </tr>-->
 </table>
 <table cellpadding="8">
     <tr>
         <td class="content" rowspan="3">审批流程</td>
         <td class="content" style="line-height: 100%;">
             <div style="line-height: 100%;">拟由总务处(安全办)阅办。请校长审批。</div>
-            <div style="line-height: 100%;">范静 已同意 create-time</div>
-            <table>
-                <tr>
-                    <td><img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
-                             height="20px"></td>
-                    <td align="right">createtime</td>
-                </tr>
-            </table>
-        </td>
-    </tr>
-    <tr>
-        <td class="content" style="line-height: 100%;">
-            <div style="line-height: 100%;">拟由总务处(安全办)阅办。请校长审批。</div>
-            <div style="line-height: 100%;">范静 已同意 create-time</div>
-            <table>
-                <tr>
-                    <td><img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
-                             height="20px"></td>
-                    <td align="right">createtime</td>
-                </tr>
-            </table>
-        </td>
-    </tr>
-    <tr>
-        <td class="content" style="line-height: 100%;">
-            <div style="line-height: 100%;">拟由总务处(安全办)阅办。请校长审批。</div>
-            <div style="line-height: 100%;">范静 已同意 create-time</div>
             <table>
                 <tr>
-                    <td><img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
-                             height="20px"></td>
+                    <td>范静 已同意</td>
                     <td align="right">createtime</td>
                 </tr>
             </table>
+            <div style="line-height: 100%;">
+                <img src="https://static-legacy.dingtalk.com/media/lADPDgQ9rIaigmHMs8yz_179_179.jpg" with="20px"
+                     height="20px">
+            </div>
         </td>
     </tr>
 </table>