update
1、Q/ZZ改回X/XX(原本福田就是X/XX); 2、封面右上角的X/XX位置改为从标准号中截取,截取逻辑在主系统处理; 3、添加从流程中获取数据生成封面、页眉页脚的功能; 4、目录样式更新的判断加了一个判断条件。
This commit is contained in:
Generated
+8953
-10169
File diff suppressed because it is too large
Load Diff
@@ -213,12 +213,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 创建封面
|
// 创建封面
|
||||||
handleCreateCover () {
|
handleCreateCover () {
|
||||||
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx'
|
Asc.scope.standCode = this.form.standCode || 'X/XX xxxx-xxxx'
|
||||||
Asc.scope.replaceStandCode = this.form.dtqbbhbuss || 'Q/ZZ xxxx-xxxx'
|
Asc.scope.replaceStandCode = this.form.dtqbbhbuss || 'X/XX xxxx-xxxx'
|
||||||
Asc.scope.standCNName = this.form.standName || 'xx'
|
Asc.scope.standCNName = this.form.standName || 'xx'
|
||||||
Asc.scope.standENName = this.form.standEnName || 'xx'
|
Asc.scope.standENName = this.form.standEnName || 'xx'
|
||||||
Asc.scope.issueDate = this.form.issueTime || 'xxxx-xx-xx'
|
Asc.scope.issueDate = this.form.issueTime || 'xxxx-xx-xx'
|
||||||
Asc.scope.impDate = this.form.putTime || 'xxxx-xx-xx'
|
Asc.scope.impDate = this.form.putTime || 'xxxx-xx-xx'
|
||||||
|
Asc.scope.standardNumberPrefix = this.form.standardNumberPrefix || 'X/XX'
|
||||||
// Asc.scope.that = {}
|
// Asc.scope.that = {}
|
||||||
// Asc.scope.that.handleInitForeword = this.handleInitForeword()
|
// Asc.scope.that.handleInitForeword = this.handleInitForeword()
|
||||||
// console.log(Asc.scope.that);
|
// console.log(Asc.scope.that);
|
||||||
@@ -268,7 +269,7 @@ export default {
|
|||||||
oInlineLvlSdtStandSort.SetAlias('foton.standSort')
|
oInlineLvlSdtStandSort.SetAlias('foton.standSort')
|
||||||
oInlineLvlSdtStandSort.SetLock('sdtLocked')
|
oInlineLvlSdtStandSort.SetLock('sdtLocked')
|
||||||
const oRunStandSort = Api.CreateRun()
|
const oRunStandSort = Api.CreateRun()
|
||||||
oRunStandSort.AddText('Q/ZZ')
|
oRunStandSort.AddText(Asc.scope.standardNumberPrefix)
|
||||||
oInlineLvlSdtStandSort.AddElement(oRunStandSort, 0)
|
oInlineLvlSdtStandSort.AddElement(oRunStandSort, 0)
|
||||||
oParagraph8Right.AddInlineLvlSdt(oInlineLvlSdtStandSort)
|
oParagraph8Right.AddInlineLvlSdt(oInlineLvlSdtStandSort)
|
||||||
oParagraph8Right.SetFontSize(96)
|
oParagraph8Right.SetFontSize(96)
|
||||||
@@ -1073,7 +1074,7 @@ export default {
|
|||||||
handleInit () {
|
handleInit () {
|
||||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||||
Asc.scope.standCNName = this.form.standName
|
Asc.scope.standCNName = this.form.standName
|
||||||
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx'
|
Asc.scope.standCode = this.form.standCode || 'X/XX xxxx-xxxx'
|
||||||
this.ctx.callCommand(() => {
|
this.ctx.callCommand(() => {
|
||||||
try {
|
try {
|
||||||
const oDocument = Api.GetDocument()
|
const oDocument = Api.GetDocument()
|
||||||
@@ -1457,9 +1458,9 @@ export default {
|
|||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (this.form.issueTime) {
|
// if (this.form.issueTime) {
|
||||||
this.addSeal()
|
// this.addSeal()
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
getYearMonth (date) {
|
getYearMonth (date) {
|
||||||
@@ -1859,7 +1860,7 @@ export default {
|
|||||||
for (let index = 0; index < allElement; index++) {
|
for (let index = 0; index < allElement; index++) {
|
||||||
const element = oDocument.GetElement(index)
|
const element = oDocument.GetElement(index)
|
||||||
if ('blockLvlSdt' === element.GetClassType()) {
|
if ('blockLvlSdt' === element.GetClassType()) {
|
||||||
if (element.GetPlaceholderText() == '在此输入文字') {
|
if (element.GetPlaceholderText() === '在此输入文字' || element.GetPlaceholderText() === '在这输入文字') {
|
||||||
ContentsPr = element
|
ContentsPr = element
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2136,7 +2137,8 @@ export default {
|
|||||||
let documentCallbackUrl = window.Asc.plugin.info.documentCallbackUrl
|
let documentCallbackUrl = window.Asc.plugin.info.documentCallbackUrl
|
||||||
console.log(documentCallbackUrl)
|
console.log(documentCallbackUrl)
|
||||||
let query = param2Obj(documentCallbackUrl)
|
let query = param2Obj(documentCallbackUrl)
|
||||||
this.form = query
|
const businessInfo = JSON.parse(query.business)
|
||||||
|
this.form = Object.assign(query, businessInfo)
|
||||||
console.log(this.form)
|
console.log(this.form)
|
||||||
this.handleCreateCover()
|
this.handleCreateCover()
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ module.exports = {
|
|||||||
.set('@/common', resolve('@/common'))
|
.set('@/common', resolve('@/common'))
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 8081,
|
port: 8082,
|
||||||
headers: { 'Access-Control-Allow-Origin': '*' },
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
||||||
proxy: {
|
proxy: {
|
||||||
'/laws-sinotruk': {
|
'/laws-sinotruk': {
|
||||||
|
|||||||
Reference in New Issue
Block a user