|
@ -589,6 +589,15 @@ |
|
|
var iframeWin = window[layero.find('iframe')[0]['name']]; |
|
|
var iframeWin = window[layero.find('iframe')[0]['name']]; |
|
|
var rowData = iframeWin.$('#bootstrap-select-table').bootstrapTable('getSelections')[0]; |
|
|
var rowData = iframeWin.$('#bootstrap-select-table').bootstrapTable('getSelections')[0]; |
|
|
console.log("rowData: "+rowData); |
|
|
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', { |
|
|
$("#bootstrap-sub-table-quoteChild").bootstrapTable('insertRow', { |
|
|
index:1, |
|
|
index:1, |
|
|
row: { |
|
|
row: { |
|
@ -652,7 +661,8 @@ |
|
|
$("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', { |
|
|
$("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', { |
|
|
field: 'materialCode', |
|
|
field: 'materialCode', |
|
|
values: materialCode |
|
|
values: materialCode |
|
|
}) |
|
|
}); |
|
|
|
|
|
getTotalAmount(); |
|
|
} |
|
|
} |
|
|
$("input[name='pricingDate']").datetimepicker({ |
|
|
$("input[name='pricingDate']").datetimepicker({ |
|
|
format: "yyyy-mm-dd", |
|
|
format: "yyyy-mm-dd", |
|
|