标准征求意见流程更改

This commit is contained in:
宋伟佳
2022-05-23 09:28:06 +08:00
parent 10bf57d22b
commit 1d5943e0fd
3 changed files with 38 additions and 40 deletions
@@ -353,7 +353,7 @@
newText: '',
reason: '',
id: '',
department: this.$store.getters.userInfo.institutionName,
department: this.$store.getters.userInfo.institutionNameDepartment,
responUserName: this.$store.getters.userInfo.userName,
responUser: this.$store.getters.userInfo.userId
},
@@ -456,7 +456,7 @@
newText: '',
reason: '',
id: id,
department: this.$store.getters.userInfo.institutionName,
department: this.$store.getters.userInfo.institutionNameDepartment,
responUserName: this.$store.getters.userInfo.userName,
responUser: this.$store.getters.userInfo.userId
}
@@ -724,7 +724,7 @@
window.addEventListener("storage", ev => {
if(ev.key === 'freshClueNum'){
let form = JSON.parse(window.localStorage.getItem('bzzqyjForm'))
form.department = this.$store.getters.userInfo.institutionName
form.department = this.$store.getters.userInfo.institutionNameDepartment
form.responUserName = this.$store.getters.userInfo.userName
form.responUser = this.$store.getters.userInfo.userId
this.data.push(form)
@@ -500,7 +500,7 @@ export default {
newText: '',
reason: '',
id: id,
department: this.$store.getters.userInfo.institutionName,
department: this.$store.getters.userInfo.institutionNameDepartment,
responUserName: this.$store.getters.userInfo.userName,
responUser: this.$store.getters.userInfo.userId
}
@@ -528,7 +528,7 @@ export default {
// newText: '',
// reason: '',
// id: id,
// department: this.$store.getters.userInfo.institutionName,
// department: this.$store.getters.userInfo.institutionNameDepartment,
// responUserName: this.$store.getters.userInfo.userName,
// responUser: this.$store.getters.userInfo.userId
// }
@@ -738,7 +738,7 @@ export default {
window.addEventListener("storage", ev => {
if(ev.key === 'freshClueNum'){
let form = JSON.parse(window.localStorage.getItem('bzzqyjForm'))
form.department = this.$store.getters.userInfo.institutionName
form.department = this.$store.getters.userInfo.institutionNameDepartment
form.responUserName = this.$store.getters.userInfo.userName
form.responUser = this.$store.getters.userInfo.userId
this.data.push(form)
@@ -3,7 +3,7 @@
<!-- 标准调研流程-->
<ProcessHeaderPhone toggle>
<template slot="proName">标准征求意见流程</template>
<template slot="proNode">工程研究总院院长批准</template>
<template slot="proNode">批准</template>
</ProcessHeaderPhone>
<div class="headerTabs">
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
@@ -380,39 +380,37 @@
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.fjList = data.fjList || data.form.fjList
if (data.fjListId === '') {
this.form.fjListId = ''
} else {
this.form.fjListId = data.form.fjListId || data.fjListId
}
this.commentText9 = data.commentText9 || ''
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.info.forEach(item => {
if (item.state != '3') {
arr.push(item)
}
})
this.json = data
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
this.form.modelNameList = data.modelNameList || data.form.modelNameList
this.data = arr
}).catch(e => {
});
});
}
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.commentText9 = data.commentText9 || ''
this.onlyKey = data.form ? data.form.onlyKey :data.onlyKey
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
let newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
let arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data = arr
this.data2 = newArr
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();