|
@@ -403,6 +403,11 @@ function initDivide() {
|
|
*/
|
|
*/
|
|
onClickCell: function(field, value, row, $element) {
|
|
onClickCell: function(field, value, row, $element) {
|
|
if(field == 'oldAmount'){
|
|
if(field == 'oldAmount'){
|
|
|
|
+ var rows= $('#tb_table').bootstrapTable('getSelections');
|
|
|
|
+ if(row.serial == rows[0].serial){
|
|
|
|
+ errorMesageSimaple("新包装和旧包装规格相同,请重新选择!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
$element.attr('contenteditable', true);
|
|
$element.attr('contenteditable', true);
|
|
$element.html(null);
|
|
$element.html(null);
|
|
$element.focus();
|
|
$element.focus();
|
|
@@ -428,7 +433,6 @@ function initDivide() {
|
|
}else{
|
|
}else{
|
|
$element.html(null);
|
|
$element.html(null);
|
|
}
|
|
}
|
|
- var rows= $('#tb_table').bootstrapTable('getSelections');
|
|
|
|
updateDivideDrugMap(rows[0].serial);
|
|
updateDivideDrugMap(rows[0].serial);
|
|
})
|
|
})
|
|
}
|
|
}
|