Merge remote-tracking branch 'origin/develop_new' into develop_new

This commit is contained in:
CD
2022-12-15 13:38:54 +08:00
5 changed files with 76 additions and 46 deletions
@@ -56,6 +56,7 @@
{{ form.hzfileName }}
</div>
<el-button
:disabled="disabledXX"
size="small"
@click="updateFile(form.hzfileId)"
icon="el-icon-download"
@@ -435,48 +436,77 @@
})
},
getData() {
this.$http.get("lawss/activiti/queryTaskIndex", {
prcId:this.$route.query.processInstanceId,
index:this.$route.query.index
}, {
_this: this
}, res => {
console.log(res)
}, e => {
});
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
let jsonData = JSON.parse(res.mesg)
this.jsonData = jsonData.form ? jsonData.form : jsonData
this.commentText5 = data.commentText5 || ''
this.form.title = data.title || data.form.title
this.form.processName = data.processName || data.form.processName
this.form.date = data.date || data.form.date
let arr = data.responUserList || data.form.responUserList
let newArr = []
for (let a = 0; a <arr.length; a++) {
arr[a].institutionName = ''
this.$http.get('sarUser/user/selectDeptByDY', {
ids: arr[a].dockUser
}, {
_this: this
}, res => {
arr[a].institutionName = res.data[0].institutionName
})
newArr.push(arr[a])
}
this.tableData = newArr
this.form.hzfileId = data.form ? data.form.hzfileId : (data.hzfileId ? data.hzfileId : '')
this.form.hzfileName = data.form ? data.form.hzfileName : (data.hzfileName ? data.hzfileName : '')
this.newDocUser = data.form ? data.form.docUser : data.docUser
this.json = data || data.form
}).catch(e => {
})
})
return new Promise((resolve, reject) => {
this.$http.get("lawss/activiti/queryTaskIndex", {
prcId: this.$route.query.processInstanceId,
index: this.$route.query.index
}, {
_this: this
}, res => {
this.$nextTick(()=>{
let data = JSON.parse(res.mesg)
let jsonData = JSON.parse(res.mesg)
this.jsonData = jsonData.form ? jsonData.form : jsonData
this.form.title = data.title || data.form.title
this.form.processName = data.processName || data.form.processName
this.form.date = data.date || data.form.date
let arr = data.responUserList || data.form.responUserList
let newArr = []
for (let a = 0; a < arr.length; a++) {
arr[a].institutionName = ''
this.$http.get('sarUser/user/selectDeptByDY', {
ids: arr[a].dockUser
}, {
_this: this
}, res => {
arr[a].institutionName = res.data[0].institutionName
})
newArr.push(arr[a])
}
this.tableData = newArr
this.form.hzfileId = data.fileId
this.form.hzfileName = data.fileName
this.newDocUser = data.form ? data.form.docUser : data.docUser
this.json = data || data.form
this.commentText5 = res.commitText || ''
})
}, e => {
});
})
// return new Promise((resolve, reject) => {
// inboundLiaisonDetail({
// taskIds: this.taskIds,
// pId: this.pId
// }).then(res => {
// let data = JSON.parse(res.mesg)
// let jsonData = JSON.parse(res.mesg)
// this.jsonData = jsonData.form ? jsonData.form : jsonData
// this.commentText5 = data.commentText5 || ''
// this.form.title = data.title || data.form.title
// this.form.processName = data.processName || data.form.processName
// this.form.date = data.date || data.form.date
// let arr = data.responUserList || data.form.responUserList
// let newArr = []
// for (let a = 0; a <arr.length; a++) {
// arr[a].institutionName = ''
// this.$http.get('sarUser/user/selectDeptByDY', {
// ids: arr[a].dockUser
// }, {
// _this: this
// }, res => {
// arr[a].institutionName = res.data[0].institutionName
// })
// newArr.push(arr[a])
// }
// this.tableData = newArr
// this.form.hzfileId = data.form ? data.form.hzfileId : (data.hzfileId ? data.hzfileId : '')
// this.form.hzfileName = data.form ? data.form.hzfileName : (data.hzfileName ? data.hzfileName : '')
// this.newDocUser = data.form ? data.form.docUser : data.docUser
// this.json = data || data.form
// }).catch(e => {
// })
// })
},
},
mounted () {
@@ -601,6 +601,7 @@ export default {
pId: this.pId
}).then(res => {
if (res) {
this.commentText = res.commitText || ''
const processForm = JSON.parse(res.mesg)
this.getFormFieldList(processForm)
}
@@ -676,7 +676,7 @@ export default {
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg);
this.commentText5 = data.commentText5 || ''
this.commentText5 = data.commentText || ''
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
@@ -454,6 +454,7 @@ export default {
pId: this.pId
}).then(res => {
if (res) {
this.commentText = res.commitText || ''
const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm);
}
@@ -489,12 +490,9 @@ export default {
titleList.push(data.title);
}
})
console.log(titleList,"titleList!!!!")
console.log(this.dataList,"dataList 进入方法前 !!!!")
titleList.forEach(tl => {
this.dataList.forEach(data=>{
if (data.title === tl){
console.log(data.title,"方法中的title !!!!")
ordelTitleList.push(data)
}
})
@@ -866,6 +866,7 @@ export default {
pId: this.pId
}).then(res => {
if (res) {
this.commentText = res.commitText || ''
const processForm = JSON.parse(res.mesg);
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){