Browse Source

[fix] 基础资料模块

按照万材要求:调整员工领料单页面表头的按钮布局
修改物料的操作栏按钮,引用$.table.dropdownToggle方法
物料合计和数量合计这两栏新增表底 总合计
修改员工领料单页面的领料单号和领料员显示,和下面表格保持一致
请购单子表列表页面去掉无用的搜索按钮
dev
liuxiaoxu 1 month ago
parent
commit
3e2066edc3
  1. 1
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/add.html
  2. 49
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/empRequisiteOrder.html

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

@ -81,6 +81,7 @@
id:'bootstrap-sub-table-empRequisitionChild',
pagination: false,
sidePagination: "client",
showSearch:false,
model: "物料信息",
columns: [
{checkbox: true},

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

@ -11,11 +11,11 @@
<div class="select-list">
<ul>
<li>
<label>领料单号:</label>
<label>领料单号:</label>
<input type="text" name="requisitieCode"/>
</li>
<li>
<label>关联单号:</label>
<label>关联单号:</label>
<input type="text" name="correlationCode"/>
</li>
<li>
@ -41,7 +41,7 @@
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:empRequisiteOrder:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-warning" onclick="exportExcel()" shiro:hasPermission="system:empRequisiteOrder:export">
<a class="btn btn-success" onclick="exportExcel()" shiro:hasPermission="system:empRequisiteOrder:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
@ -110,6 +110,16 @@
title: '流程实例类型',
visible: false
},
{
field: 'taskId',
title: '当前任务ID',
visible: false
},
{
field: 'todoUserId',
title: '待办用户ID',
visible: false
},
{
field: 'applyUser',
title: '申请人ID',
@ -120,6 +130,9 @@
title: '当前任务名称',
visible: false
},
{title: '审核状态',field: 'auditStatus',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
},
{
field: 'taskStatus',
title: '当前状态',
@ -167,19 +180,6 @@
title: '申请时间',
align: 'center',
},
{
field: 'taskId',
title: '当前任务ID',
visible: false
},
{
field: 'todoUserId',
title: '待办用户ID',
visible: false
},
{title: '审核状态',field: 'auditStatus',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
},
{title: '领料员',field: 'createBy',align: 'center',},
{title: '不含税总价(RMB)',field: 'noRmbSum',visible: false},
{title: '含税总价(RMB)',field: 'rmbSum',visible: false},
@ -203,19 +203,20 @@
var todoUserIdList = row.todoUserId.split(",");
if(todoUserIdList.includes(loginName) || loginName == 'admin'){
var nodeName = row.taskName=='驳回调整'?' 调整申请':' 审批';
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="showVerifyDialog(\'' + prefix + '\',\'' + row.taskId + '\', \'' + row.taskName+"-"+"申请" + '\')"><i class="fa fa-edit"></i> '+nodeName+'</a> ');
actions.push('<a href="javascript:void(0)" onclick="showVerifyDialog(\'' + prefix + '\',\'' + row.taskId + '\', \'' + row.taskName+"-"+"申请" + '\')"><i class="fa fa-edit"></i> '+nodeName+'</a> ');
}
}
// 审批历史
actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="showHistoryDialog(\'' + row.instanceId + '\')"><i class="fa fa-list"></i> 审批历史</a> ');
actions.push('<a href="javascript:void(0)" onclick="showHistoryDialog(\'' + row.instanceId + '\')"><i class="fa fa-list"></i> 审批历史</a> ');
// 进度查看
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="showProcessImgDialog(\'' + row.instanceId + '\')"><i class="fa fa-image"></i> 进度查看</a> ');
}
else if(row.auditStatus === "2"){
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 href="javascript:void(0)" onclick="showProcessImgDialog(\'' + row.instanceId + '\')"><i class="fa fa-image"></i> 进度查看</a> ');
}
actions.push('<a class="btn btn-primary btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.requisiteId + '\')"><i class="fa fa-search"></i>详情</a> ');
return actions.join('');
// else if(row.auditStatus === "2"){
// actions.push('<a class="' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.requisiteId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
// }
actions.push('<a href="javascript:void(0)" onclick="$.operate.detail(\'' + row.requisiteId + '\')"><i class="fa fa-search"></i>详情</a> ');
var actionLinks = actions.join('');
return $.table.dropdownToggle(actionLinks);
}
}
],

Loading…
Cancel
Save