commit
This commit is contained in:
@@ -198,7 +198,7 @@ export default {
|
|||||||
this.getMenu().then((menuList) => {
|
this.getMenu().then((menuList) => {
|
||||||
let hasHomeMenu = false
|
let hasHomeMenu = false
|
||||||
menuList.map((menuItem) => {
|
menuList.map((menuItem) => {
|
||||||
if (menuItem.id === 'G72J4WNFM8') {
|
if (menuItem.id === 'asdfadf') {
|
||||||
hasHomeMenu = true
|
hasHomeMenu = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
size="mini"
|
size="small"
|
||||||
class="common-button-danger"
|
class="common-button-danger"
|
||||||
@click="beforeBack"
|
@click="beforeBack"
|
||||||
:loading="isSubmit"
|
:loading="isSubmit"
|
||||||
|
|||||||
@@ -38,15 +38,22 @@
|
|||||||
placeholder="请选择完成时间">
|
placeholder="请选择完成时间">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
<el-form-item label="调研模板" prop="modelName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="form.model">
|
<el-input
|
||||||
{{ form.model }}
|
disabled
|
||||||
|
style="display: none;"
|
||||||
|
v-model="form.modelName"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
<div v-if="form.modelName" @click="fileUpload" class="fileClass">
|
||||||
|
{{ form.modelName }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="mini">
|
@click="fileUpload"
|
||||||
|
size="mini">
|
||||||
点击上传
|
点击上传
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,6 +63,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '2'">
|
<div class="content" v-show="active === '2'">
|
||||||
<div class="block" style="padding-top: 20px;">
|
<div class="block" style="padding-top: 20px;">
|
||||||
@@ -160,6 +180,24 @@
|
|||||||
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancleUserInfo">取消</el-button>
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancleUserInfo">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||||
|
<el-upload
|
||||||
|
multiple
|
||||||
|
drag
|
||||||
|
:action="fileUrl"
|
||||||
|
ref="importfile"
|
||||||
|
name="file"
|
||||||
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||||
|
:before-upload="beginImportFile"
|
||||||
|
:on-success="importFileSuccess"
|
||||||
|
:show-file-list="false"
|
||||||
|
>
|
||||||
|
<div style="padding: 20px 0">
|
||||||
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||||
|
<p>点击或拖拽上传文件</p>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -172,6 +210,7 @@ export default {
|
|||||||
name: "bzdyStep1",
|
name: "bzdyStep1",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
commentText: '',
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: '',
|
type: '',
|
||||||
@@ -192,6 +231,7 @@ export default {
|
|||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
model: '', // 上传模板
|
model: '', // 上传模板
|
||||||
|
modelName: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
title: [
|
title: [
|
||||||
@@ -199,6 +239,9 @@ export default {
|
|||||||
],
|
],
|
||||||
date: [
|
date: [
|
||||||
{ type: 'date', required: true, message: '请选择完成时间', trigger: 'change' }
|
{ type: 'date', required: true, message: '请选择完成时间', trigger: 'change' }
|
||||||
|
],
|
||||||
|
modelName: [
|
||||||
|
{ required: true, message: '请上传调研结果', trigger: 'change' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
roleForm: {
|
roleForm: {
|
||||||
@@ -228,7 +271,9 @@ export default {
|
|||||||
presidentUserName: [
|
presidentUserName: [
|
||||||
{ required: true, message: '请输入调研标题', trigger: 'change' },
|
{ required: true, message: '请输入调研标题', trigger: 'change' },
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -237,6 +282,47 @@ export default {
|
|||||||
ProcessTitle
|
ProcessTitle
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 导入按钮 上传之前的钩子
|
||||||
|
beginImportFile (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.ZIP' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.spinShow = false
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOCX或XLS文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
|
if (file.size / 1024 / 1024 <= 200) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
// 导入标准数据成功后执行
|
||||||
|
importFileSuccess (response, file) {
|
||||||
|
if (response.ok) {
|
||||||
|
this.fileMadel = false
|
||||||
|
this.form.model = response.data.id
|
||||||
|
this.form.modelName = response.data.name
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: response.message,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fileUpload () {
|
||||||
|
this.fileMadel = true
|
||||||
|
},
|
||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
if (this.type === 'dockUser') {
|
if (this.type === 'dockUser') {
|
||||||
this.roleForm.dockUser = this.roleRow.id
|
this.roleForm.dockUser = this.roleRow.id
|
||||||
@@ -291,6 +377,7 @@ export default {
|
|||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
var json = Object.assign(this.form, this.roleForm)
|
var json = Object.assign(this.form, this.roleForm)
|
||||||
|
json.commentText = this.commentText
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: res.data,
|
taskId: res.data,
|
||||||
@@ -332,6 +419,12 @@ export default {
|
|||||||
}
|
}
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
.headerTabs {
|
.headerTabs {
|
||||||
height: 52px;
|
height: 52px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -40,16 +40,11 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
||||||
<div v-if="form.model">
|
<div v-if="form.model" class="fileClass" @click="updateFile">
|
||||||
{{ form.model }}
|
{{ form.modelName }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-button
|
- -
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
size="mini">
|
|
||||||
点击上传
|
|
||||||
</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="责任人" prop="responUserList" class="add-form-item form-item-disabled">
|
<el-form-item label="责任人" prop="responUserList" class="add-form-item form-item-disabled">
|
||||||
@@ -65,6 +60,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
show-save
|
||||||
@@ -113,6 +121,7 @@
|
|||||||
name: "bzdyStep2",
|
name: "bzdyStep2",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
commentText: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
@@ -151,6 +160,9 @@
|
|||||||
ProcessTitle
|
ProcessTitle
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
updateFile () {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + this.form.model
|
||||||
|
},
|
||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
var idList = ''
|
var idList = ''
|
||||||
var nameList = ''
|
var nameList = ''
|
||||||
@@ -189,6 +201,7 @@
|
|||||||
this.$refs['qbkwForm'].validate((valid) => {
|
this.$refs['qbkwForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
var json = this.json
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
json.responUserList = this.form.responUserList
|
json.responUserList = this.form.responUserList
|
||||||
json.responUserListName = this.form.responUserListName
|
json.responUserListName = this.form.responUserListName
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
@@ -216,6 +229,8 @@
|
|||||||
this.form.title = data.title
|
this.form.title = data.title
|
||||||
this.form.date = data.date
|
this.form.date = data.date
|
||||||
this.json = data
|
this.json = data
|
||||||
|
this.form.model = data.model
|
||||||
|
this.form.modelName = data.modelName
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -237,6 +252,12 @@
|
|||||||
padding: 0 20px 0;
|
padding: 0 20px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.headerTabs {
|
.headerTabs {
|
||||||
|
|||||||
@@ -40,16 +40,11 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
||||||
<div v-if="form.model">
|
<div v-if="form.model" class="fileClass" @click="updateFile">
|
||||||
{{ form.model }}
|
{{ form.modelName }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-button
|
- -
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
size="mini">
|
|
||||||
点击上传
|
|
||||||
</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">
|
<el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">
|
||||||
@@ -77,6 +72,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
show-save
|
||||||
@@ -118,6 +126,7 @@
|
|||||||
name: "bzdyStep3",
|
name: "bzdyStep3",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
commentText: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
@@ -127,6 +136,7 @@
|
|||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
model: '', // 上传模板
|
model: '', // 上传模板
|
||||||
|
modelName: '',
|
||||||
fileId: '',
|
fileId: '',
|
||||||
fileName: '',
|
fileName: '',
|
||||||
responUserList: '',
|
responUserList: '',
|
||||||
@@ -148,6 +158,9 @@
|
|||||||
ProcessTitle
|
ProcessTitle
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
updateFile () {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + this.form.model
|
||||||
|
},
|
||||||
// 导入按钮 上传之前的钩子
|
// 导入按钮 上传之前的钩子
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
var filename = file.name
|
||||||
@@ -197,7 +210,9 @@
|
|||||||
this.$refs['qbkwForm'].validate((valid) => {
|
this.$refs['qbkwForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
var json = this.json
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
json.fileId = this.form.fileId
|
json.fileId = this.form.fileId
|
||||||
|
json.fileName = this.form.fileName
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: this.taskIds,
|
taskId: this.taskIds,
|
||||||
@@ -223,6 +238,8 @@
|
|||||||
this.form.title = data.title
|
this.form.title = data.title
|
||||||
this.form.date = data.date
|
this.form.date = data.date
|
||||||
this.json = data
|
this.json = data
|
||||||
|
this.form.model = data.model
|
||||||
|
this.form.modelName = data.modelName
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,267 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep4">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">标准调研流程</template>
|
||||||
|
<template slot="proNode">责任对接人审批</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="qbkwForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="请输入调研标题"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择完成时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="调研模板" prop="model" class="add-form-item form-item-disabled">
|
||||||
|
<div v-if="form.model" class="fileClass" @click="updateFile(form.model)">
|
||||||
|
{{ form.modelName }}
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
- -
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">
|
||||||
|
<div v-if="form.file" class="fileClass" @click="updateFile(form.file)">
|
||||||
|
{{ form.fileName }}
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
- -
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="审批意见" prop="text" class="add-form-item form-item-disabled">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="form.text"-->
|
||||||
|
<!-- placeholder="请输入审批意见"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- ></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
approval
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzdyStep4",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
title: '', // 调研标题
|
||||||
|
date: '', // 完成时间
|
||||||
|
model: '', // 上传模板
|
||||||
|
modelName: '',
|
||||||
|
fileId: '',
|
||||||
|
fileName: '',
|
||||||
|
responUserList: '',
|
||||||
|
responUserListName: '',
|
||||||
|
text: ''
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
text: [
|
||||||
|
{ required: true, message: '请输入审批意见', trigger: 'blur' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateFile (fileId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() { // 同意
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 0
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmitNo() {
|
||||||
|
if (this.commentText) {
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 1
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('驳回成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请输入反馈意见')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.title = data.title
|
||||||
|
this.form.date = data.date
|
||||||
|
this.json = data
|
||||||
|
this.form.file = data.fileId
|
||||||
|
this.form.fileName = data.fileName
|
||||||
|
this.form.model = data.model
|
||||||
|
this.form.modelName = data.modelName
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep4 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,335 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep5">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">标准调研流程</template>
|
||||||
|
<template slot="proNode">汇总调研结果</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="qbkwForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="请输入调研标题"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择完成时间">
|
||||||
|
</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>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">调研信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
class="drag-table"
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
border
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
ref="selection"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="责任人"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="文件"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div @click="updateFile(scope.row.id)" class="fileClass">
|
||||||
|
{{scope.row.fileName}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||||
|
<el-upload
|
||||||
|
multiple
|
||||||
|
drag
|
||||||
|
:action="fileUrl"
|
||||||
|
ref="importfile"
|
||||||
|
name="file"
|
||||||
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||||
|
:before-upload="beginImportFile"
|
||||||
|
:on-success="importFileSuccess"
|
||||||
|
:show-file-list="false"
|
||||||
|
>
|
||||||
|
<div style="padding: 20px 0">
|
||||||
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||||
|
<p>点击或拖拽上传文件</p>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzdyStep5",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
commentText: '',
|
||||||
|
tableData: [],
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
title: '', // 调研标题
|
||||||
|
date: '', // 完成时间
|
||||||
|
hzfileId: '',
|
||||||
|
hzfileName: '',
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
hzfileId: [
|
||||||
|
{ required: true, message: '请上传汇总结果', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateFile (fileId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
|
||||||
|
},
|
||||||
|
// 导入按钮 上传之前的钩子
|
||||||
|
beginImportFile (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.ZIP' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.spinShow = false
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOCX或XLS文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
|
if (file.size / 1024 / 1024 <= 200) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
// 导入标准数据成功后执行
|
||||||
|
importFileSuccess (response, file) {
|
||||||
|
if (response.ok) {
|
||||||
|
this.fileMadel = false
|
||||||
|
this.form.hzfileId = response.data.id
|
||||||
|
this.form.hzfileName = response.data.name
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: response.message,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fileUpload () {
|
||||||
|
this.fileMadel = true
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs['qbkwForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.hzfileId = this.form.hzfileId
|
||||||
|
json.hzfileName = this.form.hzfileName
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.title = data.title
|
||||||
|
this.form.date = data.date
|
||||||
|
this.json = data
|
||||||
|
this.tableData = data.responUserListMap
|
||||||
|
this.form.hzfileId = data.hzfileId
|
||||||
|
this.form.hzfileName = data.hzfileName
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep5 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,347 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep6">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">标准调研流程</template>
|
||||||
|
<template slot="proNode">责任人会签</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="qbkwForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="请输入调研标题"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择完成时间">
|
||||||
|
</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>
|
||||||
|
<div v-else>
|
||||||
|
- -
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="会签意见" prop="texthq" class="add-form-item form-item-disabled">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="form.texthq"-->
|
||||||
|
<!-- placeholder="请输入审核意见"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- ></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">调研信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
class="drag-table"
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
border
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
ref="selection"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="责任人"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="文件"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div @click="updateFile(scope.row.id)" class="fileClass">
|
||||||
|
{{scope.row.fileName}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
approval
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||||
|
<el-upload
|
||||||
|
multiple
|
||||||
|
drag
|
||||||
|
:action="fileUrl"
|
||||||
|
ref="importfile"
|
||||||
|
name="file"
|
||||||
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||||
|
:before-upload="beginImportFile"
|
||||||
|
:on-success="importFileSuccess"
|
||||||
|
:show-file-list="false"
|
||||||
|
>
|
||||||
|
<div style="padding: 20px 0">
|
||||||
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||||
|
<p>点击或拖拽上传文件</p>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzdyStep6",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
commentText: '',
|
||||||
|
tableData: [],
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
title: '', // 调研标题
|
||||||
|
date: '', // 完成时间
|
||||||
|
hzfileId: '',
|
||||||
|
hzfileName: '',
|
||||||
|
texthq: ''
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
texthq: [
|
||||||
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateFile (fileId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
|
||||||
|
},
|
||||||
|
// 导入按钮 上传之前的钩子
|
||||||
|
beginImportFile (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.ZIP' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.spinShow = false
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOCX或XLS文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
|
if (file.size / 1024 / 1024 <= 200) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
// 导入标准数据成功后执行
|
||||||
|
importFileSuccess (response, file) {
|
||||||
|
if (response.ok) {
|
||||||
|
this.fileMadel = false
|
||||||
|
this.form.hzfileId = response.data.id
|
||||||
|
this.form.hzfileName = response.data.name
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: response.message,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fileUpload () {
|
||||||
|
this.fileMadel = true
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 0
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmitNo() {
|
||||||
|
if (this.commentText) {
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 1
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('驳回成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请输入反馈意见')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.title = data.title
|
||||||
|
this.form.date = data.date
|
||||||
|
this.json = data
|
||||||
|
this.tableData = data.responUserListMap
|
||||||
|
this.form.hzfileName = data.hzfileName
|
||||||
|
this.form.hzfileId = data.hzfileId
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep6 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,347 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep7">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">标准调研流程</template>
|
||||||
|
<template slot="proNode">标准法规部部长审核</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="qbkwForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="请输入调研标题"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择完成时间">
|
||||||
|
</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>
|
||||||
|
<div v-else>
|
||||||
|
- -
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="审核意见" prop="textsh" class="add-form-item form-item-disabled">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="form.textsh"-->
|
||||||
|
<!-- placeholder="请输入审核意见"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- ></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">调研信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
class="drag-table"
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
border
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
ref="selection"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="责任人"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="文件"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div @click="updateFile(scope.row.id)" class="fileClass">
|
||||||
|
{{scope.row.fileName}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
approval
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||||
|
<el-upload
|
||||||
|
multiple
|
||||||
|
drag
|
||||||
|
:action="fileUrl"
|
||||||
|
ref="importfile"
|
||||||
|
name="file"
|
||||||
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||||
|
:before-upload="beginImportFile"
|
||||||
|
:on-success="importFileSuccess"
|
||||||
|
:show-file-list="false"
|
||||||
|
>
|
||||||
|
<div style="padding: 20px 0">
|
||||||
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||||
|
<p>点击或拖拽上传文件</p>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzdyStep7",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
commentText: '',
|
||||||
|
tableData: [],
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
title: '', // 调研标题
|
||||||
|
date: '', // 完成时间
|
||||||
|
hzfileId: '',
|
||||||
|
hzfileName: '',
|
||||||
|
textsh: ''
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
textsh: [
|
||||||
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateFile (fileId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
|
||||||
|
},
|
||||||
|
// 导入按钮 上传之前的钩子
|
||||||
|
beginImportFile (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.ZIP' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.spinShow = false
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOCX或XLS文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
|
if (file.size / 1024 / 1024 <= 200) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
// 导入标准数据成功后执行
|
||||||
|
importFileSuccess (response, file) {
|
||||||
|
if (response.ok) {
|
||||||
|
this.fileMadel = false
|
||||||
|
this.form.hzfileId = response.data.id
|
||||||
|
this.form.hzfileName = response.data.name
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: response.message,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fileUpload () {
|
||||||
|
this.fileMadel = true
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 0
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmitNo() {
|
||||||
|
if (this.commentText) {
|
||||||
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.actionFlag = 1
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('驳回成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请输入反馈意见')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.title = data.title
|
||||||
|
this.form.date = data.date
|
||||||
|
this.json = data
|
||||||
|
this.tableData = data.responUserListMap
|
||||||
|
this.form.hzfileName = data.hzfileName
|
||||||
|
this.form.hzfileId = data.hzfileId
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep7 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,347 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep7">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">标准调研流程</template>
|
||||||
|
<template slot="proNode">技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任审定</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="qbkwForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="请输入调研标题"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择完成时间">
|
||||||
|
</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>
|
||||||
|
<div v-else>
|
||||||
|
- -
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="审定意见" prop="textsd" class="add-form-item form-item-disabled">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="form.textsd"-->
|
||||||
|
<!-- placeholder="请输入审定意见"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- ></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">调研信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
class="drag-table"
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
border
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
ref="selection"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="责任人"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="文件"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div @click="updateFile(scope.row.id)" class="fileClass">
|
||||||
|
{{scope.row.fileName}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
approval
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||||
|
<el-upload
|
||||||
|
multiple
|
||||||
|
drag
|
||||||
|
:action="fileUrl"
|
||||||
|
ref="importfile"
|
||||||
|
name="file"
|
||||||
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||||
|
:before-upload="beginImportFile"
|
||||||
|
:on-success="importFileSuccess"
|
||||||
|
:show-file-list="false"
|
||||||
|
>
|
||||||
|
<div style="padding: 20px 0">
|
||||||
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||||
|
<p>点击或拖拽上传文件</p>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzdyStep7",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
commentText: '',
|
||||||
|
tableData: [],
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
title: '', // 调研标题
|
||||||
|
date: '', // 完成时间
|
||||||
|
hzfileId: '',
|
||||||
|
hzfileName: '',
|
||||||
|
textsd: ''
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
textsd: [
|
||||||
|
{ required: true, message: '请输入审定意见', trigger: 'blur' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateFile (fileId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
|
||||||
|
},
|
||||||
|
// 导入按钮 上传之前的钩子
|
||||||
|
beginImportFile (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.ZIP' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.spinShow = false
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOCX或XLS文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
|
if (file.size / 1024 / 1024 <= 200) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
// 导入标准数据成功后执行
|
||||||
|
importFileSuccess (response, file) {
|
||||||
|
if (response.ok) {
|
||||||
|
this.fileMadel = false
|
||||||
|
this.form.hzfileId = response.data.id
|
||||||
|
this.form.hzfileName = response.data.name
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: response.message,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fileUpload () {
|
||||||
|
this.fileMadel = true
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 0
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmitNo() {
|
||||||
|
if (this.commentText) {
|
||||||
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.actionFlag = 1
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('驳回成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请输入反馈意见')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.title = data.title
|
||||||
|
this.form.date = data.date
|
||||||
|
this.json = data
|
||||||
|
this.tableData = data.responUserListMap
|
||||||
|
this.form.hzfileName = data.hzfileName
|
||||||
|
this.form.hzfileId = data.hzfileId
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep7 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,347 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep7">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">标准调研流程</template>
|
||||||
|
<template slot="proNode">责任对接人审批</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="qbkwForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="调研标题" prop="title" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="请输入调研标题"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择完成时间">
|
||||||
|
</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>
|
||||||
|
<div v-else>
|
||||||
|
- -
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="批准意见" prop="textpz" class="add-form-item form-item-disabled">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="form.textpz"-->
|
||||||
|
<!-- placeholder="请输入批准意见"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- ></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">调研信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
class="drag-table"
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
border
|
||||||
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
ref="selection"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="责任人"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="文件"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div @click="updateFile(scope.row.id)" class="fileClass">
|
||||||
|
{{scope.row.fileName}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="意见填写">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-back
|
||||||
|
approval
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||||
|
<el-upload
|
||||||
|
multiple
|
||||||
|
drag
|
||||||
|
:action="fileUrl"
|
||||||
|
ref="importfile"
|
||||||
|
name="file"
|
||||||
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||||
|
:before-upload="beginImportFile"
|
||||||
|
:on-success="importFileSuccess"
|
||||||
|
:show-file-list="false"
|
||||||
|
>
|
||||||
|
<div style="padding: 20px 0">
|
||||||
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
||||||
|
<p>点击或拖拽上传文件</p>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzdyStep7",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
commentText: '',
|
||||||
|
tableData: [],
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
title: '', // 调研标题
|
||||||
|
date: '', // 完成时间
|
||||||
|
hzfileId: '',
|
||||||
|
hzfileName: '',
|
||||||
|
textpz: ''
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
textpz: [
|
||||||
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {},
|
||||||
|
fileUrl: 'api/att/attFile/upload',
|
||||||
|
fileMadel: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateFile (fileId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
|
||||||
|
},
|
||||||
|
// 导入按钮 上传之前的钩子
|
||||||
|
beginImportFile (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.ZIP' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.spinShow = false
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOCX或XLS文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
// eslint-disable-next-line no-unreachable
|
||||||
|
if (file.size / 1024 / 1024 <= 200) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
// 导入标准数据成功后执行
|
||||||
|
importFileSuccess (response, file) {
|
||||||
|
if (response.ok) {
|
||||||
|
this.fileMadel = false
|
||||||
|
this.form.hzfileId = response.data.id
|
||||||
|
this.form.hzfileName = response.data.name
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: response.message,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fileUpload () {
|
||||||
|
this.fileMadel = true
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
var json = this.json
|
||||||
|
json.actionFlag = 0
|
||||||
|
json.commentText = this.commentText
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmitNo() {
|
||||||
|
if (this.commentText) {
|
||||||
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.actionFlag = 1
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success('驳回成功')
|
||||||
|
this.$router.push('/processCenter')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请输入反馈意见')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.title = data.title
|
||||||
|
this.form.date = data.date
|
||||||
|
this.json = data
|
||||||
|
this.tableData = data.responUserListMap
|
||||||
|
this.form.hzfileName = data.hzfileName
|
||||||
|
this.form.hzfileId = data.hzfileId
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep7 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -553,21 +553,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
<el-collapse accordion>
|
<el-collapse-item title="意见填写">
|
||||||
<el-collapse-item title="意见填写">
|
<div style="margin: 10px 0;">
|
||||||
<div style="margin: 10px 0;">
|
<el-input
|
||||||
<el-input
|
type="textarea"
|
||||||
type="textarea"
|
:rows="3"
|
||||||
:rows="3"
|
resize="none"
|
||||||
resize="none"
|
placeholder="请输入意见"
|
||||||
placeholder="请输入意见"
|
v-model="commentText">
|
||||||
v-model="commentText">
|
</el-input>
|
||||||
</el-input>
|
</div>
|
||||||
</div>
|
</el-collapse-item>
|
||||||
</el-collapse-item>
|
</el-collapse>
|
||||||
</el-collapse>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-if="active === '2'">
|
<div class="content" v-if="active === '2'">
|
||||||
<div class="block" style="padding-top: 20px;">
|
<div class="block" style="padding-top: 20px;">
|
||||||
|
|||||||
@@ -275,6 +275,72 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else if (row.taskInfo === '责任对接人审批') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzdyStep4',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (row.taskInfo === '标准法规工程师调研汇总'){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzdyStep5',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (row.taskInfo === '责任人会签'){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzdyStep6',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (row.taskInfo === '部长+对接人审核') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzdyStep7',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (row.taskInfo.indexOf('工程研究总院院长') == 0 ) {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzdyStep9',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzdyStep8',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case'3' : {
|
case'3' : {
|
||||||
|
|||||||
@@ -348,6 +348,60 @@ const routes = [
|
|||||||
title: '标准调研流程'
|
title: '标准调研流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/bzdyStep4',
|
||||||
|
name: 'bzdyStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzdyStep5',
|
||||||
|
name: 'bzdyStep5',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step5.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzdyStep6',
|
||||||
|
name: 'bzdyStep6',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step6.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzdyStep7',
|
||||||
|
name: 'bzdyStep7',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step7.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzdyStep8',
|
||||||
|
name: 'bzdyStep8',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step8.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzdyStep9',
|
||||||
|
name: 'bzdyStep9',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step9.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/zqyjStep1',
|
path: '/zqyjStep1',
|
||||||
name: 'zqyjStep1',
|
name: 'zqyjStep1',
|
||||||
|
|||||||
Reference in New Issue
Block a user