sth
This commit is contained in:
parent
a6703edc0a
commit
f5bb64ce20
|
|
@ -420,17 +420,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
|
|||
const $action = $("#c-action");
|
||||
if ($action.length && $action.val()) {
|
||||
function calculatePerformance() {
|
||||
console.log("sb:计算利润...");
|
||||
//console.log("sb:计算利润...");
|
||||
const orderOnlineAmount = parseFloat($("#order-online-amount").val()) || 0;
|
||||
console.log("sb:计算利润:预收款..."+orderOnlineAmount);
|
||||
//console.log("sb:计算利润:预收款..."+orderOnlineAmount);
|
||||
const onlineAmountLast = parseFloat($("#c-online_total").val()) || 0; //线上尾款
|
||||
console.log("sb:计算利润:线上尾款..."+onlineAmountLast);
|
||||
//console.log("sb:计算利润:线上尾款..."+onlineAmountLast);
|
||||
const offlineAmount = parseFloat($("#c-total").val()) || 0; //线下尾款
|
||||
console.log("sb:计算利润:线下尾款..."+offlineAmount);
|
||||
//console.log("sb:计算利润:线下尾款..."+offlineAmount);
|
||||
const cost = parseFloat($("#order-cost").val()) || 0; //成本
|
||||
console.log("sb:计算利润:师傅成本..."+cost);
|
||||
//console.log("sb:计算利润:师傅成本..."+cost);
|
||||
const materialCost = parseFloat($("#order-material_cost").val()) || 0;//材料
|
||||
console.log("sb:计算利润:材料成本..."+materialCost);
|
||||
//console.log("sb:计算利润:材料成本..."+materialCost);
|
||||
const performance = (orderOnlineAmount + onlineAmountLast + offlineAmount) - (cost + materialCost);
|
||||
|
||||
$("#c-performance").val(performance.toFixed(2));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user