This commit is contained in:
xman 2025-06-18 14:45:18 +08:00
parent fba4b3c058
commit c88e7ecac5

View File

@ -411,6 +411,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
}, },
edit: function () { edit: function () {
Controller.api.bindevent(); Controller.api.bindevent();
},
finish: function () {
Controller.api.bindevent();
console.log("sb:init..."); console.log("sb:init...");
// 判断 #c-action 是否存在且有值 // 判断 #c-action 是否存在且有值
const $action = $("#c-action"); const $action = $("#c-action");
@ -432,9 +436,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
$("#c-performance").val(performance.toFixed(2)); $("#c-performance").val(performance.toFixed(2));
} }
/* ["c-online_total", "c-total", "order-cost", "order-material_cost"].forEach(function(id) { /* ["c-online_total", "c-total", "order-cost", "order-material_cost"].forEach(function(id) {
$("#" + id).on("input", calculatePerformance); $("#" + id).on("input", calculatePerformance);
});*/ });*/
$('#c-online_total #c-total, #order-cost, #order-material_cost').on('input', function () { $('#c-online_total #c-total, #order-cost, #order-material_cost').on('input', function () {
//calcProfit(); //calcProfit();
@ -444,11 +448,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
// 页面加载时先算一次 // 页面加载时先算一次
calculatePerformance(); calculatePerformance();
} }
},
finish: function () {
Controller.api.bindevent();
}, },
addrecord: function () { addrecord: function () {
Controller.api.bindevent(); Controller.api.bindevent();