Explorar el Código

Merge branch 'fix/documentedit_signer' into 'develop'

Merge of fix/documentedit_signer to develop 修正版式文件签发人配置问题

See merge request o2oa/o2oa!1126
胡起 hace 5 años
padre
commit
0af60b162e
Se han modificado 1 ficheros con 39 adiciones y 0 borrados
  1. 39 0
      o2web/source/x_component_process_Xform/Documenteditor.js

+ 39 - 0
o2web/source/x_component_process_Xform/Documenteditor.js

@@ -370,6 +370,13 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
 
         this.layout_signer = this.contentNode.getElement(".doc_layout_filenoup_signerContent");
         if (this.layout_signer) this.layout_signer.setStyles(this.css.doc_layout_filenoup_signerContent);
+
+        if (!this.layout_fileno){
+            this.layout_fileNoUpTable = this.contentNode.getElement(".doc_layout_filenoup");
+            this.layout_filenoArea = this.contentNode.getElement(".doc_layout_fileno_area");
+            this.layout_fileno = this.contentNode.getElement(".doc_layout_fileno");
+            if (this.layout_fileno) this.layout_fileno.setStyles(this.css.doc_layout_fileno);
+        }
     },
 
     //文号
@@ -378,6 +385,33 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
         this.layout_filenoArea = this.contentNode.getElement(".doc_layout_fileno_area");
         this.layout_fileno = this.contentNode.getElement(".doc_layout_fileno");
         if (this.layout_fileno) this.layout_fileno.setStyles(this.css.doc_layout_fileno);
+
+        td = this.contentNode.getElement(".doc_layout_filenoup_signer_td");
+        if (td) td.setStyles(this.css.doc_layout_filenoup_signer_td);
+
+        var node = this.contentNode.getElement(".doc_layout_filenoup_signer_table");
+        if (node) node.setStyles(this.css.doc_layout_filenoup_signer_table);
+        node = this.contentNode.getElement(".doc_layout_filenoup_signerTitle_td");
+        if (node) node.setStyles(this.css.doc_layout_filenoup_signerTitle_td);
+        this.layout_signerTitle = this.contentNode.getElement(".doc_layout_filenoup_signer");
+        if (this.layout_signerTitle) this.layout_signerTitle.setStyles(this.css.doc_layout_filenoup_signer);
+        node = this.contentNode.getElement(".doc_layout_filenoup_signerContent_td");
+        if (node) node.setStyles(this.css.doc_layout_filenoup_signerContent_td);
+
+        this.layout_signer = this.contentNode.getElement(".doc_layout_filenoup_signerContent");
+        if (this.layout_signer) this.layout_signer.setStyles(this.css.doc_layout_filenoup_signerContent);
+
+        if (!this.layout_fileno){
+            this.layout_filenoArea = this.contentNode.getElement(".doc_layout_fileno_area");
+            this.layout_fileNoUpTable = this.contentNode.getElement(".doc_layout_filenoup");
+            if (this.layout_fileNoUpTable) this.layout_fileNoUpTable.setStyles(this.css.doc_layout_filenoup);
+
+            var td = this.contentNode.getElement(".doc_layout_filenoup_fileno_td");
+            if (td) td.setStyles(this.css.doc_layout_filenoup_fileno_td);
+
+            this.layout_fileno = this.contentNode.getElement(".doc_layout_filenoup_fileno");
+            if (this.layout_fileno) this.layout_fileno.setStyles(this.css.doc_layout_filenoup_fileno);
+        }
     },
 
     //红线
@@ -623,6 +657,11 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
         if (this.layout_fileNoUpTable) this.layout_fileNoUpTable[m("signer")]();
         if (this.layout_filenoArea) this.layout_filenoArea[(!control.signer) ? "show" : "hide"]();
 
+        debugger;
+        if (this.layout_signerTitle) this.layout_signerTitle[m("signer")]();
+        if (this.layout_signer) this.layout_signer[m("signer")]();
+
+
         if (this.layout_fileno) this.layout_fileno[m("fileno")]();
         if (this.layout_subject) this.layout_subject[m("subject")]();
         if (this.layout_mainSend) this.layout_mainSend[m("mainSend")]();