diff --git a/ruoyi-admin/src/main/resources/templates/quality/iqcQualityOrder/iqcQualityOrder.html b/ruoyi-admin/src/main/resources/templates/quality/iqcQualityOrder/iqcQualityOrder.html index 410ca2d8..1e10ade9 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/iqcQualityOrder/iqcQualityOrder.html +++ b/ruoyi-admin/src/main/resources/templates/quality/iqcQualityOrder/iqcQualityOrder.html @@ -10,10 +10,6 @@
- + 导出
@@ -90,6 +76,8 @@ var prefix = ctx + "quality/qualityOrder"; + var iqcPrefix = ctx + "quality/iqcQualityOrder"; + $(function() { var options = { url: prefix + "/iqcOrderList", @@ -210,7 +198,8 @@ if (row.qualityStorageStatus == 2 ){ actions.push('详情 '); } - return actions.join(''); + var actionLinks = actions.join(''); + return $.table.dropdownToggle(actionLinks); } }] }; @@ -240,6 +229,29 @@ $.modal.open("品质单详情",url); } + // 导出 + function exportExcel() { + var ids = $.table.selectColumns("qualityOrderCode"); + 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( iqcPrefix + "/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(); + }); + }); + } + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html index f6da0538..aa45dc3a 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html @@ -14,10 +14,6 @@ -
  • - - -
  • @@ -56,6 +52,12 @@
  • +
    + + 导出 + +
    +
    @@ -198,8 +200,8 @@ if (row.qualityStorageStatus == 4 ){ actions.push('详情 '); } - - return actions.join(''); + var actionLinks = actions.join(''); + return $.table.dropdownToggle(actionLinks); } }] }; @@ -250,7 +252,28 @@ $.modal.open("生产入库品质详情",url) } + // 导出 + function exportExcel() { + var ids = $.table.selectColumns("qualityOrderCode"); + 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(); + }); + }); + } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityReport/qualityReport.html b/ruoyi-admin/src/main/resources/templates/quality/qualityReport/qualityReport.html index 510691b1..224f4219 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/qualityReport/qualityReport.html +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityReport/qualityReport.html @@ -71,7 +71,7 @@
    - + 导出
    @@ -94,7 +94,7 @@ var options = { url: prefix + "/list", detailUrl: prefix + "/detail/{id}", - modalName: "品质管理品质单报告", + modalName: "品质报告单", fixedColumns: true, // 启用冻结列 fixedRightNumber: 1, // 冻结右列个数 columns: [{ @@ -263,12 +263,13 @@ } } // 审批历史 - actions.push(' 审批历史 '); + actions.push(' 审批历史 '); // 进度查看 - actions.push(' 进度查看 '); + actions.push(' 进度查看 '); } actions.push('详情 '); - return actions.join(''); + var actionLinks = actions.join(''); + return $.table.dropdownToggle(actionLinks); } }], rowStyle: function (row, index) {