Browse Source

[feat]基础信息:员工领料单,修改页面显示,添加领料人

dev
zhangsiqi 6 months ago
parent
commit
54ead5484b
  1. 13
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEmpRequisiteOrder.java
  2. 2
      ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEmpRequisiteOrderService.java
  3. 2
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/edit.html
  4. 118
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/empRequisiteOrder.html

13
ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEmpRequisiteOrder.java

@ -1,6 +1,8 @@
package com.ruoyi.system.domain; package com.ruoyi.system.domain;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
@ -59,6 +61,17 @@ public class BaseEmpRequisiteOrder extends BaseEntity
@Excel(name = "使用状态") @Excel(name = "使用状态")
private String useStatus; private String useStatus;
private List<BaseEmpRequisiteOrderChild> baseEmpRequisiteOrderChildList;
public List<BaseEmpRequisiteOrderChild> getBaseEmpRequisiteOrderChildList() {
return baseEmpRequisiteOrderChildList;
}
public void setBaseEmpRequisiteOrderChildList(List<BaseEmpRequisiteOrderChild> baseEmpRequisiteOrderChildList) {
this.baseEmpRequisiteOrderChildList = baseEmpRequisiteOrderChildList;
}
public void setRequisiteId(Long requisiteId) public void setRequisiteId(Long requisiteId)
{ {
this.requisiteId = requisiteId; this.requisiteId = requisiteId;

2
ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEmpRequisiteOrderService.java

@ -72,4 +72,6 @@ public interface IBaseEmpRequisiteOrderService
* @return * @return
*/ */
int restoreBaseEmpRequisiteOrderById(Long requisiteId); int restoreBaseEmpRequisiteOrderById(Long requisiteId);
Object getId();
} }

2
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/edit.html

@ -88,7 +88,7 @@
return $.table.selectDictLabel(sysUnitClassDatas, value); return $.table.selectDictLabel(sysUnitClassDatas, value);
} }
}, },
{title: '加工方式',field: 'processMethod',align: 'center', {title: '半成品类型',field: 'processMethod',align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.selectDictLabel(processMethodDatas, value); return $.table.selectDictLabel(processMethodDatas, value);
} }

118
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/empRequisiteOrder.html

@ -19,7 +19,7 @@
<input type="text" name="correlationCode"/> <input type="text" name="correlationCode"/>
</li> </li>
<li> <li>
<label>创建人:</label> <label>领料人:</label>
<input type="text" name="applyUser"/> <input type="text" name="applyUser"/>
</li> </li>
<li> <li>
@ -41,12 +41,6 @@
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:empRequisiteOrder:add"> <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:empRequisiteOrder:add">
<i class="fa fa-plus"></i> 添加 <i class="fa fa-plus"></i> 添加
</a> </a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:empRequisiteOrder:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:empRequisiteOrder:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:empRequisiteOrder:export"> <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:empRequisiteOrder:export">
<i class="fa fa-download"></i> 导出 <i class="fa fa-download"></i> 导出
</a> </a>
@ -77,82 +71,44 @@
restoreUrl: prefix + "/restore/{id}", restoreUrl: prefix + "/restore/{id}",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
modalName: "员工领料单", modalName: "员工领料单",
columns: [{ columns: [
checkbox: true {checkbox: true},
}, {title: '员工号领料单索引id',field: 'requisiteId',visible: false},
{ {title: '审核状态',field: 'auditStatus',
title: '员工号领料单索引id', formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
field: 'requisiteId', },
visible: false {title: '领料状态',field: 'requisitieStatus',
}, formatter: function(value, row, index) {return $.table.selectDictLabel(requisitieStatusDatas, value);}
{ },
title: '审核状态', {title: '领料单编号',field: 'requisitieCode',},
field: 'auditStatus', {title: '领料人',field: 'createBy',},
formatter: function(value, row, index) { {title: '关联销售订单号',field: 'correlationCode',},
return $.table.selectDictLabel(auditStatusDatas, value); {title: '物料合计',field: 'materialAmount', },
} {title: '数量总计',field: 'materialSum',},
}, {title: '不含税总价(RMB)',field: 'noRmbSum',},
{ {title: '含税总价(RMB)',field: 'rmbSum',},
title: '领料状态', {title: '申请人',field: 'applyUser',visible: false},
field: 'requisitieStatus', {title: '录入时间',field: 'createTime',},
formatter: function(value, row, index) { {title: '备注',field: 'remark'},
return $.table.selectDictLabel(requisitieStatusDatas, value); {title: '使用状态',field: 'useStatus',
} formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
}, },
{ {
title: '领料单编号', title: '操作',
field: 'requisitieCode', align: 'center',
}, formatter: function(value, row, index) {
{ var actions = [];
title: '关联销售订单号', actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.requisiteId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
field: 'correlationCode', actions.push('<a class="btn btn-danger btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.requisiteId + '\')"><i class="fa fa-remove"></i>详情</a> ');
}, if(row.delFlag == '0'){
{ actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> ');
title: '物料合计', }else{
field: 'materialAmount', actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> ');
}, }
{ return actions.join('');
title: '数量总计',
field: 'materialSum',
},
{
title: '不含税总价(RMB)',
field: 'noRmbSum',
},
{
title: '含税总价(RMB)',
field: 'rmbSum',
},
{
title: '申请人',
field: 'applyUser',
},
{
title: '备注',
field: 'remark',
},
{
title: '使用状态',
field: 'useStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(useStatusDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.requisiteId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.requisiteId + '\')"><i class="fa fa-remove"></i>删除</a> ');
if(row.delFlag == '0'){
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> ');
}else{
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> ');
} }
return actions.join('');
} }
}] ]
}; };
$.table.init(options); $.table.init(options);
}); });

Loading…
Cancel
Save