diff --git a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html
index cd9d7c72..5670bb39 100644
--- a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html
+++ b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html
@@ -33,12 +33,14 @@
-
-
@@ -67,6 +74,22 @@
var prefix = ctx + "system/makeorderpick";
$(function() {
+ $.ajax({
+ url: prefix + '/getBinessMembers',
+ type: 'get',
+ success: function (res) {
+ console.log(res)
+ if (res.rows.length > 0) {
+ var usertData = res.rows;
+ for (let i in usertData) {
+ $("select[name='applyUser']").append(
+ "");
+ }
+ } else {
+ $.modal.msgError(res.msg);
+ }
+ }
+ });
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
@@ -91,96 +114,138 @@
{
field: 'instanceId',
title: '流程实例ID',
+ align: 'center',
visible: false
},
{
field: 'submitInstanceId',
title: '流程提交实例ID',
+ align: 'center',
visible: false
},
{
field: 'cancelInstanceId',
title: '流程作废实例ID',
+ align: 'center',
visible: false
},
{
field: 'restoreInstanceId',
title: '流程恢复实例ID',
+ align: 'center',
visible: false
},
{
field: 'instanceTypeName',
title: '流程实例类型',
+ align: 'center',
visible: false
},
{
field: 'applyUser',
+ align: 'center',
title: '申请人ID',
visible: false
+ },
+ { title: '当前状态',field: 'taskStatus',align: 'center',width: 120,
+ formatter: function(value, row, index) {
+ if(row.auditStatus!="1"&&value != "未启动"){
+ return '' + value + '';
+ }
+ if(value === "未启动"){
+ return '' + value + '';
+ }
+ return '' + value + '';
+ }
+ },
+ {
+ title: '生产领料单号',
+ align: 'center',
+ field: 'pickNo',
},
{
- field: 'applyUserName',
- title: '申请人',
+ title: '生产订单号',
+ align: 'center',
+ field: 'makeNo',
+ },
+ {
+ title: '关联销售订单号',
+ align: 'center',
+ field: 'saleNo',
+ },
+ {
+ title: '领料状态',
+ align: 'center',
+ field: 'pickStatus',
formatter: function(value, row, index) {
- return '' + (value ? value : "-") + '';
+ return $.table.selectDictLabel(pickStatusDatas, value);
}
},
+ {
+ title: '领料员',
+ align: 'center',
+ field: 'pickUser',
+ visible: false,
+ },
+ {
+ title: '物料合计',
+ align: 'center',
+ field: 'materialSum',
+ },
+ {
+ title: '数量合计',
+ align: 'center',
+ field: 'enterpriseSum',
+ },
+ {
+ field: 'applyUserName',
+ align: 'center',
+ title: '申请人',
+ // title: '申请人',
+ // formatter: function(value, row, index) {
+ // return '' + (value ? value : "-") + '';
+ // }
+ },
{
field: 'applyTime',
+ align: 'center',
title: '申请时间'
},
{
field: 'taskId',
title: '当前任务ID',
+ align: 'center',
visible: false
},
{
field: 'todoUserId',
title: '待办用户ID',
+ align: 'center',
visible: false
},
{
field: 'taskName',
title: '当前任务名称',
align: 'center',
+ visible: false,
formatter: function(value, row, index) {
return '' + value + '';
}
},
{
- title: '生产订单号',
- field: 'makeNo',
- },
- {
- title: '关联销售订单号',
- field: 'saleNo',
- },
- {
- title: '生产领料单号',
- field: 'pickNo',
- },
- {
- title: '领料状态',
- field: 'pickStatus',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(pickStatusDatas, value);
- }
- },
- {
- title: '领料员',
- field: 'pickUser',
- },
- {
- title: '物料合计',
- field: 'materialSum',
+ field: 'createTime',
+ align: 'center',
+ title: '录入时间',
},
{
- title: '数量合计',
- field: 'enterpriseSum',
+ field: 'updateTime',
+ align: 'center',
+ title: '上次更新时间',
},
{
title: '审核状态',
field: 'auditStatus',
+ visible: false,
formatter: function(value, row, index) {
return $.table.selectDictLabel(auditStatusDatas, value);
}
@@ -214,10 +279,41 @@
actions.push(' 详情 ');
return actions.join('');
}
- }]
+ }],
+ rowStyle: function (row, index) {
+ if (row.auditStatus=="0") {
+ // 如果审核状态为待审核,则设置为红色
+ return {css:{"color":"red"}};
+ }
+ // 否则使用默认样式
+ return {};
+ }
};
$.table.init(options);
});
+
+ // 导出
+ function exportExcel() {
+ var ids = $.table.selectColumns("pickNo");
+ var dataParam = $("#formId").serializeArray();
+
+ let tipMsg = "确定导出当前所有数据吗?";
+ if ($.common.isNotEmpty(ids)) {
+ tipMsg = `确定导出 ${ids} 数据吗?`;
+ dataParam.push({ "name": "ids", "value": ids });
+ }
+ $.modal.confirm(tipMsg, function () {
+ $.modal.loading("正在导出数据,请稍后...");
+ $.post( prefix + "/export", dataParam, function (result) {
+ if (result.code === web_status.SUCCESS) {
+ window.location.href = ctx + "common/download?fileName="+ encodeURI(result.msg) + "&delete=" + true;
+ } else {
+ $.modal.alertError(result.msg);
+ }
+ $.modal.closeLoading();
+ });
+ });
+ }