修复添加发票错误的bug

This commit is contained in:
hdm 2022-02-11 15:23:44 +08:00
parent 3b685f1761
commit a2350abae4
3 changed files with 6 additions and 5 deletions

View File

@ -9,6 +9,7 @@
*模块数据获取公共文件
======================
*/
use think\facade\Db;
//读取开票主体
function finance_invoice_subject()
{

View File

@ -32,7 +32,7 @@
<td>
<select name="invoice_subject" lay-verify="required" lay-reqText="请选择开票主体">
<option value="">请选择开票主体</option>
{volist name=":oa_invoice_subject()" id="vo"}
{volist name=":finance_invoice_subject()" id="vo"}
<option value="{$vo.id}">{$vo.title}</option>
{/volist}
</select>
@ -104,7 +104,7 @@
<td>
<select name="invoice_subject" lay-verify="required" lay-reqText="请选择开票主体">
<option value="">请选择开票主体</option>
{volist name=":oa_invoice_subject()" id="vo"}
{volist name=":finance_invoice_subject()" id="vo"}
<option value="{$vo.id}" {eq name="$vo.id" value="$detail.invoice_subject"}selected{/eq}>{$vo.title}</option>
{/volist}
</select>

View File

@ -68,9 +68,9 @@
<tr>
<td class="layui-td-gray">员工类型</td>
<td>
{eq name="$detail.type" value="0"}<span style="color:#5FB878">实 习 生</span>{/eq}
{eq name="$detail.type" value="1"}<span style="color:#01AAED">试用员工</span>{/eq}
{eq name="$detail.type" value="2"}<span style="color:#393D49">正式员工</span>{/eq}
{eq name="$detail.type" value="3"}<span style="color:#5FB878">实 习 生</span>{/eq}
{eq name="$detail.type" value="2"}<span style="color:#01AAED">试用员工</span>{/eq}
{eq name="$detail.type" value="1"}<span style="color:#393D49">正式员工</span>{/eq}
</td>
<td class="layui-td-gray2">最后登录时间</td>
<td>