|
@@ -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', cellType: 'ellipsisAutoTip', scrollHeightClass: '.sjs-height-1'},
|
|
|
+ {title: '项目名称/合同名称', colSpan: '1', rowSpan: '2', field: 'name', hAlign: 0, width: 360, formatter: '@', readOnly: 'readOnly.code', wordWrap: true},
|
|
|
{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},
|
|
|
],
|
|
@@ -425,6 +425,7 @@ $(document).ready(function() {
|
|
|
$('a[href*="#cons-unlock"]').hide();
|
|
|
$('a[href*="#cons-close"]').hide();
|
|
|
$('a[href*="#cons-upfile"]').hide();
|
|
|
+ if (node && node.c_code && $('.bc-bar .nav li .active').attr('href') === '#htfile' && permission_att) $('a[href*="#cons-upfile"]').show();
|
|
|
$('#add_contract_pay_btn').hide();
|
|
|
}
|
|
|
} else {
|
|
@@ -437,6 +438,7 @@ $(document).ready(function() {
|
|
|
$('a[href*="#cons-unlock"]').hide();
|
|
|
$('a[href*="#cons-close"]').hide();
|
|
|
$('a[href*="#cons-upfile"]').hide();
|
|
|
+ if (node && node.c_code && $('.bc-bar .nav li .active').attr('href') === '#htfile' && permission_att) $('a[href*="#cons-upfile"]').show();
|
|
|
$('#add_contract_pay_btn').hide();
|
|
|
}
|
|
|
},
|
|
@@ -1153,8 +1155,10 @@ $(document).ready(function() {
|
|
|
|
|
|
$('.bc-bar ul li a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|
|
const node = SpreadJsObj.getSelectObject(contractSheet);
|
|
|
- if (node && node.c_code && node.uid === user_id) {
|
|
|
- contractTreeSpreadObj.changeContractTab(node, true);
|
|
|
+ $('a[href*="#cons-upfile"]').hide();
|
|
|
+ if (node && node.c_code) {
|
|
|
+ if ($('.bc-bar .nav li .active').attr('href') === '#htfile' && permission_att) $('a[href*="#cons-upfile"]').show();
|
|
|
+ if (node.uid === user_id) contractTreeSpreadObj.changeContractTab(node, true);
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -1652,7 +1656,7 @@ $(document).ready(function() {
|
|
|
uids.push(parseInt($(this).parents('tr').data('id')));
|
|
|
});
|
|
|
if (uids.length === 0) {
|
|
|
- toastr.warning('请选择要删除的成员');
|
|
|
+ toastr.warning('请选择要移除的成员');
|
|
|
return;
|
|
|
}
|
|
|
deleteAfterHint(function () {
|
|
@@ -1667,7 +1671,7 @@ $(document).ready(function() {
|
|
|
contractTreeAudits = result;
|
|
|
sqTreeSpreadObj.setTreeAudits(sqSheet);
|
|
|
});
|
|
|
- }, '确认删除「当前节点已勾选授权用户」?');
|
|
|
+ }, '确认移除「当前节点已勾选授权用户」?');
|
|
|
});
|
|
|
|
|
|
$('body').on('click', '#empower .del-tree-audit', function () {
|
|
@@ -1963,7 +1967,7 @@ $(document).ready(function() {
|
|
|
toastr.error('请选择一个合同节点');
|
|
|
return;
|
|
|
}
|
|
|
- if (node.uid !== user_id) {
|
|
|
+ if (node.uid !== user_id && !permission_att) {
|
|
|
$('#cons-pay-file .upload-permission').hide();
|
|
|
} else {
|
|
|
$('#cons-pay-file .upload-permission').show();
|