|
@@ -74,8 +74,9 @@ let ConfirmModal = {
|
|
|
},
|
|
|
check: function (std, okCallBack, cancelCallBack) {
|
|
|
if (!this.spread) {
|
|
|
- this.spread = SheetDataHelper.createNewSpread($('#std_bills_unit_spread')[0]);
|
|
|
- SheetDataHelper.loadSheetHeader(this.setting, ConfirmModal.stdBillsUnit.spread.getActiveSheet());
|
|
|
+ this.spread = SheetDataHelper.createNewSpread($('#std_bills_unit_spread')[0], {sheetCount: 1});
|
|
|
+ this.spread.options.showScrollTip = GC.Spread.Sheets.ShowScrollTip.vertical;
|
|
|
+ SheetDataHelper.loadSheetHeader(this.setting, this.spread.getActiveSheet());
|
|
|
}
|
|
|
let sheet = ConfirmModal.stdBillsUnit.spread.getActiveSheet();
|
|
|
let modalObj = this.modalObj;
|
|
@@ -102,7 +103,7 @@ let ConfirmModal = {
|
|
|
datas.push({'code': std.code, 'name': std.name, 'unit': unit});
|
|
|
}
|
|
|
SheetDataHelper.loadSheetData(this.setting, sheet, datas);
|
|
|
- this.modalObj.modal({backdrop: false, keyboard: false});
|
|
|
+ this.modalObj.modal('show');
|
|
|
ConfirmModal.stdBillsUnit.spread.refresh();
|
|
|
}
|
|
|
}
|