|
@@ -92,8 +92,8 @@ var bootstrap = function ($, learun) { |
|
|
learun.layerConfirm('是否确认删除该项!', function (res, index) { |
|
|
learun.layerConfirm('是否确认删除该项!', function (res, index) { |
|
|
if (res) { |
|
|
if (res) { |
|
|
$.each(tempdatra, function (key, val) { |
|
|
$.each(tempdatra, function (key, val) { |
|
|
if (tempdatra[key].AAIId === keyValue) { |
|
|
|
|
|
pricecount -= tempdatra[key].AAIPrice; |
|
|
|
|
|
|
|
|
if (val && val.AAIId === keyValue) { |
|
|
|
|
|
pricecount -= val.AAIPrice; |
|
|
tempdatra.splice(key, 1); |
|
|
tempdatra.splice(key, 1); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@@ -258,9 +258,6 @@ var bootstrap = function ($, learun) { |
|
|
pricecount = 0; |
|
|
pricecount = 0; |
|
|
$.each(temprow, |
|
|
$.each(temprow, |
|
|
function (i, item) { |
|
|
function (i, item) { |
|
|
if (item.AIAssValue) { |
|
|
|
|
|
pricecount = parseFloat(pricecount) + parseFloat(item.AIAssValue); |
|
|
|
|
|
} |
|
|
|
|
|
var entity = { |
|
|
var entity = { |
|
|
//AAICode: item.AICode, |
|
|
//AAICode: item.AICode, |
|
|
AAICode: item.AICodeNumJY, |
|
|
AAICode: item.AICodeNumJY, |
|
@@ -302,9 +299,8 @@ var bootstrap = function ($, learun) { |
|
|
//if (ifnewrow) { |
|
|
//if (ifnewrow) { |
|
|
// tempdatra.push(temprow); |
|
|
// tempdatra.push(temprow); |
|
|
//} |
|
|
//} |
|
|
|
|
|
|
|
|
for (var i = 0; i < tempdatra.length; i++) { |
|
|
for (var i = 0; i < tempdatra.length; i++) { |
|
|
//pricecount = parseFloat(pricecount) +parseFloat(tempdatra[i].TotalPrice); |
|
|
|
|
|
|
|
|
pricecount = parseFloat(pricecount) + parseFloat(tempdatra[i].AAIPrice); |
|
|
} |
|
|
} |
|
|
$("#TotalPrice").val(pricecount); |
|
|
$("#TotalPrice").val(pricecount); |
|
|
$('#Ass_Acceptance').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); |
|
|
$('#Ass_Acceptance').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); |
|
|