标准征求意见页面调整

This commit is contained in:
shenyanpei
2021-09-15 17:26:46 +08:00
parent a3edd332f6
commit c7f1466c42
10 changed files with 1991 additions and 1995 deletions
@@ -24,12 +24,10 @@
<div class="prc-content-border">
<el-row :gutter="24">
<el-col :span="24">
<el-form-item label="选择征求意见" class="add-form-item form-item-disabled">
<div class="addButton">
<el-form-item label="标准号/名称" prop="cid" class="add-form-item form-item-disabled">
<div class="addButton" style="padding-left: 10px">
<el-button size="small" type="primary" @click="addZqyjList">选择标准</el-button>
</div>
</el-form-item>
<el-form-item label="标准号" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -37,14 +35,6 @@
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
v-model="form.endTime"
@@ -52,12 +42,10 @@
placeholder="请选择结束日期">
</el-date-picker>
</el-form-item>
<el-form-item label="选择标准附件" class="add-form-item form-item-disabled">
<div class="addButton">
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
<div class="addButton" style="padding-left: 10px">
<el-button size="small" type="primary" :disabled="!form.cid" @click="addfjList">选择附件</el-button>
</div>
</el-form-item>
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
<el-input
v-model="form.fjListId"
style="display: none;"
@@ -519,15 +507,6 @@ export default {
this.total = res.data.count
this.spinShow = false
})
// var form = this.standCommonlySearch
// this.$http.get('slrs/sar-public-idea/SelectAllPage', form, {
// _this: this
// }, res => {
// this.standInfoList = res.data.records
// this.total = res.data.total
// this.spinShow = false
// }, e => {
// })
},
pageChange(page) {
this.standCommonlySearch.page = page
@@ -561,11 +540,10 @@ export default {
bringData.push(deposit.get(this.selectedList[i]));
}
if (bringData[0].standYear) {
this.form.cid = bringData[0].standSortShow + ' ' + bringData[0].standNumber + '-' + bringData[0].standYear
this.form.cid = bringData[0].standSortShow + ' ' + bringData[0].standNumber + '-' + bringData[0].standYear + ' ' + bringData[0].standName
} else {
this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber
this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber + ' ' + bringData[0].standName
}
this.form.cname = bringData[0].standName;
this.listModel = false;
} else if (this.selectedList.length > 1) {
this.$message.warning("只能选择一条数据进行带入");
@@ -680,6 +658,9 @@ export default {
}
}
.el-input__icon {
width: 15px;
}
position: relative;
height: 100%;
@@ -24,26 +24,16 @@
<div class="prc-content-border">
<el-row :gutter="24">
<el-col :span="24">
<el-form-item label="选择征求意见" class="add-form-item form-item-disabled">
<div class="addButton">
<el-form-item label="标准号/名称" prop="cid" class="add-form-item form-item-disabled">
<div class="addButton" style="padding-left: 10px">
<el-button size="small" type="primary" @click="addZqyjList">选择标准</el-button>
</div>
</el-form-item>
<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
@@ -52,18 +42,18 @@
placeholder="请选择结束日期">
</el-date-picker>
</el-form-item>
<el-form-item label="选择标准附件" class="add-form-item form-item-disabled">
<div class="addButton">
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
<div class="addButton" style="padding-left: 10px">
<el-button size="small" type="primary" :disabled="!form.cid" @click="addfjList">选择附件</el-button>
</div>
</el-form-item>
<el-form-item label="标准附件" prop="fjListId" class="add-form-item form-item-disabled">
<el-input
v-model="form.fjListId"
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -195,7 +185,8 @@
</el-formItem>
<el-formItem label="标准类别" prop="standSort" class="search-item">
<el-select v-model="standCommonlySearch.standSort" placeholder="根据标准类别查找" clearable>
<el-option v-for="opt in standSortOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label }}
<el-option v-for="opt in standSortOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">
{{ opt.label }}
</el-option>
</el-select>
</el-formItem>
@@ -211,11 +202,13 @@
size="mini"
class="common-button-primary"
@click="sarStandCompareHisInfo">查询</el-button>
@click="sarStandCompareHisInfo">查询
</el-button>
<el-button
class="common-button-default"
size="mini"
@click="clearSearchStand">清空</el-button>
@click="clearSearchStand">清空
</el-button>
</el-formItem>
</el-form>
</div>
@@ -235,8 +228,12 @@
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="标准号" align="center">
<template slot-scope="scope">
<div v-if="scope.row.standYear" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</div>
<div v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</div>
<div v-if="scope.row.standYear" @click="handlePreview(scope.row)" class="table-jump">
{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
</div>
<div v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }}
{{ scope.row.standNumber }}
</div>
</template>
</el-table-column>
<el-table-column prop="cname" label="标准名称" align="center">
@@ -309,7 +306,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { saveTaskFirst } from 'api/process'
import {saveTaskFirst} from 'api/process'
export default {
name: "bzzqyjStep1",
@@ -339,16 +336,13 @@ export default {
},
formRules: {
cid: [
{ required: true, message: '请输入标准编号', trigger: 'change' },
{required: true, message: '请输入标准编号', trigger: 'change'},
],
endTime: [
{ required: true, message: '请输入标准结束日期', trigger: 'change' },
],
cname: [
{ required: true, message: '请输入标准名称', trigger: 'change' },
{required: true, message: '请输入标准结束日期', trigger: 'change'},
],
fjListId: [
{ required: true, message: '请选择附件', trigger: 'change' },
{required: true, message: '请选择附件', trigger: 'change'},
]
},
// 标准征求意见数据可库
@@ -380,16 +374,16 @@ export default {
},
roleFormRules: {
dockUserList: [
{ required: true, message: '请选择责任部门对接人', trigger: 'change' },
{required: true, message: '请选择责任部门对接人', trigger: 'change'},
],
ministerUser: [
{ required: true, message: '请选择标准法规部部长', trigger: 'change' },
{required: true, message: '请选择标准法规部部长', trigger: 'change'},
],
directorUser: [
{ required: true, message: '请选择技术管理中心主任', trigger: 'change' },
{required: true, message: '请选择技术管理中心主任', trigger: 'change'},
],
presidentUser: [
{ required: true, message: '请选择工程研究院院长', trigger: 'change' },
{required: true, message: '请选择工程研究院院长', trigger: 'change'},
]
},
nodeList: [],
@@ -406,7 +400,7 @@ export default {
ProcessFooter,
ProcessTitle
},
mounted () {
mounted() {
this.sarStandCompareHis()
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
@@ -420,7 +414,7 @@ export default {
}
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -430,7 +424,7 @@ export default {
}
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
},
addfjList () {
addfjList() {
this.$http.get('lawss/sarStandFile/queryFileInfo', {
standId: this.form.standId
}, {}, res => {
@@ -438,18 +432,18 @@ export default {
})
this.fzlistModel = true
},
handleSelection2 (data) {
if(data.length > 5) {
handleSelection2(data) {
if (data.length > 5) {
this.$message.warning('最多选择5条附件')
} else {
this.addFjList = data
}
},
closeDrawer2 () {
closeDrawer2() {
this.fzlistModel = false
this.addFjList = []
},
enterDrawer2 () {
enterDrawer2() {
this.fzlistModel = false
this.form.fjList = this.addFjList
let idList = []
@@ -462,7 +456,7 @@ export default {
this.form.fjListId = idList.join(',')
},
// 点击查看
handlePreview (item) {
handlePreview(item) {
let pageType
if (item.standType === 'FOREIGN') {
pageType = 'FOREIGN_STAND'
@@ -485,7 +479,7 @@ export default {
/** 标准征求意见库方法*
* **********************************************/
// 清空
clearSearchStand () {
clearSearchStand() {
this.standCommonlySearch.page = 1
this.standCommonlySearch.standSort = ''
this.standCommonlySearch.standNumber = ''
@@ -498,7 +492,7 @@ export default {
this.sarStandCompareHis()
},
// 查询表格
sarStandCompareHis () {
sarStandCompareHis() {
this.spinShow = true
var formData = this.standCommonlySearch
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
@@ -508,22 +502,13 @@ export default {
this.total = res.data.count
this.spinShow = false
})
// var form = this.standCommonlySearch
// this.$http.get('slrs/sar-public-idea/SelectAllPage', form, {
// _this: this
// }, res => {
// this.standInfoList = res.data.records
// this.total = res.data.total
// this.spinShow = false
// }, e => {
// })
},
pageChange (page) {
pageChange(page) {
this.standCommonlySearch.page = page
this.sarStandCompareHis()
},
// 分页每页显示数改变后方法
pageSizeChange (pageSize) {
pageSizeChange(pageSize) {
this.$store.getters.userInfo.configContent = pageSize
this.standCommonlySearch.size = pageSize
this.sarStandCompareHis()
@@ -550,13 +535,12 @@ export default {
bringData.push(deposit.get(this.selectedList[i]));
}
if (bringData[0].standYear) {
this.form.cid = bringData[0].standSortShow + ' ' + bringData[0].standNumber + '-' + bringData[0].standYear
this.form.cid = bringData[0].standSortShow + ' ' + bringData[0].standNumber + '-' + bringData[0].standYear + ' ' + bringData[0].standName
} else {
this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber
this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber + ' ' + bringData[0].standName
}
this.form.standType = bringData[0].standType
this.form.standId = bringData[0].id
this.form.cname = bringData[0].standName;
this.listModel = false;
} else if (this.selectedList.length > 1) {
this.$message.warning("只能选择一条数据进行带入");
@@ -566,10 +550,10 @@ export default {
},
/*** **********************************************/
/** 流程节点负责人的选择 *****************************/
checkedRole2 (data) {
checkedRole2(data) {
var idList = ''
var nameList = ''
data.forEach( item => {
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
@@ -580,7 +564,7 @@ export default {
this.roleForm.dockUserList = idList
this.roleForm.dockUserListName = nameList
},
checkedRole (data) {
checkedRole(data) {
if (this.type === 'ministerUser') {
this.roleForm.ministerUser = data[0].id
this.roleForm.ministerUserName = data[0].name
@@ -592,14 +576,14 @@ export default {
this.roleForm.presidentUserName = data[0].name
}
},
choiceZRRS () {
choiceZRRS() {
this.nodeList2 = []
if ( this.roleForm.dockUserList.length > 0) {
if (this.roleForm.dockUserList.length > 0) {
this.nodeList2 = this.roleForm.dockUserList.split(',')
}
this.modalshowflag2 = true
},
choiceZRR (type, title, id) {
choiceZRR(type, title, id) {
this.nodeList = []
this.nodeList.push(id)
this.type = type
@@ -678,20 +662,27 @@ export default {
<style lang="less" scoped>
@import '~@/assets/styles/style';
@import '~@/assets/styles/mixins';
.bzzqyjStep1 {
.myForm {
/deep/.el-form-item__content {
/deep/ .el-form-item__content {
line-height: 10px;
}
}
/deep/.el-drawer__container {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
padding: 0 20px 0;
}
}
.el-input__icon {
width: 15px;
}
position: relative;
height: 100%;
.headerTabs {
height: 52px;
display: flex;
@@ -699,6 +690,7 @@ export default {
position: absolute;
top: 0;
right: 10px;
.headerTabsItem {
border: 1px solid #c1c1c1;
padding: 0 5px;
@@ -706,12 +698,14 @@ export default {
line-height: 30px;
cursor: pointer;
}
.active {
border: 1px solid #E6A23C;
color: #fff;
background: #E6A23C;
}
}
.content {
display: flex;
flex-direction: column;
@@ -719,34 +713,42 @@ export default {
height: calc(~'100% - 107px');
overflow: auto;
}
.standardForComments {
height: 100%;
background: #fff;
.el-divider--horizontal {
display: block;
height: 1px;
width: 100%;
margin: 0;
}
flex-direction: column;
.action-bar {
margin-bottom: 5px;
padding: 0;
}
.content {
flex: auto;
overflow: hidden;
display: flex;
flex-direction: column;
.table-wrap {
flex: auto;
overflow: hidden;
position: relative;
}
}
& > .pagination {
position: static;
/deep/.pagination-slot {
/deep/ .pagination-slot {
padding: 0;
}
}
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,7 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
</div>
</el-form-item>
<el-form-item label="责任人" prop="responUserList" class="add-form-item form-item-disabled">
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -68,11 +62,13 @@
<el-button type="primary"
class="common-button-primary add-button"
@click="addModal"
size="mini">新增</el-button>
size="mini">新增
</el-button>
<el-button type="primary"
class="common-button-primary add-button"
@click="addDelete"
size="mini">删除</el-button>
size="mini">删除
</el-button>
</div>
<el-table
ref="multipleTable"
@@ -210,7 +206,7 @@
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
<span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template>
</el-table-column>
</el-table>
@@ -227,12 +223,12 @@
</template>
<script>
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub} from 'api/process'
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand, saveTaskForPub} from 'api/process'
export default {
export default {
name: "bzzqyjStep3",
data() {
return {
@@ -266,7 +262,7 @@
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' },
{required: true, message: '请选择责任人', trigger: 'change'},
]
},
json: {}
@@ -278,7 +274,7 @@
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -288,20 +284,21 @@
}
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
},
getHistoryData () {
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
}, e => {
})
},
handleSelectionChange (val) {
handleSelectionChange(val) {
this.idList = []
val.forEach( item => {
val.forEach(item => {
this.idList.push(item.id)
})
},
addDelete () {
addDelete() {
if (this.idList.length > 0) {
this.$confirm('删除选中数据, 是否继续?', '提示', {
confirmButtonText: '确定',
@@ -326,7 +323,7 @@
}
},
addModal () {
addModal() {
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
var json = {
chapterNumber: '',
@@ -396,6 +393,7 @@
var json = this.json
json.commentText = this.commentText
json.info = this.data
json.form = this.form
json.department = this.$store.getters.userInfo.orgName
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
@@ -424,36 +422,44 @@
this.form.endTime = data.endTime || data.form.endTime
this.form.cname = data.cname || data.form.cname
this.json = data
this.data = data.info || data.data || data.form.data|| []
this.data = data.info || data.data || data.form.data || []
}).catch(e => {
})
})
},
},
mounted () {
mounted() {
this.getHistoryData()
this.getData()
}
}
}
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
.bzdyStep3 {
/deep/.el-drawer__container {
@import '~@/assets/styles/style';
.bzdyStep3 {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
padding: 0 20px 0;
}
}
.fileClass {
cursor: pointer;
}
.fileClass:hover{
.fileClass:hover {
color: #0c91e5;
}
.el-input__icon {
width: 15px;
}
position: relative;
height: 100%;
.headerTabs {
height: 52px;
display: flex;
@@ -461,6 +467,7 @@
position: absolute;
top: 0;
right: 10px;
.headerTabsItem {
border: 1px solid #c1c1c1;
padding: 0 5px;
@@ -468,18 +475,21 @@
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;
@@ -487,6 +497,7 @@
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
@@ -494,5 +505,5 @@
}
}
}
}
}
</style>
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -186,7 +180,7 @@
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
<span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template>
</el-table-column>
</el-table>
@@ -207,12 +201,12 @@
</template>
<script>
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand} from 'api/process'
export default {
export default {
name: "bzzqyjStep4",
data() {
return {
@@ -245,7 +239,7 @@
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' },
{required: true, message: '请选择责任人', trigger: 'change'},
]
},
json: {}
@@ -257,7 +251,7 @@
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -267,17 +261,19 @@
}
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
},
getHistoryData () {
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
}, e => {
})
},
handleTabs(name) {
this.active = name
},
handleSave() {},
handleSave() {
},
handleSubmit() {
this.isSubmit = true
var json = this.json
@@ -295,7 +291,7 @@
this.isSubmit = false
})
},
handleSubmitNo () {
handleSubmitNo() {
if (this.commentText) {
var json = this.json
json.actionFlag = 1
@@ -334,30 +330,35 @@
})
},
},
mounted () {
mounted() {
this.getHistoryData()
this.getData()
}
}
}
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
.bzdyStep4 {
/deep/.el-drawer__container {
@import '~@/assets/styles/style';
.bzdyStep4 {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
padding: 0 20px 0;
}
}
.fileClass {
cursor: pointer;
}
.fileClass:hover{
.fileClass:hover {
color: #0c91e5;
}
position: relative;
height: 100%;
.headerTabs {
height: 52px;
display: flex;
@@ -365,6 +366,7 @@
position: absolute;
top: 0;
right: 10px;
.headerTabsItem {
border: 1px solid #c1c1c1;
padding: 0 5px;
@@ -372,18 +374,21 @@
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;
@@ -391,6 +396,7 @@
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
@@ -398,5 +404,5 @@
}
}
}
}
}
</style>
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -248,7 +242,7 @@
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub } from "api/process";
import {inboundLiaisonDetail, processCreateStand, saveTaskForPub} from "api/process";
export default {
name: "bzzqyjStep5",
@@ -284,7 +278,7 @@ export default {
},
formRules: {
responUserList: [
{ required: true, message: "请选择责任人", trigger: "change" }
{required: true, message: "请选择责任人", trigger: "change"}
]
},
json: {}
@@ -296,7 +290,7 @@ export default {
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -410,7 +404,7 @@ export default {
item.type = false;
});
this.json = data;
this.data = data.summaryList
this.data = data.info
if (data.introduce) {
} else {
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -229,7 +223,7 @@
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand } from "api/process";
import {inboundLiaisonDetail, processCreateStand} from "api/process";
export default {
name: "bzzqyjStep6",
@@ -268,7 +262,7 @@ export default {
},
formRules: {
responUserList: [
{ required: true, message: "请选择责任人", trigger: "change" }
{required: true, message: "请选择责任人", trigger: "change"}
]
},
json: {}
@@ -280,7 +274,7 @@ export default {
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -387,13 +381,14 @@ export default {
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.form.fjList = data.fjList
this.form.fjListId = data.fjListId
this.form.fjList = data.fjList || data.form.fjList
this.form.fjListId = data.fjListId || data.form.fjListId
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
this.oldData = JSON.parse(JSON.stringify(data.info))
var arr = []
data.summaryList.forEach( item => {
data.info.forEach(item => {
if (item.state != '3') {
arr.push(item)
}
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -68,11 +62,13 @@
<el-button type="primary"
class="common-button-primary add-button"
@click="upload(data, '汇总单.xls')"
size="mini">导出汇总单</el-button>
size="mini">导出汇总单
</el-button>
<el-button type="primary"
class="common-button-primary add-button"
@click="upload(oldData, '征求意见搞.xls')"
size="mini">导出征求意见搞</el-button>
size="mini">导出征求意见搞
</el-button>
</div>
<el-table
ref="multipleTable"
@@ -203,7 +199,7 @@
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
<span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template>
</el-table-column>
</el-table>
@@ -224,12 +220,12 @@
</template>
<script>
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand} from 'api/process'
export default {
export default {
name: "bzzqyjStep7",
data() {
return {
@@ -263,7 +259,7 @@
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' },
{required: true, message: '请选择责任人', trigger: 'change'},
]
},
json: {}
@@ -275,7 +271,7 @@
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -285,18 +281,19 @@
}
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
},
getHistoryData () {
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
}, e => {
})
},
upload (row, title) {
upload(row, title) {
var params = {
columnName: {
chapterNumber : '章条编号',
chapterName : '章节名称',
chapterNumber: '章条编号',
chapterName: '章节名称',
commentText: '修改意见内容(包括理由或依据)',
department: '提出部门',
responUserName: '提出人',
@@ -314,9 +311,10 @@
item.stateText = '不上报'
}
})
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {})
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {
})
},
stateText (row) {
stateText(row) {
if (row === '1') {
return '上报'
} else if (row === '2') {
@@ -326,7 +324,8 @@
handleTabs(name) {
this.active = name
},
handleSave() {},
handleSave() {
},
handleSubmit() {
if (this.data.length < 1) {
this.$message.warning('请输入征求意见搞')
@@ -376,13 +375,14 @@
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.form.fjList = data.fjList
this.form.fjListId = data.fjListId
this.form.fjList = data.fjList || data.form.fjList
this.form.fjListId = data.fjListId || data.form.fjListId
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
this.oldData = JSON.parse(JSON.stringify(data.info))
var arr = []
data.summaryList.forEach( item => {
data.info.forEach(item => {
if (item.state != '3') {
arr.push(item)
}
@@ -394,30 +394,35 @@
})
},
},
mounted () {
mounted() {
this.getHistoryData()
this.getData()
}
}
}
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
.bzdyStep7 {
/deep/.el-drawer__container {
@import '~@/assets/styles/style';
.bzdyStep7 {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
padding: 0 20px 0;
}
}
.fileClass {
cursor: pointer;
}
.fileClass:hover{
.fileClass:hover {
color: #0c91e5;
}
position: relative;
height: 100%;
.headerTabs {
height: 52px;
display: flex;
@@ -425,6 +430,7 @@
position: absolute;
top: 0;
right: 10px;
.headerTabsItem {
border: 1px solid #c1c1c1;
padding: 0 5px;
@@ -432,18 +438,21 @@
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;
@@ -451,6 +460,7 @@
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
@@ -458,5 +468,5 @@
}
}
}
}
}
</style>
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -68,11 +62,13 @@
<el-button type="primary"
class="common-button-primary add-button"
@click="upload(data, '汇总单.xls')"
size="mini">导出汇总单</el-button>
size="mini">导出汇总单
</el-button>
<el-button type="primary"
class="common-button-primary add-button"
@click="upload(oldData, '征求意见搞.xls')"
size="mini">导出征求意见搞</el-button>
size="mini">导出征求意见搞
</el-button>
</div>
<el-table
ref="multipleTable"
@@ -203,7 +199,7 @@
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
<span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template>
</el-table-column>
</el-table>
@@ -224,12 +220,12 @@
</template>
<script>
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand} from 'api/process'
export default {
export default {
name: "bzzqyjStep8",
data() {
return {
@@ -263,7 +259,7 @@
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' },
{required: true, message: '请选择责任人', trigger: 'change'},
]
},
json: {}
@@ -275,7 +271,7 @@
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -285,18 +281,19 @@
}
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
},
getHistoryData () {
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
}, e => {
})
},
upload (row, title) {
upload(row, title) {
var params = {
columnName: {
chapterNumber : '章条编号',
chapterName : '章节名称',
chapterNumber: '章条编号',
chapterName: '章节名称',
commentText: '修改意见内容(包括理由或依据)',
department: '提出部门',
responUserName: '提出人',
@@ -314,9 +311,10 @@
item.stateText = '不上报'
}
})
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {})
this.$http.downloadFile('/api/lawss/activiti/export_excel', params, title, res => {
})
},
stateText (row) {
stateText(row) {
if (row === '1') {
return '上报'
} else if (row === '2') {
@@ -326,7 +324,8 @@
handleTabs(name) {
this.active = name
},
handleSave() {},
handleSave() {
},
handleSubmit() {
if (this.data.length < 1) {
this.$message.warning('请输入征求意见搞')
@@ -376,13 +375,14 @@
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.form.fjList = data.fjList
this.form.fjListId = data.fjListId
this.form.fjList = data.fjList || data.form.fjList
this.form.fjListId = data.fjListId || data.form.fjListId
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
this.oldData = JSON.parse(JSON.stringify(data.info))
var arr = []
data.summaryList.forEach( item => {
data.info.forEach(item => {
if (item.state != '3') {
arr.push(item)
}
@@ -395,30 +395,35 @@
})
},
},
mounted () {
mounted() {
this.getHistoryData()
this.getData()
}
}
}
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
.bzdyStep8 {
/deep/.el-drawer__container {
@import '~@/assets/styles/style';
.bzdyStep8 {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
padding: 0 20px 0;
}
}
.fileClass {
cursor: pointer;
}
.fileClass:hover{
.fileClass:hover {
color: #0c91e5;
}
position: relative;
height: 100%;
.headerTabs {
height: 52px;
display: flex;
@@ -426,6 +431,7 @@
position: absolute;
top: 0;
right: 10px;
.headerTabsItem {
border: 1px solid #c1c1c1;
padding: 0 5px;
@@ -433,18 +439,21 @@
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;
@@ -452,6 +461,7 @@
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
@@ -459,5 +469,5 @@
}
}
}
}
}
</style>
@@ -24,7 +24,7 @@
<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-form-item label="标准编号/名称" prop="cid" class="add-form-item form-item-disabled">
<el-input
disabled
v-model="form.cid"
@@ -32,14 +32,6 @@
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
@@ -54,7 +46,9 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
</el-form-item>
</el-col>
@@ -229,7 +223,7 @@
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand } from "api/process";
import {inboundLiaisonDetail, processCreateStand} from "api/process";
export default {
name: "bzzqyjStep9",
@@ -265,7 +259,7 @@ export default {
},
formRules: {
responUserList: [
{ required: true, message: "请选择责任人", trigger: "change" }
{required: true, message: "请选择责任人", trigger: "change"}
]
},
json: {}
@@ -277,7 +271,7 @@ export default {
ProcessTitle
},
methods: {
updataFj (item) {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
@@ -381,13 +375,14 @@ export default {
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.form.fjList = data.fjList
this.form.fjListId = data.fjListId
this.form.fjList = data.fjList || data.form.fjList
this.form.fjListId = data.fjListId || data.form.fjListId
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
this.oldData = JSON.parse(JSON.stringify(data.info))
var arr = []
data.summaryList.forEach( item => {
data.info.forEach(item => {
if (item.state != '3') {
arr.push(item)
}