You've already forked think-plugs-staff
员工、和到账项目费用自动计算
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<label class="layui-form-item relative block">
|
||||
<span class="help-label"><b>性别</b></span>
|
||||
<label class="think-radio">
|
||||
{if (0==$vo.gender)}
|
||||
{if (isset($vo.gender) && 0==$vo.gender)}
|
||||
<input type="radio" name="gender" value="0" checked lay-ignore>
|
||||
{else}
|
||||
<input type="radio" name="gender" value="0" lay-ignore>
|
||||
@@ -17,7 +17,7 @@
|
||||
男
|
||||
</label>
|
||||
<label class="think-radio">
|
||||
{if (1==$vo.gender)}
|
||||
{if (isset($vo.gender) && 1==$vo.gender)}
|
||||
<input type="radio" name="gender" value="1" checked lay-ignore>
|
||||
{else}
|
||||
<input type="radio" name="gender" value="1" lay-ignore>
|
||||
@@ -41,6 +41,10 @@
|
||||
<span class="help-label"><b>邮箱</b></span>
|
||||
<input maxlength="100" class="layui-input" name="email" value='{$vo.email|default=""}' placeholder="请输入邮箱">
|
||||
</label>
|
||||
<label class="layui-form-item relative block">
|
||||
<span class="help-label"><b>每月薪水</b></span>
|
||||
<input type="number" step="0.01" class="layui-input" name="salary" value='{$vo.salary|default="0.00"}' placeholder="请输入每月薪水(元)">
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="layui-bg-gray">
|
||||
|
@@ -54,6 +54,9 @@
|
||||
} },
|
||||
{ field: 'phone', title: '手机号' },
|
||||
{ field: 'email', title: '邮箱' },
|
||||
{ field: 'salary', title: '每月薪水', align: 'right', templet: function (d) {
|
||||
return d.salary ? '¥' + parseFloat(d.salary).toFixed(2) : '-';
|
||||
} },
|
||||
{ field: '', title: '部门负责人', templet: function (d) {
|
||||
if (d.dept) {
|
||||
if (d.dept.headman_id === d.id) {
|
||||
|
@@ -51,6 +51,7 @@ class InstallStaffDb extends Migrator
|
||||
['pid', 'integer', ['limit' => 11, 'default' => 0, 'null' => false, 'comment' => '上级部门ID']],
|
||||
['headman_id', 'integer', ['default' => NULL, 'null' => true, 'comment' => '领导人ID']],
|
||||
['sort', 'integer', ['limit' => 9, 'default' => 100, 'null' => false, 'comment' => '排序权重']],
|
||||
['salary', 'decimal', ['precision' => 10, 'scale' => 2, 'null' => true, 'comment' => '每月薪水']],
|
||||
['status', 'integer', ['limit' => 11, 'default' => 1, 'null' => false, 'comment' => '状态(0禁用,1启用)']],
|
||||
['is_deleted', 'integer', ['limit' => 11, 'default' => 0, 'null' => false, 'comment' => '删除(1删除,0未删)']],
|
||||
['create_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'null' => true, 'comment' => '创建时间']],
|
||||
@@ -77,6 +78,7 @@ class InstallStaffDb extends Migrator
|
||||
['gender', 'tinyinteger', ['limit' => 4, 'default' => 0, 'null' => true, 'comment' => '性别(0男,1女)']],
|
||||
['phone', 'string', ['limit' => 255, 'default' => NULL, 'null' => false, 'comment' => '手机号']],
|
||||
['email', 'string', ['limit' => 255, 'default' => NULL, 'null' => true, 'comment' => '电子邮箱']],
|
||||
['salary', 'decimal', ['precision' => 10, 'scale' => 2, 'default' => 0.00, 'null' => true, 'comment' => '每月薪水']],
|
||||
['dept_id', 'integer', ['limit' => 11, 'default' => 0, 'null' => true, 'comment' => '所属部门']],
|
||||
['status', 'integer', ['default' => '1', 'null' => false, 'comment' => '状态(0禁用,1启用)']],
|
||||
['is_deleted', 'integer', ['default' => '0', 'null' => false, 'comment' => '删除(1删除,0未删)']],
|
||||
|
Reference in New Issue
Block a user