[update] 插入签章信息增加打印信息
This commit is contained in:
@@ -2248,16 +2248,22 @@ export default {
|
|||||||
*/
|
*/
|
||||||
async insertSignatureInfo () {
|
async insertSignatureInfo () {
|
||||||
Asc.scope.signatureInfo = await this.getSignatureInfo()
|
Asc.scope.signatureInfo = await this.getSignatureInfo()
|
||||||
|
console.log('---------获取完签章信息了')
|
||||||
Asc.scope.standCode = this.form.standCode
|
Asc.scope.standCode = this.form.standCode
|
||||||
Asc.scope.standCNName = this.form.standName
|
Asc.scope.standCNName = this.form.standName
|
||||||
|
console.log('---------获取完签章信息了1')
|
||||||
Asc.scope.downloadUrl = window._CONFIG.downloadUrl
|
Asc.scope.downloadUrl = window._CONFIG.downloadUrl
|
||||||
|
console.log('---------获取完签章信息了2')
|
||||||
this.ctx.callCommand(() => {
|
this.ctx.callCommand(() => {
|
||||||
try {
|
try {
|
||||||
|
console.log('---------获取完签章信息了3')
|
||||||
const oDocument = Api.GetDocument()
|
const oDocument = Api.GetDocument()
|
||||||
|
console.log('---------获取完签章信息了4')
|
||||||
// 签审信息只创建一次
|
// 签审信息只创建一次
|
||||||
const AllContentControls = oDocument.GetAllContentControls()
|
const AllContentControls = oDocument.GetAllContentControls()
|
||||||
let flag = false
|
let flag = false
|
||||||
for (let i = 0; i < AllContentControls.length; i++) {
|
for (let i = 0; i < AllContentControls.length; i++) {
|
||||||
|
console.log('---------GetAlias', AllContentControls[i].GetAlias())
|
||||||
if (AllContentControls[i].GetAlias() === 'sinotruk.signatureInfo') {
|
if (AllContentControls[i].GetAlias() === 'sinotruk.signatureInfo') {
|
||||||
console.log('已经创建过签章了')
|
console.log('已经创建过签章了')
|
||||||
flag = true
|
flag = true
|
||||||
@@ -2456,6 +2462,7 @@ export default {
|
|||||||
result = res.result
|
result = res.result
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
console.log('--------返回签章信息了', result)
|
||||||
resolve(result)
|
resolve(result)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user