|
@@ -403,7 +403,7 @@ function setSelectProduct(colorIds){
|
|
|
for(var i=0;i<data.returnMsg.productColorList.length;i++){
|
|
|
var productColor = data.returnMsg.productColorList[i];
|
|
|
var discount = accDiv(productColor.colorDiscount,100);
|
|
|
- html += '<tr class="text-c">' +
|
|
|
+ /*html += '<tr class="text-c">' +
|
|
|
'<input type="hidden" class="color_id" id="" value="'+ productColor.colorId +'" >' +
|
|
|
' <td>'+ cufte(productColor.productName) +'</td>' +
|
|
|
' <td>'+ cufte(productColor.colorName) +'</td>' +
|
|
@@ -413,6 +413,20 @@ function setSelectProduct(colorIds){
|
|
|
' <td style="width: 30px;"><input type="text" class="input-text input-number item-num" style="text-align: center" value="1" name="" id="" placeholder="产品数量" onkeyup="keyFun($(this),999,1)" onpaste="keyFun($(this),999,1)"></td>' +
|
|
|
' <td style="width: 40px;"><input type="text" class="input-text input-number item_total" isUpdate="1" style="text-align: center" value="'+ accDiv(productColor.colorDiscount,100) +'" name="" id="" placeholder="小结" onkeyup="keyFunDecimal($(this),9999999,0)" myMinVal="0" myMaxVal="9999999"></td>' +
|
|
|
' <td><a href="javascript:void(0)" class="del_product all_down" onclick="delProduct($(this))" >删除</a></td>' +
|
|
|
+ ' </tr>';*/
|
|
|
+ html += '<tr class="text-c">' +
|
|
|
+ '<input type="hidden" class="color_id" id="" value="'+ productColor.colorId +'" >' +
|
|
|
+ '<input type="hidden" class="color_price" id="" value="'+ accDiv(productColor.colorPrice,100) +'" >' +
|
|
|
+ '<input type="hidden" class="color_discount" id="" value="'+ accDiv(productColor.colorDiscount,100) +'" >' +
|
|
|
+ '<input type="hidden" class="item_total" isUpdate="1" id="" value="'+ accDiv(productColor.colorDiscount,100) +'" >' +
|
|
|
+ ' <td>'+ cufte(productColor.productName) +'</td>' +
|
|
|
+ ' <td>'+ cufte(productColor.colorName) +'</td>' +
|
|
|
+ ' <td>'+ accDiv(productColor.colorPrice,100) +'</td>' +
|
|
|
+ ' <td>'+ accDiv(productColor.colorDiscount,100) +'</td>' +
|
|
|
+ ' <td>'+ cufte(productColor.colorBar) +'</td>' +
|
|
|
+ ' <td style="width: 30px;"><input type="text" class="input-text input-number item-num" style="text-align: center" value="1" name="" id="" placeholder="产品数量" onkeyup="keyFun($(this),999,1)" onpaste="keyFun($(this),999,1)"></td>' +
|
|
|
+ ' <td class="item_totalTd">'+ accDiv(productColor.colorDiscount,100) +'</td>' +
|
|
|
+ ' <td><a href="javascript:void(0)" class="del_product all_down" onclick="delProduct($(this))" >删除</a></td>' +
|
|
|
' </tr>';
|
|
|
}
|
|
|
}else{
|
|
@@ -455,6 +469,7 @@ function calculatePrice(){
|
|
|
var isUpdate = $(this).find(".item_total").attr("isUpdate");
|
|
|
if(isUpdate == "1"){
|
|
|
$(this).find(".item_total").val(total);
|
|
|
+ $(this).find(".item_totalTd").html(total);
|
|
|
}else{
|
|
|
total = $(this).find(".item_total").val();
|
|
|
total = Number(total);
|
|
@@ -507,9 +522,11 @@ function sharePrice(){
|
|
|
|
|
|
if(i === length -1){
|
|
|
$(this).find(".item_total").val(accSub(salesPayMoneyTest,remainingAmount));
|
|
|
+ $(this).find(".item_totalTd").html(accSub(salesPayMoneyTest,remainingAmount));
|
|
|
}else{
|
|
|
remainingAmount = accAdd(msg,remainingAmount);
|
|
|
$(this).find(".item_total").val(msg);
|
|
|
+ $(this).find(".item_totalTd").html(msg);
|
|
|
}
|
|
|
});
|
|
|
}
|