|
@@ -101,7 +101,7 @@
|
|
|
报表设置
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="panel">
|
|
|
+ <div class="panel" id="pnl_eSignature">
|
|
|
<div class="panel-body">
|
|
|
<button class="btn btn-outline-primary btn-sm" type="button" data-toggle="modal" data-target="#eSignature" onclick="rptSignatureHelper.resetESignature(zTreeOprObj.currentRptPageRst)">
|
|
|
<i class="fa fa-pencil"></i><br>
|
|
@@ -232,6 +232,7 @@
|
|
|
}
|
|
|
|
|
|
buildStageSelection();
|
|
|
+ setupSignature();
|
|
|
|
|
|
const ORG_TOP_TREE_NODES = JSON.parse(JSON.stringify(TOP_TREE_NODES));
|
|
|
for (let item of TOP_TREE_NODES) {
|
|
@@ -325,11 +326,28 @@
|
|
|
// alert('you are selecting: ' + ele.innerText);
|
|
|
current_stage_order = parseInt(ele.attributes.stg_order.value);
|
|
|
current_stage_id = parseInt(ele.attributes.stg_id.value);
|
|
|
+ // 调整当前stage times
|
|
|
+ for (let i = STAGE_LIST.length; i > 0; i--) {
|
|
|
+ if (parseInt(STAGE_LIST[i - 1].order) === current_stage_order) {
|
|
|
+ current_stage_times = STAGE_LIST[i - 1].times;
|
|
|
+ current_stage_status = STAGE_LIST[i - 1].status;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
buildStageSelection();
|
|
|
+ setupSignature();
|
|
|
//还有必要触发报表刷新!
|
|
|
zTreeOprObj.onClick(null, null, zTreeOprObj.currentNode);
|
|
|
}
|
|
|
|
|
|
+ function setupSignature() {
|
|
|
+ if (current_stage_status === 3) {
|
|
|
+ $('#pnl_eSignature')[0].style.display = '';
|
|
|
+ } else {
|
|
|
+ $('#pnl_eSignature')[0].style.display = 'none';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
function setupDateFormat() {
|
|
|
Date.prototype.Format = function (fmt) {
|
|
|
let o = {
|