|
@@ -24,13 +24,13 @@ $(document).ready(function() {
|
|
|
billsTree.loadDatas(bills);
|
|
|
SpreadJsObj.initSheet(billsSpread.getActiveSheet(), {
|
|
|
cols: [
|
|
|
- {title: '项目节编号', field: 'code', width: 120, cellType: 'tree', vAlign: 1,},
|
|
|
- {title: '清单编号', field: 'b_code', width: 80, vAlign: 1,},
|
|
|
- {title: '名称', field: 'name', width: 200, vAlign: 1,},
|
|
|
- {title: '单位', field: 'unit', width: 50, vAlign: 1,},
|
|
|
- {title: '数量1', field: 'dgn_quantity1', width: 60, type: 'Number', vAlign: 1,},
|
|
|
- {title: '数量2', field: 'dgn_quantity2', width: 60, type: 'Number', vAlign: 1,},
|
|
|
- {title: '金额', field: 'total_price', width: 60, type: 'Number', vAlign: 1,},
|
|
|
+ {title: '项目节编号', field: 'code', width: 120, cellType: 'tree', vAlign: 1, readOnly: true,},
|
|
|
+ {title: '清单编号', field: 'b_code', width: 80, vAlign: 1, readOnly: true,},
|
|
|
+ {title: '名称', field: 'name', width: 200, vAlign: 1, readOnly: true,},
|
|
|
+ {title: '单位', field: 'unit', width: 50, vAlign: 1, readOnly: true,},
|
|
|
+ {title: '数量1', field: 'dgn_quantity1', width: 60, type: 'Number', vAlign: 1, readOnly: true,},
|
|
|
+ {title: '数量2', field: 'dgn_quantity2', width: 60, type: 'Number', vAlign: 1, readOnly: true,},
|
|
|
+ {title: '金额', field: 'total_price', width: 60, type: 'Number', vAlign: 1, readOnly: true,},
|
|
|
],
|
|
|
treeCol: 0,
|
|
|
emptyRows: 3,
|