update 新制定前言,最后边的“本文起草人...”应另起一行。
This commit is contained in:
@@ -44,28 +44,28 @@
|
||||
<a-form-model id="components-form-demo-validate-other" :model="form" v-bind="formItemLayout"
|
||||
@submit="handleInitModalConfirm">
|
||||
<a-form-item label="企标编号">
|
||||
<a-input v-model="form.standCode" placeholder="请填写企标编号"/>
|
||||
<a-input v-model="form.standCode" placeholder="请填写企标编号" />
|
||||
</a-form-item>
|
||||
<a-form-item label="代替企标编号">
|
||||
<a-input v-model="form.replaceStandCode" placeholder="请填写代替企标编号"/>
|
||||
<a-input v-model="form.replaceStandCode" placeholder="请填写代替企标编号" />
|
||||
</a-form-item>
|
||||
<a-form-item label="标准中文名称">
|
||||
<a-input v-model="form.standCNName" placeholder="请填写标准中文名称"/>
|
||||
<a-input v-model="form.standCNName" placeholder="请填写标准中文名称" />
|
||||
</a-form-item>
|
||||
<a-form-item label="标准英文名称">
|
||||
<a-input v-model="form.standENName" placeholder="请填写标准英文名称"/>
|
||||
<a-input v-model="form.standENName" placeholder="请填写标准英文名称" />
|
||||
</a-form-item>
|
||||
<a-form-item label="发布日期">
|
||||
<el-date-picker v-model="form.issueDate" placeholder="请选择发布日期"/>
|
||||
<el-date-picker v-model="form.issueDate" placeholder="请选择发布日期" />
|
||||
</a-form-item>
|
||||
<a-form-item label="实施日期">
|
||||
<el-date-picker v-model="form.impDate" placeholder="请选择实施日期"/>
|
||||
<el-date-picker v-model="form.impDate" placeholder="请选择实施日期" />
|
||||
</a-form-item>
|
||||
<a-form-item label="主要起草人">
|
||||
<a-input v-model="form.primaryDrafter" placeholder="请填写主起草人"/>
|
||||
<a-input v-model="form.primaryDrafter" placeholder="请填写主起草人" />
|
||||
</a-form-item>
|
||||
<a-form-item label="起草部门">
|
||||
<a-input v-model="form.drafterDeptName" placeholder="请填写主起草人"/>
|
||||
<a-input v-model="form.drafterDeptName" placeholder="请填写主起草人" />
|
||||
</a-form-item>
|
||||
</a-form-model>
|
||||
</a-modal>
|
||||
@@ -73,9 +73,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {BORDER_DISABLE} from '@/config'
|
||||
import { BORDER_DISABLE } from '@/config'
|
||||
import moment from 'moment'
|
||||
import {imageSvg} from '@/pages/page1/common/image'
|
||||
import { imageSvg } from '@/pages/page1/common/image'
|
||||
|
||||
const debounce = function (fn, delay) {
|
||||
let timer = null
|
||||
@@ -92,7 +92,7 @@ const debounce = function (fn, delay) {
|
||||
}
|
||||
|
||||
export default {
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
initModalVisible: false,
|
||||
form: {},
|
||||
@@ -101,8 +101,8 @@ export default {
|
||||
isDisplay: false,
|
||||
num: 0,
|
||||
formItemLayout: {
|
||||
labelCol: {span: 6},
|
||||
wrapperCol: {span: 14}
|
||||
labelCol: { span: 6 },
|
||||
wrapperCol: { span: 14 }
|
||||
},
|
||||
numData: {
|
||||
1: 'A',
|
||||
@@ -138,7 +138,7 @@ export default {
|
||||
/**
|
||||
* 企标文件初始化
|
||||
**/
|
||||
handleInitModalConfirm() {
|
||||
handleInitModalConfirm () {
|
||||
const replaceForm = JSON.parse(JSON.stringify(this.form))
|
||||
// 日期转换
|
||||
replaceForm.issueDate = moment(replaceForm.issueDate).format('YYYY-MM-DD')
|
||||
@@ -212,8 +212,8 @@ export default {
|
||||
this.initModalVisible = false
|
||||
},
|
||||
// 创建封面
|
||||
handleCreateCover() {
|
||||
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx';
|
||||
handleCreateCover () {
|
||||
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx'
|
||||
Asc.scope.replaceStandCode = this.form.dtqbbhbuss || 'Q/ZZ xxxx-xxxx'
|
||||
Asc.scope.standCNName = this.form.standName || 'xx'
|
||||
Asc.scope.standENName = this.form.standEnName || 'xx'
|
||||
@@ -315,7 +315,6 @@ export default {
|
||||
oParagraph4.SetBold(false)
|
||||
oDocument.InsertContent([oParagraph4])
|
||||
|
||||
|
||||
const oParagraphOne = Api.CreateParagraph()
|
||||
const oInlineLvlSdtStandCodeOne = Api.CreateInlineLvlSdt()
|
||||
oInlineLvlSdtStandCodeOne.SetAlias('foton.replaceStandCode')
|
||||
@@ -536,7 +535,7 @@ export default {
|
||||
}, 500)
|
||||
},
|
||||
|
||||
equationClick() {
|
||||
equationClick () {
|
||||
// this.isTrue = !this.isTrue
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -669,7 +668,7 @@ export default {
|
||||
})
|
||||
},
|
||||
//双面排版
|
||||
doubleSided() {
|
||||
doubleSided () {
|
||||
this.isTrue = !this.isTrue
|
||||
Asc.scope.isTrue = this.isTrue
|
||||
this.ctx.callCommand(() => {
|
||||
@@ -716,7 +715,7 @@ export default {
|
||||
},
|
||||
|
||||
//封面左上角
|
||||
catalogueClick() {
|
||||
catalogueClick () {
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
const oDocument = Api.GetDocument()
|
||||
@@ -749,7 +748,7 @@ export default {
|
||||
},
|
||||
|
||||
//终结线
|
||||
terminationLine() {
|
||||
terminationLine () {
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
// DE.controllers.Toolbar.api.put_LineEndSize()
|
||||
@@ -768,7 +767,7 @@ export default {
|
||||
})
|
||||
},
|
||||
// 目次
|
||||
handleInitDirectory() {
|
||||
handleInitDirectory () {
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
const oDocument = Api.GetDocument()
|
||||
@@ -804,7 +803,7 @@ export default {
|
||||
})
|
||||
},
|
||||
// 初始化前言
|
||||
handleInitForeword() {
|
||||
handleInitForeword () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -844,7 +843,6 @@ export default {
|
||||
oParagraph2.SetBold(false)
|
||||
oDocument.InsertContent([oParagraph2])
|
||||
|
||||
|
||||
for (let i = 0; i < 2; i++) {
|
||||
let text = ''
|
||||
switch (i) {
|
||||
@@ -971,7 +969,7 @@ export default {
|
||||
/**
|
||||
* 初始化前言,仅包含前言两个字,下面的内容由客户选择创建
|
||||
*/
|
||||
initForeword() {
|
||||
initForeword () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -1012,7 +1010,7 @@ export default {
|
||||
}, 500)
|
||||
},
|
||||
// 初始化正文
|
||||
handleInit() {
|
||||
handleInit () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
Asc.scope.standCNName = this.form.standName
|
||||
Asc.scope.standCode = this.form.standCode || 'x/xx xxxx-xxxx'
|
||||
@@ -1205,7 +1203,7 @@ export default {
|
||||
}, 500)
|
||||
},
|
||||
|
||||
replaceData() {
|
||||
replaceData () {
|
||||
Asc.scope.standCode = this.form.standCode
|
||||
Asc.scope.replaceStandCode = this.form.dtqbbhbuss
|
||||
Asc.scope.standCNName = this.form.standName
|
||||
@@ -1336,7 +1334,6 @@ export default {
|
||||
oHeader2Text.GetElement(0).SetPosition(-4)
|
||||
oHeader2Text.GetElement(0).SetJc('right')
|
||||
|
||||
|
||||
let oHeaderTextOne = oSectionOne.GetHeader('even', true)
|
||||
const oParagraphTextOne = oHeaderTextOne.GetElement(0)
|
||||
let oHeader2TextOne = oSectionOne.GetHeader('default', true)
|
||||
@@ -1347,7 +1344,6 @@ export default {
|
||||
oHeaderTextOne.GetElement(0).SetPosition(-4)
|
||||
oHeaderTextOne.GetElement(0).SetJc('left')
|
||||
|
||||
|
||||
oParagraph20TextOne.Delete()
|
||||
oHeader2TextOne.GetElement(0).AddText(Asc.scope.standCode)
|
||||
oHeader2TextOne.GetElement(0).SetPosition(-4)
|
||||
@@ -1366,7 +1362,7 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
getYearMonth(date) {
|
||||
getYearMonth (date) {
|
||||
date = (date + '').split(/[ ]+/)
|
||||
let result = []
|
||||
let reg = /^(\d{4})-(\d{1,2})-(\d{1,2})$/
|
||||
@@ -1379,7 +1375,7 @@ export default {
|
||||
},
|
||||
|
||||
//创建发布认可章
|
||||
addSeal() {
|
||||
addSeal () {
|
||||
if (this.form.issueTime) {
|
||||
let getYearMonth = this.getYearMonth(this.form.issueTime)
|
||||
Asc.scope.year = getYearMonth[0]
|
||||
@@ -1471,7 +1467,7 @@ export default {
|
||||
},
|
||||
|
||||
// 创建空行
|
||||
handleInsertRow() {
|
||||
handleInsertRow () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -1535,7 +1531,7 @@ export default {
|
||||
},
|
||||
|
||||
// 创建内容控件
|
||||
handleInsertControl(control) {
|
||||
handleInsertControl (control) {
|
||||
Asc.scope.alias = control.key
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -1684,7 +1680,7 @@ export default {
|
||||
/**
|
||||
* 数据替换
|
||||
*/
|
||||
handleReplace() {
|
||||
handleReplace () {
|
||||
this.initModalVisible = true
|
||||
},
|
||||
equationOne: debounce(function () {
|
||||
@@ -1712,7 +1708,7 @@ export default {
|
||||
let text = list[i].GetText()
|
||||
text = text.replace(/\s*/g, '')
|
||||
text = text.substring(0, 2)
|
||||
oDocument.SearchAndReplace({'searchString': '附 录 ', 'replaceString': text})
|
||||
oDocument.SearchAndReplace({ 'searchString': '附 录 ', 'replaceString': text })
|
||||
list[i].SetPosition(0)
|
||||
}
|
||||
if (list[i].GetIndLeft() == 283) {
|
||||
@@ -1745,7 +1741,7 @@ export default {
|
||||
/**
|
||||
* 添加新制定标准化文件格式前言
|
||||
*/
|
||||
addNewForeword() {
|
||||
addNewForeword () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -1759,7 +1755,8 @@ export default {
|
||||
'本文件附录A为规范性附录,附录B为资料性附录。(如有附录,则需在前言中提及)',
|
||||
'本文件由中国重型汽车集团有限公司提出。',
|
||||
'本文件由中国重型汽车集团有限公司汽车研究总院归口。',
|
||||
'本文件起草单位:中国重型汽车集团有限公司汽车研究总院。本文件主要起草人:xx、XX。'
|
||||
'本文件起草单位:中国重型汽车集团有限公司汽车研究总院。',
|
||||
'本文件主要起草人:xx、XX。'
|
||||
]
|
||||
}
|
||||
/**
|
||||
@@ -1814,7 +1811,7 @@ export default {
|
||||
/**
|
||||
* 添加修订标准化文件格式前言
|
||||
*/
|
||||
addReviseForeword() {
|
||||
addReviseForeword () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
@@ -1911,7 +1908,7 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
created () {
|
||||
// 获取企标详情
|
||||
// this.$axios
|
||||
// .get("/static/json/detail.json")
|
||||
@@ -1926,8 +1923,8 @@ export default {
|
||||
// });
|
||||
// this.initModalVisible = true;
|
||||
},
|
||||
mounted() {
|
||||
function param2Obj(url) {
|
||||
mounted () {
|
||||
function param2Obj (url) {
|
||||
const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ')
|
||||
if (!search) {
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user