|
@@ -457,16 +457,20 @@ let rptSignatureHelper = {
|
|
|
params.rel_content = ROLE_REL_LIST;
|
|
|
params.selectedTenders = selectedTenders;
|
|
|
rptSignatureHelper.originalRoleRelList = JSON.parse(JSON.stringify(ROLE_REL_LIST));
|
|
|
+ $.bootstrapLoading.start();
|
|
|
CommonAjax.postXsrfEx("/tender/report_api/updateMultiRoleRelationship", params, 10000, true, getCookie('csrfToken_j'),
|
|
|
function(result){
|
|
|
- console.log(result);
|
|
|
+ // console.log(result);
|
|
|
+ $.bootstrapLoading.end();
|
|
|
if (result.data && result.data.insertId > 0) {
|
|
|
CURRENT_ROLE_REL_ID = result.data.insertId;
|
|
|
}
|
|
|
}, function(err){
|
|
|
// hintBox.unWaitBox();
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}, function(ex){
|
|
|
// hintBox.unWaitBox();
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -509,7 +513,7 @@ let rptSignatureHelper = {
|
|
|
if (PAGE_SHOW.isTextSignature) {
|
|
|
resetTextSignature(zTreeOprObj.currentRptPageRst);
|
|
|
}
|
|
|
- zTreeOprObj.showPage(zTreeOprObj.currentPage, zTreeOprObj.canvas);
|
|
|
+ // zTreeOprObj.showPage(zTreeOprObj.currentPage, zTreeOprObj.canvas);
|
|
|
}
|
|
|
//2. 更新数据
|
|
|
const params = {};
|
|
@@ -521,9 +525,11 @@ let rptSignatureHelper = {
|
|
|
// rptSignatureHelper.originalRoleRelList = [];
|
|
|
// rptSignatureHelper.originalRoleRelList = rptSignatureHelper.originalRoleRelList.concat(ROLE_REL_LIST);
|
|
|
rptSignatureHelper.originalRoleRelList = JSON.parse(JSON.stringify(ROLE_REL_LIST));
|
|
|
+ $.bootstrapLoading.start();
|
|
|
CommonAjax.postXsrfEx("/tender/report_api/updateRoleRelationship", params, 10000, true, getCookie('csrfToken_j'),
|
|
|
async function(result){
|
|
|
// console.log(result);
|
|
|
+ $.bootstrapLoading.end();
|
|
|
if (result.data && result.data.insertId > 0) {
|
|
|
CURRENT_ROLE_REL_ID = result.data.insertId;
|
|
|
}
|
|
@@ -554,8 +560,10 @@ let rptSignatureHelper = {
|
|
|
|
|
|
}, function(err){
|
|
|
// hintBox.unWaitBox();
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}, function(ex){
|
|
|
// hintBox.unWaitBox();
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -660,6 +668,8 @@ let rptSignatureHelper = {
|
|
|
role_rel.sign_output = [];
|
|
|
role_rel.sign_output.push(NORMAL_SIGN_STR);
|
|
|
}
|
|
|
+ sCell.path = null;
|
|
|
+ sCell.pre_path = null;
|
|
|
for (const signType of role_rel.sign_output) {
|
|
|
switch (signType) {
|
|
|
case NORMAL_SIGN_STR:
|
|
@@ -690,6 +700,7 @@ let rptSignatureHelper = {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1022,14 +1033,18 @@ function resetTextSignature(pageData) {
|
|
|
fitCell.Value = '';
|
|
|
for (let role of ROLE_REL_LIST) {
|
|
|
if (sCell.signature_name === role.signature_name) {
|
|
|
- fitCell.Value = role.user_name;
|
|
|
+ if (role.sign_output && role.sign_output.indexOf(NORMAL_SIGN_STR) >= 0) {
|
|
|
+ fitCell.Value = role.user_name;
|
|
|
+ } else {
|
|
|
+ fitCell.Value = '';
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// 要创建新的文本签名cell
|
|
|
for (let role of ROLE_REL_LIST) {
|
|
|
- if (sCell.signature_name === role.signature_name) {
|
|
|
+ if (sCell.signature_name === role.signature_name && role.sign_output && role.sign_output.indexOf(NORMAL_SIGN_STR) >= 0) {
|
|
|
const newCell = {
|
|
|
font: 'Footer',
|
|
|
control: sCell.control,
|