Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -440,6 +440,14 @@ export function isEnd (data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function processModelHisOne (data) {
|
||||
return axios({
|
||||
url: '/api/lawss/activiti/processModelHisOne',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
export function evaluationHisList (data) {
|
||||
return axios({
|
||||
url: '/api/lawss/activiti/evaluationHisList',
|
||||
@@ -681,6 +689,14 @@ export function getStandInfoById (data) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
// 流程撤回接口
|
||||
export function processBack(data) {
|
||||
return axios({
|
||||
url: 'api/lawss/activiti/startProcessRollBack',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 标准法规工作组接口
|
||||
export function workGroup(data) {
|
||||
return axios({
|
||||
|
||||
@@ -185,7 +185,7 @@ export default {
|
||||
}
|
||||
break;
|
||||
case '3':
|
||||
if (row.taskInfo === '责任对接人选择责任人') {
|
||||
if (row.taskInfo === '责任部门对接人选择责任人') {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep2',
|
||||
query: {
|
||||
@@ -196,7 +196,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo === '责任人填写征求意见'){
|
||||
} else if (row.taskInfo === '责任人反馈'){
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep3',
|
||||
query: {
|
||||
@@ -207,7 +207,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo === '责任对接人审批') {
|
||||
} else if (row.taskInfo === '责任部门对接人汇总并选择审批人') {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep4',
|
||||
query: {
|
||||
@@ -218,7 +218,29 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo === '标准法规工程师汇总填写处理意见') {
|
||||
} else if (row.taskInfo === '审批人审批') {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep4-1',
|
||||
query: {
|
||||
taskIds: row.taskIds,
|
||||
prcId: row.prcId,
|
||||
prcNum: row.prcNum,
|
||||
prcName: row.prcName,
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo === '标准法规工程师分线审核') {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep4-2',
|
||||
query: {
|
||||
taskIds: row.taskIds,
|
||||
prcId: row.prcId,
|
||||
prcNum: row.prcNum,
|
||||
prcName: row.prcName,
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo === '标准法规工程师汇总') {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep5',
|
||||
query: {
|
||||
@@ -251,7 +273,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else if (row.taskInfo.indexOf('技术委员会相关专委会主任') == 0 ) {
|
||||
} else if (row.taskInfo === '技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任审定' ) {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep8',
|
||||
query: {
|
||||
@@ -262,7 +284,7 @@ export default {
|
||||
prcType: row.prcType
|
||||
}
|
||||
})
|
||||
} else {
|
||||
} else if (row.taskInfo === '工程研究总院院长批准') {
|
||||
this.$router.push({
|
||||
name: 'bzzqyjStep9',
|
||||
query: {
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
icon="el-icon-edit-outline"
|
||||
size="small"
|
||||
class="common-button-warning"
|
||||
@click="handleOnLineEdit"
|
||||
:loading="submitLoading"
|
||||
@click="handleOnLineReEdit"
|
||||
v-if="showEdit">在线编辑</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
@@ -318,6 +319,9 @@ export default {
|
||||
handleTransfer(){
|
||||
this.$emit('transfer')
|
||||
},
|
||||
handleOnLineReEdit(){
|
||||
this.$emit('onLineEdit')
|
||||
},
|
||||
handleSendEmail() {
|
||||
this.$emit('sendEmail')
|
||||
},
|
||||
|
||||
@@ -46,14 +46,14 @@
|
||||
v-model="form.modelNameList"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" :key="index" style="margin-right: 5px;">
|
||||
<div class="fileClass" @click="handlePreview(item)" style="display: flex; align-items: center;">
|
||||
{{ item.name }}
|
||||
<div class="fileClass" >
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="clickButtonToUpload(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -74,14 +74,14 @@
|
||||
v-model="form.fjNameList"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.fjList.length > 0" style="display: flex;">
|
||||
<div v-if="form.fjList.length > 0">
|
||||
<div v-for="(item, index) in form.fjList" :key="index" style="margin-right: 5px;">
|
||||
<div class="fileClass" @click="handlePreview(item)" style="display: flex; align-items: center;">
|
||||
{{ item.name }}
|
||||
<div class="fileClass" >
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="clickButtonToUpload(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
|
||||
@@ -46,14 +46,14 @@
|
||||
v-model="form.modelNameList"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" :key="index" style="margin-right: 5px;">
|
||||
<div class="fileClass" @click="handlePreview(item)" style="display: flex; align-items: center;">
|
||||
{{ item.name }}
|
||||
<div class="fileClass" >
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="clickButtonToUpload(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -74,14 +74,14 @@
|
||||
v-model="form.fjNameList"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.fjList.length > 0" style="display: flex;">
|
||||
<div v-if="form.fjList.length > 0">
|
||||
<div v-for="(item, index) in form.fjList" :key="index" style="margin-right: 5px;">
|
||||
<div class="fileClass" @click="handlePreview(item)" style="display: flex; align-items: center;">
|
||||
{{ item.name }}
|
||||
<div class="fileClass" >
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="clickButtonToUpload(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
|
||||
@@ -42,13 +42,13 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="clickButtonToUpload(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="clickButtonToUpload(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -58,13 +58,13 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="相关附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.fjList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;" @click="clickButtonToUpload(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.fjList.length > 0">
|
||||
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="clickButtonToUpload(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
|
||||
@@ -42,13 +42,13 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="clickButtonToUpload(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="clickButtonToUpload(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -58,13 +58,13 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="相关附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.fjList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;" @click="clickButtonToUpload(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.fjList.length > 0">
|
||||
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="clickButtonToUpload(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -97,20 +97,18 @@
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="acceptShow"
|
||||
class="common-button-primary"
|
||||
@click="fileUpload"
|
||||
size="mini">
|
||||
点击上传
|
||||
</el-button>
|
||||
</div>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="acceptShow"
|
||||
class="common-button-primary"
|
||||
@click="fileUpload"
|
||||
size="mini">
|
||||
点击上传
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="回执说明" prop="dyhz" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -233,7 +231,7 @@
|
||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
|
||||
:before-upload="beginImportFile"
|
||||
:on-success="importFileSuccess"
|
||||
:show-file-list="true"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<div style="padding: 20px 0">
|
||||
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||
@@ -439,6 +437,7 @@
|
||||
}
|
||||
},
|
||||
fileUpload () {
|
||||
|
||||
this.fileMadel = true
|
||||
},
|
||||
handleTabs(name) {
|
||||
|
||||
@@ -42,13 +42,13 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="clickButtonToUpload(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="clickButtonToUpload(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -58,13 +58,13 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="相关附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.fjList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;" @click="clickButtonToUpload(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.fjList.length > 0">
|
||||
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="clickButtonToUpload(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(item)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
@@ -95,14 +95,14 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.file" class="fileClass">
|
||||
<div style="display: flex;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div @click="clickButtonToUpload2(form.fileId)">
|
||||
{{ form.fileName }}
|
||||
</div>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form.fileId)"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
|
||||
@@ -42,24 +42,26 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
disabled
|
||||
style="display: none;"
|
||||
v-model="form.hzfileId"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.hzfileName" @click="fileUpload" class="fileClass">
|
||||
{{ form.hzfileName }}
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
@click="fileUpload"
|
||||
size="mini">
|
||||
点击上传
|
||||
</el-button>
|
||||
<div v-if="form.hzfileId" class="fileClass">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div @click="clickButtonToUpload2(form.hzfileId)">
|
||||
{{ form.hzfileName }}
|
||||
</div>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form.hzfileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
@click="fileUpload"
|
||||
size="mini">
|
||||
点击上传
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -97,9 +99,13 @@
|
||||
label="回执文件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div @click="updateFile(scope.row.fileId)" class="fileClass">
|
||||
{{scope.row.fileName}}
|
||||
</div>
|
||||
<span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(scope.row.fileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -227,7 +233,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,saveTaskForPub,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail,saveTaskForPub,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -266,6 +272,42 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
getBusStandFileByAttId(attId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
clickButtonToUpload2(file) {
|
||||
const attId = file
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleTransfer() {
|
||||
this.drawerModal = true
|
||||
},
|
||||
|
||||
@@ -42,8 +42,14 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.hzfileName" @click="updateFile(form.hzfileId)" class="fileClass">
|
||||
{{ form.hzfileName }}
|
||||
<div v-if="form.hzfileName" class="fileClass">
|
||||
<span @click="clickButtonToUpload2(form.hzfileId)">{{ form.hzfileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form.hzfileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
- -
|
||||
@@ -92,8 +98,14 @@
|
||||
label="文件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div @click="updateFile(scope.row.fileId)" class="fileClass">
|
||||
{{scope.row.fileName}}
|
||||
<div class="fileClass">
|
||||
<span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(scope.row.fileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -217,7 +229,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -257,6 +269,42 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
getBusStandFileByAttId(attId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
clickButtonToUpload2(file) {
|
||||
const attId = file
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleTransfer() {
|
||||
this.drawerModal = true
|
||||
},
|
||||
|
||||
@@ -42,8 +42,14 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.hzfileName" @click="updateFile(form.hzfileId)" class="fileClass">
|
||||
{{ form.hzfileName }}
|
||||
<div v-if="form.hzfileName" class="fileClass">
|
||||
<span @click="clickButtonToUpload2(form.hzfileId)">{{ form.hzfileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form.hzfileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
- -
|
||||
@@ -92,8 +98,14 @@
|
||||
label="文件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div @click="updateFile(scope.row.fileId)" class="fileClass">
|
||||
{{scope.row.fileName}}
|
||||
<div class="fileClass">
|
||||
<span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(scope.row.fileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -217,7 +229,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -257,6 +269,42 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
getBusStandFileByAttId(attId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
clickButtonToUpload2(file) {
|
||||
const attId = file
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleTransfer() {
|
||||
this.drawerModal = true
|
||||
},
|
||||
|
||||
@@ -42,8 +42,14 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.hzfileName" @click="updateFile(form.hzfileId)" class="fileClass">
|
||||
{{ form.hzfileName }}
|
||||
<div v-if="form.hzfileName" class="fileClass">
|
||||
<span @click="clickButtonToUpload2(form.hzfileId)">{{ form.hzfileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form.hzfileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
- -
|
||||
@@ -92,8 +98,14 @@
|
||||
label="文件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div @click="updateFile(scope.row.fileId)" class="fileClass">
|
||||
{{scope.row.fileName}}
|
||||
<div class="fileClass">
|
||||
<span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(scope.row.fileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -217,7 +229,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -257,6 +269,42 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
getBusStandFileByAttId(attId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
clickButtonToUpload2(file) {
|
||||
const attId = file
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleTransfer() {
|
||||
this.drawerModal = true
|
||||
},
|
||||
|
||||
@@ -42,8 +42,14 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.hzfileName" @click="updateFile(form.hzfileId)" class="fileClass">
|
||||
{{ form.hzfileName }}
|
||||
<div v-if="form.hzfileName" class="fileClass">
|
||||
<span @click="clickButtonToUpload2(form.hzfileId)">{{ form.hzfileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(form.hzfileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
- -
|
||||
@@ -92,8 +98,14 @@
|
||||
label="文件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div @click="updateFile(scope.row.fileId)" class="fileClass">
|
||||
{{scope.row.fileName}}
|
||||
<div class="fileClass">
|
||||
<span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="updateFile(scope.row.fileId)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -217,7 +229,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -257,6 +269,42 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
getBusStandFileByAttId(attId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
clickButtonToUpload2(file) {
|
||||
const attId = file
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleTransfer() {
|
||||
this.drawerModal = true
|
||||
},
|
||||
|
||||
@@ -395,7 +395,7 @@ import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {
|
||||
startProcess, saveTaskFirst,
|
||||
completeTask, queryTaskFirst,
|
||||
taskDel, workGroup
|
||||
taskDel, workGroup,processBack
|
||||
} from '@/api/process.js'
|
||||
|
||||
export default {
|
||||
@@ -742,10 +742,17 @@ export default {
|
||||
this.$refs['roleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
const paramsInfo = {
|
||||
type: '20'
|
||||
}
|
||||
startProcess(paramsInfo).then(res => {
|
||||
let paramsInfo = new FormData()
|
||||
paramsInfo.append('id', this.bpnId || '')
|
||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
|
||||
paramsInfo.append('type', '20')
|
||||
paramsInfo.append('json', JSON.stringify({
|
||||
roleForm: this.roleForm,
|
||||
rh_pageData: this.rh_pageData,
|
||||
commentText: this.commentText
|
||||
}))
|
||||
processBack(paramsInfo).then(res => {
|
||||
this.taskID = res.data
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
|
||||
@@ -338,7 +338,7 @@ import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {
|
||||
startProcess, queryTaskFirst,
|
||||
saveTaskFirst, completeTask,
|
||||
taskDel, workGroup} from '@/api/process.js'
|
||||
taskDel, workGroup, processBack} from '@/api/process.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -658,10 +658,18 @@ export default {
|
||||
this.$refs['roleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
const paramsInfo = {
|
||||
type: '21'
|
||||
}
|
||||
startProcess(paramsInfo).then(res => {
|
||||
let paramsInfo = new FormData()
|
||||
paramsInfo.append('id', this.bpnId || '')
|
||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
|
||||
paramsInfo.append('type', '21')
|
||||
paramsInfo.append('json', JSON.stringify({
|
||||
roleForm: this.roleForm,
|
||||
ch_pageData: this.ch_pageData,
|
||||
commentText: this.commentText
|
||||
|
||||
}))
|
||||
processBack(paramsInfo).then(res => {
|
||||
this.taskID = res.data
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
|
||||
@@ -1062,7 +1062,18 @@ export default {
|
||||
this.$refs["Form"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.get("lawss/activiti/startProcess", {type: "4"}, {
|
||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||
id: this.bpnId || '',
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
type: '4',
|
||||
json: JSON.stringify({
|
||||
taskInfo: '引入法规标准清单',
|
||||
form: this.listForm,
|
||||
roleForm: this.roleForm,
|
||||
commentText: this.commentText
|
||||
})
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
|
||||
@@ -47,12 +47,18 @@
|
||||
<el-button size="small" type="primary" :disabled="!form.cid" @click="addfjList">选择附件</el-button>
|
||||
</div>
|
||||
<el-input
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<div class="fileClass" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
<span @click="fileLook(item)" >{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
@@ -63,12 +69,18 @@
|
||||
v-model="form.modelNameList"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.modelList.length > 0" class="fileClass" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" :key="index" @click="fileUpload" style="margin-right: 5px; padding-left: 10px;">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0" class="fileClass" style="">
|
||||
<div v-for="(item, index) in form.modelList" :key="index" style="margin-right: 5px; padding-left: 10px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="addButton" style="padding-left: 10px">
|
||||
<div class="addButton" style="padding-left: 10px">
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
@@ -347,7 +359,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskFirst, queryTaskFirst,taskDel} from 'api/process'
|
||||
import {saveTaskFirst, queryTaskFirst,taskDel,getBusStandFileByAttId} from 'api/process'
|
||||
|
||||
export default {
|
||||
name: "bzzqyjStep1-1",
|
||||
@@ -469,6 +481,50 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
beginImportFile (file) {
|
||||
var filename = file.name
|
||||
var index1 = filename.lastIndexOf('.')
|
||||
|
||||
@@ -51,17 +51,17 @@
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<div class="fileClass" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
<span @click="fileLook(item)" >{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="文本状态" prop="textType" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- disabled-->
|
||||
<!-- v-model="form.textType"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="上传附件" prop="modelNameList" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
disabled
|
||||
@@ -69,12 +69,18 @@
|
||||
v-model="form.modelNameList"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="form.modelList.length > 0" class="fileClass" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" :key="index" @click="fileUpload" style="margin-right: 5px; padding-left: 10px;">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0" class="fileClass">
|
||||
<div v-for="(item, index) in form.modelList" :key="index" style="margin-right: 5px; padding-left: 10px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="addButton" style="padding-left: 10px">
|
||||
<div class="addButton" style="padding-left: 10px">
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
@@ -362,7 +368,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskFirst, taskDel} from 'api/process'
|
||||
import {saveTaskFirst, taskDel, getBusStandFileByAttId} from 'api/process'
|
||||
|
||||
export default {
|
||||
name: "bzzqyjStep1",
|
||||
@@ -483,6 +489,50 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
beginImportFile (file) {
|
||||
var filename = file.name
|
||||
var index1 = filename.lastIndexOf('.')
|
||||
|
||||
@@ -46,13 +46,30 @@
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -174,7 +191,7 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew} from "api/process";
|
||||
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew,getBusStandFileByAttId} from "api/process";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -221,6 +238,50 @@ export default {
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleTransfer() {
|
||||
this.drawerModal = true
|
||||
},
|
||||
|
||||
@@ -46,16 +46,30 @@
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="table-jump" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
<span @click="updataFj(item)">{{ item.fileName }}</span>
|
||||
<el-button type="primary" class="common-button-primary" style="margin-left: 10px;" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -318,7 +332,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail, processCreateStand, saveTaskForPub,changeAssigneeNew,execTask} from 'api/process'
|
||||
import {inboundLiaisonDetail, processCreateStand, saveTaskForPub,changeAssigneeNew,execTask,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -386,6 +400,50 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
itermsConditionsClose () {
|
||||
this.itermsConditionsFlag = false
|
||||
},
|
||||
|
||||
@@ -46,23 +46,37 @@
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
- -
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准法规工程师分线管理员" prop="spId" class="add-form-item form-item-disabled">
|
||||
<el-form-item label="标准法规工程师分线管理员" prop="bzfgId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.bzfgId"
|
||||
style="display: none;"
|
||||
@@ -256,7 +270,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -312,6 +326,50 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
checkedRole2(data) {
|
||||
this.form.bzfgId = data[0].id
|
||||
this.form.bzfgName = data[0].name
|
||||
@@ -400,6 +458,8 @@
|
||||
}
|
||||
this.isSubmit = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择标准法规工程师分线管理员')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -46,16 +46,30 @@
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -248,7 +262,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -304,6 +318,50 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
checkedRole2(data) {
|
||||
this.form.bzfgId = data[0].id
|
||||
this.form.bzfgName = data[0].name
|
||||
|
||||
@@ -42,20 +42,34 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -328,7 +342,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -396,6 +410,50 @@ export default {
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.idList = []
|
||||
val.forEach(item => {
|
||||
@@ -585,6 +643,8 @@ export default {
|
||||
}
|
||||
this.isSubmit = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择审批人')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -46,16 +46,30 @@
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -317,7 +331,7 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew } from "api/process";
|
||||
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -382,6 +396,50 @@
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
getItemList (standId, fileType) { // 查询分解单条款数据
|
||||
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
|
||||
standId: standId,
|
||||
@@ -573,11 +631,12 @@
|
||||
if (data.introduce) {
|
||||
} else {
|
||||
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
|
||||
unique: data.unique
|
||||
unique: data.uniques
|
||||
}, {}, res => {
|
||||
res.data.forEach(item => {
|
||||
item.chapterNumber = item.partCode;
|
||||
item.responUserName = item.userName;
|
||||
item.state = '1'
|
||||
this.data.push(item);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -42,20 +42,34 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -262,7 +276,7 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
|
||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -320,6 +334,50 @@ export default {
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
itermsConditionsClose () {
|
||||
this.itermsConditionsFlag = false
|
||||
},
|
||||
@@ -382,8 +440,6 @@ export default {
|
||||
}
|
||||
},
|
||||
upload(row, title) {
|
||||
console.log(row);
|
||||
return
|
||||
var params = {
|
||||
columnName: {
|
||||
chapterNumber: "章条编号",
|
||||
@@ -394,10 +450,12 @@ export default {
|
||||
reason: "修改理由",
|
||||
department: "提出部门",
|
||||
responUserName: "提出人",
|
||||
stateText: "处理意见"
|
||||
},
|
||||
dataList: []
|
||||
};
|
||||
if (title === '上报意见.xls') {
|
||||
params.columnName.stateText = "处理意见"
|
||||
}
|
||||
params.dataList = JSON.parse(JSON.stringify(row));
|
||||
params.dataList.forEach(item => {
|
||||
if (item.state === "1") {
|
||||
|
||||
@@ -42,20 +42,34 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex; margin-left: 10px">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -262,7 +276,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -317,6 +331,50 @@ export default {
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
itermsConditionsClose () {
|
||||
this.itermsConditionsFlag = false
|
||||
},
|
||||
@@ -382,10 +440,12 @@ export default {
|
||||
reason: "修改理由",
|
||||
department: "提出部门",
|
||||
responUserName: "提出人",
|
||||
stateText: "处理意见"
|
||||
},
|
||||
dataList: []
|
||||
}
|
||||
if (title === '上报意见.xls') {
|
||||
params.columnName.stateText = "处理意见"
|
||||
}
|
||||
params.dataList = JSON.parse(JSON.stringify(row))
|
||||
params.dataList.forEach(item => {
|
||||
if (item.state === '1') {
|
||||
|
||||
@@ -42,20 +42,34 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;margin-left: 10px;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -262,7 +276,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -317,6 +331,50 @@ export default {
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
itermsConditionsClose () {
|
||||
this.itermsConditionsFlag = false
|
||||
},
|
||||
@@ -382,10 +440,12 @@ export default {
|
||||
reason: "修改理由",
|
||||
department: "提出部门",
|
||||
responUserName: "提出人",
|
||||
stateText: "处理意见"
|
||||
},
|
||||
dataList: []
|
||||
}
|
||||
if (title === '上报意见.xls') {
|
||||
params.columnName.stateText = "处理意见"
|
||||
}
|
||||
params.dataList = JSON.parse(JSON.stringify(row))
|
||||
params.dataList.forEach(item => {
|
||||
if (item.state === '1') {
|
||||
|
||||
@@ -42,20 +42,34 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
v-model="form.fjListId"
|
||||
style="display: none;"
|
||||
></el-input>
|
||||
<div style="display: flex;">
|
||||
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
|
||||
{{ item.fileName }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
|
||||
<div class="fileClass"
|
||||
style="margin-right: 15px;padding-left: 10px"
|
||||
v-for="(item, index) in form.fjList"
|
||||
:key="index">
|
||||
<span @click="fileLook(item)">{{ item.fileName }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
|
||||
<div v-if="form.modelList.length > 0" style="display: flex;margin-left: 10px;">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
|
||||
{{ item.name }}
|
||||
<div v-if="form.modelList.length > 0">
|
||||
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
|
||||
<span @click="fileLook(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
@click="filesUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -262,7 +276,7 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
|
||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -317,6 +331,50 @@ export default {
|
||||
ProcessTitle
|
||||
},
|
||||
methods: {
|
||||
filesUpload (file) { // 下载
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
getBusStandFileByAttId(attId) { // 预览
|
||||
return new Promise((resolve, reject) => {
|
||||
getBusStandFileByAttId({
|
||||
attId
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
fileLook(file) { // 预览
|
||||
const attId = file.attId
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
|
||||
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
|
||||
}else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
}
|
||||
// window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
itermsConditionsClose () {
|
||||
this.itermsConditionsFlag = false
|
||||
},
|
||||
@@ -382,10 +440,12 @@ export default {
|
||||
reason: "修改理由",
|
||||
department: "提出部门",
|
||||
responUserName: "提出人",
|
||||
stateText: "处理意见"
|
||||
},
|
||||
dataList: []
|
||||
};
|
||||
if (title === '上报意见.xls') {
|
||||
params.columnName.stateText = "处理意见"
|
||||
}
|
||||
params.dataList = JSON.parse(JSON.stringify(row));
|
||||
params.dataList.forEach(item => {
|
||||
if (item.state === "1") {
|
||||
|
||||
@@ -186,7 +186,16 @@ export default {
|
||||
this.$refs["Form"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.get("lawss/activiti/startProcess", {type: "14"}, {
|
||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||
id: this.bpnId || '',
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
type: '14',
|
||||
json: JSON.stringify({
|
||||
taskInfo: '责任部门对接人选择责任人',
|
||||
roleForm: this.roleForm,
|
||||
})
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
|
||||
@@ -455,8 +455,10 @@
|
||||
v-show="verifySarStandard"
|
||||
show-save
|
||||
show-submit
|
||||
show-edit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
@onLineEdit="handleOnLineEdit"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -805,7 +807,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail} from "api/process";
|
||||
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processModelHisOne} from "api/process";
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
let Base64 = require('js-base64').Base64;
|
||||
@@ -2263,6 +2265,44 @@
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
},
|
||||
processModelHisOne(pId,taskIds) {
|
||||
return new Promise((resolve, reject) => {
|
||||
processModelHisOne({
|
||||
pid: pId,
|
||||
taskId: taskIds
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
resolve(res)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
// 在线编辑
|
||||
handleOnLineEdit(){
|
||||
this.isSubmit = true
|
||||
this.processModelHisOne(this.pId,this.taskIds)
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
const showName = this.$store.getters.userInfo.userName + editFileInfo.taskInfo
|
||||
const editFilePath = editFileInfo.editFilePath.split("/")
|
||||
editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/'
|
||||
editFileInfo.fileName = editFilePath[2]
|
||||
editFileInfo.userName = this.$store.getters.userInfo.userName
|
||||
const nowTime = new Date().getTime()
|
||||
window.open('http://127.0.0.1:8080/editor?oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName)
|
||||
this.isSubmit = false
|
||||
}
|
||||
}).catch(e => {
|
||||
console.log(e)
|
||||
// this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
//保存
|
||||
handleSave() {
|
||||
this.form.country=this.countryArr;
|
||||
|
||||
@@ -455,8 +455,10 @@
|
||||
v-show="verifySarStandard"
|
||||
show-save
|
||||
show-submit
|
||||
show-edit
|
||||
:saveLoading="saveLoading"
|
||||
:submitLoading="isSubmit"
|
||||
@onLineEdit="handleOnLineEdit"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -804,7 +806,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail} from "api/process";
|
||||
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processModelHisOne} from "api/process";
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
let Base64 = require('js-base64').Base64;
|
||||
@@ -2262,6 +2264,44 @@
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
},
|
||||
processModelHisOne(pId,taskIds) {
|
||||
return new Promise((resolve, reject) => {
|
||||
processModelHisOne({
|
||||
pid: pId,
|
||||
taskId: taskIds
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
resolve(res)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
// 在线编辑
|
||||
handleOnLineEdit(){
|
||||
this.isSubmit = true
|
||||
this.processModelHisOne(this.pId,this.taskIds)
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
const showName = this.$store.getters.userInfo.userName + editFileInfo.taskInfo
|
||||
const editFilePath = editFileInfo.editFilePath.split("/")
|
||||
editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/'
|
||||
editFileInfo.fileName = editFilePath[2]
|
||||
editFileInfo.userName = this.$store.getters.userInfo.userName
|
||||
const nowTime = new Date().getTime()
|
||||
window.open('http://127.0.0.1:8080/editor?oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName)
|
||||
this.isSubmit = false
|
||||
}
|
||||
}).catch(e => {
|
||||
console.log(e)
|
||||
// this.$message.warning('文件不存在,预览失败')
|
||||
})
|
||||
},
|
||||
//保存
|
||||
handleSave() {
|
||||
this.form.country=this.countryArr;
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<el-collapse accordion>
|
||||
<el-collapse-item title="回执说明">
|
||||
<el-collapse-item title="审批意见">
|
||||
<div style="margin: 10px 0;">
|
||||
<el-input
|
||||
type="textarea"
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import { startProcess, completeTask, saveTaskFirst, queryTaskFirst, taskDel } from '@/api/process.js'
|
||||
import { startProcess, completeTask, saveTaskFirst, queryTaskFirst, taskDel,processBack } from '@/api/process.js'
|
||||
import { standUnqualified, dicTypeData } from '@/api/unqualProcess.js'
|
||||
export default {
|
||||
name: "wfhxzgStep1",
|
||||
@@ -509,10 +509,17 @@ export default {
|
||||
this.$refs['roleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
const paramsInfo = {
|
||||
type: '8'
|
||||
}
|
||||
startProcess(paramsInfo).then(res => {
|
||||
let paramsInfo = new FormData()
|
||||
paramsInfo.append('id', this.bpnId || '')
|
||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
|
||||
paramsInfo.append('type', '8')
|
||||
paramsInfo.append('json', JSON.stringify({
|
||||
roleForm: this.roleForm,
|
||||
dataList: this.dataList,
|
||||
commentText: this.commentText
|
||||
}))
|
||||
processBack(paramsInfo).then(res => {
|
||||
this.taskID = res.data
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover" v-btn-permission="'90c7bae6308595f053c6f6f90167e493'">
|
||||
<el-card shadow="hover" v-btn-permission="'a5694521151720f41a8b22d550bf435a'">
|
||||
<div class="card-box" @click="handleCreateProcess('13')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -140,7 +140,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'14f54ef4475d9210b1ee7872ab69eca8'">
|
||||
<div class="card-box" @click="handleCreateProcess('11')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -155,7 +155,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'9c8cc1b74b1caa16f34a47895b489833'">
|
||||
<div class="card-box" @click="handleCreateProcess('laws1')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -190,7 +190,7 @@
|
||||
<el-divider content-position="left"><h2>企业标准相关流程</h2></el-divider>
|
||||
<div class="process-box">
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover" v-btn-permission="''">
|
||||
<el-card shadow="hover" v-btn-permission="'7a53ef593e5401aab19485b937ce78a0'">
|
||||
<div class="card-box" @click="handleCreateProcess('buss1')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -205,7 +205,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'5af5073695c2e1d12ca3d5a6afae67b5'">
|
||||
<div class="card-box" @click="handleCreateProcess('23')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -220,7 +220,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'5104360fd3822e73b45e65d2337cf143'">
|
||||
<div class="card-box" @click="handleCreateProcess('24')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -235,7 +235,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'afa3d1aee5fd8027b18675621afdeff6'">
|
||||
<div class="card-box" @click="handleCreateProcess('25')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -256,7 +256,7 @@
|
||||
<el-divider content-position="left"><h2>标准化活动相关流程</h2></el-divider>
|
||||
<div class="process-box">
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover" v-btn-permission="'2e3f4c0aaf77629755533255f1335801'">
|
||||
<el-card shadow="hover" v-btn-permission="'b196ef0253cebd1adfc3a8432a28e377'">
|
||||
<div class="card-box" @click="handleCreateProcess('17')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -271,7 +271,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover" v-btn-permission="'d415c764036a02559976b41b9dfe2cf1'">
|
||||
<el-card shadow="hover" v-btn-permission="'2f2752bc8a37b87d6eaadae3fcfe61c4'">
|
||||
<div class="card-box" @click="handleCreateProcess('18')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -301,7 +301,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'321e497259b08734941a308960da2bae'">
|
||||
<div class="card-box" @click="handleCreateProcess('21')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -316,7 +316,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'8f65a365dd67634e29925098162ee8d5'">
|
||||
<div class="card-box" @click="handleCreateProcess('16')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -331,7 +331,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<el-card shadow="hover" v-btn-permission="'e5217a4776525b1ba63511b730a2e02d'">
|
||||
<div class="card-box" @click="handleCreateProcess('15')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
@@ -346,14 +346,14 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="process-name">
|
||||
<el-card shadow="hover">
|
||||
<div class="card-box" @click="handleCreateProcess('15')">
|
||||
<el-card shadow="hover" v-btn-permission="'0efd0f4b7a15fd1b687cc0ac36e9e7d9'">
|
||||
<div class="card-box" @click="handleCreateProcess('14')">
|
||||
<div class="card-top">
|
||||
<div class="card-top-left">
|
||||
<img :src="getImg(Math.floor(Math.random() * 6))">
|
||||
</div>
|
||||
<div class="card-top-right">
|
||||
<div class="card-top-right-text">加入标准化协会信息提报流程</div>
|
||||
<div class="card-top-right-text">参与外部标准制修订信息提报流程</div>
|
||||
<div class="card-top-right-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+180
-41
@@ -610,16 +610,63 @@
|
||||
<el-input v-model="sarBussionessStandEO.TXLBBUSS" placeholder="选择体系类别" @click.native="choiceZRR1('TXLBBUSS', '体系类别', sarBussionessStandEO.TXLBBUSS)"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'VPPSBMBUSS'">
|
||||
<template v-else-if="field.attrField === 'CYCVPPSBMBUSS'">
|
||||
<el-form-item
|
||||
prop="VPPSBMBUSS"
|
||||
prop="CYCVPPSBMBUSS"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">关联模块--VPPS编码</template>
|
||||
<el-input v-model="sarBussionessStandEO.VPPSBMBUSS" placeholder="选择VPPS编码" @click.native="choiceZRR2('VPPSBMBUSS', 'VPPS编码', sarBussionessStandEO.VPPSBMBUSS,true)"></el-input>
|
||||
<template slot="label">关联模块--乘用车VPPS编码</template>
|
||||
<el-input v-model="sarBussionessStandEO.CYCVPPSBMBUSS" placeholder="选择VPPS编码" @click.native="choiceZRR2('car', '乘用车VPPS编码', sarBussionessStandEO.KCVPPSBMBUSS,true)"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'CYCVPPSCNBUSS'">
|
||||
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" label-width="150px"
|
||||
prop="CYCVPPSCNBUSS" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarBussionessStandEO.CYCVPPSCNBUSS" disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'KCVPPSBMBUSS'">
|
||||
<el-form-item
|
||||
prop="KCVPPSBMBUSS"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">关联模块--卡车VPPS编码</template>
|
||||
<el-input v-model="sarBussionessStandEO.KCVPPSBMBUSS" placeholder="选择VPPS编码" @click.native="choiceZRR3('struck', '卡车VPPS编码', sarBussionessStandEO.KCVPPSBMBUSS,true)"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'KCVPPSCNBUSS'">
|
||||
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" label-width="150px"
|
||||
prop="KCVPPSCNBUSS" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarBussionessStandEO.KCVPPSCNBUSS" disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'DYBXHBUSS'">
|
||||
<el-form-item
|
||||
prop="DYBXHBUSS"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">模块结构单元变型号</template>
|
||||
<el-input v-model="sarBussionessStandEO.DYBXHBUSS" placeholder="选择模块结构单元变型号"
|
||||
@click.native="choiceZRR4('dybxhbuss', '模块结构单元', sarBussionessStandEO.dybxh)"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'DYMCBUSS'">
|
||||
<el-form-item label="模块结构单元名称" label-width="150px" prop="DYMCBUSS" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarBussionessStandEO.DYMCBUSS" disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'VPPSCNBUSS'">
|
||||
<el-form-item title="关联模块--中文名称" label="关联模块--中文名称" label-width="150px" prop="VPPSCNBUSS" class="add-form-item">
|
||||
<el-input
|
||||
@@ -1298,11 +1345,38 @@
|
||||
:multiple="multipleFlag2"
|
||||
:check-strictly=true
|
||||
:modalShowFlag="modalShowFlag2"
|
||||
:drawerTitle="drawerTitle"
|
||||
:drawerTitle="drawerTitle2"
|
||||
:type="type"
|
||||
:url="url"
|
||||
:urlChild="urlChild"
|
||||
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
|
||||
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"></tree-select-new>
|
||||
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"
|
||||
@popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
|
||||
<tree-select-new
|
||||
width="500"
|
||||
:lazy=true
|
||||
:multiple=true
|
||||
:check-strictly=true
|
||||
:modalShowFlag="modalShowFlag3"
|
||||
:drawerTitle="drawerTitle3"
|
||||
:url="url"
|
||||
:type="'truck'"
|
||||
:urlChild="urlChild"
|
||||
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
|
||||
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"
|
||||
@popoverHideCancel="popoverHideCarVsCancel()"></tree-select-new>
|
||||
<tree-select-module
|
||||
width="500"
|
||||
:lazy=true
|
||||
:multiple=true
|
||||
:check-strictly=true
|
||||
:modalShowFlag="modalShowFlag4"
|
||||
:drawerTitle="drawerTitle4"
|
||||
:url="url"
|
||||
:urlChild="urlChild"
|
||||
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
|
||||
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"
|
||||
@popoverHideCancel="popoverHideModelCancel()"></tree-select-module>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1320,6 +1394,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||
import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
|
||||
|
||||
import {mapGetters} from 'vuex'
|
||||
import store from "@/store";
|
||||
@@ -1338,6 +1413,7 @@ export default {
|
||||
CustomSVPPS,
|
||||
TreeSelect,
|
||||
TreeSelectNew,
|
||||
treeSelectModule,
|
||||
ProcessTitle
|
||||
},
|
||||
props: {
|
||||
@@ -1496,6 +1572,12 @@ export default {
|
||||
sarBussionessStandEO: {
|
||||
TXLBBUSS:'',
|
||||
VPPSBMBUSS:'',
|
||||
KCVPPSBMBUSS: '',
|
||||
KCVPPSCNBUSS: '',
|
||||
DYBXHBUSS: '',
|
||||
DYMCBUSS: '',
|
||||
CYCVPPSBMBUSS: '',
|
||||
CYCVPPSCNBUSS: '',
|
||||
VPPSCNBUSS:'',
|
||||
regionShow: '亚洲',
|
||||
region: '2T8PFTSYE7',
|
||||
@@ -1880,6 +1962,12 @@ export default {
|
||||
SYCPXCLASS:'',
|
||||
TXLBBUSS:'',
|
||||
VPPSBMBUSS:'',
|
||||
KCVPPSBMBUSS: '',
|
||||
KCVPPSCNBUSS: '',
|
||||
CYCVPPSBMBUSS: '',
|
||||
CYCVPPSCNBUSS: '',
|
||||
DYBXHBUSS: '',
|
||||
DYMCBUSS: '',
|
||||
VPPSCNBUSS:'',
|
||||
// 关联信息
|
||||
DTQBBHBUSS:'',
|
||||
@@ -1965,6 +2053,9 @@ export default {
|
||||
syrzOptions:[],//适用认证下拉框
|
||||
gkglbmOptions:[],//归口管理部门下拉框
|
||||
drawerTitle: '',
|
||||
drawerTitle3: '',
|
||||
drawerTitle4: '',
|
||||
drawerTitle2: '',
|
||||
modalShowRoleFlag: false,
|
||||
nodeList: [],
|
||||
nodeList2: [],
|
||||
@@ -2023,6 +2114,7 @@ export default {
|
||||
modalShowFlag2: false, // drawer开关
|
||||
modalShowFlag3: false, // drawer开关
|
||||
modalShowFlag4: false, // drawer开关
|
||||
type: '',
|
||||
url:'',
|
||||
urlChild:'',
|
||||
}
|
||||
@@ -2085,27 +2177,56 @@ export default {
|
||||
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//格式为:YY-MM-DD hh:mm:ss(当前时间)
|
||||
},
|
||||
popoverHideQuery(ids,attrField){
|
||||
console.log(ids)
|
||||
console.log("-----------------------------")
|
||||
console.log(attrField)
|
||||
},
|
||||
popoverHideBusVsCancel() {
|
||||
this.modalShowFlag2 = false
|
||||
},
|
||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||
if(checkedData) {
|
||||
if(checkedData.length > 0){
|
||||
this.sarBussionessStandEO.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
||||
this.sarBussionessStandEO.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
||||
this.sarBussionessSearch.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
||||
this.sarBussionessSearch.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
||||
}else {
|
||||
this.sarBussionessStandEO.VPPSBMBUSS = checkedData.code
|
||||
this.sarBussionessStandEO.VPPSCNBUSS = checkedData.chineseName
|
||||
this.sarBussionessSearch.VPPSBMBUSS = checkedData.code
|
||||
this.sarBussionessSearch.VPPSCNBUSS = checkedData.chineseName
|
||||
}
|
||||
if (checkedData && checkedData.length != 0) {
|
||||
if (checkedData.length > 0) {
|
||||
this.sarBussionessStandEO.CYCVPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
||||
this.sarBussionessStandEO.CYCVPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
||||
} else {
|
||||
this.sarBussionessStandEO.CYCVPPSBMBUSS = checkedData.code
|
||||
this.sarBussionessStandEO.CYCVPPSCNBUSS = checkedData.chineseName
|
||||
}
|
||||
this.modalShowFlag2 = false
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
||||
if (checkedData && checkedData.length != 0) {
|
||||
if (checkedData.length > 0) {
|
||||
this.sarBussionessStandEO.KCVPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
||||
this.sarBussionessStandEO.KCVPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
||||
} else {
|
||||
this.sarBussionessStandEO.KCVPPSBMBUSS = checkedData.code
|
||||
this.sarBussionessStandEO.KCVPPSCNBUSS = checkedData.chineseName
|
||||
}
|
||||
this.modalShowFlag3 = false
|
||||
}
|
||||
|
||||
this.$forceUpdate()
|
||||
},
|
||||
popoverHideCarVsCancel() {
|
||||
this.modalShowFlag3 = false
|
||||
},
|
||||
popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
||||
if (checkedData && checkedData.length != 0) {
|
||||
if (checkedData.length > 0) {
|
||||
this.sarBussionessStandEO.DYBXHBUSS = checkedData.map(item => item.model).join(",")
|
||||
this.sarBussionessStandEO.DYMCBUSS = checkedData.map(item => item.name).join(",")
|
||||
} else {
|
||||
this.sarBussionessStandEO.DYBXHBUSS = checkedData.model
|
||||
this.sarBussionessStandEO.DYMCBUSS = checkedData.name
|
||||
}
|
||||
this.modalShowFlag4 = false
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
popoverHideModelCancel() {
|
||||
this.modalShowFlag4 = false
|
||||
},
|
||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||
if(checkedData) {
|
||||
if(checkedData.length > 0){
|
||||
@@ -2120,14 +2241,31 @@ export default {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
choiceZRR2 (type, title, id,multFlag) {
|
||||
this.drawerTitle = title
|
||||
this.drawerTitle2 = title
|
||||
this.modalShowFlag2 = true
|
||||
this.multipleFlag2 = multFlag
|
||||
this.url = ''
|
||||
this.urlChild = ''
|
||||
this.type = type
|
||||
this.url="sarVppsTree/list"
|
||||
this.urlChild="sarVppsTree/childByList"
|
||||
},
|
||||
choiceZRR3(type, title, id) {
|
||||
this.drawerTitle3 = title
|
||||
this.modalShowFlag3 = true
|
||||
this.url = ''
|
||||
this.urlChild = ''
|
||||
this.url = "sarVppsTree/list"
|
||||
this.urlChild = "sarVppsTree/childByList"
|
||||
},
|
||||
choiceZRR4(type, title, id) {
|
||||
this.drawerTitle4 = title
|
||||
this.modalShowFlag4 = true
|
||||
this.url = ''
|
||||
this.urlChild = ''
|
||||
this.url = "sarModelTree/list"
|
||||
this.urlChild = "sarModelTree/childByList"
|
||||
},
|
||||
choiceZRR1 (type, title, id) {
|
||||
this.drawerTitle1 = title
|
||||
this.modalShowFlag1 = true
|
||||
@@ -2883,7 +3021,6 @@ export default {
|
||||
})
|
||||
})
|
||||
this.dynamicFormField = displayLocation
|
||||
console.log('2805',this.dynamicFormField)
|
||||
this.loading = false
|
||||
})
|
||||
this.sarBussionessStandEO = JSON.parse(JSON.stringify(item))
|
||||
@@ -2935,7 +3072,6 @@ export default {
|
||||
$('#deptBtn2').click()
|
||||
},
|
||||
choiceQCR (type, title, id) {
|
||||
console.log('2077',title)
|
||||
this.nodeList = []
|
||||
this.nodeList.push(id)
|
||||
this.userType = type
|
||||
@@ -2943,7 +3079,6 @@ export default {
|
||||
this.modalShowRoleFlag = true
|
||||
},
|
||||
checkedRole2 (data) {
|
||||
console.log('1712',this.drawerTitle)
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach( item => {
|
||||
@@ -2954,7 +3089,12 @@ export default {
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
})
|
||||
this.sarBussionessStandEO['QCRBUSS'] = nameList
|
||||
this.$set(this.sarBussionessStandEO, 'QCRBUSS', nameList)
|
||||
if(this.sarBussionessStandEO.QCRBUSS){
|
||||
this.$refs.sarBussionessStandForm.validateField('QCRBUSS')
|
||||
}
|
||||
// this.sarBussionessStandEO['QCRBUSS'] = nameList
|
||||
|
||||
|
||||
},
|
||||
choiceQCDW(type, title, id) {
|
||||
@@ -2966,8 +3106,6 @@ export default {
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
drawerCheckZRBM(data) {
|
||||
|
||||
console.log("5389", data);
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach(item => {
|
||||
@@ -2980,9 +3118,13 @@ export default {
|
||||
nameList += item.name
|
||||
// }
|
||||
})
|
||||
|
||||
this.sarBussionessStandEO.QCDWId = idList;
|
||||
this.sarBussionessStandEO['QCDW'] = nameList;
|
||||
this.$set(this.sarBussionessStandEO, 'QCDWId', idList)
|
||||
this.$set(this.sarBussionessStandEO, 'QCDW', nameList)
|
||||
if(this.sarBussionessStandEO.QCRBUSS){
|
||||
this.$refs.sarBussionessStandForm.validateField('QCDW')
|
||||
}
|
||||
// this.sarBussionessStandEO.QCDWId = idList;
|
||||
// this.sarBussionessStandEO['QCDW'] = nameList;
|
||||
|
||||
},
|
||||
// 新增-表单空
|
||||
@@ -3001,7 +3143,6 @@ export default {
|
||||
if (flag) {
|
||||
// 时间格式修改
|
||||
let nowstandinfo = JSON.parse(JSON.stringify(this.sarBussionessStandEO))
|
||||
console.log(nowstandinfo)
|
||||
if (nowstandinfo.issueTime != null && nowstandinfo.issueTime !== '') {
|
||||
nowstandinfo.issueTime = this.$dateFormat(this.sarBussionessStandEO.issueTime, 'yyyy-MM-dd hh:mm:ss')
|
||||
}
|
||||
@@ -3018,7 +3159,6 @@ export default {
|
||||
}
|
||||
// 处理动态表单的时间和下拉框格式
|
||||
const formFieldList = this.formFieldList
|
||||
console.log(this.formFieldList)
|
||||
const sarStandAttrObj = {}
|
||||
formFieldList.forEach((item) => {
|
||||
const value = nowstandinfo[item.attrField]
|
||||
@@ -3713,8 +3853,6 @@ export default {
|
||||
}
|
||||
this.standinfoList = []
|
||||
this.standinfoList = res.data.list
|
||||
console.log(this.standinfoList)
|
||||
console.log(res.data.list)
|
||||
this.total = res.data.count
|
||||
if ((this.standinfoList.length === 0 || this.standinfoList === []) && this.sarBussionessSearch.page !== 1) {
|
||||
this.pageChange(1)
|
||||
@@ -3826,7 +3964,6 @@ export default {
|
||||
}
|
||||
})
|
||||
} else if (this.ocrList.length === 1 && type === '2'){
|
||||
console.log('4228',this.ocrList)
|
||||
this.selectStandardPro(this.ocrList[0], 'edit')
|
||||
}
|
||||
},
|
||||
@@ -3983,7 +4120,6 @@ export default {
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
console.log('getAreaList',res.data)
|
||||
this.showRegionOptions = res.data || []
|
||||
resolve(res.data || [])
|
||||
}, e => {
|
||||
@@ -4062,6 +4198,7 @@ export default {
|
||||
this.reloadAddForm = false
|
||||
const formFieldList = this.formFieldList
|
||||
const rules = {...this.defaultAddFormFieldRules}
|
||||
console.log(formFieldList);
|
||||
formFieldList.forEach((item) => {
|
||||
const rule = []
|
||||
if (item.isMust === '0') {
|
||||
@@ -4073,7 +4210,10 @@ export default {
|
||||
rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
|
||||
}
|
||||
}
|
||||
if (item.attrLen && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS') {
|
||||
if (item.attrLen && item.attrType === 'INPUT_STR' && item.attrField === 'DTQBBHBUSS') {
|
||||
rule.push({type: 'string', max: 500, message: '代替企标编号不能超过500个字符', trigger: 'change'})
|
||||
}
|
||||
if (item.attrLen && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS'&& item.attrType !== 'INPUT_STR') {
|
||||
rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'change'})
|
||||
}
|
||||
if (rule.length > 0) {
|
||||
@@ -4084,6 +4224,7 @@ export default {
|
||||
// this.rules = rules
|
||||
this.$set(this, 'sarBussionessStandRules', rules)
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
this.reloadAddForm = true
|
||||
}, 1000)
|
||||
@@ -4140,7 +4281,6 @@ export default {
|
||||
}
|
||||
this.stahndinfoList = []
|
||||
this.stahndinfoList = res.data.list
|
||||
console.log(this.stahndinfoList)
|
||||
this.total = res.data.count
|
||||
if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarBussionessSearch.page !== 1) {
|
||||
this.pageChange(1)
|
||||
@@ -4292,7 +4432,6 @@ export default {
|
||||
day = "0" + day;
|
||||
}
|
||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
||||
console.log(FSRQBUSS,"FSRQBUSS");
|
||||
this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||
|
||||
}
|
||||
@@ -4332,7 +4471,7 @@ export default {
|
||||
this.energyKindOptions = res.data.ENERGYTYPES
|
||||
this.standGeneraOptions = res.data.BUSSBIGCLASS
|
||||
this.standSubclassOptions = res.data.BUSSFINECLASS
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.standSortOptions = res.data.BUSSSTANDCLASS // 企业标准类别
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.TEXTSTATUSBUSS // 文本状态
|
||||
this.standSystemOptions = res.data.TXLBBUSS // 标准体系
|
||||
|
||||
@@ -41,6 +41,22 @@
|
||||
</div>
|
||||
<span class="transition-box-span" v-else>-</span>
|
||||
</div>
|
||||
<div class="transition-box-p">
|
||||
<label class="transition-box-label">流程稿件:</label>
|
||||
<div class="file-box" v-if="fileInfoLists.length > 0">
|
||||
<div style="display: flex;">
|
||||
<div v-for="(file,item) in fileInfoLists"
|
||||
target="_blank"
|
||||
class="transition-box-span table-jump"
|
||||
@click="handleQueryPdf(file)"
|
||||
:key="item">
|
||||
{{ file.name }}
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(file.attId)">下载</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="transition-box-span" v-else>-</span>
|
||||
</div>
|
||||
<p class="transition-box-p">
|
||||
<label class="transition-box-label">上传时间:</label>
|
||||
<span class="transition-box-span">{{ this.$route.query.item.startTime || '-' }}</span>
|
||||
@@ -80,6 +96,12 @@
|
||||
align="center"
|
||||
width="120">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="chapterName"
|
||||
align="center"
|
||||
width="200px"
|
||||
label="章节名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="content"
|
||||
align="center"
|
||||
@@ -89,6 +111,7 @@
|
||||
prop="oldText"
|
||||
align="center"
|
||||
label="修改前"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="primary" :disabled="scope.row.partCode.length === 0" @click="itermsConditionsOpen(scope.row.oldText)" class="common-button-primary">查看修改前内容</el-button>
|
||||
@@ -166,6 +189,9 @@
|
||||
:value="item.itemsNum"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="章节名称" prop="chapterName" label-width="" class="add-form-item">
|
||||
<el-input v-model="opinionContent.chapterName" autocomplete="off" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改前" prop="oldText" label-width="" class="add-form-item">
|
||||
<div v-html="opinionContent.oldText" style="margin: 56px 0 0 10px;"></div>
|
||||
</el-form-item>
|
||||
@@ -207,6 +233,7 @@ export default {
|
||||
itermsConditionsTitle: '',
|
||||
options: [],
|
||||
fileInfoList: [],
|
||||
fileInfoLists: [],
|
||||
itemData: this.$route.query.item,
|
||||
id: '', // 选中id
|
||||
type: '', // 选中状态
|
||||
@@ -220,7 +247,8 @@ export default {
|
||||
partCode: '',
|
||||
oldText: '',
|
||||
newText: '',
|
||||
reason: ''
|
||||
reason: '',
|
||||
chapterName: '',
|
||||
},
|
||||
opinionContentRules: {
|
||||
partCode: [
|
||||
@@ -260,6 +288,7 @@ export default {
|
||||
for (let a = 0; a < this.options.length; a++) {
|
||||
if (data === this.options[a].itemsNum) {
|
||||
this.opinionContent.oldText = this.options[a].termsConditions
|
||||
this.opinionContent.chapterName = this.options[a].itemsName
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -389,6 +418,7 @@ export default {
|
||||
newText: this.opinionContent.newText,
|
||||
reason: this.opinionContent.reason,
|
||||
partCode: this.opinionContent.partCode,
|
||||
chapterName: this.opinionContent.chapterName,
|
||||
userId: this.$store.getters.userInfo.userId || '',
|
||||
userName: this.$store.getters.userInfo.userName || '',
|
||||
deptName: this.$store.getters.userInfo.orgName || '',
|
||||
@@ -431,6 +461,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles)
|
||||
let json = JSON.parse(this.$route.query.item.files)[0]
|
||||
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
|
||||
standId: json.standId,
|
||||
|
||||
@@ -17,6 +17,10 @@ const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&
|
||||
const devWebUrl = 'https://srms.foton.com.cn/#/'
|
||||
// webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录)
|
||||
const webLoginType = 'dev'
|
||||
|
||||
// 配置onlyOffice 前端服务
|
||||
const onlyOfficeUrl = 'http://127.0.0.1:8080'
|
||||
|
||||
// 云端端口号
|
||||
const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
|
||||
const simpleFilePath = 'att/attFile/upload'
|
||||
@@ -54,6 +58,7 @@ module.exports = {
|
||||
webLoginType: webLoginType,
|
||||
ssoLoginUrlDev: ssoLogin + devWebUrl,
|
||||
ssoLoginUrl: ssoLogin,
|
||||
onlyOfficeUrl: onlyOfficeUrl,
|
||||
devWebUrl: devWebUrl,
|
||||
serverUrl: 'https://' + serverIP, // 服务器IP地址
|
||||
interfaceUrl: 'https://' + serverIP + ':' + interfacePORT + '/api/', // 服务器端接口访问地址,
|
||||
|
||||
Reference in New Issue
Block a user