【修改】修改草稿再次点击

This commit is contained in:
zhoulingpo
2023-04-28 17:30:06 +08:00
parent e6589fa07f
commit a30a20524b
2 changed files with 31 additions and 24 deletions
+5 -4
View File
@@ -162,14 +162,15 @@ export default {
} }
this.getProcessDetail(params).then(res=>{ this.getProcessDetail(params).then(res=>{
this.tableData = JSON.parse(res.processOld.dataJson) this.tableData = JSON.parse(res.processOld.dataJson)
this.applicationForm.power = res.tableData[0].power this.$set(this.applicationForm,'power',this.tableData[0].power)
this.applicationForm.applyReason = res.tableData[0].applyReason this.$set(this.applicationForm,'applyReason',this.tableData[0].applyReason)
this.processForm.prcName = res.prcName this.$set(this.processForm,'prcName',this.prcName)
this.disabled=false this.disabled=false
this.formControl= true this.formControl= true
if(this.$route.query.type=='yiban'){ if(this.$route.query.type=='yiban'){
this.disabled=true this.disabled=true
this.submitjson=JSON.parse(res.processOld.submitJson) // this.submitjson=JSON.parse(res.processOld.submitJson)
}else{ }else{
} }
+26 -20
View File
@@ -212,10 +212,10 @@ export default {
this.prcId = this.$store.getters.handleProcess?.prcId this.prcId = this.$store.getters.handleProcess?.prcId
this.prcName = this.$store.getters.handleProcess?.prcName this.prcName = this.$store.getters.handleProcess?.prcName
this.getDraftDetail().then(res => { this.getDraftDetail().then(res => {
this.$set(this.processForm,'prcName', this.prcName)
let tableData = JSON.parse(this.processOld.dataJson) let tableData = JSON.parse(this.processOld.dataJson)
this.processForm.prcName = this.prcName this.$set(this.applicationForm,'power',tableData[0].power)
this.applicationForm.power = tableData[0].power this.$set(this.applicationForm,'applyReason',tableData[0].applyReason)
this.applicationForm.applyReason = tableData[0].applyReason
if(tableData[0].reportId){ if(tableData[0].reportId){
this.tableData=tableData this.tableData=tableData
} }
@@ -238,17 +238,20 @@ export default {
this.prcName = JSON.stringify(this.prcName) this.prcName = JSON.stringify(this.prcName)
this.initShow = true this.initShow = true
this.formControlname = true this.formControlname = true
this.processForm.prcName = this.$route.query.prcName this.$set(this.processForm,'prcName',this.$route.query.prcName)
console.log("122")
await this.getProcessDetail() await this.getProcessDetail()
let applyReason = JSON.parse(this.processOld.dataJson) let submitJson = JSON.parse(this.processOld.submitJson)
// this.applicationForm.applyReason = applyReason.applyReason
this.tableData = JSON.parse(this.processOld.dataJson) this.tableData = JSON.parse(this.processOld.dataJson)
this.applicationForm.power = this.tableData[0].power this.$set(this.applicationForm,'power',this.tableData[0].power)
debugger this.$set(this.applicationForm,'applyReason',this.tableData[0].applyReason)
this.applicationForm.applyReason = applyReason[0].applyReason this.$set(this.assignForm,'oneApprove',submitJson.oneApprove)
this.$set(this.assignForm,'oneApproveName',submitJson.oneApproveName)
this.$set(this.assignForm,'twoApprove',submitJson.twoApprove)
this.$set(this.assignForm,'twoApproveName',submitJson.twoApproveName)
this.$set(this.assignForm,'remark',submitJson.remark)
//指派信息 //指派信息
({oneApprove:this.assignForm.oneApprove,oneApproveName:this.assignForm.oneApproveName,twoApprove:this.assignForm.twoApprove,twoApproveName:this.assignForm.twoApproveName,remark:this.assignForm.remark}= JSON.parse(this.processOld.submitJson)) // ({oneApprove:this.assignForm.oneApprove,oneApproveName:this.assignForm.oneApproveName,twoApprove:this.assignForm.twoApprove,twoApproveName:this.assignForm.twoApproveName,remark:this.assignForm.remark}= JSON.parse(this.processOld.submitJson))
// this.getProcessDetail().then(res => { // this.getProcessDetail().then(res => {
// //基础信息 // //基础信息
// let applyReason = JSON.parse(res.processOld.dataJson) // let applyReason = JSON.parse(res.processOld.dataJson)
@@ -270,14 +273,16 @@ export default {
this.initShow = true this.initShow = true
this.showTableD = true this.showTableD = true
this.getProcessDetail().then((res) => { this.getProcessDetail().then((res) => {
res.tableData = JSON.parse(res.processOld.dataJson) let submitJson = JSON.parse(this.processOld.submitJson)
res.applicationForm.power = res.tableData[0].power // this.applicationForm.applyReason = applyReason.applyReason
res.applicationForm.applyReason = res.tableData[0].applyReason this.tableData = JSON.parse(this.processOld.dataJson)
res.processForm.prcName = res.prcName this.$set(this.applicationForm,'power',this.tableData[0].power)
//指派信息 this.$set(this.applicationForm,'applyReason',this.tableData[0].applyReason)
// ({ name: a.name, age: a.age } = b) this.$set(this.assignForm,'oneApprove',submitJson.oneApprove)
this.assignForm = JSON.parse(res.processOld.submitJson) this.$set(this.assignForm,'oneApproveName',submitJson.oneApproveName)
this.$set(this.assignForm,'twoApprove',submitJson.twoApprove)
this.$set(this.assignForm,'twoApproveName',submitJson.twoApproveName)
this.$set(this.assignForm,'remark',submitJson.remark)
}) })
} }
}, },
@@ -378,7 +383,8 @@ export default {
createUserName: this.$store.getters.userInfo.usname, createUserName: this.$store.getters.userInfo.usname,
createUser: this.$store.getters.userInfo.usid, createUser: this.$store.getters.userInfo.usid,
submitJson, submitJson,
dataJson dataJson,
id: this.$store.getters.handleProcess?.id
} }
this.saveProcess(params).then( this.saveProcess(params).then(
()=>{ ()=>{