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

This commit is contained in:
zhangjun
2022-09-27 10:06:31 +08:00
83 changed files with 555 additions and 861 deletions
+4
View File
@@ -0,0 +1,4 @@
# PDF.JS
## version:2.16.105
## updateTime:2022年9月20日
## version FROM:1.9.426 TO 2.16.105
+23 -15
View File
@@ -1766,9 +1766,9 @@ var PDFViewerApplication = {
eventBus.on('namedaction', webViewerNamedAction); eventBus.on('namedaction', webViewerNamedAction);
eventBus.on('presentationmodechanged', webViewerPresentationModeChanged); eventBus.on('presentationmodechanged', webViewerPresentationModeChanged);
eventBus.on('presentationmode', webViewerPresentationMode); eventBus.on('presentationmode', webViewerPresentationMode);
eventBus.on('openfile', webViewerOpenFile); // eventBus.on('openfile', webViewerOpenFile);
eventBus.on('print', webViewerPrint); // eventBus.on('print', webViewerPrint);
eventBus.on('download', webViewerDownload); // eventBus.on('download', webViewerDownload);
eventBus.on('firstpage', webViewerFirstPage); eventBus.on('firstpage', webViewerFirstPage);
eventBus.on('lastpage', webViewerLastPage); eventBus.on('lastpage', webViewerLastPage);
eventBus.on('nextpage', webViewerNextPage); eventBus.on('nextpage', webViewerNextPage);
@@ -1919,6 +1919,14 @@ function loadAndEnablePDFBug(enabledTabs) {
} }
function webViewerInitialized() { function webViewerInitialized() {
var appConfig = PDFViewerApplication.appConfig; var appConfig = PDFViewerApplication.appConfig;
appConfig.toolbar.openFile.hidden = true;
appConfig.secondaryToolbar.openFileButton.hidden = true;
appConfig.toolbar.print.hidden = true;
appConfig.secondaryToolbar.printButton.hidden = true;
appConfig.toolbar.download.hidden = true;
appConfig.secondaryToolbar.downloadButton.hidden = true;
appConfig.toolbar.viewBookmark.hidden = true;
appConfig.secondaryToolbar.viewBookmarkButton.hidden = true;
var file = void 0; var file = void 0;
var queryString = document.location.search.substring(1); var queryString = document.location.search.substring(1);
var params = (0, _ui_utils.parseQueryString)(queryString); var params = (0, _ui_utils.parseQueryString)(queryString);
@@ -2401,8 +2409,8 @@ function webViewerKeyDown(evt) {
if (cmd === 1 || cmd === 8) { if (cmd === 1 || cmd === 8) {
switch (evt.keyCode) { switch (evt.keyCode) {
case 83: case 83:
PDFViewerApplication.download(); // PDFViewerApplication.download();
handled = true; // handled = true;
break; break;
} }
} }
@@ -3834,16 +3842,16 @@ function renderProgress(index, total, l10n) {
var hasAttachEvent = !!document.attachEvent; var hasAttachEvent = !!document.attachEvent;
window.addEventListener('keydown', function (event) { window.addEventListener('keydown', function (event) {
if (event.keyCode === 80 && (event.ctrlKey || event.metaKey) && !event.altKey && (!event.shiftKey || window.chrome || window.opera)) { if (event.keyCode === 80 && (event.ctrlKey || event.metaKey) && !event.altKey && (!event.shiftKey || window.chrome || window.opera)) {
window.print(); // window.print();
if (hasAttachEvent) { // if (hasAttachEvent) {
return; // return;
} // }
event.preventDefault(); // event.preventDefault();
if (event.stopImmediatePropagation) { // if (event.stopImmediatePropagation) {
event.stopImmediatePropagation(); // event.stopImmediatePropagation();
} else { // } else {
event.stopPropagation(); // event.stopPropagation();
} // }
return; return;
} }
}, true); }, true);
@@ -22,7 +22,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="researchNonCompliance" prop="researchNonCompliance"
label="不合规项" label="不合规项"
align="center" align="center"
> >
</el-table-column> </el-table-column>
@@ -369,7 +369,6 @@
v-btn-permission="QFTP ? '7f13a22a53f9f76f56f5193f9a04389d' : '9882f477aad895ec56a7464f3e9c0b11'"></i> v-btn-permission="QFTP ? '7f13a22a53f9f76f56f5193f9a04389d' : '9882f477aad895ec56a7464f3e9c0b11'"></i>
<i <i
title="下载带水印" title="下载带水印"
v-show="file.fileSuffix === 'pdf' || file.fileSuffix === 'PDF'"
@click="downloadFileByWater(file.id, file.fileSuffix)" @click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2" class="icon-download2"
v-btn-permission="QFTP ? '6dbbd2d6b808cc0f02b22c97e9d34c54' : '9bab2662fbd9d0507b39be813371a597'"></i> v-btn-permission="QFTP ? '6dbbd2d6b808cc0f02b22c97e9d34c54' : '9bab2662fbd9d0507b39be813371a597'"></i>
@@ -2543,14 +2542,30 @@ export default {
}) })
}, },
downloadFileByWater (attId, fileSuffix) { downloadFileByWater (attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') { if(fileSuffix !== undefined && fileSuffix !== null){
this.$message.error('水印下载仅支持PDF,pdf格式文件') fileSuffix = fileSuffix.toUpperCase()
} else { }
if (fileSuffix === 'PDF' ||fileSuffix === 'DOC' ||fileSuffix === 'DOCX') {
if (attId != null && attId !== '') { if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId this.$http.get('lawss/sarBussStandFile/queryConvertAtt', {
attId: attId
}, {
_this: this
}, res => {
if (res.data) {
let fileObj = {}
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + res.data.attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('当前暂时无法下载,请稍后重试')
}
}, e => {
this.$message.error('当前暂时无法下载,请稍后重试')
})
} else { } else {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
} else {
this.$message.error('水印下载仅支持PDF、DOC、DOCX格式文件')
} }
this.$http.get('lawss/sarBussionessStand/logBussDownload2', { this.$http.get('lawss/sarBussionessStand/logBussDownload2', {
standCode: this.sarStandardsInfoEO.standCode, standCode: this.sarStandardsInfoEO.standCode,
@@ -369,7 +369,6 @@
/> />
<i <i
title="下载带水印" title="下载带水印"
v-show="file.fileSuffix === 'pdf' || file.fileSuffix === 'PDF'"
@click="downloadFileByWater(file.id, file.fileSuffix)" @click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2" class="icon-download2"
v-btn-permission="QFTP ? '6dbbd2d6b808cc0f02b22c97e9d34c54' : '9bab2662fbd9d0507b39be813371a597'" v-btn-permission="QFTP ? '6dbbd2d6b808cc0f02b22c97e9d34c54' : '9bab2662fbd9d0507b39be813371a597'"
@@ -2545,14 +2544,30 @@ export default {
}) })
}, },
downloadFileByWater (attId, fileSuffix) { downloadFileByWater (attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') { if(fileSuffix !== undefined && fileSuffix !== null){
this.$message.error('水印下载仅支持PDF,pdf格式文件') fileSuffix = fileSuffix.toUpperCase()
} else { }
if (fileSuffix === 'PDF' ||fileSuffix === 'DOC' ||fileSuffix === 'DOCX') {
if (attId != null && attId !== '') { if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId this.$http.get('lawss/sarBussStandFile/queryConvertAtt', {
attId: attId
}, {
_this: this
}, res => {
if (res.data) {
let fileObj = {}
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + res.data.attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('当前暂时无法下载,请稍后重试')
}
}, e => {
this.$message.error('当前暂时无法下载,请稍后重试')
})
} else { } else {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
} else {
this.$message.error('水印下载仅支持PDF、DOC、DOCX格式文件')
} }
this.$http.get('lawss/sarBussionessStand/logBussDownload2', { this.$http.get('lawss/sarBussionessStand/logBussDownload2', {
standCode: this.sarStandardsInfoEO.standCode, standCode: this.sarStandardsInfoEO.standCode,
@@ -898,20 +898,20 @@
label="责任工程师" label="责任工程师"
width="100"> width="100">
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
label="符合性状态" <!-- label="符合性状态"-->
width="100"> <!-- width="100">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
{{ scope.row.complianceRequire ? (scope.row.complianceRequire === '1' ? '是' : '否') : '-' }} <!-- {{ scope.row.complianceRequire ? (scope.row.complianceRequire === '1' ? '是' : '否') : '-' }}-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
prop="complianceState" <!-- prop="complianceState"-->
label="合规性分析" <!-- label="合规性分析"-->
width="100"> <!-- width="100">-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="操作" align="center" width="50" fixed="right"> <el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click.stop> <div @click.stop>
@@ -1082,30 +1082,30 @@
<!-- clearable--> <!-- clearable-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item <!-- <el-form-item-->
label="符合性状态" <!-- label="符合性状态"-->
class="add-form-item" <!-- class="add-form-item"-->
> <!-- >-->
<template> <!-- <template>-->
<el-radio v-model="resolveListForm.complianceRequire" label="1">符合</el-radio> <!-- <el-radio v-model="resolveListForm.complianceRequire" label="1">符合</el-radio>-->
<el-radio v-model="resolveListForm.complianceRequire" label="2">不符合</el-radio> <!-- <el-radio v-model="resolveListForm.complianceRequire" label="2">不符合</el-radio>-->
</template> <!-- </template>-->
<!-- <el-input--> <!-- &lt;!&ndash; <el-input&ndash;&gt;-->
<!-- style="width: 45%"--> <!-- &lt;!&ndash; style="width: 45%"&ndash;&gt;-->
<!-- v-model="resolveListForm.complianceRequire"--> <!-- &lt;!&ndash; v-model="resolveListForm.complianceRequire"&ndash;&gt;-->
<!-- clearable--> <!-- &lt;!&ndash; clearable&ndash;&gt;-->
<!-- />--> <!-- &lt;!&ndash; />&ndash;&gt;-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item <!-- <el-form-item-->
label="合规性分析" <!-- label="合规性分析"-->
class="add-form-item" <!-- class="add-form-item"-->
> <!-- >-->
<el-input <!-- <el-input-->
style="width: 45%" <!-- style="width: 45%"-->
v-model="resolveListForm.complianceState" <!-- v-model="resolveListForm.complianceState"-->
clearable <!-- clearable-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
</el-form> </el-form>
<div id="roleFormButton" class="demo-drawer-footer" style="margin-top: 8%"> <div id="roleFormButton" class="demo-drawer-footer" style="margin-top: 8%">
<el-button <el-button
@@ -1360,19 +1360,19 @@
{{ standShowItemEO.comparedWithPrevious }}</span> {{ standShowItemEO.comparedWithPrevious }}</span>
</div> </div>
<div class="see-drawer-div"> <!-- <div class="see-drawer-div">-->
<label class="see-drawer-name" style="font-size: 14px" title="符合性状态">符合性状态</label> <!-- <label class="see-drawer-name" style="font-size: 14px" title="符合性状态">符合性状态</label>-->
<span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.complianceRequire"> <!-- <span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.complianceRequire">-->
{{ standShowItemEO.complianceRequire ? (standShowItemEO.complianceRequire === '1' ? '是' : '否') : '-' }} <!-- {{ standShowItemEO.complianceRequire ? (standShowItemEO.complianceRequire === '1' ? '是' : '否') : '-' }}-->
</span> <!-- </span>-->
</div> <!-- </div>-->
<div class="see-drawer-div"> <!-- <div class="see-drawer-div">-->
<label class="see-drawer-name" style="font-size: 14px" title="合规性分析">合规性分析</label> <!-- <label class="see-drawer-name" style="font-size: 14px" title="合规性分析">合规性分析</label>-->
<span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.complianceState"> <!-- <span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.complianceState">-->
{{ standShowItemEO.complianceState }}</span> <!-- {{ standShowItemEO.complianceState }}</span>-->
</div> <!-- </div>-->
<!-- <div class="see-drawer-div">--> <!-- <div class="see-drawer-div">-->
<!-- <label class="see-drawer-name" title="FO">FO</label>--> <!-- <label class="see-drawer-name" title="FO">FO</label>-->
<!-- <span class="see-drawer-val" :title="standShowItemEO.foShow">{{ standShowItemEO.foShow }}</span>--> <!-- <span class="see-drawer-val" :title="standShowItemEO.foShow">{{ standShowItemEO.foShow }}</span>-->
@@ -3199,14 +3199,30 @@ export default {
}, },
downloadFileByWater(attId, fileSuffix) { downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') { if(fileSuffix !== undefined && fileSuffix !== null){
this.$message.error('水印下载仅支持PDF,pdf格式文件') fileSuffix = fileSuffix.toUpperCase()
} else { }
if (fileSuffix === 'PDF' ||fileSuffix === 'DOC' ||fileSuffix === 'DOCX') {
if (attId != null && attId !== '') { if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId: attId
}, {
_this: this
}, res => {
if (res.data) {
let fileObj = {}
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + res.data.attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('当前暂时无法下载,请稍后重试')
}
}, e => {
this.$message.error('当前暂时无法下载,请稍后重试')
})
} else { } else {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
} else {
this.$message.error('水印下载仅支持PDF、DOC、DOCX格式文件')
} }
if(this.$route.params.pageType === 'INLAND_STAND'){ if(this.$route.params.pageType === 'INLAND_STAND'){
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
@@ -3210,14 +3210,30 @@ export default {
}, },
downloadFileByWater(attId, fileSuffix) { downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') { if(fileSuffix !== undefined && fileSuffix !== null){
this.$message.error('水印下载仅支持PDF,pdf格式文件') fileSuffix = fileSuffix.toUpperCase()
} else { }
if (fileSuffix === 'PDF' ||fileSuffix === 'DOC' ||fileSuffix === 'DOCX') {
if (attId != null && attId !== '') { if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId: attId
}, {
_this: this
}, res => {
if (res.data) {
let fileObj = {}
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + res.data.attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('当前暂时无法下载,请稍后重试')
}
}, e => {
this.$message.error('当前暂时无法下载,请稍后重试')
})
} else { } else {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
} else {
this.$message.error('水印下载仅支持PDF、DOC、DOCX格式文件')
} }
if(this.$route.params.pageType === 'INLAND_STAND'){ if(this.$route.params.pageType === 'INLAND_STAND'){
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
-24
View File
@@ -134,12 +134,6 @@
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'WGJP2VRZSJ77EGH2447M' : '44KKMQHU3CNRRPNNF8VN'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'WGJP2VRZSJ77EGH2447M' : '44KKMQHU3CNRRPNNF8VN'"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'EZVNMCLGSB5LWG6XRRL3' : 'VSUKQX3NZW4N8CT5VQE3'"
/>
<span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
<template v-else> <template v-else>
@@ -150,12 +144,6 @@
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'JHQALHMF6F' : 'dakDL3sNLq'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'JHQALHMF6F' : 'dakDL3sNLq'"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'KDLDNFJHENFMF' : 'LKJSNLKFHOFN'"
/>
<span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
</p> </p>
@@ -224,12 +212,6 @@
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'WGJP2VRZSJ77EGH2447M' : '44KKMQHU3CNRRPNNF8VN'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'WGJP2VRZSJ77EGH2447M' : '44KKMQHU3CNRRPNNF8VN'"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'EZVNMCLGSB5LWG6XRRL3' : 'VSUKQX3NZW4N8CT5VQE3'"
/>
<span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
<template v-else> <template v-else>
@@ -240,12 +222,6 @@
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'JHQALHMF6F' : 'dakDL3sNLq'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'JHQALHMF6F' : 'dakDL3sNLq'"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'KDLDNFJHENFMF' : 'LKJSNLKFHOFN'"
/>
<span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
</p> </p>
-12
View File
@@ -2241,18 +2241,6 @@ export default {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
}, },
downloadFileByWater (attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId
} else {
this.$message.error('请选择要下载的文件')
}
}
},
// 查看详情 // 查看详情
getMenuDetail(menuId) { getMenuDetail(menuId) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@@ -2073,17 +2073,6 @@ export default {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
}, },
downloadFileByWater (attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId
} else {
this.$message.error('请选择要下载的文件')
}
}
},
showReferStandDetials (standNum) { showReferStandDetials (standNum) {
// 验证标准号在系统中是否存在 // 验证标准号在系统中是否存在
this.$http.post('lawss/sarTestItem/validateStandNumber', { this.$http.post('lawss/sarTestItem/validateStandNumber', {
-42
View File
@@ -85,24 +85,12 @@
<a style="font-size: 16px;color: #409EFF;cursor: pointer;display: inline-block" <a style="font-size: 16px;color: #409EFF;cursor: pointer;display: inline-block"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a> :title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
<i title="下载" @click="downloadFile(file.id)" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : 'a772afab2a6708883335500f3f86e771'"
/>
<i title="下载带水印" @click="downloadFileByWater(file.id, file.fileSuffix)" class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '824f3bf9edef83fc7488917136167232'"
/>
</span> </span>
<!--多个文件时--> <!--多个文件时-->
<div v-else-if="child.value && child.value.length > 0"> <div v-else-if="child.value && child.value.length > 0">
<span style="display: flex; align-items: center;"> <span style="display: flex; align-items: center;">
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" <a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a> :title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
<i title="下载" @click="downloadFile(file.id)" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : 'a772afab2a6708883335500f3f86e771'"
/>
<i title="下载带水印" @click="downloadFileByWater(file.id, file.fileSuffix)" class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '824f3bf9edef83fc7488917136167232'"
/>
</span> </span>
</div> </div>
</div> </div>
@@ -2786,36 +2774,6 @@
} }
}, },
downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('请选择要下载的文件')
}
}
if(this.$route.query.pageType === 'INLAND_STAND'){
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload2',{
standNumber: standNumber,
standName: this.sarStandardsInfoEO.standName
}, {
_this: this
}, res => {
})
}else{
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload2',{
standNumber: standNumber,
standName: this.sarStandardsInfoEO.standEnName
}, {
_this: this
}, res => {
})
}
},
/** /**
* @Description: 跳转流程 * @Description: 跳转流程
*/ */
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -210,7 +210,6 @@
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
:show-submit="submitShow" :show-submit="submitShow"
:show-confirm="acceptShow"
:show-transfer="submitShow" :show-transfer="submitShow"
@transfer="handleTransfer" @transfer="handleTransfer"
@save="handleSave" @save="handleSave"
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -25,14 +25,14 @@
<div class="prc-content-border" v-if="foldFormFlag === false"> <div class="prc-content-border" v-if="foldFormFlag === false">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="流程名称" prop="processName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
v-model="form.processName" <!-- v-model="form.processName"-->
placeholder="请输入流程名称" <!-- placeholder="请输入流程名称"-->
disabled <!-- disabled-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled"> <el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
@@ -266,14 +266,14 @@
v-if="dataList[scope.$index].complianceReasons && dataList[scope.$index].complianceReasons.length>0" v-if="dataList[scope.$index].complianceReasons && dataList[scope.$index].complianceReasons.length>0"
disabled disabled
v-model="dataList[scope.$index].noCompliance" v-model="dataList[scope.$index].noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
<el-input <el-input
v-else v-else
:disabled="acceptShow" :disabled="acceptShow"
v-model="dataList[scope.$index].noCompliance" v-model="dataList[scope.$index].noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
</template> </template>
@@ -475,14 +475,14 @@
v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0" v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0"
disabled disabled
v-model="batchEditForm.noCompliance" v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
<el-input <el-input
v-else v-else
:disabled="acceptShow" :disabled="acceptShow"
v-model="batchEditForm.noCompliance" v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@@ -610,18 +610,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// 删除上传的文件 // 删除上传的文件
delFileInfo (file, fileList) { delFileInfo (file, fileList) {
this.fileInfoList.forEach((item, index) => { this.fileInfoList.forEach((item, index) => {
@@ -47,12 +47,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -423,18 +417,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// 驳回事件 // 驳回事件
beforeBack() { beforeBack() {
if(!this.commentText){ if(!this.commentText){
@@ -47,12 +47,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click.stop="downloadFileByWater(item.id, item.fileSuffix)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -383,17 +377,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('请选择要下载的文件')
}
}
},
//确认转办 //确认转办
checkedRole (data) { checkedRole (data) {
this.assigneeNewLoading = true this.assigneeNewLoading = true
@@ -724,18 +724,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// 删除上传的文件 // 删除上传的文件
delFileInfo (file, fileList) { delFileInfo (file, fileList) {
this.fileInfoList.forEach((item, index) => { this.fileInfoList.forEach((item, index) => {
@@ -47,12 +47,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click.stop="downloadFileByWater(item.id, item.fileSuffix)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -452,17 +446,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('请选择要下载的文件')
}
}
},
// 驳回事件 // 驳回事件
beforeBack() { beforeBack() {
if(!this.commentText){ if(!this.commentText){
@@ -91,27 +91,51 @@
previewShow(attId) { previewShow(attId) {
this.iframeLoading = true this.iframeLoading = true
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getBusStandFileByAttId({ this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId attId: attId
}).then(res => { }, {
if(res){ _this: this
const history = res; }, res => {
const editFileInfo = res.data if (res.data) {
if(editFileInfo.fileSuffix.toLowerCase() === 'pdg'){ let fileObj = {}
this.iframeUrl = 'book://ssreader/e0?url='+editFileInfo.downLoadUrl fileObj.fileId = res.data.attId
}else if(editFileInfo.fileSuffix.toLowerCase() === 'pdf'){ fileObj.fileName = res.data.fileOldName
this.iframeUrl = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id) let fileList = []
}else { let repeatData = 0
const nowTime = new Date().getTime() if (sessionStorage.getItem('fileInfo')) {
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) fileList = JSON.parse(sessionStorage.getItem('fileInfo'))
this.iframeUrl = kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)); if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
if (fileList[i].fileId === res.data.attId) {
repeatData = 1
break
}
}
if (repeatData === 0) {
fileList.push(fileObj)
fileList = JSON.stringify(fileList)
sessionStorage.setItem('fileInfo', fileList)
}
}
} else {
fileList.push(fileObj)
fileList = JSON.stringify(fileList)
sessionStorage.setItem('fileInfo', fileList)
} }
this.iframeLoading = false this.iframeUrl = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId)
this.$forceUpdate() } else {
resolve(history) this.$message.error('文档未转换成功或该文档无法读取')
} }
}).catch(e => { this.iframeLoading = false
this.$forceUpdate()
resolve(history)
}, e => {
this.iframeLoading = false
this.$forceUpdate()
resolve(history)
this.$message.error('文档未转换成功或该文档无法读取')
}) })
}) })
console.log(this.iframeUrl); console.log(this.iframeUrl);
}, },
@@ -86,12 +86,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -536,18 +530,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
//流程转办 //流程转办
handleTransfer(){ handleTransfer(){
this.drawerModal = true this.drawerModal = true
@@ -86,12 +86,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -522,18 +516,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// //
handleTransfer(){ handleTransfer(){
this.drawerModal = true this.drawerModal = true
@@ -117,12 +117,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -473,18 +467,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -104,12 +104,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -414,19 +408,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -117,12 +117,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -484,18 +478,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -1335,19 +1335,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
}; };
</script> </script>
@@ -449,19 +449,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -695,19 +695,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -665,19 +665,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -760,19 +760,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -661,18 +661,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -756,19 +756,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -447,18 +447,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -810,19 +810,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
}; };
</script> </script>
@@ -448,18 +448,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -478,18 +478,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -476,18 +476,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -476,18 +476,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -1071,9 +1071,9 @@
QCRBUSS: [ QCRBUSS: [
{ required: true, message: '请选择起草人', trigger: 'change' } { required: true, message: '请选择起草人', trigger: 'change' }
], ],
DTQBBHBUSS: [ // DTQBBHBUSS: [
{ required: true, message: '请选择代替企标编号', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
}, },
zrUserIds: [], // zrUserIds: [], //
userType:'', // ID userType:'', // ID
@@ -1334,9 +1334,9 @@
QCRBUSS: [ QCRBUSS: [
{ required: true, message: '请选择起草人', trigger: 'change' } { required: true, message: '请选择起草人', trigger: 'change' }
], ],
DTQBBHBUSS: [ // DTQBBHBUSS: [
{ required: true, message: '请选择代替企标编号', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
}, },
zrUserIds: [], // zrUserIds: [], //
userType:'', // ID userType:'', // ID
@@ -82,7 +82,8 @@
<el-form-item <el-form-item
:prop="'evaluationData.'+scope.$index + '.score'" :prop="'evaluationData.'+scope.$index + '.score'"
:rules="scope.row.valueType !== 'add' ? rules.score : rules.scoreNot" > :rules="scope.row.valueType !== 'add' ? rules.score : rules.scoreNot" >
<el-input :disabled="form.fsRejectStatus === 1" v-model.number="scope.row.score" placeholder="请填写分值" /> <el-input v-model.number="scope.row.score" placeholder="请填写分值" />
<!-- :disabled="form.fsRejectStatus === 1"-->
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
@@ -105,7 +106,8 @@
<el-form-item <el-form-item
:prop="'evaluationData.'+scope.$index + '.reason'" :prop="'evaluationData.'+scope.$index + '.reason'"
:rules="scope.row.score < 6 ? rules.reason : rules.reasonNot" > :rules="scope.row.score < 6 ? rules.reason : rules.reasonNot" >
<el-input :disabled="form.fsRejectStatus === 1" v-model="scope.row.reason" placeholder="请填写扣分理由" /> <el-input v-model="scope.row.reason" placeholder="请填写扣分理由" />
<!-- :disabled="form.fsRejectStatus === 1"-->
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
@@ -91,7 +91,8 @@
<el-form-item <el-form-item
:prop="'evaluationData.'+scope.$index + '.score'" :prop="'evaluationData.'+scope.$index + '.score'"
:rules="scope.row.valueType !== 'add' ? rules.score : rules.scoreNot" > :rules="scope.row.valueType !== 'add' ? rules.score : rules.scoreNot" >
<el-input :disabled="form.fsRejectStatus === 1" v-model.number="scope.row.score" placeholder="请填写分值" /> <el-input v-model.number="scope.row.score" placeholder="请填写分值" />
<!-- :disabled="form.fsRejectStatus === 1"-->
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
@@ -114,7 +115,8 @@
<el-form-item <el-form-item
:prop="'evaluationData.'+scope.$index + '.reason'" :prop="'evaluationData.'+scope.$index + '.reason'"
:rules="scope.row.score < 6 ? rules.reason : rules.reasonNot" > :rules="scope.row.score < 6 ? rules.reason : rules.reasonNot" >
<el-input :disabled="form.fsRejectStatus === 1" v-model="scope.row.reason" placeholder="请填写扣分理由" /> <el-input v-model="scope.row.reason" placeholder="请填写扣分理由" />
<!-- :disabled="form.fsRejectStatus === 1"-->
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
@@ -1334,9 +1334,9 @@
QCRBUSS: [ QCRBUSS: [
{ required: true, message: '请选择起草人', trigger: 'change' } { required: true, message: '请选择起草人', trigger: 'change' }
], ],
DTQBBHBUSS: [ // DTQBBHBUSS: [
{ required: true, message: '请选择代替企标编号', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
}, },
zrUserIds: [], // zrUserIds: [], //
userType:'', // ID userType:'', // ID
@@ -33,12 +33,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click.stop="downloadFileByWater(item.id, item.fileSuffix)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -959,17 +953,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('请选择要下载的文件')
}
}
},
choiceLeader(){ choiceLeader(){
this.workModel = true this.workModel = true
}, },
@@ -458,6 +458,16 @@ export default {
dutyPeopleId: '', dutyPeopleId: '',
dutyPeople: '', dutyPeople: '',
firstDraftTime: '', firstDraftTime: '',
draftTime: '',
releaseTime: '',
bussSort: '',
drafter: '',
drafterName: '',
resPerson: '',
resPersonName: '',
wgLeader: '',
wgLeaderName: '',
reviseStatus: '',
planTime: '', planTime: '',
endTime: '', endTime: '',
}, },
@@ -845,7 +855,17 @@ export default {
dutyPeople: '', dutyPeople: '',
firstDraftTime: '', firstDraftTime: '',
planTime: '', planTime: '',
endTime : '' endTime : '',
draftTime: '',
releaseTime: '',
bussSort: '',
drafter: '',
drafterName: '',
resPerson: '',
resPersonName: '',
wgLeader: '',
wgLeaderName: '',
reviseStatus: '',
} }
} }
}) })
@@ -854,6 +874,7 @@ export default {
closeDrawer() { closeDrawer() {
if (this.btnType === 'edit') { if (this.btnType === 'edit') {
let Items = JSON.parse(localStorage.getItem('obj')) let Items = JSON.parse(localStorage.getItem('obj'))
console.log(Items)
this.addQblxData.esName = Items.esName this.addQblxData.esName = Items.esName
this.addQblxData.unit = Items.unit this.addQblxData.unit = Items.unit
this.addQblxData.unitName = Items.unitName this.addQblxData.unitName = Items.unitName
@@ -862,7 +883,18 @@ export default {
this.addQblxData.dutyPeople = Items.dutyPeople this.addQblxData.dutyPeople = Items.dutyPeople
this.addQblxData.firstDraftTime = Items.firstDraftTime this.addQblxData.firstDraftTime = Items.firstDraftTime
this.addQblxData.planTime = Items.planTime this.addQblxData.planTime = Items.planTime
this.addQblxData.draftTime = Items.draftTime
this.addQblxData.releaseTime = Items.releaseTime
this.addQblxData.bussSort = Items.bussSort
this.addQblxData.drafter = Items.drafter
this.addQblxData.resPerson = Items.resPerson
this.addQblxData.resPersonName = Items.resPersonName
this.addQblxData.endTime = Items.endTime this.addQblxData.endTime = Items.endTime
this.addQblxData.drafterName = Items.drafterName
this.addQblxData.wgLeader = Items.wgLeader
this.addQblxData.wgLeaderName = Items.wgLeaderName
this.addQblxData.reviseStatus = Items.reviseStatus
console.log(this.qblx_pageData.qblxData,'表格数据')
} else { } else {
this.addQblxData = {} this.addQblxData = {}
} }
@@ -33,12 +33,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click.stop="downloadFileByWater(item.id, item.fileSuffix)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -996,17 +990,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error('请选择要下载的文件')
}
}
},
choiceLeader(){ choiceLeader(){
this.workModel = true this.workModel = true
}, },
@@ -96,42 +96,42 @@
</el-form-item> </el-form-item>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<el-timeline-item timestamp="合规排查(上传合规举证材料)" placement="top" :color="roleForm.dockUser ? '#66b1ff' : ''"> <!-- <el-timeline-item timestamp="合规排查(上传合规举证材料)" placement="top" :color="roleForm.dockUser ? '#66b1ff' : ''">-->
<el-card> <!-- <el-card>-->
<el-form-item prop="dockUserName" style="margin-bottom: 0"> <!-- <el-form-item prop="dockUserName" style="margin-bottom: 0">-->
<h4>责任工程师</h4> <!-- <h4>责任工程师</h4>-->
<div style="margin-top: 10px;width: 300px;"> <!-- <div style="margin-top: 10px;width: 300px;">-->
<el-input :disabled="disabledXX" v-model="roleForm.dutyUser" style="display: none;"></el-input> <!-- <el-input :disabled="disabledXX" v-model="roleForm.dutyUser" style="display: none;"></el-input>-->
<el-input :disabled="disabledXX" v-model="roleForm.dutyUserName" disabled placeholder="责任工程师"> <!-- <el-input :disabled="disabledXX" v-model="roleForm.dutyUserName" disabled placeholder="责任工程师">-->
</el-input> <!-- </el-input>-->
</div> <!-- </div>-->
</el-form-item> <!-- </el-form-item>-->
</el-card> <!-- </el-card>-->
</el-timeline-item> <!-- </el-timeline-item>-->
<el-timeline-item timestamp="审定" placement="top" :color="roleForm.uploadUser ? '#66b1ff' : ''"> <!-- <el-timeline-item timestamp="审定" placement="top" :color="roleForm.uploadUser ? '#66b1ff' : ''">-->
<el-card> <!-- <el-card>-->
<el-form-item prop="dockUserName" style="margin-bottom: 0"> <!-- <el-form-item prop="dockUserName" style="margin-bottom: 0">-->
<h4>产品工程经理/项目经理</h4> <!-- <h4>产品工程经理/项目经理</h4>-->
<div style="margin-top: 10px;width: 300px;"> <!-- <div style="margin-top: 10px;width: 300px;">-->
<el-input :disabled="disabledXX" v-model="roleForm.uploadUser" style="display: none;"></el-input> <!-- <el-input :disabled="disabledXX" v-model="roleForm.uploadUser" style="display: none;"></el-input>-->
<el-input :disabled="disabledXX" v-model="roleForm.uploadUserName" disabled placeholder="产品工程经理/项目经理"> <!-- <el-input :disabled="disabledXX" v-model="roleForm.uploadUserName" disabled placeholder="产品工程经理/项目经理">-->
</el-input> <!-- </el-input>-->
</div> <!-- </div>-->
</el-form-item> <!-- </el-form-item>-->
</el-card> <!-- </el-card>-->
</el-timeline-item> <!-- </el-timeline-item>-->
<el-timeline-item timestamp="批准" placement="top" :color="roleForm.checkUser ? '#66b1ff' : ''"> <!-- <el-timeline-item timestamp="批准" placement="top" :color="roleForm.checkUser ? '#66b1ff' : ''">-->
<el-card> <!-- <el-card>-->
<el-form-item prop="dockUserName" style="margin-bottom: 0"> <!-- <el-form-item prop="dockUserName" style="margin-bottom: 0">-->
<h4>标准法规部高级经理</h4> <!-- <h4>标准法规部高级经理</h4>-->
<div style="margin-top: 10px;width: 300px;"> <!-- <div style="margin-top: 10px;width: 300px;">-->
<el-input :disabled="disabledXX" v-model="roleForm.checkUser" style="display: none;"></el-input> <!-- <el-input :disabled="disabledXX" v-model="roleForm.checkUser" style="display: none;"></el-input>-->
<el-input :disabled="disabledXX" v-model="roleForm.checkUserName" disabled placeholder="标准法规部高级经理"> <!-- <el-input :disabled="disabledXX" v-model="roleForm.checkUserName" disabled placeholder="标准法规部高级经理">-->
</el-input> <!-- </el-input>-->
</div> <!-- </div>-->
</el-form-item> <!-- </el-form-item>-->
</el-card> <!-- </el-card>-->
</el-timeline-item> <!-- </el-timeline-item>-->
</el-form> </el-form>
</el-timeline> </el-timeline>
</div> </div>
@@ -261,6 +261,12 @@ export default {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
let fileData = JSON.parse(JSON.stringify(item)).dockUserList let fileData = JSON.parse(JSON.stringify(item)).dockUserList
this.dataList = fileData[0].standardInfoList this.dataList = fileData[0].standardInfoList
fileData.forEach( filedata => {
// console.log(filedata)
if (filedata.id === this.userId){
this.dataList = filedata.standardInfoList
}
})
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).textarea this.textarea = JSON.parse(JSON.stringify(item)).textarea
/* 注释掉的代码 是因为后端已经分配过数据 前端不需要再做处理*/ /* 注释掉的代码 是因为后端已经分配过数据 前端不需要再做处理*/
@@ -274,6 +280,12 @@ export default {
} else { } else {
let fileData = JSON.parse(JSON.stringify(item)).dockUserList let fileData = JSON.parse(JSON.stringify(item)).dockUserList
this.dataList = fileData[0].standardInfoList this.dataList = fileData[0].standardInfoList
fileData.forEach( filedata => {
// console.log(filedata)
if (filedata.id === this.userId){
this.dataList = filedata.standardInfoList
}
})
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
// for (let i = 0; i<fileData.length; i++) { // for (let i = 0; i<fileData.length; i++) {
// if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) { // if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
@@ -131,7 +131,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -165,14 +165,14 @@
prop="researchNonCompliance" prop="researchNonCompliance"
align="center" align="center"
width="200" width="200"
label="不合规项"> label="不合规项">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0 v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0
|| scope.row.remarks && scope.row.remarks.length>0" || scope.row.remarks && scope.row.remarks.length>0"
disabled disabled
v-model="scope.row.noCompliance" v-model="scope.row.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
<el-input <el-input
@@ -180,7 +180,7 @@
clearable clearable
:disabled="acceptShow" :disabled="acceptShow"
v-model="scope.row.noCompliance" v-model="scope.row.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
</template> </template>
@@ -406,20 +406,20 @@
> >
</el-input> </el-input>
</el-formItem> </el-formItem>
<el-form-item label="不合规项" class="add-form-item"> <el-form-item label="不合规项" class="add-form-item">
<el-input <el-input
v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0 v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0
|| batchEditForm.remarks && batchEditForm.remarks.length>0" || batchEditForm.remarks && batchEditForm.remarks.length>0"
disabled disabled
v-model="batchEditForm.noCompliance" v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
<el-input <el-input
v-else v-else
:disabled="acceptShow" :disabled="acceptShow"
v-model="batchEditForm.noCompliance" v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@@ -140,7 +140,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -140,7 +140,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -451,6 +451,36 @@ export default {
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
this.dataList = item.dataList; this.dataList = item.dataList;
let titleList = [];
let ordelTitleList = [];
this.dataList.forEach(data=>{
data.title = data.standSort + data.standNumber + data.standYear
let isReal = ""
// if (titleList !== []){
titleList.forEach(tl => {
if (tl === data.title){
isReal = data.title
}
})
// }
if (isReal === ""){
titleList.push(data.title);
}
})
console.log(titleList,"titleList!!!!")
console.log(this.dataList,"dataList 进入方法前 !!!!")
titleList.forEach(tl => {
this.dataList.forEach(data=>{
if (data.title === tl){
console.log(data.title,"方法中的title !!!!")
ordelTitleList.push(data)
}
})
})
this.dataList = ordelTitleList
this.dataList.forEach(item =>{ this.dataList.forEach(item =>{
if(item.children){ if(item.children){
item.children.forEach(items =>{ item.children.forEach(items =>{
@@ -125,7 +125,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -131,7 +131,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -131,7 +131,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -131,7 +131,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -154,20 +154,20 @@
prop="researchNonCompliance" prop="researchNonCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0" v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0"
disabled disabled
v-model="scope.row.noCompliance" v-model="scope.row.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
<el-input <el-input
v-else v-else
:disabled="acceptShow" :disabled="acceptShow"
v-model="scope.row.noCompliance" v-model="scope.row.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
</template> </template>
@@ -363,19 +363,19 @@
> >
</el-input> </el-input>
</el-formItem> </el-formItem>
<el-form-item label="不合规项" class="add-form-item"> <el-form-item label="不合规项" class="add-form-item">
<el-input <el-input
v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0" v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0"
disabled disabled
v-model="batchEditForm.noCompliance" v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
<el-input <el-input
v-else v-else
:disabled="acceptShow" :disabled="acceptShow"
v-model="batchEditForm.noCompliance" v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项" placeholder="请输入不合规项"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@@ -127,7 +127,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -131,7 +131,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -131,7 +131,7 @@
prop="noCompliance" prop="noCompliance"
align="center" align="center"
width="170" width="170"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="countermeasures" prop="countermeasures"
@@ -821,14 +821,25 @@ export default {
}, },
// //
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ if(item.standType ==='BUSINESS_STAND'){
name: "OtherStandardDetails", let routeUrl = this.$router.resolve({
params: { name: 'OtherBussStandardDetails',
id: item.id || item.standId, params: {
pageType: item.standType + '_STAND' id: item.id || item.standId,
} pageType: 'BUSINESS_STAND'
}); }
window.open(routeUrl.href, "_blank"); })
window.open(routeUrl.href, '_blank')
}else{
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: item.id || item.standId,
pageType: item.standType + '_STAND'
}
});
window.open(routeUrl.href, "_blank");
}
}, },
// //
getData() { getData() {
@@ -423,6 +423,21 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="适用认证" class="search-item">
<el-select :disabled="disabledXX"
v-model="handleSelectForm.syzd"
@change="isRelateAccessChange"
:popper-append-to-body="false"
placeholder="请选择适用认证">
<el-option
v-for="(item, index) in syzdSelect"
:key="index"
:value="item.value"
:label="item.label"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button :disabled="disabledXX" <el-button :disabled="disabledXX"
size="small" size="small"
@@ -775,6 +790,8 @@ export default {
}, },
data() { data() {
return { return {
syzd: '', // /
syzdSelect: [], // /
replaceLoading: false, replaceLoading: false,
disabledXX:!!this.$route.query.disabledXX, disabledXX:!!this.$route.query.disabledXX,
//truefalse //truefalse
@@ -931,14 +948,26 @@ export default {
}, },
// //
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ if(item.standType ==='BUSINESS_STAND'){
name: "OtherStandardDetails", let routeUrl = this.$router.resolve({
params: { name: 'OtherBussStandardDetails',
id: item.id || item.standId, params: {
pageType: item.standType + '_STAND' id: item.id || item.standId,
} pageType: 'BUSINESS_STAND'
}); }
window.open(routeUrl.href, "_blank"); })
window.open(routeUrl.href, '_blank')
}else{
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: item.id || item.standId,
pageType: item.standType + '_STAND'
}
});
window.open(routeUrl.href, "_blank");
}
}, },
dataSourceChange() { dataSourceChange() {
this.handleSelectForm.page = 1 this.handleSelectForm.page = 1
@@ -991,6 +1020,7 @@ export default {
}, },
// //
clearLawBtn(){ clearLawBtn(){
this.handleSelectForm.syzd = ''
this.lawInfoTableLoading = true this.lawInfoTableLoading = true
this.handleSelectForm.lawNumber = '' this.handleSelectForm.lawNumber = ''
this.handleSelectForm.textStatus = '' this.handleSelectForm.textStatus = ''
@@ -1443,6 +1473,7 @@ export default {
loading: "loading" loading: "loading"
}, res => { }, res => {
this.energyKindOptions = res.data.ENERGYTYPES; // this.energyKindOptions = res.data.ENERGYTYPES; //
this.syzdSelect = res.data.SYRZCLASS; //
this.setMap(res.data.WBZTCLASS);// this.setMap(res.data.WBZTCLASS);//
this.setMap(res.data.TEXTSTATUSBUSS);// this.setMap(res.data.TEXTSTATUSBUSS);//
this.textState = res.data.WBZTCLASS // this.textState = res.data.WBZTCLASS //
@@ -845,14 +845,25 @@ export default {
}, },
// //
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ if(item.standType ==='BUSINESS_STAND'){
name: "OtherStandardDetails", let routeUrl = this.$router.resolve({
params: { name: 'OtherBussStandardDetails',
id: item.id || item.standId, params: {
pageType: item.standType + '_STAND' id: item.id || item.standId,
} pageType: 'BUSINESS_STAND'
}); }
window.open(routeUrl.href, "_blank"); })
window.open(routeUrl.href, '_blank')
}else{
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: item.id || item.standId,
pageType: item.standType + '_STAND'
}
});
window.open(routeUrl.href, "_blank");
}
}, },
// //
getData() { getData() {
@@ -845,14 +845,25 @@ export default {
}, },
// //
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ if(item.standType ==='BUSINESS_STAND'){
name: "OtherStandardDetails", let routeUrl = this.$router.resolve({
params: { name: 'OtherBussStandardDetails',
id: item.id || item.standId, params: {
pageType: item.standType + '_STAND' id: item.id || item.standId,
} pageType: 'BUSINESS_STAND'
}); }
window.open(routeUrl.href, "_blank"); })
window.open(routeUrl.href, '_blank')
}else{
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: item.id || item.standId,
pageType: item.standType + '_STAND'
}
});
window.open(routeUrl.href, "_blank");
}
}, },
// //
getData() { getData() {
@@ -836,14 +836,25 @@ export default {
}, },
// //
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ if(item.standType ==='BUSINESS_STAND'){
name: "OtherStandardDetails", let routeUrl = this.$router.resolve({
params: { name: 'OtherBussStandardDetails',
id: item.id || item.standId, params: {
pageType: item.standType + '_STAND' id: item.id || item.standId,
} pageType: 'BUSINESS_STAND'
}); }
window.open(routeUrl.href, "_blank"); })
window.open(routeUrl.href, '_blank')
}else{
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: item.id || item.standId,
pageType: item.standType + '_STAND'
}
});
window.open(routeUrl.href, "_blank");
}
}, },
// //
getData() { getData() {
@@ -34,12 +34,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -385,18 +379,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// //
beforeBack() { beforeBack() {
if(!this.commentText){ if(!this.commentText){
@@ -86,12 +86,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -472,18 +466,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// //
handleTransfer() { handleTransfer() {
this.phoneshowflag = true; this.phoneshowflag = true;
@@ -86,12 +86,6 @@
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p> </p>
</div> </div>
<div v-else> <div v-else>
@@ -458,18 +452,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// //
handleTransfer(){ handleTransfer(){
this.phoneshowflag = true this.phoneshowflag = true
@@ -779,19 +779,7 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, }
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
}, },
computed: { computed: {
listNoDataText() { listNoDataText() {
@@ -339,18 +339,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -333,18 +333,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -339,18 +339,6 @@ export default {
} else { } else {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
} }
}, },
computed: { computed: {
@@ -167,7 +167,7 @@
:label="standLabelNum"> :label="standLabelNum">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="sarAccessInfo.dataSource === 'INLAND_STAND' || sarAccessInfo.dataSource === 'FOREIGN_STAND'" @click="handlePreview(scope.row)" class="table-jump">{{ <a v-if="sarAccessInfo.dataSource === 'INLAND_STAND' || sarAccessInfo.dataSource === 'FOREIGN_STAND'" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standNumber scope.row.standNumber
}}</a> }}</a>
<a v-else-if="sarAccessInfo.dataSource === 'FOREIGN_LAWS'" @click="handlePreview(scope.row)" class="table-jump">{{ <a v-else-if="sarAccessInfo.dataSource === 'FOREIGN_LAWS'" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.lawsNumber scope.row.lawsNumber
@@ -1080,18 +1080,6 @@ export default {
this.$message.error("请选择要下载的文件"); this.$message.error("请选择要下载的文件");
} }
}, },
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMarkNew?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
// //
changeState(row) { changeState(row) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
@@ -52,10 +52,10 @@
const menuList = this.$store.getters.getMenuList; const menuList = this.$store.getters.getMenuList;
let menuData = []; let menuData = [];
let menuID = ["ff7bc984c8115204bba04090f350b19c", "e02897e9ab6b1a72f49c47c07b5be9a5"]; let menuID = ["ff7bc984c8115204bba04090f350b19c", "e02897e9ab6b1a72f49c47c07b5be9a5"];
this.menuName.forEach(item => { // this.menuName.forEach(item => {
for (let i = 0; i < menuList.length; i++) { for (let i = 0; i < menuList.length; i++) {
let entity = menuList[i]; let entity = menuList[i];
if (item !== entity.menuName) continue; // if (item !== entity.menuName) continue;
if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) === -1) { if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) === -1) {
menuData.push(entity.id); menuData.push(entity.id);
if (entity.id === "ff7bc984c8115204bba04090f350b19c") { if (entity.id === "ff7bc984c8115204bba04090f350b19c") {
@@ -64,8 +64,8 @@
this.keynote = true this.keynote = true
} }
} }
} };
}); // });
this.tabValue = this.database ? 'database' : (this.keynote ? 'keynote' : (this.tracking ? 'listTracking' : (this.other ? 'listOther' : (this.library ? 'localProductsOrProjectLibrary' : '')))) this.tabValue = this.database ? 'database' : (this.keynote ? 'keynote' : (this.tracking ? 'listTracking' : (this.other ? 'listOther' : (this.library ? 'localProductsOrProjectLibrary' : ''))))
}, },
watch: {}, watch: {},
@@ -158,7 +158,7 @@
<el-table-column <el-table-column
prop="reason" prop="reason"
width="180" width="180"
label="不合规项"> label="不合规项">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="responsibleUnit" prop="responsibleUnit"
@@ -235,7 +235,7 @@
<el-form-item class="add-form-item" label="项目名称:"> <el-form-item class="add-form-item" label="项目名称:">
<div class="seeItem">{{ historySeeForm.productName }}</div> <div class="seeItem">{{ historySeeForm.productName }}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="不合规项:"> <el-form-item class="add-form-item" label="不合规项:">
<div class="seeItem">{{ historySeeForm.reason }}</div> <div class="seeItem">{{ historySeeForm.reason }}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="责任部门:"> <el-form-item class="add-form-item" label="责任部门:">
@@ -457,7 +457,7 @@
</el-form-item> </el-form-item>
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px" <el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-select v-model="addForm.productName" filterable @change="handleChange" placeholder="请选择项目名称"> <el-select v-model="addForm.productName" :disabled = "drawerTitle === '编辑'" filterable @change="handleChange" placeholder="请选择项目名称">
<el-option <el-option
v-for="item in ProjectDatas" v-for="item in ProjectDatas"
:key="item.id" :key="item.id"
@@ -482,11 +482,11 @@
<!-- @click.native="choiceZRBM"--> <!-- @click.native="choiceZRBM"-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item prop="reason" label="不合规项" style="width: 100%; margin-right:10px" <el-form-item prop="reason" label="不合规项" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-input <el-input
v-model="addForm.reason" v-model="addForm.reason"
placeholder="请输入不合规项" placeholder="请输入不合规项"
:maxlength="500" /> :maxlength="500" />
</el-form-item> </el-form-item>
<el-form-item prop="dutyEngineerName" label="责任工程师" style="width: 100%; margin-right:10px" <el-form-item prop="dutyEngineerName" label="责任工程师" style="width: 100%; margin-right:10px"
@@ -768,7 +768,7 @@ export default {
{ required: true, message: "请输入项目编号", trigger: "change" } { required: true, message: "请输入项目编号", trigger: "change" }
], ],
reason: [ reason: [
{ required: true, message: "请输入不合规项", trigger: "change" } { required: true, message: "请输入不合规项", trigger: "change" }
], ],
// responsibleUnit: [ // responsibleUnit: [
// { required: true, message: "", trigger: "change" } // { required: true, message: "", trigger: "change" }
@@ -2039,6 +2039,9 @@
} else if (type === 6) { } else if (type === 6) {
this.goProcess(item) this.goProcess(item)
} }
if (item.nameshow === '' || item.nameshow === null){
item.nameshow = item.standEnName
}
// //
// if (type === 1) { // if (type === 1) {