Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage

This commit is contained in:
高嵩
2022-09-30 14:32:30 +08:00
11 changed files with 43 additions and 25 deletions
@@ -886,6 +886,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
false, false, "Blue Sky Noto Regular",null,null,flag); false, false, "Blue Sky Noto Regular",null,null,flag);
WordUtil.exportWord(document, moth+"\r\n", null, ParagraphAlignment.CENTER, 0, 12, WordUtil.exportWord(document, moth+"\r\n", null, ParagraphAlignment.CENTER, 0, 12,
false, true, "Blue Sky Noto Regular",null,null,flag); false, true, "Blue Sky Noto Regular",null,null,flag);
//添加下一页
document.createParagraph().createRun().addBreak(BreakType.PAGE);
} }
//封面 //封面
private void coverEn(List<LawsMonthlyReportWriteEO> lawsMonthlyReportWriteEOS, private void coverEn(List<LawsMonthlyReportWriteEO> lawsMonthlyReportWriteEOS,
@@ -900,6 +902,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
false, false, "Blue Sky Noto Regular",null,null,flag); false, false, "Blue Sky Noto Regular",null,null,flag);
WordUtil.exportWord(document, moth+"\r\n", null, ParagraphAlignment.CENTER, 0, 12, WordUtil.exportWord(document, moth+"\r\n", null, ParagraphAlignment.CENTER, 0, 12,
false, true, "Blue Sky Noto Regular",null,null,flag); false, true, "Blue Sky Noto Regular",null,null,flag);
//添加下一页
document.createParagraph().createRun().addBreak(BreakType.PAGE);
} }
private void wordContent(List<LawsMonthlyReportWriteEO> lawsMonthlyReportWriteEOS, private void wordContent(List<LawsMonthlyReportWriteEO> lawsMonthlyReportWriteEOS,
List<LawsMonthlyReportTitleTemplateEO> lawsMonthlyReportTitleTemplateEOS, List<LawsMonthlyReportTitleTemplateEO> lawsMonthlyReportTitleTemplateEOS,
@@ -42,6 +42,7 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPageSz;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSpacing;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType;
@@ -107,17 +108,17 @@ public class WordUtil {
//设置行间距 //设置行间距
// if(!"cover".equals(flag) && !"oneTitle".equals(flag)){ if(!"cover".equals(flag) && !"oneTitle".equals(flag)){
// CTP ctp = titleParagraph.getCTP(); CTP ctp = titleParagraph.getCTP();
// CTPPr ppr = ctp.isSetPPr() ? ctp.getPPr() : ctp.addNewPPr(); CTPPr ppr = ctp.isSetPPr() ? ctp.getPPr() : ctp.addNewPPr();
// CTSpacing spacing = ppr.isSetSpacing()? ppr.getSpacing() : ppr.addNewSpacing(); CTSpacing spacing = ppr.isSetSpacing()? ppr.getSpacing() : ppr.addNewSpacing();
// spacing.setAfter(BigInteger.valueOf(0)); spacing.setAfter(BigInteger.valueOf(120));//行间距后段为6磅
// spacing.setBefore(BigInteger.valueOf(0)); spacing.setBefore(BigInteger.valueOf(300));//行间距前段为15磅, 300是通过单位换算来的
// //设置行距类型为 EXACT // //设置行距类型为 EXACT
// spacing.setLineRule(STLineSpacingRule.EXACT); // spacing.setLineRule(STLineSpacingRule.EXACT);
// //1磅数是20 // //1磅数是20
// spacing.setLine(BigInteger.valueOf(40*20)); // spacing.setLine(BigInteger.valueOf(1*20));
// } }
//设置段落左对齐 //设置段落左对齐
if (align == null) { if (align == null) {
+1
View File
@@ -47,6 +47,7 @@
"vue-quill-editor": "^3.0.6", "vue-quill-editor": "^3.0.6",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue-splitpane": "^1.0.4", "vue-splitpane": "^1.0.4",
"vue-virtual-scroll-list": "^2.3.4",
"vuedraggable": "^2.20.0", "vuedraggable": "^2.20.0",
"vuex": "^3.1.0", "vuex": "^3.1.0",
"vxe-table": "2.9.13", "vxe-table": "2.9.13",
+1
View File
@@ -1316,4 +1316,5 @@ module.exports = {
viewConsistentAssessment:'View Consistent Assessment', viewConsistentAssessment:'View Consistent Assessment',
viewAll:'View All', viewAll:'View All',
endProcess:'End Process', endProcess:'End Process',
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
} }
+1
View File
@@ -1417,4 +1417,5 @@ module.exports = {
viewConsistentAssessment:'查看一致评估', viewConsistentAssessment:'查看一致评估',
viewAll:'查看全部', viewAll:'查看全部',
endProcess:'结束流程', endProcess:'结束流程',
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
} }
@@ -76,7 +76,7 @@
type: Array type: Array
}, },
echoData: { echoData: {
type: Array type: String
}, },
keeps: { keeps: {
type: Number, type: Number,
@@ -213,7 +213,6 @@
}, []) }, [])
}, },
getInitCheckedKeys(datas) { getInitCheckedKeys(datas) {
console.log(datas)
let keys = datas.reduce((conn, data) => { let keys = datas.reduce((conn, data) => {
if (data.checked != null && data.checked === true) { if (data.checked != null && data.checked === true) {
conn.push(data[this.nodeKey]) conn.push(data[this.nodeKey])
@@ -233,11 +232,6 @@
}, },
getNodeKey(node) { getNodeKey(node) {
console.log(node)
console.log(this.echoData)
if (this.echoData.includes(node.id)) {
node.checked = true
}
return getNodeKey(this.nodeKey, node.data) return getNodeKey(this.nodeKey, node.data)
}, },
@@ -589,6 +583,9 @@
::v-deep .el-tree-node:hover { ::v-deep .el-tree-node:hover {
background: #fff !important; background: #fff !important;
} }
::v-deep .is-focus .el-checkbox__inner{
border-color: #21c9cc !important;
}
</style> </style>
<style> <style>
.el-tree { .el-tree {
@@ -458,6 +458,8 @@
id: this.formInline.bussDocumentLibraryId.split(',')[index] id: this.formInline.bussDocumentLibraryId.split(',')[index]
}) })
}) })
} else {
this.formInline.standNumber = []
} }
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
} else { } else {
@@ -575,7 +577,7 @@
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
let formInline = JSON.parse(JSON.stringify(this.formInline)) let formInline = JSON.parse(JSON.stringify(this.formInline))
if (formInline.standNumber && formInline.standNumber.length > 0){ if (formInline.standNumber && formInline.standNumber.length > 0) {
formInline.standNumber = formInline.standNumber.join(',') formInline.standNumber = formInline.standNumber.join(',')
} }
this.loading = true this.loading = true
@@ -805,6 +807,7 @@
height: 38px; height: 38px;
margin-right: 10px; margin-right: 10px;
} }
.itemOption { .itemOption {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@@ -14,7 +14,7 @@
</span> </span>
</div> </div>
<div class="content-box-content"> <div class="content-box-content">
<div class="content-box-content-top" v-html="queryForm.content"> <div class="content-box-content-top ql-editor" v-html="queryForm.content">
</div> </div>
<div class="content-box-content-botton"> <div class="content-box-content-botton">
@@ -102,7 +102,7 @@
<div class="commentContent-text-one" v-for="(val,index1) in item.problemKnowledgeBaseCommentVOList" <div class="commentContent-text-one" v-for="(val,index1) in item.problemKnowledgeBaseCommentVOList"
v-if="item.problemKnowledgeBaseCommentVOList && item.problemKnowledgeBaseCommentVOList.length > 0"> v-if="item.problemKnowledgeBaseCommentVOList && item.problemKnowledgeBaseCommentVOList.length > 0">
<div class="commentContent-header"> <div class="commentContent-header">
<!-- <span class="commentContent-yuan"></span>--> <!-- <span class="commentContent-yuan"></span>-->
<span class="commentContent-title">{{val.createBy}}</span> <span class="commentContent-title">{{val.createBy}}</span>
<span class="commentContent-time">{{val.createTime}}</span> <span class="commentContent-time">{{val.createTime}}</span>
</div> </div>
@@ -151,6 +151,10 @@
<script> <script>
import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import { quillEditor } from 'vue-quill-editor'
import SelectedBy from '@/components/SelectedBy/index' import SelectedBy from '@/components/SelectedBy/index'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { Base64 } from 'js-base64' import { Base64 } from 'js-base64'
@@ -210,7 +214,7 @@
let index2 = fileName.length let index2 = fileName.length
let fileSuffix = fileName.substring(index1, index2) let fileSuffix = fileName.substring(index1, index2)
if (fileSuffix == '.pdf') { if (fileSuffix == '.pdf') {
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username)) window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id + '&userName=' + this.userInfo().username))
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') { } else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank') window.open(url, '_blank')
@@ -223,7 +227,7 @@
} }
}, },
download(item) { download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id ,userName:this.userInfo().username}) downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
}, },
getData(val) { getData(val) {
this.queryBase = val this.queryBase = val
@@ -426,6 +430,7 @@
border-bottom: 1px solid #E6E6E9; border-bottom: 1px solid #E6E6E9;
display: flex; display: flex;
align-items: center; align-items: center;
.icon-left { .icon-left {
font-size: 16px; font-size: 16px;
margin-right: 6px; margin-right: 6px;
@@ -700,6 +705,7 @@
display: inline-block; display: inline-block;
margin-left: 3px; margin-left: 3px;
} }
.Required { .Required {
color: red; color: red;
margin-right: 4px; margin-right: 4px;
@@ -491,7 +491,11 @@
}, },
standardDecompositionDocumentClick() { standardDecompositionDocumentClick() {
if (this.standardDecomposition && this.standardDecomposition.length > 0) { if (this.standardDecomposition && this.standardDecomposition.length > 0) {
if (this.standardDecomposition[0].sarFileSplitInfoList && this.standardDecomposition[0].sarFileSplitInfoList.length > 0) {
this.$refs.standardDecompositionSheetRef.getData(JSON.parse(JSON.stringify(this.standardDecomposition[0])), this.standardList) this.$refs.standardDecompositionSheetRef.getData(JSON.parse(JSON.stringify(this.standardDecomposition[0])), this.standardList)
} else {
this.$message.warning(this.$t('thereForTheCurrentlySelectedData'))
}
} else { } else {
this.$message.warning(this.$t('pleaseSelectStandardFirst')) this.$message.warning(this.$t('pleaseSelectStandardFirst'))
} }
@@ -226,7 +226,7 @@
this.sarFileSplitInfoList = this.standData.sarFileSplitInfoList || [] this.sarFileSplitInfoList = this.standData.sarFileSplitInfoList || []
this.sarFileSplitInfoList = [...this.sarFileSplitInfoList] this.sarFileSplitInfoList = [...this.sarFileSplitInfoList]
this.queryParam = {} this.queryParam = {}
this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : '' this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : null
this.visible = true this.visible = true
if (this.queryParam.info_id) { if (this.queryParam.info_id) {
this.pageNo = 1 this.pageNo = 1
@@ -251,7 +251,7 @@
}, },
searchReset() { searchReset() {
this.queryParam = {} this.queryParam = {}
this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : '' this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : null
if (this.queryParam.info_id) { if (this.queryParam.info_id) {
this.pageNo = 1 this.pageNo = 1
this.replacePage() this.replacePage()
@@ -343,7 +343,7 @@
serialNumber: val.serialNumber, serialNumber: val.serialNumber,
TaskKey: val.prehomoTaskDefinitionKey, TaskKey: val.prehomoTaskDefinitionKey,
flowType: 3, flowType: 3,
isDisplay: isTrue, isDisplay: isDisplay,
id: val.projectLibraryId, id: val.projectLibraryId,
Sponsor: 'prehomoInitiatorName', Sponsor: 'prehomoInitiatorName',
personLiable: 'prehomoDutyName', personLiable: 'prehomoDutyName',
@@ -374,7 +374,7 @@
projectTaskInventoryId: val.projectLawsInventoryId, projectTaskInventoryId: val.projectLawsInventoryId,
TaskKey: val.verifyTaskDefinitionKey, TaskKey: val.verifyTaskDefinitionKey,
flowType: 4, flowType: 4,
isDisplay: isTrue, isDisplay: isDisplay,
Sponsor: 'verifyInitiatorName', Sponsor: 'verifyInitiatorName',
personLiable: 'verifyDutyName', personLiable: 'verifyDutyName',
typeOfDeliverables: 'verifyDeliverableTypeName', typeOfDeliverables: 'verifyDeliverableTypeName',