|
@@ -352,7 +352,7 @@
|
|
|
<div class="modal-dialog" role="document">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
- <h5 class="modal-title">清单精度</h5>
|
|
|
+ <h5 class="modal-title">数量精度</h5>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="form-group" id="precision-spread" style="height: 397px; width: 465px;">
|
|
@@ -429,7 +429,7 @@
|
|
|
<div class="modal-dialog" role="document">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
- <h5 class="modal-title">清单精度</h5>
|
|
|
+ <h5 class="modal-title">数量精度</h5>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="sjs-option-height" id="precision-spread" style="height: 397px; width: 465px;">
|
|
@@ -726,8 +726,8 @@
|
|
|
// 清单精度
|
|
|
const precisionObj = (function () {
|
|
|
const spread = SpreadJsObj.createNewSpread($('#precision-spread')[0]);
|
|
|
- //spread.options.showVerticalScrollbar = false;
|
|
|
- //spread.options.showHorizontalScrollbar = false;
|
|
|
+ spread.options.showVerticalScrollbar = false;
|
|
|
+ spread.options.showHorizontalScrollbar = false;
|
|
|
const sheet = spread.getActiveSheet();
|
|
|
SpreadJsObj.protectedSheet(sheet);
|
|
|
//sheet.options.rowHeaderVisible = false;
|
|
@@ -739,15 +739,25 @@
|
|
|
const vStyle = new spreadNS.Style();
|
|
|
vStyle.font = '12px 微软雅黑';
|
|
|
sheet.setDefaultStyle(vStyle, spreadNS.SheetArea.viewport);
|
|
|
+ const xStyle = new spreadNS.Style();
|
|
|
+ xStyle.font = '12px 微软雅黑';
|
|
|
+ xStyle.vAlign = 1;
|
|
|
+ xStyle.hAlign = 1;
|
|
|
+ sheet.setDefaultStyle(xStyle, spreadNS.SheetArea.colHeader);
|
|
|
+ const yStyle = new spreadNS.Style();
|
|
|
+ yStyle.font = '12px 微软雅黑';
|
|
|
+ yStyle.vAlign = 1;
|
|
|
+ yStyle.hAlign = 1;
|
|
|
+ sheet.setDefaultStyle(yStyle, spreadNS.SheetArea.rowHeader);
|
|
|
|
|
|
SpreadJsObj.massOperationSheet(sheet, function () {
|
|
|
- sheet.defaults.rowHeight = 25;
|
|
|
+ sheet.defaults.rowHeight = 21;
|
|
|
sheet.setColumnCount(2);
|
|
|
sheet.setRowCount(13);
|
|
|
sheet.setColumnWidth(0, 100);
|
|
|
sheet.setColumnWidth(1, 60);
|
|
|
sheet.getRange(0, 0, 13, 1).vAlign(1).backColor('#e4e7ea').locked(true);
|
|
|
- sheet.getRange(0, 1, 13, 1).vAlign(1).hAlign(2);//.locked(true);
|
|
|
+ sheet.getRange(0, 1, 13, 1).vAlign(1).hAlign(2);
|
|
|
sheet.setText(0, 0, 't');
|
|
|
sheet.setText(1, 0, 'km');
|
|
|
sheet.setText(2, 0, 'm');
|