diff --git a/public/assets/js/backend/orders/dispatch2.js b/public/assets/js/backend/orders/dispatch2.js index 5407030..49b7dc9 100644 --- a/public/assets/js/backend/orders/dispatch2.js +++ b/public/assets/js/backend/orders/dispatch2.js @@ -411,6 +411,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($, }, edit: function () { Controller.api.bindevent(); + }, + finish: function () { + Controller.api.bindevent(); + console.log("sb:init..."); // 判断 #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-online_total", "c-total", "order-cost", "order-material_cost"].forEach(function(id) { - $("#" + id).on("input", calculatePerformance); - });*/ + /* ["c-online_total", "c-total", "order-cost", "order-material_cost"].forEach(function(id) { + $("#" + id).on("input", calculatePerformance); + });*/ $('#c-online_total #c-total, #order-cost, #order-material_cost').on('input', function () { //calcProfit(); @@ -444,11 +448,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($, // 页面加载时先算一次 calculatePerformance(); } - - - }, - finish: function () { - Controller.api.bindevent(); }, addrecord: function () { Controller.api.bindevent();