Commit e61b87e9 authored by youjie's avatar youjie

no message

parent 34fb72bd
...@@ -383,12 +383,15 @@ export default { ...@@ -383,12 +383,15 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
// 1是新增合同
if(options.IsRenewalContract) { if(options.IsRenewalContract) {
this.IsRenewalContract = options.IsRenewalContract this.IsRenewalContract = options.IsRenewalContract
} }
// 合同id
if(options.ContractId) { if(options.ContractId) {
this.ContractId = options.ContractId this.ContractId = options.ContractId
} }
// 已完成签名
if(options.isSign) { if(options.isSign) {
this.isSign = options.isSign this.isSign = options.isSign
} }
...@@ -681,9 +684,10 @@ export default { ...@@ -681,9 +684,10 @@ export default {
if(this.IsRenewalContract||this.ContractId){ if(this.IsRenewalContract||this.ContractId){
if(this.isSign&&this.ContractId>0){ if(this.isSign&&this.ContractId>0){
this.msg.StepNum = 4 this.msg.StepNum = 4
}else this.msg.StepNum = 0 }
// else this.msg.StepNum = 0
// if(this.IsRenewalContract==1) this.msg.ContractId = 0 // if(this.IsRenewalContract==1) this.msg.ContractId = 0
if(this.ContractId) { if(this.ContractId) {
this.msg.ContractId = this.ContractId this.msg.ContractId = this.ContractId
let ContractList = data.ContractList.filter(x=>{ let ContractList = data.ContractList.filter(x=>{
...@@ -693,6 +697,11 @@ export default { ...@@ -693,6 +697,11 @@ export default {
this.msg.C_StartDate = ContractList[0].StartTime this.msg.C_StartDate = ContractList[0].StartTime
this.msg.C_EndDate = ContractList[0].EndTime this.msg.C_EndDate = ContractList[0].EndTime
this.msg.Tourists_Sign = ContractList[0].Tourists_Sign this.msg.Tourists_Sign = ContractList[0].Tourists_Sign
if(this.msg.Tourists_Sign){
this.msg.StepNum = 4
}else this.msg.StepNum = 3
}else{
this.msg.StepNum = 0
} }
console.log(ContractList,'--------') console.log(ContractList,'--------')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment