|
|
@ -589,6 +589,15 @@ |
|
|
|
var iframeWin = window[layero.find('iframe')[0]['name']]; |
|
|
|
var rowData = iframeWin.$('#bootstrap-select-table').bootstrapTable('getSelections')[0]; |
|
|
|
console.log("rowData: "+rowData); |
|
|
|
//判断是否重复 |
|
|
|
var rows = $("#bootstrap-sub-table-1").bootstrapTable('getData').length; |
|
|
|
for(var i=0;i<rows;i++){ |
|
|
|
var data = $("#bootstrap-sub-table-1").bootstrapTable('getData')[i]; |
|
|
|
if(data.materialNo==rowData.materialCode){ |
|
|
|
$.modal.alertError("不能选择已添加过的相同料号"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
$("#bootstrap-sub-table-quoteChild").bootstrapTable('insertRow', { |
|
|
|
index:1, |
|
|
|
row: { |
|
|
@ -652,7 +661,8 @@ |
|
|
|
$("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', { |
|
|
|
field: 'materialCode', |
|
|
|
values: materialCode |
|
|
|
}) |
|
|
|
}); |
|
|
|
getTotalAmount(); |
|
|
|
} |
|
|
|
$("input[name='pricingDate']").datetimepicker({ |
|
|
|
format: "yyyy-mm-dd", |
|
|
|