|
@@ -79,8 +79,16 @@ function initTable() {
|
|
|
root: "data", repeatitems: false
|
|
|
},
|
|
|
beforeSubmitCell:function(rowid, cellname, value, iRow, iCol){
|
|
|
- let record = jQuery("#tb_table").getRowData(rowid);
|
|
|
+ let record = $("#tb_table").getRowData(rowid);
|
|
|
let temp = eval('(' + '{ "'+cellname+'": "'+value+'"}' + ')');
|
|
|
+ if(cellname === 'prescriptionLimitDays' && value == 0){
|
|
|
+ if (!confirm("确定放开当前药品的处方天数限制吗?")) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(cellname !== 'prescriptionLimitDays'){
|
|
|
+ temp.prescriptionLimitDays = record.prescriptionLimitDays;
|
|
|
+ }
|
|
|
temp.chargeCode = record.chargeCode;
|
|
|
temp.serial = record.serial;
|
|
|
temp.groupNo = pharmacyGroupNo;
|