|
@@ -6,7 +6,7 @@ $(document).ready(function() {
|
|
|
cols: [
|
|
|
{title: '编号', colSpan: '1', rowSpan: '2', field: 'code', hAlign: 0, width: 100, formatter: '@', readOnly: 'readOnly.code', cellType: 'tree'},
|
|
|
{title: '合同编号', colSpan: '1', rowSpan: '2', field: 'c_code', hAlign: 0, width: 120, formatter: '@', readOnly: true},
|
|
|
- {title: '项目名称/合同名称', colSpan: '1', rowSpan: '2', field: 'name', hAlign: 0, width: 240, formatter: '@', readOnly: 'readOnly.code'},
|
|
|
+ {title: '项目名称/合同名称', colSpan: '1', rowSpan: '2', field: 'name', hAlign: 0, width: 240, formatter: '@', readOnly: 'readOnly.code', cellType: 'ellipsisAutoTip', scrollHeightClass: '.sjs-height-1'},
|
|
|
{title: '创建人', colSpan: '1', rowSpan: '2', field: 'username', hAlign: 1, width: 80, formatter: '@', readOnly: true},
|
|
|
{title: '合同金额', colSpan: '1', rowSpan: '2', field: 'total_price', hAlign: 2, width: 120, formatter: '@', readOnly: true},
|
|
|
],
|
|
@@ -67,7 +67,7 @@ $(document).ready(function() {
|
|
|
contractSpreadSetting.cols.push({title: '回款进度', colSpan: '1', rowSpan: '2', formatter: '@', readOnly: true, field: 'stackedBar', hAlign: 0, width: 200, cellType: 'stackedBar', stackedBarCover: true, bc_type: 'grid', getTip: getStackedBarTip});
|
|
|
}
|
|
|
contractSpreadSetting.cols.push({title: '合同状态', colSpan: '1', rowSpan: '2', field: 'status', hAlign: 1, width: 100, formatter: '@', readOnly: true, getValue:'getValue.status', foreColor:'foreColor.status'});
|
|
|
- contractSpreadSetting.cols.push({title: '备注', colSpan: '1', rowSpan: '2', field: 'remark', hAlign: 0, width: 120, formatter: '@', readOnly: !permission_edit, cellType: 'ellipsisAutoTip', scrollHeightClass: '.sjs-height-1'});
|
|
|
+ contractSpreadSetting.cols.push({title: '备注', colSpan: '1', rowSpan: '2', field: 'remark', hAlign: 0, width: 120, formatter: '@', readOnly: 'readOnly.code', cellType: 'ellipsisAutoTip', scrollHeightClass: '.sjs-height-1'});
|
|
|
|
|
|
const contractSpread = SpreadJsObj.createNewSpread($('#contract-spread')[0]);
|
|
|
const contractSheet = contractSpread.getActiveSheet();
|
|
@@ -84,8 +84,8 @@ $(document).ready(function() {
|
|
|
keys: ['id', 'tid', 'spid'],
|
|
|
calcFields: ['pay_price', 'total_price', 'sf_price', 'debit_price', 'yf_price'],
|
|
|
autoExpand: 3,
|
|
|
- markExpandKey: 'contract-bills-expand',
|
|
|
- markExpandSubKey: window.location.pathname.split('/')[2],
|
|
|
+ markExpandKey: 'contract-bills-expand' + window.location.pathname.split('/')[2] + contractConst.typeMap[contract_type],
|
|
|
+ markExpandSubKey: window.location.pathname.split('/')[2] + contractConst.typeMap[contract_type],
|
|
|
};
|
|
|
const calcField = ['total_price', 'yf_price'];
|
|
|
const calcFieldColor = {'total_price': '#bbb', 'yf_price': '#28a745'};
|