diff --git a/erp-produce/src/main/resources/template/js/processAcceptance/machiningWarehouseCheck.js b/erp-produce/src/main/resources/template/js/processAcceptance/machiningWarehouseCheck.js index 9a094fcbe3b91bc085becbf2c5f32b9b2b1ba3a9..726d0150289bf070d91f838de26f01b401fc9835 100644 --- a/erp-produce/src/main/resources/template/js/processAcceptance/machiningWarehouseCheck.js +++ b/erp-produce/src/main/resources/template/js/processAcceptance/machiningWarehouseCheck.js @@ -14,37 +14,50 @@ layui.config({ var index = parent.layer.getFrameIndex(window.name); var $ = layui.$; var id = GetUrlParam("id"); + let initFirst = false - // 工序验收 - // 工序验收的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2024071500001', {}, { - savePreParams: function (params) { - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "writeMachinProcedureAccept", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, - // loadComponentCallback: function () { - // $("div[controlType='supplier']").remove(); - // $("div[controlType='purchaseDeliveryFromType']").remove(); - // }, - // tableAddRowCallback: function (tableId) { - // // $("#addRow" + tableId).remove(); - // $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".qualityInspection").prop('disabled', true); - // $("div[controlType='simpleTable']").find(".taxLastinspectionRatio").prop('disabled', true); - // - // } - }); + + + // 工序验收的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2024071500001', {}, { + savePreParams: function (params) { + params.machinProcedureFarmId=id + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "writeMachinProcedureAccept", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, + // loadComponentCallback: function () { + // $("div[controlType='supplier']").remove(); + // $("div[controlType='purchaseDeliveryFromType']").remove(); + // }, + // tableAddRowCallback: function (tableId) { + // // $("#addRow" + tableId).remove(); + // $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".qualityInspection").prop('disabled', true); + // $("div[controlType='simpleTable']").find(".taxLastinspectionRatio").prop('disabled', true); + // + // } + + tableDeleteRowCallback: function (tableId) { + if (!initFirst) { + if (!isNull(tableId)) { + initFirst = true; + $("#addRow" + tableId).click(); + } + // initFirst = false; + } + } + }); }); \ No newline at end of file diff --git a/web/src/main/resources/template/assets/lib/layui/layui.js b/web/src/main/resources/template/assets/lib/layui/layui.js index 87b0a789b6662994d8e126d21e9ceb2428bb5304..a7dc6ec127b026a0f03943f7f4eb68ebb6efcf7d 100644 --- a/web/src/main/resources/template/assets/lib/layui/layui.js +++ b/web/src/main/resources/template/assets/lib/layui/layui.js @@ -150,7 +150,7 @@ var skyeyeClassEnum = getAndWriteLocal('skyeyeClassEnum'); function getSysServiceMationAppIdByClassName(className) { let appId = ""; $.each(sysServiceMation, function(key, value) { - if (value.className == className) { + if (value.key == className) { appId = value.appId; } });