commit
This commit is contained in:
@@ -906,3 +906,6 @@ tr.el-table__row{
|
|||||||
margin: 10px;
|
margin: 10px;
|
||||||
width: calc(~'100% - 20px');
|
width: calc(~'100% - 20px');
|
||||||
}
|
}
|
||||||
|
.button-list {
|
||||||
|
padding: 5px 0px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -282,6 +282,47 @@ export default {
|
|||||||
exeFun.call(this, err)
|
exeFun.call(this, err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
downloadFile (url, param, fileName) {
|
||||||
|
_axios({
|
||||||
|
method: 'post',
|
||||||
|
url,
|
||||||
|
data: param,
|
||||||
|
responseType: 'blob'
|
||||||
|
}).then(
|
||||||
|
res => {
|
||||||
|
const data = res.data
|
||||||
|
const r = new FileReader()
|
||||||
|
r.onload = function () {
|
||||||
|
try {
|
||||||
|
const resData = JSON.parse(this.result)
|
||||||
|
} catch (err) {
|
||||||
|
// 下载正常处理
|
||||||
|
// 兼容ie11
|
||||||
|
if (window.navigator.msSaveOrOpenBlob) {
|
||||||
|
try {
|
||||||
|
const blobObject = new Blob([data])
|
||||||
|
window.navigator.msSaveOrOpenBlob(blobObject, fileName)
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// a标签实现下载
|
||||||
|
let url = window.URL.createObjectURL(new Blob([data]))
|
||||||
|
let link = document.createElement('a')
|
||||||
|
link.style.display = 'none'
|
||||||
|
link.href = url
|
||||||
|
link.setAttribute('download', fileName)
|
||||||
|
document.body.appendChild(link)
|
||||||
|
link.click()
|
||||||
|
resolve(fileName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
r.readAsText(data) // FileReader的API
|
||||||
|
}).catch(res => {
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* @description: delete方法
|
* @description: delete方法
|
||||||
* @author: chenxiaoxi
|
* @author: chenxiaoxi
|
||||||
|
|||||||
@@ -115,7 +115,8 @@ export default {
|
|||||||
// 获取用户菜单
|
// 获取用户菜单
|
||||||
this.getMenu().then((menuList) => {
|
this.getMenu().then((menuList) => {
|
||||||
let hasHomeMenu = menuList.some((menuItem) => {
|
let hasHomeMenu = menuList.some((menuItem) => {
|
||||||
return menuItem.id === 'G72J4WNFM8'
|
// return menuItem.id === 'G72J4WNFM8'
|
||||||
|
return menuItem.id === 'asdfadf'
|
||||||
})
|
})
|
||||||
|
|
||||||
if (hasHomeMenu) {
|
if (hasHomeMenu) {
|
||||||
|
|||||||
@@ -55,13 +55,6 @@
|
|||||||
- -
|
- -
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</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-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
@@ -84,13 +77,13 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
show-back
|
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
approval
|
|
||||||
@back="handleSubmitNo"
|
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
|
show-back
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
approval
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
>
|
>
|
||||||
</ProcessFooter>
|
</ProcessFooter>
|
||||||
|
|||||||
@@ -1,13 +1,357 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="bzdyStep3">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="button-list">
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="addModal"
|
||||||
|
size="mini">新增</el-button>
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="addDelete"
|
||||||
|
size="mini">删除</el-button>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
@selection-change="handleSelectionChange">
|
||||||
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input style="margin: 10px 0;" v-model="scope.row.chapterNumber"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input style="margin: 10px 0;" v-model="scope.row.chapterName"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input style="margin: 10px 0;" v-model="scope.row.commentText"></el-input>
|
||||||
|
</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
name: "step3"
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
}
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep3",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
idList: [],
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleSelectionChange (val) {
|
||||||
|
this.idList = []
|
||||||
|
val.forEach( item => {
|
||||||
|
this.idList.push(item.id)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
addDelete () {
|
||||||
|
if (this.idList.length > 0) {
|
||||||
|
this.$confirm('删除选中数据, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
for (let a = 0; a < this.data.length; a++) {
|
||||||
|
this.idList.forEach(item => {
|
||||||
|
if (this.data[a].id === item) {
|
||||||
|
this.data.splice(a, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '已取消删除'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请选择要删除的数据')
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
addModal () {
|
||||||
|
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
|
||||||
|
var json = {
|
||||||
|
chapterNumber: '',
|
||||||
|
chapterName: '',
|
||||||
|
commentText: '',
|
||||||
|
id: id,
|
||||||
|
responUserName: this.$store.getters.userInfo.userName,
|
||||||
|
responUser: this.$store.getters.userInfo.userId,
|
||||||
|
department: this.$store.getters.userInfo.orgName
|
||||||
|
}
|
||||||
|
this.data.push(json)
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning('请输入征求意见搞')
|
||||||
|
} else {
|
||||||
|
var a = 0
|
||||||
|
var b = 0
|
||||||
|
var c = 0
|
||||||
|
for (let s1 = 0; s1 < this.data.length; s1++) {
|
||||||
|
if (!this.data[s1].chapterNumber) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].chapterName) {
|
||||||
|
b++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].commentText) {
|
||||||
|
c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (a > 0) {
|
||||||
|
this.$message.warning('请输入章节编号')
|
||||||
|
} else if (b > 0) {
|
||||||
|
this.$message.warning('请输入章节名称')
|
||||||
|
} else if (c > 0) {
|
||||||
|
this.$message.warning('请输入意见内容')
|
||||||
|
} else {
|
||||||
|
var json = this.json
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.info = this.data
|
||||||
|
json.department = this.$store.getters.userInfo.orgName
|
||||||
|
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.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
this.json = data
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep3 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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>
|
</style>
|
||||||
|
|||||||
@@ -1,13 +1,293 @@
|
|||||||
<template>
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
label="提出人">
|
||||||
|
</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
show-back
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
approval
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
name: "step4"
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
}
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep4",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
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.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
this.json = data
|
||||||
|
this.data = data.info
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep4 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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>
|
</style>
|
||||||
|
|||||||
@@ -1,13 +1,346 @@
|
|||||||
<template>
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-if="scope.row.state == '2'">
|
||||||
|
<el-input style="margin: 10px 0;" v-model="scope.row.chapterNumber" @change="changeInput(scope.$index)"></el-input>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
{{ scope.row.chapterNumber }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-if="scope.row.state == '2'">
|
||||||
|
<el-input style="margin: 10px 0;" v-model="scope.row.chapterName"></el-input>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
{{ scope.row.chapterName }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-if="scope.row.state == '2'">
|
||||||
|
<el-input style="margin: 10px 0;" v-model="scope.row.commentText"></el-input>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
{{ scope.row.commentText }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="state"
|
||||||
|
label="处理意见">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div style="margin: 5px 0;">
|
||||||
|
<el-select
|
||||||
|
:disabled="scope.row.type"
|
||||||
|
v-model="scope.row.state"
|
||||||
|
collapse-tags
|
||||||
|
style="margin-left: 20px;"
|
||||||
|
placeholder="请选择处理意见">
|
||||||
|
<el-option key="1" label="上报" value="1"></el-option>
|
||||||
|
<el-option key="2" label="处理后上报" value="2"></el-option>
|
||||||
|
<el-option key="3" label="不上报" value="3"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
name: "step5"
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
}
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep5",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
oldData: [],
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
changeInput (index) {
|
||||||
|
this.data[index].type = true
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning('请输入征求意见搞')
|
||||||
|
} else {
|
||||||
|
var a = 0
|
||||||
|
var b = 0
|
||||||
|
var c = 0
|
||||||
|
for (let s1 = 0; s1 < this.data.length; s1++) {
|
||||||
|
if (!this.data[s1].chapterNumber) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].chapterName) {
|
||||||
|
b++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].commentText) {
|
||||||
|
c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (a > 0) {
|
||||||
|
this.$message.warning('请输入章节编号')
|
||||||
|
} else if (b > 0) {
|
||||||
|
this.$message.warning('请输入章节名称')
|
||||||
|
} else if (c > 0) {
|
||||||
|
this.$message.warning('请输入意见内容')
|
||||||
|
} else {
|
||||||
|
var json = this.json
|
||||||
|
json.oldinfo = this.oldData
|
||||||
|
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')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
this.oldData = JSON.parse(JSON.stringify(data.summaryList))
|
||||||
|
data.summaryList.forEach( item => {
|
||||||
|
item.state = '1'
|
||||||
|
item.type = false
|
||||||
|
})
|
||||||
|
this.json = data
|
||||||
|
this.data = data.summaryList
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep5 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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>
|
</style>
|
||||||
|
|||||||
@@ -0,0 +1,364 @@
|
|||||||
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="button-list">
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(data, '汇总单.xls')"
|
||||||
|
size="mini">导出汇总单</el-button>
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(oldData, '征求意见搞.xls')"
|
||||||
|
size="mini">导出征求意见搞</el-button>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="state"
|
||||||
|
label="处理意见">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ stateText(scope.row.state) }}</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
show-back
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
approval
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep6",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
oldData: [],
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
stateText (row) {
|
||||||
|
if (row === '1') {
|
||||||
|
return '上报'
|
||||||
|
} else if (row === '2') {
|
||||||
|
return '处理后上报'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
upload (row, title) {
|
||||||
|
var params = {
|
||||||
|
columnName: {
|
||||||
|
chapterNumber : '章条编号',
|
||||||
|
chapterName : '章节名称',
|
||||||
|
commentText: '修改意见内容(包括理由或依据)',
|
||||||
|
department: '提出部门',
|
||||||
|
responUserName: '提出人'
|
||||||
|
},
|
||||||
|
dataList: []
|
||||||
|
}
|
||||||
|
params.dataList = row
|
||||||
|
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {})
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning('请输入征求意见搞')
|
||||||
|
} else {
|
||||||
|
var a = 0
|
||||||
|
var b = 0
|
||||||
|
var c = 0
|
||||||
|
for (let s1 = 0; s1 < this.data.length; s1++) {
|
||||||
|
if (!this.data[s1].chapterNumber) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].chapterName) {
|
||||||
|
b++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].commentText) {
|
||||||
|
c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (a > 0) {
|
||||||
|
this.$message.warning('请输入章节编号')
|
||||||
|
} else if (b > 0) {
|
||||||
|
this.$message.warning('请输入章节名称')
|
||||||
|
} else if (c > 0) {
|
||||||
|
this.$message.warning('请输入意见内容')
|
||||||
|
} else {
|
||||||
|
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),
|
||||||
|
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.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
var arr = []
|
||||||
|
data.summaryList.forEach( item => {
|
||||||
|
if (item.state != '3') {
|
||||||
|
arr.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.json = data
|
||||||
|
this.data = arr
|
||||||
|
this.oldData = data.oldinfo
|
||||||
|
}).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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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,367 @@
|
|||||||
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="button-list">
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(data, '汇总单.xls')"
|
||||||
|
size="mini">导出汇总单</el-button>
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(oldData, '征求意见搞.xls')"
|
||||||
|
size="mini">导出征求意见搞</el-button>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="state"
|
||||||
|
label="处理意见">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ stateText(scope.row.state) }}</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
show-back
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
approval
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep7",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
oldData: [],
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
upload (row, title) {
|
||||||
|
var params = {
|
||||||
|
columnName: {
|
||||||
|
chapterNumber : '章条编号',
|
||||||
|
chapterName : '章节名称',
|
||||||
|
commentText: '修改意见内容(包括理由或依据)',
|
||||||
|
department: '提出部门',
|
||||||
|
responUserName: '提出人'
|
||||||
|
},
|
||||||
|
dataList: []
|
||||||
|
}
|
||||||
|
params.dataList = row
|
||||||
|
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {})
|
||||||
|
},
|
||||||
|
stateText (row) {
|
||||||
|
if (row === '1') {
|
||||||
|
return '上报'
|
||||||
|
} else if (row === '2') {
|
||||||
|
return '处理后上报'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
upload (row) {
|
||||||
|
console.log(row);
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning('请输入征求意见搞')
|
||||||
|
} else {
|
||||||
|
var a = 0
|
||||||
|
var b = 0
|
||||||
|
var c = 0
|
||||||
|
for (let s1 = 0; s1 < this.data.length; s1++) {
|
||||||
|
if (!this.data[s1].chapterNumber) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].chapterName) {
|
||||||
|
b++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].commentText) {
|
||||||
|
c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (a > 0) {
|
||||||
|
this.$message.warning('请输入章节编号')
|
||||||
|
} else if (b > 0) {
|
||||||
|
this.$message.warning('请输入章节名称')
|
||||||
|
} else if (c > 0) {
|
||||||
|
this.$message.warning('请输入意见内容')
|
||||||
|
} else {
|
||||||
|
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),
|
||||||
|
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.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
var arr = []
|
||||||
|
data.summaryList.forEach( item => {
|
||||||
|
if (item.state != '3') {
|
||||||
|
arr.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.json = data
|
||||||
|
this.data = arr
|
||||||
|
this.oldData = data.oldinfo
|
||||||
|
}).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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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,367 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep8">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="button-list">
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(data, '汇总单.xls')"
|
||||||
|
size="mini">导出汇总单</el-button>
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(oldData, '征求意见搞.xls')"
|
||||||
|
size="mini">导出征求意见搞</el-button>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="state"
|
||||||
|
label="处理意见">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ stateText(scope.row.state) }}</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
show-back
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
approval
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep8",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
oldData: [],
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
upload (row, title) {
|
||||||
|
var params = {
|
||||||
|
columnName: {
|
||||||
|
chapterNumber : '章条编号',
|
||||||
|
chapterName : '章节名称',
|
||||||
|
commentText: '修改意见内容(包括理由或依据)',
|
||||||
|
department: '提出部门',
|
||||||
|
responUserName: '提出人'
|
||||||
|
},
|
||||||
|
dataList: []
|
||||||
|
}
|
||||||
|
params.dataList = row
|
||||||
|
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {})
|
||||||
|
},
|
||||||
|
stateText (row) {
|
||||||
|
if (row === '1') {
|
||||||
|
return '上报'
|
||||||
|
} else if (row === '2') {
|
||||||
|
return '处理后上报'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
upload (row) {
|
||||||
|
console.log(row);
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning('请输入征求意见搞')
|
||||||
|
} else {
|
||||||
|
var a = 0
|
||||||
|
var b = 0
|
||||||
|
var c = 0
|
||||||
|
for (let s1 = 0; s1 < this.data.length; s1++) {
|
||||||
|
if (!this.data[s1].chapterNumber) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].chapterName) {
|
||||||
|
b++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].commentText) {
|
||||||
|
c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (a > 0) {
|
||||||
|
this.$message.warning('请输入章节编号')
|
||||||
|
} else if (b > 0) {
|
||||||
|
this.$message.warning('请输入章节名称')
|
||||||
|
} else if (c > 0) {
|
||||||
|
this.$message.warning('请输入意见内容')
|
||||||
|
} else {
|
||||||
|
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),
|
||||||
|
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.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
var arr = []
|
||||||
|
data.summaryList.forEach( item => {
|
||||||
|
if (item.state != '3') {
|
||||||
|
arr.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.json = data
|
||||||
|
this.data = arr
|
||||||
|
this.oldData = data.oldinfo
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep8 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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,367 @@
|
|||||||
|
<template>
|
||||||
|
<div class="bzdyStep9">
|
||||||
|
<!-- 标准调研流程-->
|
||||||
|
<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="bzzqyjForm"
|
||||||
|
: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="24">
|
||||||
|
<el-form-item label="标准编号" prop="cid" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cid"
|
||||||
|
placeholder="请输入标准编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="cname" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.cname"
|
||||||
|
placeholder="请输入标准名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="征求意见结束日期" prop="endTime" class="add-form-item form-item-disabled">
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="button-list">
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(data, '汇总单.xls')"
|
||||||
|
size="mini">导出汇总单</el-button>
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="upload(oldData, '征求意见搞.xls')"
|
||||||
|
size="mini">导出征求意见搞</el-button>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
label="章条编号"
|
||||||
|
width="170px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="state"
|
||||||
|
label="处理意见">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ stateText(scope.row.state) }}</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
show-back
|
||||||
|
@back="handleSubmitNo"
|
||||||
|
approval
|
||||||
|
submitBTNText="同意"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "bzzqyjStep9",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
oldData: [],
|
||||||
|
data: [],
|
||||||
|
commentText: '',
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: '',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
textarea: '', // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
cid: '', // 编号
|
||||||
|
endTime: '', // 结束日期
|
||||||
|
cname: '', // 名称
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
upload (row, title) {
|
||||||
|
var params = {
|
||||||
|
columnName: {
|
||||||
|
chapterNumber : '章条编号',
|
||||||
|
chapterName : '章节名称',
|
||||||
|
commentText: '修改意见内容(包括理由或依据)',
|
||||||
|
department: '提出部门',
|
||||||
|
responUserName: '提出人'
|
||||||
|
},
|
||||||
|
dataList: []
|
||||||
|
}
|
||||||
|
params.dataList = row
|
||||||
|
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {})
|
||||||
|
},
|
||||||
|
stateText (row) {
|
||||||
|
if (row === '1') {
|
||||||
|
return '上报'
|
||||||
|
} else if (row === '2') {
|
||||||
|
return '处理后上报'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
upload (row) {
|
||||||
|
console.log(row);
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
handleSave() {},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning('请输入征求意见搞')
|
||||||
|
} else {
|
||||||
|
var a = 0
|
||||||
|
var b = 0
|
||||||
|
var c = 0
|
||||||
|
for (let s1 = 0; s1 < this.data.length; s1++) {
|
||||||
|
if (!this.data[s1].chapterNumber) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].chapterName) {
|
||||||
|
b++
|
||||||
|
}
|
||||||
|
if (!this.data[s1].commentText) {
|
||||||
|
c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (a > 0) {
|
||||||
|
this.$message.warning('请输入章节编号')
|
||||||
|
} else if (b > 0) {
|
||||||
|
this.$message.warning('请输入章节名称')
|
||||||
|
} else if (c > 0) {
|
||||||
|
this.$message.warning('请输入意见内容')
|
||||||
|
} else {
|
||||||
|
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),
|
||||||
|
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.cid = data.cid
|
||||||
|
this.form.endTime = data.endTime
|
||||||
|
this.form.cname = data.cname
|
||||||
|
var arr = []
|
||||||
|
data.summaryList.forEach( item => {
|
||||||
|
if (item.state != '3') {
|
||||||
|
arr.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.json = data
|
||||||
|
this.data = arr
|
||||||
|
this.oldData = data.oldinfo
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.bzdyStep9 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fileClass:hover{
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
.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>
|
||||||
@@ -357,6 +357,83 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else if (row.taskInfo === '责任人填写征求意见'){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzzqyjStep3',
|
||||||
|
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',
|
||||||
|
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: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (row.taskInfo === '责任人会签') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzzqyjStep6',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (row.taskInfo === '部长+对接人审核') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzzqyjStep7',
|
||||||
|
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: 'bzzqyjStep8',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'bzzqyjStep9',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
//标准清单更新/发布流程
|
//标准清单更新/发布流程
|
||||||
|
|||||||
@@ -131,7 +131,8 @@ export default {
|
|||||||
form: {
|
form: {
|
||||||
cid: this.$route.query.item.cid,
|
cid: this.$route.query.item.cid,
|
||||||
page: 1,
|
page: 1,
|
||||||
size: this.$store.getters.userInfo.configContent
|
size: this.$store.getters.userInfo.configContent,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
} // 详情数据
|
} // 详情数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -447,6 +447,42 @@ const routes = [
|
|||||||
title: '标准调研流程'
|
title: '标准调研流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/bzzqyjStep6',
|
||||||
|
name: 'bzzqyjStep6',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzzqyjStep7',
|
||||||
|
name: 'bzzqyjStep7',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzzqyjStep8',
|
||||||
|
name: 'bzzqyjStep8',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/bzzqyjStep9',
|
||||||
|
name: 'bzzqyjStep9',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准调研流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/bzdyStep4',
|
path: '/bzdyStep4',
|
||||||
name: 'bzdyStep4',
|
name: 'bzdyStep4',
|
||||||
|
|||||||
Reference in New Issue
Block a user