Browse Source

部位明细,空白行数,增加到20行

MaiXinRong 5 năm trước cách đây
mục cha
commit
fb79868bd6
2 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 4 4
      app/const/spread.js
  2. 1 0
      app/public/js/spreadjs_rela/spreadjs_zh.js

+ 4 - 4
app/const/spread.js

@@ -51,7 +51,7 @@ const withCl = {
             {title: '|小计', colSpan: '|1', rowSpan: '|1', field: 'quantity', hAlign: 2, width: 60, type: 'Number', readOnly: true},
             {title: '图册号', colSpan: '1', rowSpan: '2', field: 'drawing_code', hAlign: 0, width: 80, formatter: '@'},
         ],
-        emptyRows: 3,
+        emptyRows: 20,
         headRows: 2,
         headRowHeight: [35, 35],
         defaultRowHeight: 21,
@@ -86,7 +86,7 @@ const withoutCl = {
             {title: '施工图复核数量', colSpan: '1', rowSpan: '1', field: 'sgfh_qty', hAlign: 2, width: 120, type: 'Number'},
             {title: '图册号', colSpan: '1', rowSpan: '2', field: 'drawing_code', hAlign: 0, width: 80, formatter: '@'},
         ],
-        emptyRows: 3,
+        emptyRows: 20,
         headRows: 1,
         headRowHeight: [40],
         defaultRowHeight: 21,
@@ -205,7 +205,7 @@ const stageCl = {
             {title: '图册号', colSpan: '1', rowSpan: '2', field: 'drawing_code', hAlign: 0, width: 80, formatter: '@'},
             {title: '添加期数', colSpan: '1', rowSpan: '2', field: 'add_stage_order', hAlign:1, width: 80, readOnly: true},
         ],
-        emptyRows: 3,
+        emptyRows: 20,
         headRows: 2,
         headRowHeight: [32, 32],
         defaultRowHeight: 21,
@@ -264,7 +264,7 @@ const stageNoCl = {
             {title: '图册号', colSpan: '1', rowSpan: '2', field: 'drawing_code', hAlign: 0, width: 80, formatter: '@'},
             {title: '添加期数', colSpan: '1', rowSpan: '2', field: 'add_stage_order', hAlign:1, width: 80, readOnly: true},
         ],
-        emptyRows: 3,
+        emptyRows: 20,
         headRows: 2,
         headRowHeight: [32, 32],
         defaultRowHeight: 21,

+ 1 - 0
app/public/js/spreadjs_rela/spreadjs_zh.js

@@ -79,6 +79,7 @@ const SpreadJsObj = {
         spread.options.allowCopyPasteExcelStyle = false;
         spread.options.allowUserDragDrop = false;
         spread.options.allowUserEditFormula = false;
+        spread.options.allowExtendPasteRange = true;
         spread.getActiveSheet().options.clipBoardOptions = GC.Spread.Sheets.ClipboardPasteOptions.values;//设置粘贴时只粘贴值
         spread.getActiveSheet().setRowCount(3);
         return spread;