【修改】修改权限
This commit is contained in:
@@ -158,7 +158,13 @@ export default {
|
||||
this.showTableD = true
|
||||
this.$set(this.processForm,'prcName', this.prcName)
|
||||
this.getProcessDetail().then((res) => {
|
||||
let dataJson = JSON.parse(this.processOld.dataJson)
|
||||
let submitJson = JSON.parse(this.processOld.submitJson)
|
||||
|
||||
this.tableData[0]=dataJson
|
||||
this.tableData[0].oneApproveName=submitJson.oneApproveName
|
||||
this.tableData[0].twoApproveName=submitJson.twoApproveName
|
||||
this.$set(this,'tableData',this.tableData)
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -236,7 +242,6 @@ export default {
|
||||
createUser:this.userId,
|
||||
createUserName:this.userName,
|
||||
userId:this.userId,
|
||||
submitIson:'',
|
||||
dataJson:'',
|
||||
bpnId: this.$store.getters.handleProcess?.id,
|
||||
reportId: item.reportId
|
||||
@@ -246,6 +251,7 @@ export default {
|
||||
oneApproveName:item.oneApproveName,
|
||||
twoApprove:item.twoApprove,
|
||||
twoApproveName:item.twoApproveName,
|
||||
userId:this.userId,
|
||||
}
|
||||
delete item['oneApprove']
|
||||
delete item['oneApproveName']
|
||||
@@ -253,7 +259,7 @@ export default {
|
||||
delete item['twoApproveName']
|
||||
let dataJson=item
|
||||
obj.submitJson=JSON.stringify(submitJson)
|
||||
obj.dataJson=JSON.stringify(dataJson)
|
||||
obj.dataJson=JSON.stringify({...dataJson, createUser:this.userId, createUserName:this.userName})
|
||||
return obj
|
||||
})
|
||||
this.params=newParams
|
||||
@@ -296,7 +302,6 @@ export default {
|
||||
},
|
||||
// 提交
|
||||
handleSubmit() {
|
||||
|
||||
// 过了校验 需要把数据都整合 this.tableData this.applicationForm this.assignForm
|
||||
// 表格数据没有不能提交 需要提示
|
||||
if (this.tableData.length == 0) {
|
||||
@@ -310,34 +315,16 @@ export default {
|
||||
if (this.initShow) {
|
||||
let flag= this.JuggleSub(this.taskId)
|
||||
if(flag){
|
||||
console.log(this.delData,"flagflagflagflag")
|
||||
|
||||
if(this.delData){
|
||||
this.delDatas().then(()=>{
|
||||
this.organizeData()
|
||||
let dataJson = JSON.stringify(this.tableData)
|
||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||
this.completeProcess({
|
||||
dataJson,
|
||||
submitJson,
|
||||
taskId: this.taskId,
|
||||
userId: this.$store.getters.userInfo.usid,
|
||||
prcType: this.prcType
|
||||
})
|
||||
})
|
||||
}else{
|
||||
this.organizeData()
|
||||
let dataJson = JSON.stringify(this.tableData)
|
||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||
this.completeProcess({
|
||||
dataJson,
|
||||
submitJson,
|
||||
taskId: this.taskId,
|
||||
userId: this.$store.getters.userInfo.usid,
|
||||
prcType: this.prcType
|
||||
})
|
||||
}
|
||||
|
||||
this.organizeData()
|
||||
let dataJson = JSON.stringify(this.tableData)
|
||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||
this.completeProcess({
|
||||
dataJson,
|
||||
submitJson,
|
||||
taskId: this.taskId,
|
||||
userId: this.$store.getters.userInfo.usid,
|
||||
prcType: this.prcType
|
||||
})
|
||||
}
|
||||
} else {
|
||||
if(this.JuggleTableAll()){
|
||||
@@ -379,7 +366,6 @@ export default {
|
||||
//把表单都整合到form中
|
||||
|
||||
this.$api.process.startProcessALL(this.params).then((res) => {
|
||||
debugger
|
||||
let data=res.data.result.split(',')
|
||||
this.params=this.params.map((item,index)=>{
|
||||
item.taskId=data[index]
|
||||
|
||||
Reference in New Issue
Block a user