标准征求意见流程更改

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: '', newText: '',
reason: '', reason: '',
id: '', id: '',
department: this.$store.getters.userInfo.institutionName, department: this.$store.getters.userInfo.institutionNameDepartment,
responUserName: this.$store.getters.userInfo.userName, responUserName: this.$store.getters.userInfo.userName,
responUser: this.$store.getters.userInfo.userId responUser: this.$store.getters.userInfo.userId
}, },
@@ -456,7 +456,7 @@
newText: '', newText: '',
reason: '', reason: '',
id: id, id: id,
department: this.$store.getters.userInfo.institutionName, department: this.$store.getters.userInfo.institutionNameDepartment,
responUserName: this.$store.getters.userInfo.userName, responUserName: this.$store.getters.userInfo.userName,
responUser: this.$store.getters.userInfo.userId responUser: this.$store.getters.userInfo.userId
} }
@@ -724,7 +724,7 @@
window.addEventListener("storage", ev => { window.addEventListener("storage", ev => {
if(ev.key === 'freshClueNum'){ if(ev.key === 'freshClueNum'){
let form = JSON.parse(window.localStorage.getItem('bzzqyjForm')) 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.responUserName = this.$store.getters.userInfo.userName
form.responUser = this.$store.getters.userInfo.userId form.responUser = this.$store.getters.userInfo.userId
this.data.push(form) this.data.push(form)
@@ -500,7 +500,7 @@ export default {
newText: '', newText: '',
reason: '', reason: '',
id: id, id: id,
department: this.$store.getters.userInfo.institutionName, department: this.$store.getters.userInfo.institutionNameDepartment,
responUserName: this.$store.getters.userInfo.userName, responUserName: this.$store.getters.userInfo.userName,
responUser: this.$store.getters.userInfo.userId responUser: this.$store.getters.userInfo.userId
} }
@@ -528,7 +528,7 @@ export default {
// newText: '', // newText: '',
// reason: '', // reason: '',
// id: id, // id: id,
// department: this.$store.getters.userInfo.institutionName, // department: this.$store.getters.userInfo.institutionNameDepartment,
// responUserName: this.$store.getters.userInfo.userName, // responUserName: this.$store.getters.userInfo.userName,
// responUser: this.$store.getters.userInfo.userId // responUser: this.$store.getters.userInfo.userId
// } // }
@@ -738,7 +738,7 @@ export default {
window.addEventListener("storage", ev => { window.addEventListener("storage", ev => {
if(ev.key === 'freshClueNum'){ if(ev.key === 'freshClueNum'){
let form = JSON.parse(window.localStorage.getItem('bzzqyjForm')) 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.responUserName = this.$store.getters.userInfo.userName
form.responUser = this.$store.getters.userInfo.userId form.responUser = this.$store.getters.userInfo.userId
this.data.push(form) this.data.push(form)
@@ -3,7 +3,7 @@
<!-- 标准调研流程--> <!-- 标准调研流程-->
<ProcessHeaderPhone toggle> <ProcessHeaderPhone toggle>
<template slot="proName">标准征求意见流程</template> <template slot="proName">标准征求意见流程</template>
<template slot="proNode">工程研究总院院长批准</template> <template slot="proNode">批准</template>
</ProcessHeaderPhone> </ProcessHeaderPhone>
<div class="headerTabs"> <div class="headerTabs">
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div> <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
@@ -380,39 +380,37 @@
this.$message.warning("请输入反馈意见"); this.$message.warning("请输入反馈意见");
} }
}, },
getData() { getData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
inboundLiaisonDetail({ inboundLiaisonDetail({
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg); let data = JSON.parse(res.mesg)
this.form.fjList = data.fjList || data.form.fjList this.commentText9 = data.commentText9 || ''
if (data.fjListId === '') { this.onlyKey = data.form ? data.form.onlyKey :data.onlyKey
this.form.fjListId = '' this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
} else { this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjListId = data.form.fjListId || data.fjListId this.form.fjList = data.fjList || data.form.fjList
} this.form.cid = data.cid || data.form.cid;
this.commentText9 = data.commentText9 || '' this.form.endTime = data.endTime || data.form.endTime;
this.form.cid = data.cid || data.form.cid; this.form.textType = data.textType || data.form.textType
this.form.endTime = data.endTime || data.form.endTime; this.form.modelList = data.modelList || data.form.modelList
this.form.cname = data.cname || data.form.cname; let newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(data.info)) this.oldData = JSON.parse(JSON.stringify(newArr))
var arr = [] let arr = []
data.info.forEach(item => { newArr.forEach(item => {
if (item.state != '3') { if (item.state !== '3') {
arr.push(item) arr.push(item)
} }
}) })
this.json = data this.json = data
this.form.textType = data.textType || data.form.textType this.data = arr
this.form.modelList = data.modelList || data.form.modelList this.data2 = newArr
this.form.modelNameList = data.modelNameList || data.form.modelNameList }).catch(e => {
this.data = arr });
}).catch(e => { });
}); }
});
}
}, },
mounted() { mounted() {
this.getHistoryData(); this.getHistoryData();