Initial commit

This commit is contained in:
易焱
2021-03-13 18:42:01 +08:00
commit d9a3c376d5
3243 changed files with 627198 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form action="__ACTION__" method="post" onsubmit="return save_form2(this)" class="form-horizontal">
<div class="control-group">
<label class="control-label">工艺流程名称</label>
<div class="controls">
<input type="text" name="flow_name" autocomplete="off" placeholder="请填写工艺流程流程名称" value=""/>
</div>
</div>
<div class="control-group">
<label class="control-label">工艺流程代号</label>
<div class="controls">
<input type="text" name="flow_code" autocomplete="off" placeholder="请填写工艺流程代码" value=""/>
</div>
</div>
<div class="control-group">
<label class="control-label">工艺流程备注</label>
<div class="controls">
<input type="text" name="flow_remark" autocomplete="off" placeholder="请填写工艺流程备注" value=""/>
</div>
</div>
<div class="control-group">
<label class="control-label">从其他流程导入</label>
<div class="controls">
<select name="flow_id" class="span6 select2" >
<option value="">请选择工艺流程</option>
<foreach name="flow" item="v">
<option value="{$v.value}" >{$v.name}</option>
</foreach>
</select>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">取消</button>
</div>
</form>
</div>
<div style="height: 200px"></div>
</div>
<include file="Inc:foot"/>
@@ -0,0 +1,34 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form action="__ACTION__" method="post" onsubmit="return save_form2(this)" class="form-horizontal">
<input type="hidden" name="flow_id" value="{$_GET['flow_id']}">
<div class="control-group">
<label class="control-label">工艺流程名称</label>
<div class="controls">
<input type="text" name="flow_name" autocomplete="off" placeholder="请填写工艺流程名称" value="{$data.flow_name}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">工艺流程代号</label>
<div class="controls">
<input type="text" name="flow_code" autocomplete="off" placeholder="请填写工艺流程代码" value="{$data.flow_code}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">工艺流程备注</label>
<div class="controls">
<input type="text" name="flow_remark" autocomplete="off" placeholder="请填写工艺流程备注" value="{$data.flow_remark}"/>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">取消</button>
</div>
</form>
</div>
</div>
<include file="Inc:foot"/>
@@ -0,0 +1,98 @@
<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:40%; margin-top:10px;">
<h1>{$pagetitle}</h1>
</div>
<div class="main_add" style="width:60%;display: flex;justify-content: flex-end">
<form action="__ACTION__" method="get">
<label>工艺流程名称:<input name="flow_name" value="{:I('get.flow_name')}" class="span2"></label>
<button class="btn btn-inverse">搜索</button>
</form>
<a class="btn btn-inverse iframe" href="{:U('add')}" style="margin-left:10px;">+增加工艺流程</a>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<table class="table table-striped">
<thead>
<tr>
<th >工艺流程名称</th>
<th >工艺流程代号</th>
<th >工艺流程备注</th>
<th >添加人</th>
<th >添加时间</th>
<th >修改人</th>
<th >修改时间</th>
<th >工艺流程详情</th>
<th>状态(开启/禁用)</th>
<th>状态管理</th>
<th> 操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v">
<tr>
<td style="text-align: center;">{$v['flow_name']}</td>
<td style="text-align: center;">{$v['flow_code']}</td>
<td style="text-align: center;">{$v['flow_remark']}</td>
<td style="text-align: center;">{$v['who_add']['user_name']}</td>
<td style="text-align: center;">{:date('Y-m-d H:i:s',$v['flow_time_add'])}</td>
<td style="text-align: center;">{$v['who_modify']['user_name']}</td>
<td style="text-align: center;">{$v['flow_time_modify'] ? date('Y-m-d
H:i:s',$v['flow_time_modify']) : ''}
</td>
<td style="text-align: center;">
<a href="{:U('FlowCraft/index',array('flow_id'=>$v['flow_id']))}" class="btn btn-inverse btn-mini " >详情</a>
</td>
<td style="text-align: center;">
<if condition="$v['order_id']==0">启用
<else/>禁用
</if>
</td>
<td style="text-align: center;">
<if condition="$v['order_id']==0">
<a href="{:U('change_order',array('order_id'=>1, flow_id=>$v['flow_id']))}" class="btn btn-mini btn-danger ajax_del" confirm_info="确定改变状态?">禁用</a>
<else/>
<a href="{:U('change_order',array('order_id'=>0, flow_id=>$v['flow_id']))}" class="btn btn-mini btn-success ajax_del" confirm_info="确定改变状态?">启用</a>
<!-- <a href="{:U('change_order',array('order_id'=>9, flow_id=>$v['flow_id']))}" class="btn btn-mini btn-danger ajax_del" confirm_info="确定改变状态?">删除</a>-->
</if>
</td>
<if condition="$v['used']">
<td class="center">
不可删除和修改
</td>
<else/>
<td class="center">
<a href="{:U('editor',array('flow_id'=>$v[flow_id]))}"
class="btn btn-primary btn-mini iframe" height="400px">修改</a>
<a href="{:U('delete',array('flow_id'=>$v[flow_id]))}"
class="btn btn-danger btn-mini ajax_del">删除</a>
</td>
</if>
</tr>
</foreach>
</tbody>
</table>
</div>
</div>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
</div>
<include file="Inc/footer"/>