未符合项流程草稿发起待办消失问题,页面审批回显,页面标题

This commit is contained in:
shenyanpei
2021-12-27 17:25:24 +08:00
parent 3f19405265
commit aef5e17336
3 changed files with 10 additions and 8 deletions
@@ -578,7 +578,7 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
let paramsInfo = new FormData() let paramsInfo = new FormData()
paramsInfo.append('id', this.bpnId || '') // paramsInfo.append('id', this.bpnId || '')
paramsInfo.append('createUser', this.$store.getters.userInfo.userId) paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName) paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
paramsInfo.append('type', '8') paramsInfo.append('type', '8')
@@ -290,13 +290,13 @@ export default {
this.$message.warning("请选择至少一条数据进行分发责任人"); this.$message.warning("请选择至少一条数据进行分发责任人");
} else { } else {
this.nodeList = [] this.nodeList = []
this.drawerTitle = '选择分发责任人'
this.nodeList.push(id) this.nodeList.push(id)
this.modalshowflag = true this.modalshowflag = true
} }
}, },
// 每行选择负责人点击操作 // 每行选择负责人点击操作
clickOpen(val, id) { clickOpen(val, id) {
console.log(val)
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.rowDutyPeople = val this.rowDutyPeople = val
this.nodeList = [] this.nodeList = []
@@ -77,7 +77,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="textarea">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -186,7 +186,7 @@ export default {
passInfo: 0, passInfo: 0,
detailData: [], detailData: [],
loading: false, loading: false,
commentText: '', // 意见 textarea: '', // 意见
title: '', // 新增编辑抽屉标题 title: '', // 新增编辑抽屉标题
ListModel: false, // 新增编辑抽屉开关 ListModel: false, // 新增编辑抽屉开关
nonSearch: { nonSearch: {
@@ -266,6 +266,7 @@ export default {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) { if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).textarea
} }
} }
} else { } else {
@@ -274,6 +275,7 @@ export default {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) { if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[i].standardInfoList this.dataList = fileData[i].standardInfoList
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).commentText
} }
} }
} }
@@ -311,12 +313,12 @@ export default {
}, },
// 退回按钮 // 退回按钮
handleSubmitNo() { handleSubmitNo() {
if (this.commentText) { if (this.textarea) {
var json = { var json = {
passInfo: 1, passInfo: 1,
actionFlag: 1, actionFlag: 1,
commentText: this.commentText, commentText: this.textarea,
standardInfoList: this.standardInfoList, standardInfoList: this.standardInfoList,
} }
const params = new FormData(); const params = new FormData();
@@ -370,7 +372,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
dockUserList: list, dockUserList: list,
commentText: this.commentText textarea: this.textarea
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -411,7 +413,7 @@ export default {
let json = { let json = {
passInfo: this.passInfo, passInfo: this.passInfo,
responUserList: list, responUserList: list,
commentText: this.commentText, commentText: this.textarea,
actionFlag: 0 actionFlag: 0
} }
if(flag)return; if(flag)return;