|
@@ -70,11 +70,15 @@ $(document).ready(() => {
|
|
|
// 初始化变更令spread
|
|
|
const changeSpreadSetting = {
|
|
|
cols: [
|
|
|
- {title: '变更令号', colSpan: '1', rowSpan: '1', field: 'p_code', hAlign: 0, width: 150, formatter: '@', readOnly: true},
|
|
|
- {title: '变更名称', colSpan: '1', rowSpan: '1', field: 'name', hAlign: 0, width: 350, formatter: '@', readOnly: true},
|
|
|
- {title: '金额', colSpan: '1', rowSpan: '1', field: 'total_price', hAlign: 2, width: 100, type: 'Number', readOnly: true},
|
|
|
- {title: '批复文号', colSpan: '1', rowSpan: '1', field: 'w_code', hAlign: 0, width: 150, formatter: '@', readOnly: true},
|
|
|
- {title: '已执行(%)', colSpan: '1', rowSpan: '1', field: 'used_pt', hAlign: 2, width: 100, type: 'Number', readOnly: true},
|
|
|
+ {title: '变更令号', colSpan: '1', rowSpan: '1', field: 'p_code', hAlign: 0, width: 150, formatter: '@'},
|
|
|
+ {title: '变更名称', colSpan: '1', rowSpan: '1', field: 'name', hAlign: 0, width: 350, formatter: '@'},
|
|
|
+ {title: '金额', colSpan: '1', rowSpan: '1', field: 'total_price', hAlign: 2, width: 100, type: 'Number'},
|
|
|
+ {title: '批复文号', colSpan: '1', rowSpan: '1', field: 'w_code', hAlign: 0, width: 150, formatter: '@'},
|
|
|
+ {title: '已执行(%)', colSpan: '1', rowSpan: '1', field: 'used_pt', hAlign: 2, width: 100, type: 'Number'},
|
|
|
+ {title: '正变更已计量', colSpan: '1', rowSpan: '1', field: 'p_used_tp', hAlign: 2, width: 80, type: 'Number'},
|
|
|
+ {title: '正变更执行率', colSpan: '1', rowSpan: '1', field: 'p_used_pt', hAlign: 2, width: 80, type: 'Number'},
|
|
|
+ {title: '负变更已计量', colSpan: '1', rowSpan: '1', field: 'n_used_tp', hAlign: 2, width: 80, type: 'Number'},
|
|
|
+ {title: '负变更执行率', colSpan: '1', rowSpan: '1', field: 'n_used_pt', hAlign: 2, width: 80, type: 'Number'},
|
|
|
],
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
@@ -86,7 +90,8 @@ $(document).ready(() => {
|
|
|
localCache: {
|
|
|
key: 'stage-change',
|
|
|
colWidth: true,
|
|
|
- }
|
|
|
+ },
|
|
|
+ readOnly: true,
|
|
|
};
|
|
|
const changeSpread = SpreadJsObj.createNewSpread($('#bgl-spread')[0]);
|
|
|
SpreadJsObj.initSheet(changeSpread.getActiveSheet(), changeSpreadSetting);
|