From 62cf2a4455d35a28c04131175f3196f3f1137947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-NDCM9L6Q=5C=E7=8E=8B=E4=B8=BD=E9=9B=85?= <1970384016@qq.com> Date: Mon, 8 Jul 2024 22:53:12 +0800 Subject: [PATCH] =?UTF-8?q?uodate=EF=BC=9A=E8=BD=AC=E9=94=80=E5=94=AE?= =?UTF-8?q?=E9=80=80=E8=B4=A7=E7=9A=84=E7=A6=81=E7=94=A8=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/salesOrder/salesOrderToReturns.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js b/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js index 7e9f8808f..2e1265e93 100644 --- a/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js +++ b/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js @@ -30,6 +30,24 @@ layui.config({ parent.refreshCode = '0'; }}); }, + + // 组件加载完成后的回调函数 + loadComponentCallback: function () { + $("div[controlType='customer']").remove(); + }, + + // 新增行的回调函数 + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("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(".specifications").prop('disabled', true); + } }); }}); }); \ No newline at end of file -- GitLab